Application Development 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: 

selection-screen dynamic selections for dtab

Former Member
0 Kudos

Hey experts,

when I add this to my code


selection-screen dynamic selections for zbr_t_autori

and I want activate it, it writes out an error


The addition "DYNAMIC_SELECTIONS" is only allowed in INCLUDE DB__SSEL.

and I don't know how to solve it, what is that include db__ssel?

Can anybody help me.

Regards,

Robert

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

If you are not creating a logical database (transaction SE36) you are not allowed to use this syntax, in, this case to create dynamic selections use following FM

  • FREE_SELECTIONS_INIT
  • FREE_SELECTIONS_DIALOG

Regards;

Raymond

7 REPLIES 7

raymond_giuseppi
Active Contributor
0 Kudos

If you are not creating a logical database (transaction SE36) you are not allowed to use this syntax, in, this case to create dynamic selections use following FM

  • FREE_SELECTIONS_INIT
  • FREE_SELECTIONS_DIALOG

Regards;

Raymond

0 Kudos

I created a logical database, but the error remains. How should I use it?

those FMs I didn't check already, but I will. Thank you.

0 Kudos

Check this:

Structure of Logical Databases - ABAP Programming (BC-ABA) - SAP Library


Where are you using this code?

selection-screen dynamic selections for zbr_t_autori

It should be in the include reserved for your LDB selection:

0 Kudos

I'm using it in my top include in my modulepool. I created that logical databse in the same packet, but it is not working. I checked the link and it says that I have to define my selection-screen in special selection include? How should I create my selection include? Can you help me a bit more, I'm so confused. Thank you.

0 Kudos

Yes, you should add in the selection include of the logical database, in my last answer I give you the print. Go to SE36, flag Selections then Change, add the dynamic selection there.

Regards,

Felipe

0 Kudos

Okey I added the


SELECTION-SCREEN DYNAMIC SELECTIONS FOR zbr_t_autori.

to my selection include in my created logical database.

And now, how can I call that selection screen in my module pool program?

0 Kudos

Hi Robert, you cannot assign a logical database to a module pool program, you can do it with a report program as below.

Regards,

Felipe