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 path name without directry name

Former Member
0 Likes
1,433

Hello All,

How to get the application file path with f4 help directly with out directroy name in abap program.

can anyone let me know the function module and functionality.

right now i am having appication file path only like " /xxxxxx/env/P14/zz/file1.csv "

Regards,

Santhosh G

11 REPLIES 11
Read only

Former Member
0 Likes
1,395

Hello,

you can customize your logical Filepath in Transaction FILE and read it in your program with function FILE_GET_NAME.

This will allow you to have a different physical path on test environment and in production system.

Regards

Nico

Read only

0 Likes
1,395

Hello Nicolos,

i am not looking for logical file name.

I am having the path name,  to upload the data to the program i want to use f4 help.

so which function module can i use?

Regards,

Santhosh G

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,395

Hi Santhosh,


Try using this FM PLF_CHECK_DIRECTORY.

Hope this is what you are looking for...

Read only

0 Likes
1,395

Hello Bhargav,

Its not working when i check at se37 transaction.

it is saying the function module is not exist.

Regards,

Santhosh G

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,395

Hi Santhosh,

if you are on FS8 or above service pack it should work.

However check this FM that could help you

/SAPDMC/LSM/F4_SERVER_FILE or /SAPDMC/LSM_F4_SERVER_FILE.

But you need to mention the directory

Read only

0 Likes
1,395

Hello Bhargav,

Thanks for mail me.

i already tried for that function module.

but directory is nessesary.

apart from any function module is there with out using directory?

Regards,

Santhosh G

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,395

Hi Santhosh,

Please try that FM, it will work, you don't need to pass the Directory in the FM Parameters.

I said you must know the Directory that you necessarily want to use.

Hope this helps

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,395

Hi Santhosh,

Try KD_GET_FILENAME_ON_F4,  I just found now.

Read only

0 Likes
1,395

Hello Bhargav,

Thanks for your quick reply.

As per previous mail , KD_GET_FILENAME_F4

i think we can use only for local system data not application server.

Regards,

Santhosh G

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,395

Nope you are wrong. You can use it for both. Check this program for more information.

RFBVBIC2.

You can pass LOCAL_FLAG as 'A' to open Application server. you can pass as 'P' for presentation server.

hope this is clear.

Read only

Former Member
0 Likes
1,395

Hi,

Try FM 'RZL_READ_DIR_LOCAL'

I hope it will works,

regards,

Pradeep Mishra