07-28-2010 12:54 PM
Hi All,
We have a requirement where we need to upload an excel file from an ABAP report into SAP Application server.But i don't have any knowlege on this.
When i search the SDN came to know that we do this from FTP .
Can any one tell me step by step procedure to do this from ABAP program.
thanks in advance.
Regards
CB
07-28-2010 12:58 PM
Below is the list of Function module for FTP, ( Search for the FM useage FM)
Follow the steps
1. Connect to the client
2. Execute the the FTP Command ie. in your case you will copy the file
3. Close the connection
FTP_CLIENT_TO_R3
FTP_COMMAND
FTP_COMMAND_LIST
FTP_CONNECT
FTP_COPY
FTP_DISCONNECT
FTP_R3_TO_CLIENT
FTP_R3_TO_SERVER
FTP_SERVER_TO_R3
FTP_START_REG_SERVER
FTP_START_SAPFTP
FTP_STOP_REG_SERVER
FTP_VERSION
hope it helps..!
Thanks and regards,
Anup Deshmukh.
Edited by: Anup Deshmukh on Jul 28, 2010 2:26 PM
07-28-2010 12:58 PM
Below is the list of Function module for FTP, ( Search for the FM useage FM)
Follow the steps
1. Connect to the client
2. Execute the the FTP Command ie. in your case you will copy the file
3. Close the connection
FTP_CLIENT_TO_R3
FTP_COMMAND
FTP_COMMAND_LIST
FTP_CONNECT
FTP_COPY
FTP_DISCONNECT
FTP_R3_TO_CLIENT
FTP_R3_TO_SERVER
FTP_SERVER_TO_R3
FTP_START_REG_SERVER
FTP_START_SAPFTP
FTP_STOP_REG_SERVER
FTP_VERSION
hope it helps..!
Thanks and regards,
Anup Deshmukh.
Edited by: Anup Deshmukh on Jul 28, 2010 2:26 PM
07-28-2010 2:11 PM
Hi Anup,
thanks a lot for your valueable response,but to use FTP_CONNECT we need to give user id and password.which user id shoud i need to give here?
thanks
cb
07-28-2010 2:15 PM
a) from presentationserver: use tcode CG3Z (data type binary)
b) from another application server look report rsftp004
you get the logon data from your basis team!
greetings
Andreas
Edited by: Andreas Mann on Jul 28, 2010 3:16 PM