Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help required in Dailog programming

Former Member
0 Likes
690

Hello All,

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.

Regards,

Lisa

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
627
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.
4 REPLIES 4
Read only

Former Member
0 Likes
627

Hi Lisa,

Why are you calling the FM QPK1_GP_CODE_SELECTION ?

Read only

JozsefSzikszai
Active Contributor
0 Likes
627

hi Lisa,

you have to use FM SET_DYNP_VALUE to add value to different screen fields.

hope this helps

ec

Read only

Former Member
0 Likes
628
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.
Read only

Former Member
0 Likes
627

Hi,

use F4IF_INT_TABLE_INTERNAL_TABLE Function Module.

In 'return' parameter it will get the value what you clicked.

Once you got that value write one more select query to fetch other value.