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

SM49 Windows FTP Command

Former Member
0 Likes
751

Hi

Anyone can help with an example to create command to be executed by SXPG_COMMAND_EXECUTE for windows in SM49. This is to run a batch file script i.e t:\script\ftp.bat whcich FTP files.

Thanks,

Kumar.V

3 REPLIES 3
Read only

Former Member
0 Likes
598

Hi,

i don't via SM49, but you can use this:



DATA: FILENAME     TYPE STRING.

FILENAME = 't:\script\ftp.bat'.

  CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
    EXPORTING
      DOCUMENT = FILENAME.

Hope it helps.

Regards, Dieter

Read only

ThomasZloch
Active Contributor
0 Likes
598

There is probably other commands in SM49 already, look at these for reference.

This is not directly related to ABAP development, you could have a look in other SCN forums like Netweaver Adminstrator or SAP on <OS>. If you re-post there, please close this thread in ABAP General.

Thomas

Read only

0 Likes
598

Hi Thomas ,

Thanks for the info am posting this in SAP on windows thread . Closing here

Thanks,

Kumar.