CREATE_SCREEN SAP Method Instantiation of a Screen Taking BAdI into Account









Below is documentation, parameters and attributes of ABAP Method CREATE_SCREEN within SAP class CL_ISH_UTL_SCREEN. 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 CL_ISH_UTL_SCREEN into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method CREATE_SCREEN can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method CREATE_SCREEN

.

NameTypeData TypeDescriptionDefault Value
I_CLASS_NAMEImportingTYPE
STRING
Name of the Screen Class to Be Instantiated
I_CREATE_METHOD_NAMEImportingTYPE
STRING
Name of the Create Method to Be Used
I_CREATE_OWNImportingTYPE
ISH_ON_OFF
ON: Self-Instantiate Screen (if Not Instantiated by BAdI)
I_FACTORY_NAMEImportingTYPE
STRING
Name of Factory Class to Be Used
I_FORCE_BADI_ERRORImportingTYPE
ISH_ON_OFF
ON: BAdI Errors Are Ignored
I_OBJECT_TYPEImportingTYPE
I
Objedt Type of the Screen Class to Be Instantiated
I_REFRESH_BADI_INSTANCEImportingTYPE
ISH_ON_OFF
ON: Get BAdI Instance Again
I_USE_BADIImportingTYPE
ISH_ON_OFF
ON: Use BAdI N1_CREATE_SCREEN
ER_SCREENExportingTYPE REF TO
IF_ISH_SCREEN
Instantiated Screen Object
E_CREATED_BY_BADIExportingTYPE
ISH_ON_OFF
ON: Screen Was Instantiated by BadI
E_RCExportingTYPE
ISH_METHOD_RC
IS-H: Return Code for Method Calls
CR_ERRORHANDLERChangingTYPE REF TO
CL_ISHMED_ERRORHANDLING
IS-H*MED: Class for Error Handling



Exceptions of Method CREATE_SCREEN

This method does not have any exceptions

Example ABAP coding


DATA: lv_CR_ERRORHANDLER TYPE CL_ISHMED_ERRORHANDLING,
lv_ER_SCREEN TYPE IF_ISH_SCREEN,
lv_E_CREATED_BY_BADI TYPE ISH_ON_OFF,
lv_E_RC TYPE ISH_METHOD_RC,
lv_I_CLASS_NAME TYPE STRING,
lv_I_CREATE_METHOD_NAME TYPE STRING,
lv_I_CREATE_OWN TYPE ISH_ON_OFF,
lv_I_FACTORY_NAME TYPE STRING,
lv_I_FORCE_BADI_ERROR TYPE ISH_ON_OFF,
lv_I_OBJECT_TYPE TYPE I,
lv_I_REFRESH_BADI_INSTANCE TYPE ISH_ON_OFF,
lv_I_USE_BADI TYPE ISH_ON_OFF,
lv_other TYPE c.

CALL METHOD CL_ISH_UTL_SCREEN=>CREATE_SCREEN(
EXPORTING
I_CLASS_NAME = lv_I_CLASS_NAME
I_CREATE_METHOD_NAME = lv_I_CREATE_METHOD_NAME
I_CREATE_OWN = lv_I_CREATE_OWN
I_FACTORY_NAME = lv_I_FACTORY_NAME
I_FORCE_BADI_ERROR = lv_I_FORCE_BADI_ERROR
I_OBJECT_TYPE = lv_I_OBJECT_TYPE
I_REFRESH_BADI_INSTANCE = lv_I_REFRESH_BADI_INSTANCE
I_USE_BADI = lv_I_USE_BADI
IMPORTING
ER_SCREEN = lv_ER_SCREEN
E_CREATED_BY_BADI = lv_E_CREATED_BY_BADI
E_RC = lv_E_RC
CHANGING
CR_ERRORHANDLER = lv_CR_ERRORHANDLER ).

Links to Related Class(s)

CL_ISH_U...
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!