CREATE_INITIAL_DATA SAP Method Create initial data value of any type
Below is documentation, parameters and attributes of ABAP Method CREATE_INITIAL_DATA within SAP class CL_STCTM_REPORT_UI. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.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_STCTM_REPORT_UI 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_INITIAL_DATA can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_INITIAL_DATA
.| Name | Type | Data Type | Description | Default Value |
| I_DBFIELD | Importing | TYPE RSSCR-DBFIELD | ABAP: Reference field for selection | |
| I_DECIMALS | Importing | TYPE DECIMALS | Number of Decimal Places | |
| I_LENGTH | Importing | TYPE RSSCR-LENGTH | ABAP/4: Length of selection field | |
| I_TYPE | Importing | TYPE RSSCR-TYPE | ABAP/4: Selection field type | |
| R_DATA | Returning | TYPE REF TO DATA | Any data |
Exceptions of Method CREATE_INITIAL_DATA
This method does not have any exceptionsExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO CL_STCTM_REPORT_UI.
DATA: lv_I_DBFIELD TYPE RSSCR-DBFIELD,
lv_I_DECIMALS TYPE DECIMALS,
lv_I_LENGTH TYPE RSSCR-LENGTH,
lv_I_TYPE TYPE RSSCR-TYPE,
lv_R_DATA TYPE DATA,
lv_other TYPE c.
CALL METHOD lo_class=>CREATE_INITIAL_DATA(
EXPORTING
I_DBFIELD = lv_I_DBFIELD
I_DECIMALS = lv_I_DECIMALS
I_LENGTH = lv_I_LENGTH
I_TYPE = lv_I_TYPE
RECEIVING
R_DATA = lv_R_DATA )
"Alternate coding for Method Call with returning parameter
lv_R_DATA = lo_class=>CREATE_INITIAL_DATA(
EXPORTING
I_DBFIELD = lv_I_DBFIELD
I_DECIMALS = lv_I_DECIMALS
I_LENGTH = lv_I_LENGTH
I_TYPE = lv_I_TYPE ).
Links to Related Class(s)
CL_STCTM...Full list of available SAP object classes
Search for further information about these or an SAP related objects