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

Issue in fetching values from Module Pool Selection Screen

Hi Experts,

I am developing Module Pool program where in Selection Screen is incorporated as sub-screen. Because this involves multiple level sub-screens, Selection Parameters are not getting fetched.

I went through multiple threads on SCN and now I am able to at least get LOW and HIGH values from screen using FM 'DYNP_VALUES_READ'.

But problem is that I am unable to fetch values entered in Multiple Options (Range option of Select-Options). Below is the development I have undertaken. Please help me in achieving this.

PERFORM populate_dynp USING 'S_VKORG-LOW' CHANGING lt_subdyn.

PERFORM populate_dynp USING 'S_VKORG-HIGH' CHANGING lt_subdyn.

PERFORM populate_dynp USING 'S_VTWEG-LOW' CHANGING lt_subdyn.

PERFORM populate_dynp USING 'S_VTWEG-HIGH' CHANGING lt_subdyn.

PERFORM populate_dynp USING 'S_VKBUR-LOW' CHANGING lt_subdyn.

PERFORM populate_dynp USING 'S_VKBUR-HIGH' CHANGING lt_subdyn.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-repid

dynumb = '9001'

TABLES

dynpfields = lt_subdyn

*&---------------------------------------------------------------------*

*& Form POPULATE_DYNP

*&---------------------------------------------------------------------*

FORM populate_dynp USING uv_dynpfield TYPE any

CHANGING ct_subdyn TYPE ANY TABLE.

DATA: ls_subdyn TYPE dynpread.

CLEAR ls_subdyn.

MOVE uv_dynpfield TO ls_subdyn-fieldname.

INSERT ls_subdyn INTO TABLE ct_subdyn.

ENDFORM. " POPULATE_DYNP

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 03, 2013 at 12:30 PM

    Hi,

    Try with FM RS_REFRESH_FROM_SELECTOPTIONS.

    Regards,

    Sreenivas.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sudhanshu,

      Here is the solution I implemented. We need to call the Subscreen area again in PAI of the main screen. This calls all the PAIs of all Subscreens involved in the main screen area, thus resulting into parameters passing.

      e.g.

      PROCESS AFTER INPUT.

      CALL SUBSCREEN subscreen_area. <<- Solution

      MODULE USER_COMMAND_9000.

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.