‎2007 May 24 5:47 AM
Anybody know how to create a dynamic selection screen like the one you see in T-Code "ME2N" or "FBL5N" that appear by clicking the dynamic selection button (third button on the application toolbar ). It appear to be a subscreen. Any idea how to create it? Thanx.
Regards,
-don-
‎2007 May 24 5:57 AM
‎2007 May 24 5:57 AM
‎2007 May 24 6:04 AM
‎2011 Jul 08 12:32 PM
I know this post is several years late, but I believe this is something along the lines that you're looking for;
PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p1 TYPE c LENGTH 10,
p2 TYPE c LENGTH 10,
p3 TYPE c LENGTH 10.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4 TYPE c LENGTH 10 MODIF ID bl2,
p5 TYPE c LENGTH 10 MODIF ID bl2,
p6 TYPE c LENGTH 10 MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF show_all <> 'X' AND
screen-group1 = 'BL2'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Because of the way ABAP works, you need to be careful when checking screen-group1, although ABAP read in the MODIF ID as lower case (bl2), it's saved in memory as uppercase (BL2).
You can use different MODIF IDs in the same screen and you can use the same MODIF IDs in different screens. Also, because screens are not essential when using parameters, you need not use screens.
Hope that if this does not help you it helps anybody else looking,
Do-Ryu