cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Checking in & storing files

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_hopf
Advisor
Advisor
0 Kudos

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