on 06-17-2016 10:44 AM
Hi Experts,
I'm trying to achieve a functionality where I'm creating a DIR and attaching an original with it from external system. Following are my i/p & o/p parameters.
I/P - File Content, Mime Type along with Document Type
O/P - Document Number
I'm using following function modules for the same
While calling CVAPI_DOC_MAINTAIN, I'm receiving error Error while checking in and storing: filename.
I have checked logs in SLG1 tcode and I've received following message.
No directory specified for file transfer to physical document (DMS_PCD1, 005056A260E41ED68D8B91C53100E166)
Can anyone help me resolve it ? Let me know if you need further details and I shall provide the same.
Best Wishes,
Ravi
Hello Ravi,
By external system do you mean the original is stored on a server which is not connected to your local machine ?
If yes, I am not sure if this is achievable, you need to have the original on your machine from where it can be read or on SAP server (accessible via AL11).
Can you first write the file temporarily in your SAP application server in /tmp path, and then upload it into a SAP document info record & then delete it off ?
For creating the document then use FM, BAPI_DOCUMENT_CREATE2.
Below link might be useful,
http://scn.sap.com/docs/DOC-49337
FYI: The FM you mention are not released check attribute in SE37, and not released function modules should be avoided for custom coding.
Best Regards,
Ameya Beri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ameya,
By external system do you mean the original is stored on a server which is not connected to your local machine ?
In a way, Yes. I'm trying to develop a FM which is in system A. Then I'm trying to call the FM from system B(which is SAP system again). I'm passing file content and other details from system B to FM of system A. I guess it can be achieved.
Can you first write the file temporarily in your SAP application server in /tmp path, and then upload it into a SAP document info record & then delete it off ?
I'm fairly new to SAP DMS. Can you please guide me through this?
Ravi
Hello,
Check with a ABAP consultant, OPEN DATASET is the ABAP statement to create a file and write data into it, I believe you have the file contents and also the extension information.
See below links,
Working with files - ABAP Development - SCN Wiki
SAPTechnical.COM - Downloading file onto the Application Server
Best Regards,
Ameya Beri
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.