Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

background job not picking files from FTP location.

karumudi9
Explorer
0 Kudos

Dear Menbers,

I have requirement that i will place some txt files in a ftp location. From that location sap zreport needs to pick the files and update the same in sap. I have developed a report for the same with all ftp parameters hot-coded. When i run the report in frontend it is picking the files and updating into Sap properly. When i have scheduled the same report in background it is showing that the no files are found in mentioned location. But, the files are moving from current folder to archive folder,.the user for frontend execution and background execution are same.

Please suggest a solution for the same.

4 REPLIES 4

kiran_k8
Active Contributor
0 Kudos

Check the below mentioned thread for some lead......

https://archive.sap.com/discussions/thread/1567410

K.Kiran.

raymond_giuseppi
Active Contributor

Add a protocol to your job and put error messages from ftp (look at returned tables such as DATA or PROTOCOL in the FM you call) in this protocol (or at least in background job log) - Then pass this protocol to your basis/security for authorization failure or locked port.

karumudi9
Explorer
0 Kudos

The exact issue is FTP_SERVER_TO_R3 Fm report is unable to read files fron FTP, the same is happening if we run report through foreground.

kiran_k8
Active Contributor

"pass this protocol to your basis/security for authorization failure or locked port."

That is what Raymond is referring to in the above statement.Working with Basis team will let you know if there are any missing authorisations or Port not available when the same program is running in the background.

K.Kiran.