Skip to Content
0
Former Member
Sep 03, 2013 at 12:13 PM

Issue in fetching values from Module Pool Selection Screen

35 Views

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