GSI_INTERNAL SAP Method GSI: Get Source Quantity, Scale Items, Adjust Site Qtys
Below is documentation, parameters and attributes of ABAP Method GSI_INTERNAL within SAP class /SCMTMS/CL_CALC_METHOD_BASE. 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/CL_CALC_METHOD_BASE 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 GSI_INTERNAL can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GSI_INTERNAL
.| Name | Type | Data Type | Description | Default Value |
| IR_CALCBASIS | Importing | TYPE REF TO /SCMTMS/S_TCC_CALCBASIS_COM | Calculation Basis | |
| IV_GET_NEXT_TO_MATCHING_ITEM | Importing | TYPE ABAP_BOOL | ||
| IV_SRC_QTY_ROLE_CODE | Importing | TYPE /SCMTMS/TRP_QTY_ROLE_CODE | Transportation Quantity Role Code | |
| IV_VALIDITY_NODE_ID | Importing | TYPE /SCMTMS/BO_NODE_ID | TM Proxy Node ID (TM 8.0) | |
| ES_QUANTITY | Exporting | TYPE /SCMTMS/S_TRCHARG_QUANTITY_COM | TCM: Quantity - Communication Structure | |
| ET_SCALE_ITEM | Exporting | TYPE /SCMTMS/T_TCSCALE_ITEM_K | Scale Item | |
| EV_QTY_FIELD_IS_CHARLIKE | Exporting | TYPE ABAP_BOOL | ||
| EV_SCALE_ITEM_NUMERIC | Exporting | TYPE ABAP_BOOL |
Exceptions of Method GSI_INTERNAL
/SCMTMS/CX_TC_CALC_ENGINE - Exceptions in TC CalculationExample ABAP coding
DATA: lo_class TYPE REF TO /SCMTMS/CL_CALC_METHOD_BASE.
DATA: lv_ES_QUANTITY TYPE /SCMTMS/S_TRCHARG_QUANTITY_COM,
lv_ET_SCALE_ITEM TYPE /SCMTMS/T_TCSCALE_ITEM_K,
lv_EV_QTY_FIELD_IS_CHARLIKE TYPE ABAP_BOOL,
lv_EV_SCALE_ITEM_NUMERIC TYPE ABAP_BOOL,
lv_IR_CALCBASIS TYPE /SCMTMS/S_TCC_CALCBASIS_COM,
lv_IV_GET_NEXT_TO_MATCHING_ITEM TYPE ABAP_BOOL,
lv_IV_SRC_QTY_ROLE_CODE TYPE /SCMTMS/TRP_QTY_ROLE_CODE,
lv_IV_VALIDITY_NODE_ID TYPE /SCMTMS/BO_NODE_ID,
lv_other TYPE c.
CALL METHOD lo_class=>GSI_INTERNAL(
EXPORTING
IR_CALCBASIS = lv_IR_CALCBASIS
IV_GET_NEXT_TO_MATCHING_ITEM = lv_IV_GET_NEXT_TO_MATCHING_ITEM
IV_SRC_QTY_ROLE_CODE = lv_IV_SRC_QTY_ROLE_CODE
IV_VALIDITY_NODE_ID = lv_IV_VALIDITY_NODE_ID
IMPORTING
ES_QUANTITY = lv_ES_QUANTITY
ET_SCALE_ITEM = lv_ET_SCALE_ITEM
EV_QTY_FIELD_IS_CHARLIKE = lv_EV_QTY_FIELD_IS_CHARLIKE
EV_SCALE_ITEM_NUMERIC = lv_EV_SCALE_ITEM_NUMERIC ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects