Application Development and Automation 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: 
Read only

Selection screen basic doubt...

Former Member
0 Likes
455

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
419

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.

3 REPLIES 3
Read only

Former Member
0 Likes
419

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.

Read only

Former Member
0 Likes
419

Change the following line:

SELECTION-SCREEN END OF SCREEN 100.

to

SELECTION-SCREEN END OF SCREEN 123.

Read only

Former Member
0 Likes
420

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.