on 09-12-2011 6:31 AM
Hi
I'm not able to upload Documents using BAPI (BAPI_DOCUMENT_CREATE2) from SE37 as well as an RFC call (using Java)
On executing it provides with a new Document No. but Files does not get uploaded.
Also, when I use BAPI (CVAPI_DOC_CHECKIN), it uploads the file when used from SAP System (through SE37), but if called through RFC (using Java) , it does not uploads the file.
When providing the same details using CV01N or CV02N , Documents from systems gets attached/ uploaded.
Please help!!
I'm trying the same for past 8-9 days but without any luck.
Regards
Prashant
Hi Prashant,
Please note that the functionality you would like to realize is a very special one for which no standard solution exists. However, API-s are more flexible in some cases, i.e. CVAPI_DOC_CHECKIN with RFC destinations defined as SAPHTTPA/SAPFTPA could fulfill your requirements.
Please see also SAP note 504692, which contains sample programs for the checkin in background. Further please see also the other SAP note 796709 which contain also necessary information for this action too.
As additional information source kindly go through the note 729800. This will be of use for the current issue. If one uses BAPI's in via RFC-Lib, the ABAP-System makes a callback and starts the saphttp, sapftp via the open RFC channel. Therefore the RFC-Client has to allow this by calling RfcAllowStartProgram("sapftp;saphttp"). In note 144256 the process is cleary explained.
Best regards
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.