‎2008 Apr 23 2:20 PM
I want to rename a file from application server using function module.
Can somebody tell me is there is any such sap provided function module
is there?If not please tell me what should be abap routine to create such
a function module.
Thanks in advance....
‎2008 Apr 23 2:40 PM
You need to create a logical file name using FILE transaction. Then create a logical path and assign the physical path (actual path on app. server) to the logical path. While defining the physical filne name you have the option of selecting from the list of 'reserved word' available. For e.g. <DATE>, <TIME> etc.
Steps are:
1) Execute transaction 'FILE'.
2) Create a logical file path.
3) Assign Syntax Grp (Operating Systems) to above logical file path. You need to create the syntax group to identify the physical path in the application server. This step actually assigns the physical path to the logical path.
4) Create a logical file.
5) Assign the physical file name to the logical file. You have lots of system reserved word to choose from to suffix your file name with date and time etc.
The physical file name is used by the function module FILE_GET_NAME at runtime to compose a complete platform-specific file name.
Regards.
‎2008 Sep 18 12:16 PM
using the fm SCMS_FILE_COPY,we can rename a file from application server