Skip to Content
author's profile photo Former Member
Former Member

Updating Select Options via Function Module

I contrast to the previous posting, I would like to update the single values for a select option. I am attempting to use the DYNP_VALUES_UPDATE, but I can only update the value on the screen and not the underlying structure. I have also tried using the RD_SELECTIONSCREEN_UPDATE but with no success either. Has anyone tried this before?

I am using a bespoke screen (ALV with multiple row selection) as the F4 dropdown which works fine and I have my values but cannot then update the selection screen.

I am on 4.6C.

Thanks in advance

Ian

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 22, 2004 at 04:26 PM

    Hi Ian,

    We used DYNP_VALUES_UPDATE and it worked for us. Are you using this in any of the selection-screen events, or outside of those events? We used it in selection-screen event, in fact, we used it in "at selection-screen on value-request for <param>" event only.

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Ian,

      The option of updating the select-options internal tabler seems right for the description of your requirement. However, I would like just give you a word of caution here - <i>Do that in your <b>initialization</b> event</i>.

      Example:

      tables mara.
      select-options s_matnr for mara-matnr.
      
      initialization.
        s_matnr-sign = 'I'.
        s_matnr-option = 'EQ'.
      
        s_matnr-low = <Value1>.
        append s_matnr.
      
        s_matnr-low = <Value2>.
        append s_matnr.
      
      
      
        s_matnr-low = <ValueN>.
        append s_matnr.
      

      Hope this helps,

      Regards,

      Anand Mandalika.

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.