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

how to create Dynamic selections ?

former_member220470
Participant
0 Likes
747

Hi Experts ,

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(colored button) ).

It appear to be a subscreen. Any idea how to create it? Thanx.

It will be highly appreciated if provide with coding .

Thanks and Regards

Shahab Ansari


Hi Experts ,

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(colored button) ).

It appear to be a subscreen. Any idea how to create it? Thanx.

It will be highly appreciated if provide with coding .

Thanks and Regards

Shahab Ansari


3 REPLIES 3
Read only

schneidertho
Product and Topic Expert
Product and Topic Expert
0 Likes
690

Hi Shahab,

I do not know FB5LN in detail, but at first glance it looks like being based on a logical database (SE36).


best regards

Thorsten

Read only

0 Likes
690

Hi Shahab,

You have to create a subscreen area on your selection screen.
On the PBO use the sintaxe CALL SUBSCREEN CONTAINER1 INCLUDING sy-repid sy-dynnr

In this case, CONTAINER1 is the subcreen area created.

After INCLUDING u can call any program and screen that u want to use.

Use the program RFITEMAR as example.

Read only

Clemenss
Active Contributor
0 Likes
690

Hi shahab,

this may be a hint for you:

REPORT  z_dynselect                    .

DATA:

  gv_fname TYPE string.

SELECTION-SCREEN BEGIN OF SCREEN 2000.

SELECT-OPTIONS s_dyn FOR (gv_fname).

SELECTION-SCREEN END OF SCREEN 2000.

INITIALIZATION.

  gv_fname = 'VBAK-VBELN'.

START-OF-SELECTION.

  CALL SELECTION-SCREEN 2000.

  SELECT COUNT( * ) FROM vbak

    WHERE vbeln IN s_dyn.

Adapt to your needs.

Regards

Clemens