hi,
is there a possibility to rename, move and/or copy a file from one path to another on the sap-application-server with abap-coding ?
i get pdf-files in a specific folder. then i make some checks for archiving the pdf-file. if the check is not okay i want either to RENAME the file (like setting a flag)....or if not possible i want to move/copy the file in another folder.
i can't find any function modules for it 😔
we are using 4.6c
regards, Martin
Use following procedure. You need not pursue UNIX command knowledge for this:
Goto SM49.
Define command, using name and parameters.
Save.
Call function SXPG_COMMAND_EXECUTE with this command.
This way you can achieve required results.
Let me know if you have any further queries.
Don't forget to mark helpful answers!
Gaurav Parmar.
U can surely copy it by reading the file via Open command and writing it to a new file with a different name in the same folder or other. But not 100% sure of move/rename as you would need to delete the file from the server.
Regards
Anurag
Another way would be using FTP commands.
1. FM: FTP_CONNECT to connect to the application server.
2. FM: FTP_COMMAND to execute the command at FTP level, like rename, move etc...
3. FM: FTP_DISCONNECT to close the connection.
Kind Regards
Eswar
Add a comment