Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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 172.16.10.51 and FTP(on WINDOWS) on 172.16.10.50.  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
172.16.10.50\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
172.16.10.50\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.

Regards,

Sriram

Former Member
Not what you were looking for? View more on this topic or Ask a question