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

Problem with ...FILE_GET_NAME ??

Former Member
0 Likes
2,429

hi,

I am using function FILE_GET_NAME to return me the physical path for the supplied Logical Path.

CALL FUNCTION 'FILE_GET_NAME'

EXPORTING

LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'

IMPORTING

FILE_NAME = FILE

Now the function returns a path /tmp/XXXXXXX in FILE,

But when i go and check in AL11 there is no such directory XXXXXXX in /tmp .

DO i need to do something else ??

9 REPLIES 9
Read only

Former Member
0 Likes
1,608

hi

in AL11 check <b>dir_temp</b> directory.. u will get it

regards

aswin

mark if helpfull

Read only

0 Likes
1,608

@aswin

I am checking that directory only..

Read only

Former Member
0 Likes
1,608

Hi Anuj, Just check the physical file path that was defined in FILE Transaction for the logical file name " Monthly_sales_File'.I guess the path which u are getting after the FM should be changed there..

Regards,

Swaroop

Read only

Former Member
0 Likes
1,608

HI Anuj,

Check for your file in the temporary directory ... i.e, where your file resides if you have not specified the path fully ..

Regards,

Santosh

Read only

Former Member
0 Likes
1,608

Check the documentation of that function module , you can get something from there if ur missing something

Read only

Former Member
0 Likes
1,608

please use t-code FILE to determine the logic path for that Logical file name 'MONTHLY_SALES_FILE'.

.

May be it will help you to draw some conclusion .

Read only

Former Member
0 Likes
1,608

Hi,

once you or another has defined tho logical path with transaction FILE and has

set the physical path to /tmp/XXXXXXX. But you or the other person forgot to

make the directory XXXXXXX in tmp.

This will not done by FILE in default.

Regards

Bernd

Read only

0 Likes
1,608

@bernd

in FILE,

the physical path mentioned is /tmp/<FILENAME>

but FILE_GET_NAME is returning

the physical path as /tmp/XXXXXXXXX

Read only

0 Likes
1,608

Please use the FM

CALL FUNCTION 'FILE_GET_NAME_USING_PATH'

EXPORTING

logical_path = 'MONTHLY_SALES_FILE'

file_name = l_file

IMPORTING

file_name_with_path = l_file.

Initialise your filename in the variable l_file.