2014 Dec 17 6:24 AM
Hi Expert.
Please help me,
We want to move file between two Folder on Application Server.
I use Code like below:
GC_MOVE = 'move'.
CONCATENATE GC_MOVE
'\\192.168.16.123\LIMS_Data\From_LIMS\test.txt'
'\\192.168.16.123\LIMS_Data\From_LIMS\Backup\'
INTO LV_PARCOM
SEPARATED BY SPACE.
CALL 'SYSTEM' ID 'COMMAND' FIELD LV_PARCOM
ID 'TAB' FIELD GT_TABL.
we have successful move file between two folder but Now we move on EHP7 so File to stop move between two folder.
Thanks.
Pradip Patel.
Hi,
check this
http://www.iconet-ltd.co.uk/sap/abap/sxpg.txt
This above program is based on 'Y_REMOVE' command. So you can define the command for each operating system using transactions SM69 (You can test it with SM49) and then call it using SXPG_COMMAND_EXECUTE
2014 Dec 17 6:31 AM
2014 Dec 17 6:38 AM
2014 Dec 17 6:44 AM
2014 Dec 17 6:57 AM
Hi Archana Pawar.
Please give me brief code related FM : SXPG_COMMAND_EXECUTE.
COMMANDNAME = ?
ADDITIONAL_PARAMETERS = ?
OPERATINGSYSTEM = Windows NT
TARGETSYSTEM = ?
DESTINATION = ?
STDOUT = 'x'
STDERR = 'x'
TERMINATIONWAIT = 'x'
TRACE = ?
DIALOG = ?
Thanks.
Pradip Patel.
2014 Dec 17 7:02 AM
Hi,
check this
http://www.iconet-ltd.co.uk/sap/abap/sxpg.txt
This above program is based on 'Y_REMOVE' command. So you can define the command for each operating system using transactions SM69 (You can test it with SM49) and then call it using SXPG_COMMAND_EXECUTE
2014 Dec 17 7:07 AM
Hi Pradip,
Refer below link.
Or you can use FM ARCHIVFILE_SERVER_TO_SERVER .
2014 Dec 17 6:57 AM
Hi,
Use function ARCHIVFILE_SERVER_TO_SERVER and do it. Use a delete dataset with source file after moving it.
Search for the command which moves the files. Create external command in sap and trirger it using fm SXGP_COMMAND_EXECUTE. There are lot of topics related to this available in the forums
Regards,
EH
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |