ADD_FIELD SAP Method Adds an input field
Below is documentation, parameters and attributes of ABAP Method ADD_FIELD within SAP class IF_DEMO_INPUT. 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 IF_DEMO_INPUT 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 ADD_FIELD can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADD_FIELD
.| Name | Type | Data Type | Description | Default Value |
| TEXT | Importing | TYPE STRING | ||
| AS_CHECKBOX | Importing | TYPE ABAP_BOOL | ||
| TEXT | Importing | TYPE STRING | ||
| FIELD | Changing | TYPE SIMPLE | ||
| FIELD | Changing | TYPE SIMPLE | ||
| INPUT | Returning | TYPE REF TO IF_DEMO_INPUT | ||
| INPUT | Returning | TYPE REF TO IF_DEMO_INPUT |
Exceptions of Method ADD_FIELD
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_DEMO_INPUT.
DATA: lv_FIELD TYPE SIMPLE,
lv_INPUT TYPE IF_DEMO_INPUT,
lv_TEXT TYPE STRING,
lv_AS_CHECKBOX TYPE ABAP_BOOL,
lv_FIELD TYPE SIMPLE,
lv_INPUT TYPE IF_DEMO_INPUT,
lv_TEXT TYPE STRING,
lv_other TYPE c.
CALL METHOD lo_class=>ADD_FIELD(
EXPORTING
TEXT = lv_TEXT
AS_CHECKBOX = lv_AS_CHECKBOX
TEXT = lv_TEXT
CHANGING
FIELD = lv_FIELD
FIELD = lv_FIELD
RECEIVING
INPUT = lv_INPUT
INPUT = lv_INPUT )
"Alternate coding for Method Call with returning parameter
lv_INPUT = lo_class=>ADD_FIELD(
EXPORTING
TEXT = lv_TEXT
AS_CHECKBOX = lv_AS_CHECKBOX
TEXT = lv_TEXT
CHANGING
FIELD = lv_FIELD
FIELD = lv_FIELD ).
Links to Related Class(s)
IF_DEMO_...Full list of available SAP object classes
Search for further information about these or an SAP related objects