Hi Experts,
Am struggling trying to upload a file to the SAP DMS from MII. I can successfully create a document info record, but can't attach a file to that DIR from MII. I can upload and check-in a file successfully from my PC via SE37 and via CV01N.
I've tried using BAPI_DOCUMENT_CREATE2 and BAPI_DOCUMENT_CHECKIN2 with no success. My latest tests involve using the BAPI_DOCUMENT_CREATE2 to create the DIR and the BAPI_DOCUMENT_CHECKIN2 to specify the upload file and storage category and initiate the check-in.
I've attempted specifying the file as a local file on the MII server (C:\..), a local file on my client PC, and in a public directory on the network (
servername\folder...) all with no luck. I've tried copying the SAPFTP.EXE and SAPHTTP.EXE to the MII server and specifying SAPFTP and SAPHTTP in the request also with no luck. The CHECKIN BAPI returns no helpful error message.
Is it indeed possible to do this? Has anyone had any success successfully uploading and checking in a document? The SDN is mysteriously void on this topic. Am I missing something simple or is there another approach completely to initiate moving and checking in a document, triggered by MII?
If I had the choice, would like the file to originate on a client PC. But at this point am not picky, I can put the file anywhere so long as it can be uploaded and attached to a DIR successfully.
Thanks in advance,
Dave