09-03-2013 1:13 PM
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
09-03-2013 1:30 PM
09-03-2013 1:30 PM
09-03-2013 3:47 PM
Thanks Sreenivasa for the reply. The issue is solved. Select Options values are now available in my program without using any FMs.
09-03-2013 6:35 PM
09-04-2013 7:32 AM
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.