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

ParameterTypeDescriptionRequired
REFERENCEOBJECTBAPICOSTRE-REF_OBJECTReference objectYes
COSTINGNUMBERBAPICOSTRE-CSTG_NUMCosting numberYes
COSTINGTYPEBAPICOSTRE-CSTG_TYPECosting typeYes
COSTINGDATEBAPICOSTRE-CSTG_DATECosting dateYes
COSTINGVERSIONBAPICOSTRE-VERSIONCosting versionYes
VALUATIONVARIANTBAPICOSTRE-VLTN_VRNTValuation variantYes
ENTEREDMANUALLYBAPICOSTRE-ENTER_MANManually entered cost estimateYes
COST_COMPONENT_VIEWBAPICOSTES-VIEWCost component viewYes
COST_COMPONENT_GROUPBAPICOSTES-CCOMPGROUPCost component group—
CURRENCY_ORG_UNITBAPICOSTES-CURRENCYCurrency of the organizational unit—

Exporting parameters

ParameterTypeDescription
COST_ESTIMATE_HEADERBAPIHEADERCost estimate header
PARTNERBAPIPARTNERPartner data
DIRECT_PARTNERBAPIDIRECT_PARTNERDirect partner data
RETURNBAPIRETURNReturn message

Tables parameters

ParameterTypeDescriptionRequired
COST_COMPONENTSBAPISPLITTCost components—
COST_COMPONENTS_ASBAPISPLITTCost components (auxiliary split)—
PARTNER_COST_COMPONENTSBAPIPARTNER_COST_COMPONENTSPartner 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.

Request a custom report