Application Development and Automation 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: 
Read only

FTP Program Background Job not working

abdullahgunes
Participant
0 Likes
1,535

Hi;

I create a program ,it is sending a text file to ftp. It is working manually but when i want to send with a job , its not working.

What you think about this. And  which roles the user must have?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
906

For user lack of authority (...) use SU53 or trace authorization with ST01.

But insure you use destination SAPFTPA in background and not SAPFTP which only performs well in foreground (linked to GUI/workstation)

  • SAPFTP:          starts sapftp on the front-end workstation
  • SAPFTPA:          starts sapftp on the application server

Regards,

Raymond

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
907

For user lack of authority (...) use SU53 or trace authorization with ST01.

But insure you use destination SAPFTPA in background and not SAPFTP which only performs well in foreground (linked to GUI/workstation)

  • SAPFTP:          starts sapftp on the front-end workstation
  • SAPFTPA:          starts sapftp on the application server

Regards,

Raymond

Read only

0 Likes
906

Thanks  mate it was helpfull for me.

My problem was about configuration of SAPFTP.

When I change activation type of SAPFTP to Standart on App. Server , its not working for bakground job but file is coming correctly to FTP on working se80/38 , as the same when I change activation type of SAPFTP to Start on Front-end work Station , its working on bakground but file is not coming correctly to FTP, its coming bad charecters.

For this porblem what can I do?

Read only

0 Likes
906

Don't change those RFC via SM59, use report RSFTP005, if required delete existing RFC destination, so report will create them again.

Regards,

Raymond

Read only

arindam_m
Active Contributor
0 Likes
906

Hi,

Why dont you try and create an external command and use the same with FM SXPG_COMMAND_EXECUTE.

Check the link for Command creation in SM59 and its usage

http://wiki.sdn.sap.com/wiki/display/ABAP/Creation+of+External+Commands+with+the+help+of+UNIX+Coding...

Cheers,

Arindam