Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

application server File renaming function module creation - sample code

Former Member
0 Likes
854

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....

2 REPLIES 2
Read only

Former Member
0 Likes
632

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.

For more information, see [;.

Regards.

Read only

Former Member
0 Likes
632

using the fm SCMS_FILE_COPY,we can rename a file from application server