2008 Oct 23 2:17 PM
Hi,
I am coding a LSMW object as an interface.
My Interface has to upload cyclically and automatically two files from a folder. After processing the files have to be renamed and saved in the same folder.
So, does anybody know a SAP function which can do this or maybe how to code it?
Thanks in advance.
2008 Oct 23 2:54 PM
concatenate <original_path> <processed>.txt to file_path.
open dataset file_path...
Hi,
I am coding a LSMW object as an interface.
My Interface has to upload cyclically and automatically two files from a folder. After processing the files have to be renamed and saved in the same folder.
So, does anybody know a SAP function which can do this or maybe how to code it?
Thanks in advance.
2008 Oct 23 2:54 PM
concatenate <original_path> <processed>.txt to file_path.
open dataset file_path...
2008 Oct 23 4:38 PM
More examples please:
Once again. I have to rename the file I upload from the Server and save exactly the same file in the same folder with another name. The original file has to be renamed.
If there is no other way I could try to delete the original file on the server and create a new copy of the original file.
But how to do it?
2008 Oct 24 1:44 PM
2008 Oct 24 1:52 PM
Is the question still open?
If yes: renaming not possible (you are already aware of it). The only optio is to delete and save again (with different name).
In Presentation server:
use class CL_GUI_FRONTEND_SERVICES
methods:
FILE_DELETE and GUI_DOWNLOAD
In Application server:
commands: DELETE DATASET and OPEN DATASET... to save again with different name
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |