CREATE_CONTROL SAP Method Generation of a Control or Direct Display on Screen
Below is documentation, parameters and attributes of ABAP Method CREATE_CONTROL within SAP class /SCMB/IF_SC_VIEW. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMB/IF_SC_VIEW into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method CREATE_CONTROL can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_CONTROL
.| Name | Type | Data Type | Description | Default Value |
| IO_PARENT | Importing | TYPE REF TO CL_GUI_CONTAINER | Abstract Container for GUI Controls | |
| IV_ACTITYPE | Importing | TYPE /SCMB/SC_ACTI_TYPE | SCMB Scheduling: Technical Description of an Activity | |
| IV_CALLID | Importing | TYPE /SCMB/SC_CALLID | SCMB Scheduling: Identifier for Call of External Services | |
| IV_SERVICETYPE | Importing | TYPE /SCMB/SC_SERVICE_TYPE | SCMB Scheduling: Type of External Service | |
| EO_CONTROL | Exporting | TYPE REF TO CL_GUI_CONTROL | Proxy Class for Control in GUI |
Exceptions of Method CREATE_CONTROL
/SCMB/CX_SC_VIEW - SCMB Scheduling: Exception in a Dynamic ViewExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/IF_SC_VIEW.
DATA: lv_EO_CONTROL TYPE CL_GUI_CONTROL,
lv_IO_PARENT TYPE CL_GUI_CONTAINER,
lv_IV_ACTITYPE TYPE /SCMB/SC_ACTI_TYPE,
lv_IV_CALLID TYPE /SCMB/SC_CALLID,
lv_IV_SERVICETYPE TYPE /SCMB/SC_SERVICE_TYPE,
lv_other TYPE c.
CALL METHOD lo_class=>CREATE_CONTROL(
EXPORTING
IO_PARENT = lv_IO_PARENT
IV_ACTITYPE = lv_IV_ACTITYPE
IV_CALLID = lv_IV_CALLID
IV_SERVICETYPE = lv_IV_SERVICETYPE
IMPORTING
EO_CONTROL = lv_EO_CONTROL ).
Links to Related Class(s)
/SCMB/IF...Full list of available SAP object classes
Search for further information about these or an SAP related objects