05-18-2012 12:58 PM
HI,
I have created one program in that files are moving from one folder to another in application server the path is SAP_REPORT/ED2/report/ptf. its working fine..
but same files are stored in same path at network folder path like - \XYZ05\SAP_REPORT\ED2\report\ptf . My question is that is der is any abap level solution. to move files from one folder to another folder at network level..
05-18-2012 1:17 PM
05-18-2012 1:17 PM
05-18-2012 1:51 PM
Hi Amol
Is this for Background Processing?
I've encountered a similar problem a while ago,
We had to move not just folders but to another system as well in the background
I achieved this by creating a script at OS level and executing it via SM69 as a batch job.
If it is not a batch job have you tried the normal gui_upload and download FM's.
Regards
Vic
05-18-2012 1:54 PM
Create a OS level command in SM69... one for copy file .. and then paste file.
And then use FM "SXPG_COMMAND_EXECUTE" to run those commands with necessary parameters
05-18-2012 2:01 PM
Hi Vic,
Thanks for ur reply,
actually i have seen threads about SXPG_COMMAND_EXECUTE fm but i was not confidant for network path.
Yes its BG job...gui...fm or methods wont support ..
i think using fm SXPG_COMMAND_EXECUTE i can get the solution hope so.
Thanks
Amol
05-18-2012 2:02 PM
05-18-2012 3:01 PM
I think Yes.. but check the command for your OS. It supports the OS level command. if your OS has that command, then it should work
07-17-2012 12:49 PM
Solved,
sample solution,
get all files using FM
EPS2_GET_DIRECTORY_LISTING
In application server file has no created date..so pick date from file...and remove except current one..by using CS.
and finally use
OPEN DATASET
TRANSFER
DELETE DATASET
CLOSE DATASET
Thanks,
Amol