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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.