Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Uploading a file to an ftp server in ABAP by using the DOS commands

Uploading a file to an ftp server in ABAP by using the DOS commands

Ratings: (0)|Views: 1,023|Likes:
Published by joseph_marcel2480
Uploading a file to an ftp server in ABAP by using the DOS commands . Description 1. Load some data into an internal table. 2. Download the internal table data into a file and place it in the presentation server. 3. capture the various ftp commands used to write a file into the ftp server and load those commands into an internal table .( Like this we can execute any type of an ftp command ). 4. Download the internal table which has the ftp commands as a text file to the presentation server. 5. U
Uploading a file to an ftp server in ABAP by using the DOS commands . Description 1. Load some data into an internal table. 2. Download the internal table data into a file and place it in the presentation server. 3. capture the various ftp commands used to write a file into the ftp server and load those commands into an internal table .( Like this we can execute any type of an ftp command ). 4. Download the internal table which has the ftp commands as a text file to the presentation server. 5. U

More info:

Published by: joseph_marcel2480 on Feb 28, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

06/26/2014

pdf

text

original

 
Uploading a file to an ftp server in ABAP by using the DOS commands .Description1. Load some data into an internal table.2. Download the internal table data into a file and place it in the presentationserver.3. capture the various ftp commands used to write a file into the ftp server andload those commands into an internal table .( Like this we can execute any typeof an ftp command ).4. Download the internal table which has the ftp commands as a text file to thepresentation server.5. Use the function module GUI_EXEC and open the ftp command file and execute the commands one by one.6. Finally the Files are placed in the FTP server.DATA : BEGIN OF itab_ftp_command OCCURS 0,command(100) TYPE c,END OF itab_ftp_command,* Select some data from Table and load it into an internal table.CALL FUNCTION 'GUI_DOWNLOAD' " Downloading the fileto local PCEXPORTINGfilename = local_File_pathfiletype = 'ASC'* IMPORTING* FILELENGTH =TABLESdata_tab = Internal table name ..*** Move the various ftp commands to an internal table.CONCATENATE 'Open ' host_name(ip address) INTO itab_ftp_command-command SEPARATED BY space.APPEND itab_ftp_command.MOVE username TO itab_ftp_command-command.APPEND itab_ftp_command.MOVE password TO itab_ftp_command-command.APPEND itab_ftp_command.*** Copy the local fle from the presentation server to the ftp server.CONCATENATE 'PUT' (local_file_path) (ftp_file_path) INTO itab_ftp_command-command SEPARATED BY space.APPEND itab_ftp_command.MOVE 'bye' TO itab_ftp_command-command. " Exit command to come out from CMD windowAPPEND itab_ftp_command.*** Download the ftp command table as a text file to the presentation server.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->