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: 

How to set Screen type "Selection Screen" in Dialog program

rnb86
Participant
0 Kudos

Hi Experts,

I have copied a screen 400 from a program into my program. In that screen in source program, the screen type was defined as 'Selection Screen'. After i copied that screen into my program, the screen type Selection Screen option is disabled. How to set the screen type of a screen to Selection Screen.

I am currently getting the following error

"Error when generating the selection screen "0400" of "Ztest_screen ".

I tried running the generation program RSDBGENA. There the diagnosis was given as follows:

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

The selection screen was defined as follows:

 SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK blck1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
PARAMETERS:     p_werks TYPE werks_d OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blck1.
SELECTION-SCREEN END OF SCREEN 400 . 

I am calling the screen 400 with selection screen declarations in PBO of screen 0100.

CALL SUBSCREEN sub_scr INCLUDING 'Ztest_Screen' '400'.

Where am i going wrong? Your inputs are needed.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

selection screens are generated automatically during program activation (after change of PARAMETERS / SELECT-OPTIONS).

Do not copy the generated selection screen, but define new one using SELECTION-SCREEN BEGIN OF SCREEN

Regards,

--

Przemysław

4 REPLIES 4

Former Member
0 Kudos

Hi,

selection screens are generated automatically during program activation (after change of PARAMETERS / SELECT-OPTIONS).

Do not copy the generated selection screen, but define new one using SELECTION-SCREEN BEGIN OF SCREEN

Regards,

--

Przemysław

nabheetscn
Active Contributor
0 Kudos

Can you please explain in detail what is the exact requirement. Do not copy the screen in case of report just copy the declaration parameters

Nabheet

0 Kudos

Thanks Przemysław and Nabheet for your suggestions.

I had copied the generated screen 400 also from the source program into my program. This was the error. I deleted that and the report got activated now.

Both the source and destination programs are not module pool. They are executable programs.

Thanks

0 Kudos

Yes never copy the generated selection screen.

Nabheet