INIT_DATA SAP Method Initialize Data
Below is documentation, parameters and attributes of ABAP Method INIT_DATA within SAP class /SCMTMS/IF_TC_CALC_METHODS. 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 /SCMTMS/IF_TC_CALC_METHODS 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 INIT_DATA can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method INIT_DATA
.| Name | Type | Data Type | Description | Default Value |
| IO_TSM_RATE_TABLE | Importing | TYPE REF TO /BOBF/IF_TRA_SERVICE_MANAGER | Containing the public service methods of a service manager | |
| IO_TSM_SCALE | Importing | TYPE REF TO /BOBF/IF_TRA_SERVICE_MANAGER | Containing the public service methods of a service manager | |
| IR_BUS_DATA_ACCESS | Importing | TYPE REF TO /SCMTMS/IF_TCC_BUS_DATA_ACC | TCC Business Data Access Interface | |
| IR_DO_CHARGES | Importing | TYPE REF TO /SCMTMS/S_TCC_DO_CHARGES_COM | DO TransportationCharges - Communication Structure | |
| IR_TCCS_PRC_ELEM | Importing | TYPE REF TO /SCMTMS/S_TCCS_PRC_ELEM | TCCS Process Element Communication Structure | |
| IS_CALC_METHOD | Importing | TYPE /SCMTMS/C_CALMCL | Calculation Method - Class Customizing | |
| IS_RB_REF_KEY | Importing | TYPE /SCMTMS/IF_TCC_ANALYSIS_LOG=>TY_RB_REF_KEY | ||
| IV_CONSIDER_MIN_MAX_VALUES | Importing | TYPE ABAP_BOOL | ||
| IV_REQUEST_KEY | Importing | TYPE /SCMTMS/IF_TCC_ENGINE=>TY_KEY | ||
| IV_RETAIN_CBASE_QTY_FOR_MINMAX | Importing | TYPE BOOLE_D | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') |
Exceptions of Method INIT_DATA
/SCMTMS/CX_TCCS_ENGINE - Exceptions in TCCS engineExample ABAP coding
DATA: lo_class TYPE REF TO /SCMTMS/IF_TC_CALC_METHODS.
DATA: lv_IO_TSM_RATE_TABLE TYPE /BOBF/IF_TRA_SERVICE_MANAGER,
lv_IO_TSM_SCALE TYPE /BOBF/IF_TRA_SERVICE_MANAGER,
lv_IR_BUS_DATA_ACCESS TYPE /SCMTMS/IF_TCC_BUS_DATA_ACC,
lv_IR_DO_CHARGES TYPE /SCMTMS/S_TCC_DO_CHARGES_COM,
lv_IR_TCCS_PRC_ELEM TYPE /SCMTMS/S_TCCS_PRC_ELEM,
lv_IS_CALC_METHOD TYPE /SCMTMS/C_CALMCL,
lv_IS_RB_REF_KEY TYPE /SCMTMS/IF_TCC_ANALYSIS_LOG=>TY_RB_REF_KEY,
lv_IV_CONSIDER_MIN_MAX_VALUES TYPE ABAP_BOOL,
lv_IV_REQUEST_KEY TYPE /SCMTMS/IF_TCC_ENGINE=>TY_KEY,
lv_IV_RETAIN_CBASE_QTY_FOR_MINMAX TYPE BOOLE_D,
lv_other TYPE c.
CALL METHOD lo_class=>INIT_DATA(
EXPORTING
IO_TSM_RATE_TABLE = lv_IO_TSM_RATE_TABLE
IO_TSM_SCALE = lv_IO_TSM_SCALE
IR_BUS_DATA_ACCESS = lv_IR_BUS_DATA_ACCESS
IR_DO_CHARGES = lv_IR_DO_CHARGES
IR_TCCS_PRC_ELEM = lv_IR_TCCS_PRC_ELEM
IS_CALC_METHOD = lv_IS_CALC_METHOD
IS_RB_REF_KEY = lv_IS_RB_REF_KEY
IV_CONSIDER_MIN_MAX_VALUES = lv_IV_CONSIDER_MIN_MAX_VALUES
IV_REQUEST_KEY = lv_IV_REQUEST_KEY
IV_RETAIN_CBASE_QTY_FOR_MINMAX = lv_IV_RETAIN_CBASE_QTY_FOR_MINMAX ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects