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: 

SM49 Windows FTP Command

Former Member
0 Kudos

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

Former Member
0 Kudos

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

ThomasZloch
Active Contributor
0 Kudos

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

0 Kudos

Hi Thomas ,

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

Thanks,

Kumar.