Application Development 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: 

call subscreen

Former Member
0 Kudos

Hi

CALL SUBSCREEN is used only in the flow logic but not in the actual program. I want to know the reason why it is not used in the actual program. please help me.

POINTS WILL BE GIVEN.

thanks,

S.Gangi Reddy.

4 REPLIES 4

Former Member
0 Kudos

In the actual programs we use screens.

A subscreen is only an area within a screen which can only be called when the screen is executed.

That’s why we call subscreen in flow logic rather than in the program.

Regards.

Former Member
0 Kudos

hi,

Subscreens allow you to embed one screen within another at runtime. The term subscreen applies both to the screen that you embed, and the area on the main screen in which you place it. This section is about subscreen areas. The actual screens that you embed are called subscreen screens. When you use a subscreen, the flow logic of the embedded screen is also embedded in the flow logic of the main screen. Using subscreens on screens is like using includes in ABAP programs.

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.

Subscreens allow you to embed one screen within another at runtime. The term subscreen applies both to the screen that you embed, and the area on the main screen in which you place it. This section is about subscreen areas. The actual screens that you embed are called subscreen screens. When you use a subscreen, the flow logic of the embedded screen is also embedded in the flow logic of the main screen. Using subscreens on screens is like using includes in ABAP programs.

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.

Hope this answers you, Do reward.

Edited by: Runal Singh on Feb 8, 2008 5:36 PM

Vijay
Active Contributor
0 Kudos

hi

subscreen is nothing but a type of screen which is opened on to the main screen on a particular subscreen area.

even subscreen has its own PBO and PAI events where the functionality for the sane is written.

some of the characteristics of subscreen are as below.

1. It is a reserved area on a screen; filled at runtime. Helps in modularization of screens and for dynamic screen modifications

2.A sub-screen is an independent screen that is displayed in an area of another ("main") screen at runtime.

3. You can include multiple sub-screens on main screen.

4.The term Sub-screen refers to both screen being embedded and area on main screen in which you place it.

5.Sub-screens are actual screens created through SE51 transaction with type as Sub-screen in attributes.

6.Calling Sub-screen from main screen triggers the execution of flow logic of the sub-screen within main screen.

regards

vijay

reward points if helpful

Former Member
0 Kudos

HI

CALL SUBSCREEN does not have pai and pbo events.

Although you cannot program PAI modules for selection screens as subscreens, the CALL SUBSCREEN statement ensures that the input data is transferred to the ABAP program in the PAI event.

so the call subscreen is used in the actual logic of the folw program i.e the pbo and the pai of the screen on which the subscreen is ebbedded.

Selection screens that you define in this way can be included in:

Subscreens on screens

Tabstrip Controls on screens

Tabstrip Controls on Selection Screens

You cannot call them using CALL SELECTION-SCREEN.

for further info

use the links

http://help.sap.com/saphelp_nw04/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm

DO REWARD IF USEFUL