2007 Sep 17 10:19 PM
In my report I have to move file in application server folder other folder.
for ex:currently file is in '/xfer/IN/'
I have to move file to '/xfer/OUT/' after reading from '/xfer/IN/'.
please tell me code.
2007 Sep 17 10:23 PM
HI,
is it on unix... if yest do this..
DG_UNIX_LOC = 'mv /xf/in /xf/out'.
DATA : V_STRING(100) TYPE C.
REFRESH DT_TABL.
CALL 'SYSTEM' ID 'COMMAND' FIELD DG_UNIX_LOC
ID 'TAB' FIELD DT_TABL-SYS.
2007 Sep 17 10:31 PM
2007 Sep 17 10:43 PM
1. Use SM69 to define an OS command. On Windows it can be: "cmd /c MOVE /Y".
2. Then use CALL FUNCTION 'SXPG_COMMAND_EXECUTE' to run it from ABAP code.