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

Get F4 Help on screen fields dynamically depending on the input given.

Former Member
0 Likes
1,355

Hi , I have two fields Customer no & Doc. number on the selection screen, how can i get F4 Help on doc. nunmber field depending on the customer number i will mention in the cust no field.

I have to get all the doc. numbers as F4 help relating to customer number tht i mention only. no other doc. numberes should show up.

Thanks in advance.

Hi , I have two fields Customer no & Doc. number on the selection screen, how can i get F4 Help on doc. nunmber field depending on the customer number i will mention in the cust no field.

I have to get all the doc. numbers as F4 help relating to customer number tht i mention only. no other doc. numberes should show up.

Thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
733

You can use the function moduele

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

when the user selects the value for the customer number .using that you should populate an internal table

whinch should be passed to next F4 help Function.

Regards,

Midhun Abraham

Read only

0 Likes
733

Hi can you send me a sample code.

Read only

Former Member
0 Likes
733

In case you need to read a value of another field BEFORE the user hits enter, you can use the following function.

DYNP_VALUES_READ

Then, you can populate the F4 list based on user input of other fields.

Read only

former_member156446
Active Contributor
0 Likes
733
 	

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = <name of return field in internal table>

DYNPPROG = <Report Name i.e sy-repid>

DYNPNR = <Screen number e.g. 1000 incase of sel.
screen)

DYNPROFIELD = <screen field name>

VALUE_ORG = 'S'

TABLES

VALUE_TAB = <internal Table with values>

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.