‎2011 Jan 06 9:34 AM
I have 2 fields on selection screen.
I want the f4 help for the second parameter which depends on the value of the 1st parameter.
I enter value for the 1st parameter on selection screen. Press f4 for the second...
AT SELECTION-SCREEN ON VALUE-REQUEST FOR event gets triggered, but the value of 1st parameter doesnt show up here.
Because 1st parameter is empty, i cannot get value in value_tab (in F4IF_INT_TABLE_VALUE_REQUEST) using SELECT on database.
How I can read selection screen paramater inside AT SELECTION-SCREEN ON VALUE-REQUEST FOR event.
Please help.
Thanks,
Sujeet
‎2011 Jan 06 9:46 AM
Make use of FM "DYNP_VALUES_READ"
make use of
TABLES
dynpfields = lt_dyn_field
enter your field name
pass your field name in the tables parameter..
ls_dyn_field-fieldname = 'P_MGPLN'.
after the execution of the FM, it will update the value in lt_dyn_field and then u can read the table and get the value in your paramter..
I hope it helps
‎2011 Jan 06 9:46 AM
Make use of FM "DYNP_VALUES_READ"
make use of
TABLES
dynpfields = lt_dyn_field
enter your field name
pass your field name in the tables parameter..
ls_dyn_field-fieldname = 'P_MGPLN'.
after the execution of the FM, it will update the value in lt_dyn_field and then u can read the table and get the value in your paramter..
I hope it helps
‎2011 Jan 06 11:25 AM
Thanks a lot Yadesh.
It solved the problem.
Awarded points.
Thanks again!