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

error when generating selection screen

Former Member
0 Likes
3,642

hi sages,

new to abap,, plz help,,

   selection-screen BEGIN OF SCREEN 0111 as subscreen.
  PARAMETERS : deb_rdb radiobutton group RD1 default 'X',
               cre_rdb radiobutton group RD1.
  selection-screen end of screen 0111.

i wrote this code in the TOP include,, 0111 happend to be a subscreen,, and its attribute is also a subscreen,,,plz help

regards,

Kaushal.

9 REPLIES 9
Read only

Former Member
0 Likes
2,393

hello,

http://scn.sap.com/thread/3322490

follow my any of 2 process............

close your thread after getting answer......

Thanks

Sabyasachi

Read only

Former Member
0 Likes
2,393

Hi Kumar..

It's simple,

--> First you need to create a screen EX:2100,and in that screen goto screen painter and in the tools icon select 'SUB-SCREEN AREA' (this is the area where we are going to populate your sub-screen).

-->Drag sub-screen area and create it in the screen.

-->Name the sub-screen area you have created in the screen 2100,EX:SUB1 (Name of the sub-screen area).

--> Now in the PBO of the screen 2100 give this code,

CALL SUBSCREEN SUB1   INCLUDING sy-repid '0005'

here '0005' is the sub-screen we are going to create.

In PAI of the screen 2100,

CALL SUBSCREEN SUB1.

--> Now create a new sub-screen EX: 0005

just for us to know whether the sub-screen is displayed or not have a TEXT FIELD in the sub-screen.

Now the Activate and execute.

Hope its helpful,if you have any doubts please ask.

Thanks..

Regards..

Askar.


Read only

0 Likes
2,393

Have you found your solution??

Read only

Former Member
0 Likes
2,393

Hi Kaushal,

1. Define the selection screen in TOP Include.

2. Call the screen 9001 and insert a sub-screen area in the Layout. Also, provide a name as 'SUB_SCR'

3. In the Flow logic of screen 9001, write the code as shown below to call the sub-screen into it

4. Activate the Screen and the program and Execute.

With Regards,

Gurulakshmi

Read only

Former Member
0 Likes
2,393

@all ... problem still persists...

regards

Kaushal

Read only

Former Member
0 Likes
2,393

hi gurus,

is it not possible that i create a screen , and at the time of calling in the subscreen area it gets created to a subscreen ???

( right now m trying with the subscreen ,, and on that subscreen i have radiobuttons )

Read only

0 Likes
2,393

What is the error message you are getting? If you declare a selection screen as a subscreen as you have in your top include, you do not need to create another subscreen with the same name. The selection screen generates the subscreen itself when you call it using CALL SUBSCREEN (selection screens declared as subscreens cannot be called using CALL SELECTION_SCREEN).

Read only

0 Likes
2,393

Please Tell a little more about your requirement or paste your code.
I am afraid that you cant call a normal screen into a sub-screen area.

Thanks

Askar

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,393

Your posted code don't generate an error in my system, no "error generating selection-screen", the problem cause is somewhere else. Did you already define a screen 0111 via screen painter, or can you post other selection-screen statements of your program.

Regards,

Raymond