2008 May 27 12:02 PM
hi all,
in one of our programs we are using FTP_COMMAND to transfer to some other system. if it runs for some long time.. we are getting TCPIP_ERROR exception. we thought of giving some delay and call the FM AGAIN if such error occurs if that is the case ideally how much should be the wait time.. pls advice.
Thanks,
Shiva.
2008 May 27 12:04 PM
can u paste your code?
Its a normal connection to the FTP server there is no need of a time delay.
Whts your vaule of handle?
2008 May 27 12:06 PM
CALL FUNCTION 'FTP_COMMAND'
EXPORTING HANDLE = HDL COMMAND = CMD1
TABLES DATA = RESULT
EXCEPTIONS TCPIP_ERROR = 1 COMMAND_ERROR = 2.
2008 May 27 12:09 PM
2008 May 27 12:13 PM
1>Use report RSFTP002 and test your connection first.
2>also make sure you have your SAPFTP setup in sm39 tcp/ip connections.
Hope it helps
2008 May 27 12:35 PM
Not every time FTP_COMMAND IS FAILING....
some times it is successfully executing... we are running the job in back ground.
some times it is failing after it ran for 11-12 hrs.. so i am thinking whether repeated calls to this FM is giving TCP_IP error. so i am thinking to give a delay if TCP_IP error occurs and again call the FM..
will it work?? if so how much delay i should give.??
2024 May 17 10:13 AM
Please help.
This is my code.
CALL FUNCTION FTP_COMMAND
EXPORTING
handle = w_hdl
command = p_lv_cmd
TABLES
data = it_result
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.
What i have to pass in parameter command = p_lv_cmd as i am receiving XML file here