07-23-2007 12:25 PM
Hi,
please tell me the code to define container in selection screen?
What is the use of container?
07-23-2007 12:28 PM
Hi
CONTAINER is the key word which is used in WORKFLOW
What do you mean by defining it on Selection Screen>
It is not a table field to define or checkbox or radiobutton..
<b>Reward points for useful Answers</b>
Regards
Anji
07-23-2007 12:29 PM
Hi,
SAP Container
Use
A SAP Container is a control that accommodates other controls, such as the SAP Tree Control, SAP Picture Control, SAP Textedit Control, SAP Splitter Control, and so on. It manages these controls logically in a collection, and provides a physical area in which they are displayed.
All controls live in a container. Since containers are themselves controls, you can nest them. The container is the parent of the control within it.
There are five kinds of SAP Containers:
SAP Custom Container
The SAP Custom Container allows you to display controls in an area defined on a normal screen using the Screen Painter.
Class: CL_GUI_CUSTOM_CONTAINER
SAP Docking Container
The SAP Docking Container allows you to attach a control to any of the four edges of a screen as a resizable screen area. You can also detach it so that it becomes an independent amodal dialog box.
Class: CL_GUI_DOCKING_CONTAINER
SAP Splitter Container
The SAP Splitter Container allows you to display more than one control in a given area by dividing it into cells.
Class: CL_GUI_SPLITTER_CONTAINER
<b>Reward points</b>
Regards
07-23-2007 12:34 PM
DATA:
W_GRID TYPE REF TO CL_GUI_ALV_GRID.
CREATE OBJECT W_GRID
EXPORTING
I_SHELLSTYLE = 0
I_LIFETIME =
I_PARENT = CL_GUI_CONTAINER=>SCREEN0
I_APPL_EVENTS =
I_PARENTDBG =
I_APPLOGPARENT =
I_GRAPHICSPARENT =
I_NAME =
I_FCAT_COMPLETE = SPACE
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. " IF SY-SUBRC <> 0
By defining a CONTAINER we will be able to display the output in the CONTAINER rather than the whole LIST.
Regards,
Pavan.