on 12-21-2009 9:24 AM
Hi All,
I have created an RFC that creates DMS document using BAPI_DOCUMENT_CREATE2.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
DOCUMENTDATA = BAPI_DOC_DRAW2
PF_FTP_DEST = 'SAPFTPA'
PF_HTTP_DEST = 'SAPHTTPA'
IMPORTING
DOCUMENTNUMBER = G_DOCNUMBER
RETURN = BAPIRET2
TABLES
DOCUMENTFILES = GIT_BAPIDOC_FILES2.
This RFC is called on Portal through Java Web Dynpro Component which takes filename from the WD java screen and passes it to RFC.
When i execute this RFC in SE37, i am able to create document but when i execute it through portal, i am getting the error :
Error in Checking in & storing files :<Filename>
Please guide through.
Regards
Shruti
Hi Shruti,
please note that DMS BAPIs require always a SAPGUI channel or open RFC
connection to start the SAPHTTP/SAPFTP program that is used to up- or
download files to the client. If the BAPI ist executed in background
mode, the system doesn't know from where to get the original file.
Please do not use BAPIs in background mode, use APIs instead. They are
more flexible regarding RFC calls (background processing). I hope the
SAP note 504692, which contains sample programs for special
checkin/checkout cases could be useful for you. Please read this note and use the sample
programs as a basis for your own coding. Further please see also note
796709 which also might contain useful information for such cases.
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 |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.