Application Development 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: 

How to create a logical and a physical path?

Former Member
0 Kudos

Hi ,

I want to know how is a logical path created ?

Also , how can a physical path be created from a provided logicall path?

Regards,

Harshit Rungta

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

Harshit Rungta

you have to check your file contents in AL11. and physical path for your logical path using FILE transaction , use the FM "FILE_NAME_GET_PATH

and check this link.

[;

Regards ,

Ansari.

5 REPLIES 5

Former Member
0 Kudos

Hi,

this can be achived by tcode FILE.

regards,

naveen

Former Member
0 Kudos

Former Member
0 Kudos

HI,

Harshit Rungta

you have to check your file contents in AL11. and physical path for your logical path using FILE transaction , use the FM "FILE_NAME_GET_PATH

and check this link.

[;

Regards ,

Ansari.

0 Kudos

Hi,

Use FM u2018FILE_GET_NAMEu2019 to assign the physical file name using a logical file name.

Remember you need to create u2018logical file nameu2019 using transaction u2013 FILE.

R/3 applications run on various platforms with various file systems. Hence we use platform-independent logical file names in our application programs.

Function module u2018FILE_GET_NAMEu2019 converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.

For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.

Example

logical file name: MONTHLY_SALES_FILE

physical file name: VALUES<PARAM_1>

logical path: SALES_DATA_PATH

physical path (UNIX): /usr/<SYSID>/<FILENAME>

physical path (Windows): C:\SALES\<FILENAME>.

-

Kind Regards,

Nikhil J.