Application Development and Automation 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: 
Read only

Issue in fetching values from Module Pool Selection Screen

Former Member
0 Likes
967

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
Read only

former_member219762
Contributor
0 Likes
922

Hi,

Try with FM    RS_REFRESH_FROM_SELECTOPTIONS.

Regards,

Sreenivas.

4 REPLIES 4
Read only

former_member219762
Contributor
0 Likes
923

Hi,

Try with FM    RS_REFRESH_FROM_SELECTOPTIONS.

Regards,

Sreenivas.

Read only

0 Likes
922

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

Read only

0 Likes
922

would you please share it before closing the thread.

Rgds

Read only

0 Likes
922

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.