‎2015 Jun 23 10:44 AM
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
‎2015 Jun 23 11:15 AM
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
‎2015 Jun 23 11:50 AM
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
‎2015 Jun 23 11:31 AM
Hi Santhosh,
Try using this FM PLF_CHECK_DIRECTORY.
Hope this is what you are looking for...
‎2015 Jun 23 11:52 AM
Hello Bhargav,
Its not working when i check at se37 transaction.
it is saying the function module is not exist.
Regards,
Santhosh G
‎2015 Jun 23 12:00 PM
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
‎2015 Jun 23 12:28 PM
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
‎2015 Jun 23 12:34 PM
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
‎2015 Jun 23 12:43 PM
‎2015 Jun 23 12:54 PM
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
‎2015 Jun 23 1:23 PM
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.
‎2015 Jun 23 1:28 PM
Hi,
Try FM 'RZL_READ_DIR_LOCAL'
I hope it will works,
regards,
Pradeep Mishra