CO
BAPI
RFC
Used the same way in S/4HANA
BAPI_COSTESTIMATE_GETDETAIL Determine Cost Estimate Details
Returns the header data and the cost component split (for a cost component view) of a product cost estimate. It is used to pass standard cost components to price analysis reports or external systems. The costing number, type, date, version and valuation variant must match the KEKO record exactly; RETURN uses the older BAPIRETURN type.
- Function group
- 2044
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| REFERENCEOBJECT | BAPICOSTRE-REF_OBJECT | Reference object | Yes |
| COSTINGNUMBER | BAPICOSTRE-CSTG_NUM | Costing number | Yes |
| COSTINGTYPE | BAPICOSTRE-CSTG_TYPE | Costing type | Yes |
| COSTINGDATE | BAPICOSTRE-CSTG_DATE | Costing date | Yes |
| COSTINGVERSION | BAPICOSTRE-VERSION | Costing version | Yes |
| VALUATIONVARIANT | BAPICOSTRE-VLTN_VRNT | Valuation variant | Yes |
| ENTEREDMANUALLY | BAPICOSTRE-ENTER_MAN | Manually entered cost estimate | Yes |
| COST_COMPONENT_VIEW | BAPICOSTES-VIEW | Cost component view | Yes |
| COST_COMPONENT_GROUP | BAPICOSTES-CCOMPGROUP | Cost component group | — |
| CURRENCY_ORG_UNIT | BAPICOSTES-CURRENCY | Currency of the organizational unit | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| COST_ESTIMATE_HEADER | BAPIHEADER | Cost estimate header |
| PARTNER | BAPIPARTNER | Partner data |
| DIRECT_PARTNER | BAPIDIRECT_PARTNER | Direct partner data |
| RETURN | BAPIRETURN | Return message |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| COST_COMPONENTS | BAPISPLITT | Cost components | — |
| COST_COMPONENTS_AS | BAPISPLITT | Cost components (auxiliary split) | — |
| PARTNER_COST_COMPONENTS | BAPIPARTNER_COST_COMPONENTS | Partner cost components | — |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_COSTESTIMATE_GETDETAIL'
EXPORTING
referenceobject = lv_referenceobject
costingnumber = lv_costingnumber
costingtype = lv_costingtype
costingdate = lv_costingdate
costingversion = lv_costingversion
valuationvariant = lv_valuationvariant
enteredmanually = lv_enteredmanually
cost_component_view = lv_cost_component_view
IMPORTING
cost_estimate_header = lv_cost_estimate_header
partner = lv_partner
direct_partner = lv_direct_partner
return = lv_return
TABLES
cost_components = lt_cost_components
cost_components_as = lt_cost_components_as
partner_cost_components = lt_partner_cost_components.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.