Help required in Dailog programming
I have a field in screen. For that filed i kept f4help in flow logic in process on request(POV)
My problem is:
The user chooses some value in f4 help.After the user chooses some value i need to set someother field based on this field. But i am unable to do that. Can any one help me. how to solve this problem?
My code: in flow logic
PROCESS ON VALUE-REQUEST. FIELD: qmel-qmcod MODULE f4help_qmcod.
lt_qpk1codegrp-codegruppe = '*'. APPEND lt_qpk1codegrp. CALL FUNCTION 'QPK1_GP_CODE_SELECTION' EXPORTING i_katalogart = 'Z' i_code = '*' i_sprache = sy-langu i_winx1 = 10 i_winx2 = 70 i_winy1 = 5 i_winy2 = 25 i_return_if_one = 'X' i_pickup_mode = 'X' TABLES t_qpk1cdtab = lt_qpk1cd t_codegrptab = lt_qpk1codegrp EXCEPTIONS no_match_in_range = 1 no_user_selection = 2 no_authorization = 3 no_selection_specified = 4 object_locked = 5 lock_error = 6 object_missing = 7 OTHERS = 8. CASE sy-subrc. WHEN 0. READ TABLE lt_qpk1cd INTO ls_qpk1cd INDEX 1. IF sy-subrc = 0. qmel-qmgrp = ls_qpk1cd-codegruppe. qmel-qmcod = ls_qpk1cd-code. FREE: lt_qpk1cd,ls_qpk1cd. ENDIF. WHEN OTHERS. MESSAGE s006 WITH 'please check the program'. ENDCASE.
READ TABLE lt_qpk1cd INTO ls_qpk1cd INDEX 1. IF sy-subrc = 0. qmel-qmgrp = ls_qpk1cd-codegruppe. qmel-qmcod = ls_qpk1cd-code. "here you need to call the Function " DYNP_VALUES_UPDATE to update the other fields FREE: lt_qpk1cd,ls_qpk1cd. ENDIF.