Question:
How can I get the following done ?
On a screen (say XYZ), when I use it for creating a user, I need not provide any drop-down menu.
But when I use XYZ to Change the details I need to provide the F4 help.
that means I have to conditionally give the f4 help ?
The function module that I use is :-
F4IF_INT_TABLE_VALUE_REQUEST which displays values from an itab
(itab is populated using the SELECT query)
Answer:
You can call function F4IF_FIELD_VALUE_REQUEST and assign the matchcode you need at runtime.
Assign a fieldname as matchcode to the screen field, you do this by entering :fieldname where fieldname is the (duh) name of the field which will contain the name of the matchcode. Then just call your module from PROCESS ON VALUE-REQUEST.
I use it in my aps. and it works fine . Just assign any value to the export parameters tabname and fieldname.
Answer:
Thanx for the reply.
Can u plz explain this with an example code.
You can call function F4IF_FIELD_VALUE_REQUEST and assign the matchcode you need at runtime.
Assign a fieldname as matchcode to the screen field, you do this by entering :fieldname where fieldname is the (duh) name of the field which will contain the name of the matchcode. Then just call your module from PROCESS ON VALUE-REQUEST.
I use it in my aps. and it works fine . Just assign any value to the export parameters tabname and fieldname.