2014 Sep 27 9:53 PM
Hi ,
I am trying to add F4 help depending upon input in the first field.
Ex : First Fields is STUD COUNTRY : USA, IND...etc
STD STATE : CT - F4 Help - CT, NJ, Maharastra ...etc
STD CITY : Plainville , Mumbai
STD ADD : Southington...AIROLI, etc....
I have written the code but the cursor is not at all triggering to get multiple on Value request.
PROCESS ON VALUE-REQUEST.
field TABLE-STATE MODULE get_data_state.
field TABLE-CITY MODULE get_data_city.
When I debug, cursor is going to module get_data_state but it is not passing to get_data_city...even after putting the hard break point in there...
Any suggestions will be appreciated!
Best Regards,
KC
2014 Sep 29 8:47 AM
Hi,
It doesn't works like that.
Each field f4 will trigger when F4 is pressed on that field.
If you want to do what you described, call other f4 help modules from inside the first field f4 module.
2014 Sep 28 1:19 PM
Hi Krishna,
During debugging, if code doesn't execute means in such case, only the activation may be the problem.
Activate all the objects(Screen, Include) related to the program.
Regards
Rajkumar Narasimman
2014 Sep 29 8:47 AM
Hi,
It doesn't works like that.
Each field f4 will trigger when F4 is pressed on that field.
If you want to do what you described, call other f4 help modules from inside the first field f4 module.
2014 Oct 01 5:10 PM
Hi All,
Thank you for your response!
Can anybody help...how I can put F4 Help valules for Multiple fields.
Ex : As explained above.... F4 help entries for second field should depend upon first Field entry and
- Third field should depend upon second field entry and
- Fourth Field should depend upon thris field entry.
Any help or suggestions will be apprecaited!
Best Regards,
KC
2014 Oct 06 6:55 AM
Hi,
Regards,
Ashish
2014 Sep 29 10:11 AM
Hi,
Use the statement set parameter id and get parameter id when the fields having the parameter id's.
2014 Oct 01 8:53 PM
Hi KC,
Since the field transport mechanism between the dynpro and the program memory has not yet happened when the value-request modules are executed, you need to read the values from the screen instead of just relying on what's in the program's memory. You have to use function DYNP_VALUES_READ in order to read the country value before showing the values for State for example.
Sample coding:
data:
lv_country type land1,
lv_repid type syrepid,
lt_dynp_value type standard table of dynpread.
field-symbols:
<dynp_value> type dynpread.
append initial line to lt_dynp_value assigning <dynp_value>.
<dynp_value>-fieldname = 'TABLE-COUNTRY'.
lv_repid = sy-repid.
call function 'DYNP_VALUES_READ'
exporting
dyname = lv_repid
dynumb = '1000'
tables
dynpfields = lt_dynp_value.
read table lt_dynp_value assigning <dynp_value> with key fieldname = 'TABLE-COUNTRY'.
if sy-subrc = 0.
lv_country = <dynp_value>-fieldvalue.
endif.
Jim