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

function module for logical file path and name

Former Member
0 Likes
1,814

Hello all,

I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!

Regards,

Anyi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
596

Please check the FM FILE_NAME_GET.

CALL FUNCTION <b>'FILE_GET_NAME'</b>

EXPORTING

logical_filename = 'ZDELCHKREP'

parameter_1 = it_cntry-cntry

IMPORTING

file_name = l_file

EXCEPTIONS

file_not_found = 08.

CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b> EXPORTING

logical_path = 'ZDELCHKREP'

file_name = l_file

IMPORTING

file_name_with_path = l_file.

Message was edited by: Anurag Bankley

Message was edited by: Anurag Bankley

2 REPLIES 2
Read only

Former Member
0 Likes
597

Please check the FM FILE_NAME_GET.

CALL FUNCTION <b>'FILE_GET_NAME'</b>

EXPORTING

logical_filename = 'ZDELCHKREP'

parameter_1 = it_cntry-cntry

IMPORTING

file_name = l_file

EXCEPTIONS

file_not_found = 08.

CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b> EXPORTING

logical_path = 'ZDELCHKREP'

file_name = l_file

IMPORTING

file_name_with_path = l_file.

Message was edited by: Anurag Bankley

Message was edited by: Anurag Bankley

Read only

Former Member
0 Likes
596

Please check this link

http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm

Please also check out package SFIL in SE80.

Message was edited by: Dominic Pappaly