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

Dialog programming

Former Member
0 Likes
1,165

hi,

what is the differences between Normal screen, Subscreen,

Modal dialogbox.

1 ACCEPTED SOLUTION
Read only

venkat_o
Active Contributor
0 Likes
1,040

Hi Rajyalakshmi, Screen can have 4 types. We have to set in the screen Attributes. 1.Normal Screen. If you activate this attribute, the screen is flagged as a normal screen. This is the default setting. Alternatively, it may have the following special functions: ->Subscreen ->Modal dialog box ->Selection screen 2.Subscreen. If you activate this attribute, the screen is flagged as a subscreen, which can run as part of another. This means that you must define a sufficiently large area in the superior screen and ensure that the flow logic contains a CALL SUBSCREEN ... call in the PB0 and PAI. This call causes the PB0 or PAI part of the subscreen flow logic to be processed. A screen can contain several subscreens in different areas. You can control the call dynamically, so that the subscreen used does not need to be defined until the transaction is processed. A subscreen can be called in several screens. 3.Modal dialog box If you activate this attribute, the screen is used as a modal dialog box. In the program, you call the screen with

CALL SCREEN  STARTING AT  <top left>
             ENDING   AT  <bottom right>.
Unlike normal pop-ups, a modal dialog box has its own pushbuttons and title. There is no menu bar and command field entries are not possible. 4. When you create report in SE38 transacttion code, with parameter and Select-options , it is autoamaticall created with Screen No 1000. I hope that it helps you . Regards, Venkat.O

7 REPLIES 7
Read only

Former Member
0 Likes
1,040

Reward points..

Read only

Former Member
0 Likes
1,040

Hi,

Normal Screen which is a screen like standard selection screen

Subscreen which is a screen with in a screen , which does not have any type of menus

Regards,

sathish

Read only

venkat_o
Active Contributor
0 Likes
1,041

Hi Rajyalakshmi, Screen can have 4 types. We have to set in the screen Attributes. 1.Normal Screen. If you activate this attribute, the screen is flagged as a normal screen. This is the default setting. Alternatively, it may have the following special functions: ->Subscreen ->Modal dialog box ->Selection screen 2.Subscreen. If you activate this attribute, the screen is flagged as a subscreen, which can run as part of another. This means that you must define a sufficiently large area in the superior screen and ensure that the flow logic contains a CALL SUBSCREEN ... call in the PB0 and PAI. This call causes the PB0 or PAI part of the subscreen flow logic to be processed. A screen can contain several subscreens in different areas. You can control the call dynamically, so that the subscreen used does not need to be defined until the transaction is processed. A subscreen can be called in several screens. 3.Modal dialog box If you activate this attribute, the screen is used as a modal dialog box. In the program, you call the screen with

CALL SCREEN  STARTING AT  <top left>
             ENDING   AT  <bottom right>.
Unlike normal pop-ups, a modal dialog box has its own pushbuttons and title. There is no menu bar and command field entries are not possible. 4. When you create report in SE38 transacttion code, with parameter and Select-options , it is autoamaticall created with Screen No 1000. I hope that it helps you . Regards, Venkat.O

Read only

Former Member
0 Likes
1,040

Hi,

A subscreen area is a reserved rectangular area on a screen, into which you place another screen at

runtime. Subscreen areas may not contain any other screen elements. To use a subscreen, you create a

second screen (with the type subscreen), and display it in the subscreen area you defined on the main

screen.

A subscreen is an independent screen that you display within another screen. You may want to use a

subscreen as a way of displaying a group of objects from the main screen in certain circumstances, but

not in others. You can use this technique to display or hide extra fields on the main screen, depending

on the entries the user has made.

A second use for subscreens is that different programs can use the same subscreens. To do this you

must execute other screen programs within your main program.

You can include more than one subscreen on a single main screen. You can also determine the

subscreens dynamically at runtime.

You can use subscreens in the following circumstances:

In screen enhancements (screen exits)

Within other screen objects (tabstrip controls)

In the Modification Assistant

In Web transactions

If the subscreen is larger than the subscreen area in which it is called, the system only displays as much

of it as will fit onto the screen, starting at the top left hand corner. However, you can use the Scrollable

attribute to ensure that, if the screen is too big, the system will display scrollbars.

The resizing attributes control whether the size of a subscreen area can be changed vertically and

horizontally. You should set these attributes if you want the size of the subscreen area to change with

the size of the whole window. You can use the minimum size attribute to set a lower limit beyond which

the subscreen area cannot be resized.

The Context menu attribute allows you to assign a context-sensitive menu to the output fields on the

subscreen.

The following restrictions apply to subscreens:

CALL SUBSCREEN ... is not allowed between LOOP and ENDLOOP or between

CHAIN and ENDCHAIN.

A subscreen may not have a named OK_CODE field.

Object names must be unique within the set of all subscreens called in a single main screen.

Subscreens may not contain a module with the AT EXIT-COMMAND addition.

You cannot use the SET TITLEBAR, SET PF-STATUS, SET SCREEN, or LEAVE SCREEN statements in the modules of a subscreen.

To create a subscreen area, choose subscreen from the object list in the Screen Painter and place it on

the screen. Fix the top-left hand corner of the table control area, and then drag the object to the required

size.

In the Object text field, enter a name for the subscreen area. You need this to identify the area when you

call the subscreen.

To use a subscreen, you must call it in both the PBO and PAI sections of the flow logic of the main

screen. The CALL SUBSCREEN <subarea> statement tells the system to execute the PBO and PAI processing blocks for the subscreen as components of the PBO and PAI of the main screen.

You program the ABAP modules for subscreens in the same way as for a normal screen (apart from the

restrictions already mentioned).

Reward if useful.

Regards,

Muneesh Gitta.

Read only

Former Member
0 Likes
1,040

Where would one find the resizing attributes for a subscreen?

Read only

Former Member
0 Likes
1,040

Hi,

Normal Screen:

If you activate this attribute, the screen is flagged as a normal screen. This is the default setting.

Alternatively, it may have the following special functions:

Subscreen

Modal dialog box

Selection screen

Class screen

In the Screen Painter, you can choose between normal, subscreen, and modal dialog box.

Selection screen and class screen attributes are assigned by the system.

Sub Screen:

If you activate this attribute, the screen is flagged as a subscreen, which can run as part of another.

This means that you must define a sufficiently large area in the superior screen and ensure that the flow logic contains a CALL SUBSCREEN ... call in the PB0 and PAI.

This call causes the PB0 or PAI part of the subscreen flow logic to be processed.

A screen can contain several subscreens in different areas. You can control the call dynamically, so that the subscreen used does not need to be defined until the transaction is processed.

A subscreen can be called in several screens.

Model Dailog Box:

If you activate this attribute, the screen is used as a modal dialog box. In the program, you call the screen with

CALL SCREEN STARTING AT <top left>

ENDING AT <bottom right>.

Unlike normal pop-ups, a modal dialog box has its own pushbuttons and title. There is no menu bar and command field entries are not possible.

Read only

prasanth_kasturi
Active Contributor
0 Likes
1,040

hi....

Normal

its the general screen you see

Subscreen : it a part of the normal screen. its screen within a screen.you can display contents other from normal screemThe Subscreen screen element is only a placeholder that defines an area on the main screen in which an actual screen, identified by a program name and a screen number, is displayed at runtime.

Modal dialog box

It is important that users know what to do and are aware of the consequences of any action they take. You can create dialog boxes that send messages to your users. Dialog boxes are screens of type Modal dialog box. lik popups.. ex when you exit you will get a pop to save the prog or not its a modal dialog box

regards

prasanth