Select option in modular programming...?
I have a problem where in i want to use select options in modullar programming.....
and one more thing that when ever i am using an EXECUTE button which has been defined manually by me..
the report show the output but wen i am coming back to the screen and again i am using EXECUTE butto
the value are repeated..
so can anyone answer to both of my questions pls......
Mrugesh Phatak replied
for answer to ur first Question
Best option is to go for a report program
If still you need to go for module pool there is one solution.
1. Define a subscreen on ur screen.
2. Define The screen as we do in report program but with addition 'AS SUBSCREEN' .
3.call the subscreen in ur flow logic of main screen.
Following code may help.
define this in ur top include.
SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN. SELECT-OPTIONS: s_vkorg1 FOR zadvhead-vkorg NO-EXTENSION NO INTERVALS, SELECTION-SCREEN END OF SCREEN 200.
in screen flow logic
PROCESS BEFORE OUTPUT. CALL SUBSCREEN subscr_is1 INCLUDING sy-repid dynnr_is1. "dynnr_is1 = 0200 & subscr_is1 = subscreen area name PROCESS AFTER INPUT. CALL SUBSCREEN subscr_is1.
for more info
Edited by: mrugesh phatak on Oct 1, 2008 12:23 PM