NEW_WEIGHT_LOGIC SAP Method Hide entire standard logic and reimplement
Below is documentation, parameters and attributes of ABAP Method NEW_WEIGHT_LOGIC within SAP class IF_EX_BADI_CMP_WEIGHT. 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_EX_BADI_CMP_WEIGHT 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 NEW_WEIGHT_LOGIC can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method NEW_WEIGHT_LOGIC
.| Name | Type | Data Type | Description | Default Value |
| HANDLE | Importing | TYPE ANY | AppLog | |
| ROW_INDEX | Importing | TYPE SY-TABIX | Index Current Row in Table | |
| ST_MAIN_POS | Importing | TYPE CMP_ITEM_DATA | Main Item | |
| ST_NEW_POS | Importing | TYPE CMP_ITEM_DATA | Changed Row | |
| ST_OLD_POS | Importing | TYPE CMP_ITEM_DATA | Item Before Change | |
| GT_CMP_ITEM_DATA | Changing | TYPE CMP_ITEM_DATA_T | Complaint Management: Billing Data - Item - Table |
Exceptions of Method NEW_WEIGHT_LOGIC
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_CMP_WEIGHT.
DATA: lv_GT_CMP_ITEM_DATA TYPE CMP_ITEM_DATA_T,
lv_HANDLE TYPE ANY,
lv_ROW_INDEX TYPE SY-TABIX,
lv_ST_MAIN_POS TYPE CMP_ITEM_DATA,
lv_ST_NEW_POS TYPE CMP_ITEM_DATA,
lv_ST_OLD_POS TYPE CMP_ITEM_DATA,
lv_other TYPE c.
CALL METHOD lo_class=>NEW_WEIGHT_LOGIC(
EXPORTING
HANDLE = lv_HANDLE
ROW_INDEX = lv_ROW_INDEX
ST_MAIN_POS = lv_ST_MAIN_POS
ST_NEW_POS = lv_ST_NEW_POS
ST_OLD_POS = lv_ST_OLD_POS
CHANGING
GT_CMP_ITEM_DATA = lv_GT_CMP_ITEM_DATA ).
Links to Related Class(s)
IF_EX_BA...Full list of available SAP object classes
Search for further information about these or an SAP related objects