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.