BAPI_Document_Create2 fails in background, using PI
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
While running in the background, we are using SAPFTPA and SAPHTTPA as the destinations.
Request your suggestions / inputs at the earliest.