Skip to Content

Select options - dynp_values_update

Hi,

I need to update a select option ( multiple values ) in the selection screen. I tried with DYNP_VALUES_UPDATE but it was not working. I am checking on this for last two days but did not reach the solution.

Please donot tell me to use submit statement ( calls an internall session ) becuase that is what i got when i searched in SCN. I want this functionality to happen when the f4 help is selected. We are providing a popup of multiple checkboxes when f4 is pressed on a select option. When one or more check boxes are selected then those values must be appended to the select option. Please give me some ideas.

If i have to use DYNP_VALUES_UPDATE then how should i use it for select option ?

Regards

Kesav

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Posted on May 04, 2011 at 08:51 AM

    Hello Keshav,

    For SELECT-OPTIONS you can update the values in the LOW & HIGH fields only using DYNP_VALUES_UPDATE.

    We are providing a popup of multiple checkboxes when f4 is pressed on a select option. When one or more check boxes are selected then those values must be appended to the select option.

    Can you be a more specific on this? If possible post the relevant portion of the code.

    BR,

    Suhas

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 04, 2011 at 08:43 AM

    hi,

    You can try with the below code. Here from the table ZRFIMOD entries we get the f4 selections and in it_vrm is with the fields to be displayed.

    SELECT * FROM ZRFIMOD INTO TABLE ITAB.

    REFRESH IT_VRM.

    LOOP AT ITAB.

    WA-KEY = ITAB-MODU.

    WA-TEXT = ITAB-MODU.

    APPEND WA TO IT_VRM.

    CLEAR WA.

    ENDLOOP.

    CALL FUNCTION 'VRM_SET_VALUES'

    EXPORTING

    ID = 'ZRFI-MODU' " Fieldname for f4

    VALUES = IT_VRM

    EXCEPTIONS

    ID_ILLEGAL_NAME = 1

    OTHERS = 2

    .

    IF SY-SUBRC <> 0.

    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    Regards,

    sirisha.

    Add comment
    10|10000 characters needed characters exceeded