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 Error in Module Pool

anurag_singh16
Participant

Hi All,

I am getting this error that the selection screen is not getting created.

Screen ZDEMO_OOPS_ALV 2000 already exists (not a selection screen)

Message No. DB011

Diagnosis

When generating the report ZDEMO_OOPS_ALV and its selection screen, an existing screen 1000 (not a selection screen) was overwritten.

System Response

Selection screen generation terminated.

Procedure

Please check the existing screen and delete it, if it is no longer needed. If you still want to use it, assign another number to it, in order to avoid any conflict with the selection screens (numbers 1000 to 1010). If your program is not a report and you do not need selection screens, change the program type in the attributes.

I have created this code:

SELECTION-SCREEN BEGIN OF SCREEN 2000.
SELECT-OPTIONS : s_table FOR wa_dd02l-tabname NO INTERVALS.

SELECTION-SCREEN: END OF SCREEN 2000.

START-OF-SELECTION.
CALL SCREEN 1000.

What do I need to do ?

I am getting confused, can't see anywhere people discussing about the Layout also. Don't know where exactly the error is.

5 REPLIES 5

ArthurParisius
Contributor
0 Kudos

In module pools you usually need the define the screens with the SELECTION_SCREEN commands. You just add them in SE80 and configure them there.

0 Kudos

Hi,

I am still not convince with this answer. But I'll explain my concern more clearly. The challenge is how to create a selection screen in module pool with select-options.

Regards,
Anurag

0 Kudos

Try looking here

roberto_forti
Contributor
0 Kudos

Hi,

As displayed before...

"If you still want to use it, assign another number to it, in order to avoid any conflict with the selection screens"

SAP documentation will help you understanding it better.

SELECTION-SCREEN BEGIN OF SCREEN 999 TITLE title AS WINDOW. 
PARAMETERS ... TYPE ... 
SELECTION-SCREEN END OF SCREEN 999. 
...
CALL SELECTION-SCREEN '0999' STARTING AT ...

DoanManhQuynh
Active Contributor
0 Kudos

The screen 1000 is standard selection screen which are defined with PARAMETER, SELECTION-OPTIONS, so as your code in START-OF-SELECTION i can see you calling another 1000 screen and it make conflict with SAP. change the screen number from 1000 to other number if you still want to keep that screen.