cancel
Showing results for 
Search instead for 
Did you mean: 

Error While "Check in" of a orignal in DIR

Former Member
0 Kudos

Hi All,

I am trying to attach the orignals to DIR's in SAP. These orignals are PDF files and they are located on a external shared network drive. I need to run this process in background as i need to upload around 60000 orignals. I am able to upload the orignal successfully with FM "BAPI_DOCUMENT_LOAD" in background mode. But now when i try to checkin the uploaded orignals with FM "CVAPI_DOC_CHECKIN", it gives me an error saying "Error While checking in and storing XXXX". Any clues in this would be very helpful.

Regards

Charitha

Accepted Solutions (0)

Answers (2)

Answers (2)

christoph_hopf
Advisor
Advisor
0 Kudos

Dear Charitha,

You have placed the file on the application server and trying to access via front end.The presence of file on the application server could be seen via AL11 however you cannot access the file directly from windows. This is the reason you get an error.

For checking in originals in background, API functions are much more flexible. Therefore please see also SAP note 504692, which includes several sample programs which could be helpful by checking in original files in background.

The document BAPIs always require a SAPGUI or an open RFC connection, because this channel is required to start the program SAPHTTP (or SAPFTP) on the client for the check-in. When the BAPI is used in background, the system doesn't know where to get the original files from.

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.

Further please see also the SAP note 796709 which contain also necessary information for this action too. In note 766277 you will find also a complete documentation of all available DMS BAPIs in the attachment. Unfortunately there is not standard solution for such scenarios like explained by you. Because a lot of environment variables could influence the BAPI behavior.

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"). SAP note 144256 clearly describes the process.

Best regards,

Christoph

former_member188883
Active Contributor
0 Kudos

Hi,

Regarding this error message I would kindly ask you to check the settings for your content repository and storage category in transaction OAC0, OACT and CSADMIN. This message normally points to a problem in accessing your KPRO content repository.

You can validate your configuration by manual process instead of function module / BAPI.

Hope this helps.

Regards,

Deepak Kori