Hello everyone,
I have a requirement in which I am fetching a file from client FTP and utlizing it after saving it to SAP appl server.
It seems to be working well in Dev, but in prod it doesnt work.
'lcd' is the command to Change the local directory to the sap inbound directory.
Below is the code snippet :
CLEAR cmd.
CONCATENATE 'lcd' file_d INTO cmd SEPARATED BY space.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = mi_handle
command = cmd
compress = 'N'
TABLES
data = it_data
EXCEPTIONS
command_error = 1
tcpip_error = 2.
Kindly let me know how to solve it . Thanks!