CREATE_UI_ELEMENT SAP Method Create a UI element accoring to field type









Below is documentation, parameters and attributes of ABAP Method CREATE_UI_ELEMENT within SAP class CL_CHTMLB_CONFIG_UTILITY. 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_CHTMLB_CONFIG_UTILITY 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_UI_ELEMENT can also be found below:

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


Parameters of Method CREATE_UI_ELEMENT

.

NameTypeData TypeDescriptionDefault Value
IV_BINDING_STRINGImportingTYPE
STRING
Binding string
IV_DISABLEDImportingTYPE
STRING
DL = design layer decides, SPACE = enabled, X = disabled
IV_DISPLAY_MODEImportingTYPE
STRING
X = Element for display mode
IV_FIELD_TYPEImportingTYPE
CHAR1
Field type (check CL_BSP_DLC_VIEW_DESCRIPTOR constants)
IV_FORCE_DISABLEDImportingTYPE
CHAR1
X = Element will be disabled
IV_HORIZONTAL_ALIGNMENTImportingTYPE
STRING
horizontal alignment
IV_MANDATORYImportingTYPE
STRING
DL = design layer decides, SPACE = enabled, X = disabled
IV_MODELImportingTYPE REF TO
IF_BSP_MODEL_BINDING
BSP: Basis Interface for Binding to Model
IV_OUTPUT_TYPEImportingTYPE
STRING
'ELEMENT' = BSP element, 'STRING' = HTMLB String
IV_PAGE_CONTEXTImportingTYPE REF TO
IF_BSP_PAGE_CONTEXT
BSP page context
IV_ROW_KEYImportingTYPE
STRING
IV_ICON_SRCImportingTYPE
STRING
IV_INPUT_TYPEImportingTYPE
STRING
Transformation of input field into a link
IV_TOOLTIPImportingTYPE
STRING
DL = design layer decides, SPACE = enabled, X = disabled
EV_BSP_ELEMENTExportingTYPE REF TO
IF_BSP_BEE
BSP element
EV_BSP_STRINGExportingTYPE
STRING



Exceptions of Method CREATE_UI_ELEMENT

This method does not have any exceptions

Example ABAP coding


DATA: lv_EV_BSP_ELEMENT TYPE IF_BSP_BEE,
lv_EV_BSP_STRING TYPE STRING,
lv_IV_BINDING_STRING TYPE STRING,
lv_IV_DISABLED TYPE STRING,
lv_IV_DISPLAY_MODE TYPE STRING,
lv_IV_FIELD_TYPE TYPE CHAR1,
lv_IV_FORCE_DISABLED TYPE CHAR1,
lv_IV_HORIZONTAL_ALIGNMENT TYPE STRING,
lv_IV_MANDATORY TYPE STRING,
lv_IV_MODEL TYPE IF_BSP_MODEL_BINDING,
lv_IV_OUTPUT_TYPE TYPE STRING,
lv_IV_PAGE_CONTEXT TYPE IF_BSP_PAGE_CONTEXT,
lv_IV_ROW_KEY TYPE STRING,
lv_IV_ICON_SRC TYPE STRING,
lv_IV_INPUT_TYPE TYPE STRING,
lv_IV_TOOLTIP TYPE STRING,
lv_other TYPE c.

CALL METHOD CL_CHTMLB_CONFIG_UTILITY=>CREATE_UI_ELEMENT(
EXPORTING
IV_BINDING_STRING = lv_IV_BINDING_STRING
IV_DISABLED = lv_IV_DISABLED
IV_DISPLAY_MODE = lv_IV_DISPLAY_MODE
IV_FIELD_TYPE = lv_IV_FIELD_TYPE
IV_FORCE_DISABLED = lv_IV_FORCE_DISABLED
IV_HORIZONTAL_ALIGNMENT = lv_IV_HORIZONTAL_ALIGNMENT
IV_MANDATORY = lv_IV_MANDATORY
IV_MODEL = lv_IV_MODEL
IV_OUTPUT_TYPE = lv_IV_OUTPUT_TYPE
IV_PAGE_CONTEXT = lv_IV_PAGE_CONTEXT
IV_ROW_KEY = lv_IV_ROW_KEY
IV_ICON_SRC = lv_IV_ICON_SRC
IV_INPUT_TYPE = lv_IV_INPUT_TYPE
IV_TOOLTIP = lv_IV_TOOLTIP
IMPORTING
EV_BSP_ELEMENT = lv_EV_BSP_ELEMENT
EV_BSP_STRING = lv_EV_BSP_STRING ).

Links to Related Class(s)

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