GET_PRICING_DATA SAP Method CPE - Get Pricing Data from the ERP system
Below is documentation, parameters and attributes of ABAP Method GET_PRICING_DATA within SAP class IF_EX_BADI_CPE_R3_DATA_CUS. 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_CPE_R3_DATA_CUS 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_PRICING_DATA can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_PRICING_DATA
.| Name | Type | Data Type | Description | Default Value |
| IS_KOMK | Importing | TYPE KOMK | Communication Header for Pricing | |
| IS_KOMP | Importing | TYPE KOMP | Pricing Communication Item | |
| IT_MAPPING | Importing | TYPE CPET_MAPPING_TAB | CPE Caller - Table Type for Filter of Pricing Fields | |
| IV_STRUCTURE_NAME | Importing | TYPE STRUKNAME | Name of a structure | |
| IT_MAPPING | Importing | TYPE CPES_FA_FLDMAP_TAB | CPE FA Field Mapping | |
| CT_NAMEVALUEPAIRS_10 | Changing | TYPE CPET_NAMEVALUEPAIRS_10_TAB | CPE Caller - Table Type for Name Value Pairs (L=10) | |
| CT_NAMEVALUEPAIRS_255 | Changing | TYPE CPET_NAMEVALUEPAIRS_255_TAB | CPE Caller - Table Type for Name Value Pairs (L=255) | |
| CT_NAMEVALUEPAIRS_50 | Changing | TYPE CPET_NAMEVALUEPAIRS_50_TAB | CPE Caller - Table Type for Name Value Pairs (L=50) |
Exceptions of Method GET_PRICING_DATA
NO_DATA_FOUND -Example ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_CPE_R3_DATA_CUS.
DATA: lv_CT_NAMEVALUEPAIRS_10 TYPE CPET_NAMEVALUEPAIRS_10_TAB,
lv_CT_NAMEVALUEPAIRS_255 TYPE CPET_NAMEVALUEPAIRS_255_TAB,
lv_CT_NAMEVALUEPAIRS_50 TYPE CPET_NAMEVALUEPAIRS_50_TAB,
lv_IS_KOMK TYPE KOMK,
lv_IS_KOMP TYPE KOMP,
lv_IT_MAPPING TYPE CPET_MAPPING_TAB,
lv_IV_STRUCTURE_NAME TYPE STRUKNAME,
lv_IT_MAPPING TYPE CPES_FA_FLDMAP_TAB,
lv_other TYPE c.
CALL METHOD lo_class=>GET_PRICING_DATA(
EXPORTING
IS_KOMK = lv_IS_KOMK
IS_KOMP = lv_IS_KOMP
IT_MAPPING = lv_IT_MAPPING
IV_STRUCTURE_NAME = lv_IV_STRUCTURE_NAME
IT_MAPPING = lv_IT_MAPPING
CHANGING
CT_NAMEVALUEPAIRS_10 = lv_CT_NAMEVALUEPAIRS_10
CT_NAMEVALUEPAIRS_255 = lv_CT_NAMEVALUEPAIRS_255
CT_NAMEVALUEPAIRS_50 = lv_CT_NAMEVALUEPAIRS_50 ).
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