Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic selection screen

Former Member
0 Likes
1,585

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-

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507

This message was moderated.

3 REPLIES 3
Read only

Former Member
0 Likes
508

This message was moderated.

Read only

Former Member
0 Likes
507

This message was moderated.

Read only

Former Member
0 Likes
507

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