‎2007 Jan 08 4:03 PM
Hi,
I was looking at sample ABAP code in ABAPDOCU for learning ABAP objects and trying to replicate the smae in my own ZREPORT.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS WINDOW TITLE text-100.
PARAMETERS: button1 RADIOBUTTON GROUP grp,
button2 RADIOBUTTON GROUP grp,
button3 RADIOBUTTON GROUP grp,
button4 RADIOBUTTON GROUP grp.
SELECTION-SCREEN END OF SCREEN 100.
I have following questions:
1) Don't I need to design screen 100 when I copy the standard ABAPDOCU code in my ZREPORT ?
2) If I change the screen 100 to 123 in the sample code like
SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE text-123.
PARAMETERS: button1 RADIOBUTTON GROUP grp,
button2 RADIOBUTTON GROUP grp,
button3 RADIOBUTTON GROUP grp,
button4 RADIOBUTTON GROUP grp.
SELECTION-SCREEN END OF SCREEN 100.
and then run the zeport, it gives an ABAP DUMP as follows:
"Program "ZOBJECT" tried to use screen 0100.
The screen does not exist."
But I am not using 100 now , I am using 123...
Please help..
Regards,
Rajesh.
‎2007 Jan 08 4:08 PM
If you copy the code to a "Z" report...You should also copy the SCREEN in SE51....If you change 100 for 123 you should also modified that in your copied SCREEN.
Look for the CALL SCREEN statement inside the program...
Greetings,
Blag.
‎2007 Jan 08 4:07 PM
Hi Rajesh,
U might not have changed the screen number in call selection-screen.
U need to change this stmt :
<b>call selection-screen '100'.</b>
To
<b> call selection-screen '123'.</b>
Please do reward helpful answers.
‎2007 Jan 08 4:08 PM
Change the following line:
SELECTION-SCREEN END OF SCREEN 100.
to
SELECTION-SCREEN END OF SCREEN 123.
‎2007 Jan 08 4:08 PM
If you copy the code to a "Z" report...You should also copy the SCREEN in SE51....If you change 100 for 123 you should also modified that in your copied SCREEN.
Look for the CALL SCREEN statement inside the program...
Greetings,
Blag.