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

.

NameTypeData TypeDescriptionDefault Value
IO_PARENTImportingTYPE REF TO
CL_GUI_CONTAINER
Abstract Container for GUI Controls
IV_ACTITYPEImportingTYPE
/SCMB/SC_ACTI_TYPE
SCMB Scheduling: Technical Description of an Activity
IV_CALLIDImportingTYPE
/SCMB/SC_CALLID
SCMB Scheduling: Identifier for Call of External Services
IV_SERVICETYPEImportingTYPE
/SCMB/SC_SERVICE_TYPE
SCMB Scheduling: Type of External Service
EO_CONTROLExportingTYPE 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 View

Example 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!