02-10-2012 7:29 AM
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
02-10-2012 8:07 AM
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
02-10-2012 8:07 AM
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
02-10-2012 8:22 AM
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
02-10-2012 8:35 AM
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
02-10-2012 8:54 AM