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

subscreen in dialog programming

Former Member
0 Likes
2,041

hi,

Can a subscreen call a another subscreen.? if yes?how..

9 REPLIES 9
Read only

Former Member
0 Likes
1,260

Hi,

Subscreens are screens which can be embeded into another screen. These can be used and created with both selection screen as well as screen painter.

They differ from normal screens in the way that that they don't have OK_CODE field of ther own and there PBO and PAI transfer data to the ABAP program in which these screens were created and the cannot have module calls which change status or leave screen and module call AT EXIT-COMMAND AND E type function codes.

In screen painter(SE51) choose the subscreen tool button and draw a subscreen area on the screen,this subscreen area will be used to hold the subscreen at run time.To make a subscreen select the attribute screen type as subscreen and specify the size of the subscreen according to the size of the subscreen area in which it will be placed.

We use ABAP statement to embed and start the flow logic of the subscreen area in the PBO of a screen. A subscreen can contain another subscreen.

CALL SUBSCREEN subscreen_area INCLUDING program screen_number.

A similar call should also exist in PAI of screen.It will also call the PAI modules of the subscreen and will transfer data from subscreen to ABAP program.

CALL SUBSCREEN subscreen_area.

Regards,

Sujit

Read only

Former Member
0 Likes
1,260

Hi,

You can incorporate other screens into the screen of Dynpros in the form of subscreens using the statement CALL SUBSCREEN. To do this, you have to define subscreen areas on the screen of the current dynpro. Each subscreen area has an unique name and can be adjusted to support screen-size changes. If this is set, every change of the screen-size of the current screen triggers the event PAI.

Subscreens are the screens of special subscreen dynpros. When you incorporate subscreens, you also incorporate the flow logic of the subscreen dynpros. Subscreens can incorporate other subscreens by themselves. A subscreen does not possess an own OK-field. Instead, the function codes are put into the OK-field of the incorporating dynpro at every user action on subscreens. In the PAI event block of a subscreen dynpro, a statement MODULE with the addition AT EXIT-COMMAND is never executed.

Hope this will help you.

Thanks & Regards

Rajesh Kumar

Read only

Former Member
0 Likes
1,260

This message was moderated.

Read only

Former Member
0 Likes
1,260

Hi,

You can call Subscreens from other Screens. But cannot call other screens from a subscreen. It is a restriction that is there in dynpro programing.

Thanks,

Samantak.

<removed by moderator>

Edited by: Mike Pokraka on Aug 4, 2008 6:56 PM

Read only

Former Member
0 Likes
1,260

Hi vansri,

A subscreen can not call another subscreen. it can be called only from main screen. These subsereens are different types of screens which are not having there own ok code.

u can call subscreen from main screen like this :

PBO

CALL SUBSCREEN <area> INCLUDING [<prog>] <dynp>

PAI

CALL SUBSCREEN <area>

following are the main properties of a subscreen which will hepl you in better understanding :

  • A subscreen is an independent screen that is displayed in an area of another main screen.

  • Subscreens allow us to embed one screen within another at runtime. we can include multiple sub-screens on main screen.

*ok code of main screen is itself ok code of subscreen.

  • If using subscreens from another dialog program the data transfer will not happen unless particular code

is added.

i hope this information will help you.

Regards

saurabh

Read only

Former Member
0 Likes
1,260

Hi

Check the below link...

http://sap.niraj.tripod.com/id40.html

Hope this would help you.

Regards

Narin Nandivada

Read only

Former Member
0 Likes
1,260

Hi,

There are restrictions to subscreens....

You cant have PF-Status to subscreen

You cannot call another screen

You cannot use set screen

regards

padma

Read only

Former Member
0 Likes
1,260

We can call subscreens from the main screen. But from subscreen we cannot call another screen or subscreen.

Subscreens are screens which can be embeded into another screen. These can be used and created with both selection screen as well as screen painter.

They differ from normal screens in the way that that they don't have OK_CODE field of ther own and there PBO and PAI transfer data to the ABAP program in which these screens were created and the cannot have module calls which change status or leave screen and module call AT EXIT-COMMAND AND E type function codes.

In screen painter(SE51) choose the subscreen tool button and draw a subscreen area on the screen,this subscreen area will be used to hold the subscreen at run time.To make a subscreen select the attribute screen type as subscreen and specify the size of the subscreen according to the size of the subscreen area in which it will be placed.

We use ABAP statement to embed and start the flow logic of the subscreen area in the PBO of a screen. A subscreen can contain another subscreen.

CALL SUBSCREEN subscreen_area INCLUDING program screen_number.

A similar call should also exist in PAI of screen.It will also call the PAI modules of the subscreen and will transfer data from subscreen to ABAP program.

CALL SUBSCREEN subscreen_area.

Subscreen can be created in selection screen using ABAP ststement and can be used with tabstrip defined on the selection screen or with the screen defined in the screen painter.

SELECTION-SCREEN BEGIN OF SCREEN screen_number AS SUBSCREEN NO-INTERVALS.

....

...

SELECTION-SCREEN END OF SCREEN screen_number .

to use such a subscreen with tabstrip defined on the selection screen we should

use the DYNNR compnent of the structure which is created when the tabstrip is created and specifying the number of the screen .We can also define the subscreen statically for such a tabstrip by using

DEFAULT PROGRAM program SCREEN subscreen_number when declaring a tabstrip in selection screen.

SELECTION-SCREEN BEGIN OF TABBED BLOCK tab_area FOR height LINES.

SELECTION-SCREN TAB (width)tab_name USER_COMMAND funct_code DEFAULT program SCREEN subscreen_no .

...

END OF BLOCK tab_area .

For each tabbed apge TAB addition is used with SELECTION-SCREEN statement. At the initialization event we can fill the tabstrip structure to dsiplay the default screen or specify it with DEFAULT addition.

tab_area-PROGRAM = SY-REPID.

tab_area-DYNNR = subscreen_nummber.

tab_area-ACTIVETAB = tabname.

Read only

Former Member