GET_INVENTORY SAP Method Enter Ending Inventory Value (with Cost Comp. Split)
Below is documentation, parameters and attributes of ABAP Method GET_INVENTORY within SAP class IF_EX_BADI_ENDING_INV. 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_ENDING_INV 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 GET_INVENTORY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_INVENTORY
.| Name | Type | Data Type | Description | Default Value |
| ALTN | Importing | TYPE CKML_BADI_ALTN_TBL | Procurement Alternatives for Ending Inventory Valuation BAdI | |
| ALTN_CCS | Importing | TYPE CKML_BADI_KEPH_TBL | CComp Split (Alternatives) for Ending Inv. Valuation BAdI | |
| CATEG | Importing | TYPE CKML_BADI_CATEG_TBL | Categories for Ending Inventory Valution BAdI | |
| CATEG_CCS | Importing | TYPE CKML_BADI_CATEGKEPH_TBL | Cost Comp Split (Categories) for Ending Inv. Valution BAdI | |
| GENDATA | Importing | TYPE CKML_BADI_GENDATA | General Data for Ending Inventory Valuation BAdI | |
| HEADERDATA_CCS | Importing | TYPE CKML_BADI_PRKEKO | S Price Cost Comp Split (Header) for Ending Inv. Val. BAdI | |
| MATDATA | Importing | TYPE CKML_BADI_MATDATA | Material Data for Ending Inventory Valuation BAdI | |
| PRICEDATA | Importing | TYPE CKML_BADI_PRICE | Prices for Ending Inventory Valuation BAdI | |
| PRICE_CCS | Importing | TYPE CKML_BADI_PRKEPH_TBL | CCSplit (Standard Price) for Ending Inventory Valuation BAdI | |
| ENDINV_VALUE | Exporting | TYPE CKML_BADI_VALUE | Value for Ending Inventory Valuation BAdI | |
| ENDINV_VALUE_CCS | Exporting | TYPE CKML_BADI_PRKEPH_TBL | CC Split (Price) for Ending Inventory Valuation BAdI |
Exceptions of Method GET_INVENTORY
APPLICATION_ERROR -Example ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_ENDING_INV.
DATA: lv_ALTN TYPE CKML_BADI_ALTN_TBL,
lv_ALTN_CCS TYPE CKML_BADI_KEPH_TBL,
lv_CATEG TYPE CKML_BADI_CATEG_TBL,
lv_CATEG_CCS TYPE CKML_BADI_CATEGKEPH_TBL,
lv_ENDINV_VALUE TYPE CKML_BADI_VALUE,
lv_ENDINV_VALUE_CCS TYPE CKML_BADI_PRKEPH_TBL,
lv_GENDATA TYPE CKML_BADI_GENDATA,
lv_HEADERDATA_CCS TYPE CKML_BADI_PRKEKO,
lv_MATDATA TYPE CKML_BADI_MATDATA,
lv_PRICEDATA TYPE CKML_BADI_PRICE,
lv_PRICE_CCS TYPE CKML_BADI_PRKEPH_TBL,
lv_other TYPE c.
CALL METHOD lo_class=>GET_INVENTORY(
EXPORTING
ALTN = lv_ALTN
ALTN_CCS = lv_ALTN_CCS
CATEG = lv_CATEG
CATEG_CCS = lv_CATEG_CCS
GENDATA = lv_GENDATA
HEADERDATA_CCS = lv_HEADERDATA_CCS
MATDATA = lv_MATDATA
PRICEDATA = lv_PRICEDATA
PRICE_CCS = lv_PRICE_CCS
IMPORTING
ENDINV_VALUE = lv_ENDINV_VALUE
ENDINV_VALUE_CCS = lv_ENDINV_VALUE_CCS ).
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