‎2009 Jan 23 6:38 PM
Hello,
I am working on module pool programming. I have two selection fields (F1 and F2) on screen. Now when
user clicks on second selection the dropdown should show the values based on first selection.
I am writing the logic for On-value request in POV module
Process on VALUE-REQUEST.
FIELD F1 MODULE HELP_F2.
The issue is I have to pass the value of F1 that user enetered insisde Module HELP_F2
where I will be writing my logic for selection of F2 field.
My problem is how to pass the value of F1 field in POV for F2 field ?
Regards,
Rajesh.
‎2009 Jan 23 6:48 PM
Hi,
Put your coding in the PBO. Use the function SET_VRM_VALUES to set the values for F2.
Note that the user will have to press enter after entering anything in F1, which will trigger the PAI and PBO, in order to have the value passed to the app server ( ABAP program) from the frontend.
Then based on the value of F1, set the values of the listbox F2, if it is not blank.
regards,
Advait
‎2009 Jan 23 6:48 PM
Hi,
Put your coding in the PBO. Use the function SET_VRM_VALUES to set the values for F2.
Note that the user will have to press enter after entering anything in F1, which will trigger the PAI and PBO, in order to have the value passed to the app server ( ABAP program) from the frontend.
Then based on the value of F1, set the values of the listbox F2, if it is not blank.
regards,
Advait
‎2009 Jan 23 7:01 PM
Thaks for your reply but we don't want user to perform that extra step. They can't hit enter when they have not finsihed complete data insert.
But I found a way to solve this as below by using FM DYNP_VALUES_READ.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-REPID "call the repid of ur prog
DYNUMB = '5000'
TABLES
DYNPFIELDS = DYNP_VALUES
EXCEPTIONS
OTHERS = 1.
SORT DYNP_VALUES BY FIELDNAME.
READ TABLE DYNP_VALUES WITH KEY 'XXXX' BINARY SEARCH.
IF SY-SUBRC EQ 0.
YYYY = DYNP_VALUES-FIELDVALUE.
ENDIF.
Thanks.
Regards,
Rajesh.
Edited by: Rajesh Thomas on Jan 23, 2009 8:01 PM
Edited by: Rajesh Thomas on Jan 23, 2009 8:02 PM
question answered
‎2009 Jan 23 7:02 PM