Skip to Content
avatar image
Former Member

BAPI_Document_Create2 fails in background, using PI

Hi experts,

We have a problem triggering BAPI in the background.

Our scenario is like this:     We have ECC(on UNIX) running on and FTP(on WINDOWS) on  Files are placed on FTP Server and the BAPI is triggered through PI.  Our intention is to make the BAPI_Document_Create2 pick the file from the FTP Server and create the DIR and check-in the document. 

The FTP server is on the same network as that of ECC.    

While we execute the BAPI in foreground passing the filepath as\sap\Archive, it is successfully creating the DIR and checking in the document.     However, when the same BAPI is triggered through PI in background, it throws an Error -- "Error while trying to checkin the document\sap\Archive\abc.pdf".     

While running in the background,  we are using SAPFTPA and SAPHTTPA as the destinations.

Request your suggestions / inputs at the earliest.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 03, 2013 at 11:54 AM

    can u test bapi in background using varient?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Problem solved. Instead of trying to pick the file from 10.50, we now post the file onto 10.51(ECC) and now the BAPI is able to pick it from back ground.


  • Jan 04, 2013 at 10:28 AM

    I recommend not using a BAPI from PI in back ground. Use the corresponding IDoc for this purpose.

    This would enhance monitor and error handling features.

    Add comment
    10|10000 characters needed characters exceeded