2012 Mar 12 11:38 AM
Hi,
I am using FM "SXPG_COMMAND_EXECUTE" to run the UNIX Command in ABAP. I need to copy a current single file at a time in SAP application server to another system. I tried but it copies all filles which is available in the folder in Application server. I want to copy only single file during one execution. Please help me.
OPEN DATASET..
LOOP AT ITAB.
TRANSFER ITAB TO P_FILE.
ENDLOOP.
CLOSE DATASET.
V_DIR_INPUT = 'D:\USR\RUN.BAT'.
CALL FUNCTION "SXPG_COMMAND_EXECUTE"
EXPORTING
COMMANDMODE = ZCOMMAND
ADDITIONAL_PARAMETERS = V_DIR_INPUT
OPERATINGSYSTEM = 'UNIX'
Hi,
I am using FM "SXPG_COMMAND_EXECUTE" to run the UNIX Command in ABAP. I need to copy a current single file at a time in SAP application server to another system. I tried but it copies all filles which is available in the folder in Application server. I want to copy only single file during one execution. Please help me.
OPEN DATASET..
LOOP AT ITAB.
TRANSFER ITAB TO P_FILE.
ENDLOOP.
CLOSE DATASET.
V_DIR_INPUT = 'D:\USR\RUN.BAT'.
CALL FUNCTION "SXPG_COMMAND_EXECUTE"
EXPORTING
COMMANDMODE = ZCOMMAND
ADDITIONAL_PARAMETERS = V_DIR_INPUT
OPERATINGSYSTEM = 'UNIX'
2012 Mar 12 2:39 PM