Application Development 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: 

Issue in fetching values from Module Pool Selection Screen

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member219762
Contributor
0 Kudos

Hi,

Try with FM    RS_REFRESH_FROM_SELECTOPTIONS.

Regards,

Sreenivas.

4 REPLIES 4

former_member219762
Contributor
0 Kudos

Hi,

Try with FM    RS_REFRESH_FROM_SELECTOPTIONS.

Regards,

Sreenivas.

0 Kudos

Thanks Sreenivasa for the reply. The issue is solved. Select Options values are now available in my program without using any FMs.

0 Kudos

would you please share it before closing the thread.

Rgds

0 Kudos

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.