Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Select option in modular programming...?

Hi Abapers,

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......

Tags:
Former Member
Former Member 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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question