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: 

Getting F4 help based on Logical file path/Name

Former Member
0 Kudos

Hi All,

I have a issue relating to getting into AL11 based on logical file path/name.

Supoose i have 2 text fields in my selection screen:

1. Logical File path.

2. Files for Logical File path.

If user enters F4 on 1st field he will get all the logical paths available in the system.

Then in the 2nd field if user presses F4 it should show all the files against 1st field logical file path directory. How can we achieve this!

Ex: In FILE Transaction : My logical file path is: ZLFTEST

I have assigned physical path as: /SAP/FI/DATA/IN/<FILENAME>

In our case if user selects ZLFTEST in 1st field and then presses F4 on 2nd field it should give me all the file names stored under /SAP/FI/DATA/IN/

How can we achieve this!

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

F4 on path

Use the search help H_FILEPATH (in the parameter/field definition or via function modules like [F4IF_FIELD_VALUE_REQUEST|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=f4if_field_value_request&adv=false&sortby=cm_rnd_rankvalue])

F4 on file

get the previous value via function module [DYNP_VALUES_READ|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=dynp_values_read&adv=false&sortby=cm_rnd_rankvalue] then use a function module like [SAPDMC/LSM_F4_SERVER_FILE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=sapdmc%2flsm_f4_server_file&adv=false&sortby=cm_rnd_rankvalue] or [FILE_GET_NAME_AND_LOGICAL_PATH |https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=file_get_name_and_logical_path&adv=false&sortby=cm_rnd_rankvalue]or [FILE_GET_NAME_USING_PATH |https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=file_get_name_using_path&adv=false&sortby=cm_rnd_rankvalue]

Also there are already some threads on this subject : [perform some search at sdn|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=al11+f4&adv=false&sortby=cm_rnd_rankvalue]

Regards

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

F4 on path

Use the search help H_FILEPATH (in the parameter/field definition or via function modules like [F4IF_FIELD_VALUE_REQUEST|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=f4if_field_value_request&adv=false&sortby=cm_rnd_rankvalue])

F4 on file

get the previous value via function module [DYNP_VALUES_READ|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=dynp_values_read&adv=false&sortby=cm_rnd_rankvalue] then use a function module like [SAPDMC/LSM_F4_SERVER_FILE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=sapdmc%2flsm_f4_server_file&adv=false&sortby=cm_rnd_rankvalue] or [FILE_GET_NAME_AND_LOGICAL_PATH |https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=file_get_name_and_logical_path&adv=false&sortby=cm_rnd_rankvalue]or [FILE_GET_NAME_USING_PATH |https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=file_get_name_using_path&adv=false&sortby=cm_rnd_rankvalue]

Also there are already some threads on this subject : [perform some search at sdn|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=al11+f4&adv=false&sortby=cm_rnd_rankvalue]

Regards