SD BAPI RFC Used the same way in S/4HANA

BAPI_CUSTOMERQUOTATION_CHANGE Change Customer Quotation

Changes an existing customer quotation: header, items, schedule lines, partners and conditions, like VA22. It is used to update validity dates, prices or quantities from external systems. QUOTATION_HEADER_INX is mandatory; set UPDATEFLAG and the X flags, then call BAPI_TRANSACTION_COMMIT afterwards only when RETURN contains no message of type E or A.

Function group
2031
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
SALESDOCUMENTBAPIVBELN-VBELNSales document numberYes
QUOTATION_HEADER_INBAPISDH1Quotation header data—
QUOTATION_HEADER_INXBAPISDH1XQuotation header change flags (X structure)Yes
SIMULATIONBAPIFLAG-BAPIFLAGSimulation mode (no update)—
BEHAVE_WHEN_ERRORBAPIFLAG-BAPIFLAGError handling behavior—
LOGIC_SWITCHBAPISDLSSD logic switch (pricing, ATP control)—
NO_STATUS_BUF_INITBAPIFLAG-BAPIFLAGDo not refresh status buffer—

Tables parameters

ParameterTypeDescriptionRequired
RETURNBAPIRET2Return messagesYes
QUOTATION_ITEM_INBAPISDITMQuotation item data—
QUOTATION_ITEM_INXBAPISDITMXQuotation item change flags (X structure)—
PARTNERSBAPIPARNRDocument partners—
PARTNERCHANGESBAPIPARNRCPartner changes—
PARTNERADDRESSESBAPIADDR1Partner addresses—
SCHEDULE_LINESBAPISCHDLSchedule lines—
SCHEDULE_LINESXBAPISCHDLXSchedule line change flags (X structure)—
CONDITIONS_INBAPICONDPricing conditions—
CONDITIONS_INXBAPICONDXCondition change flags (X structure)—
QUOTATION_TEXTBAPISDTEXTTexts—
QUOTATION_KEYSBAPISDKEYReference keys of created objects—
EXTENSIONINBAPIPAREXCustomer enhancement fields (EXTENSIONIN)—

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_CUSTOMERQUOTATION_CHANGE'
  EXPORTING
    salesdocument = lv_salesdocument
    quotation_header_inx = lv_quotation_header_inx
  TABLES
    return = lt_return
    quotation_item_in = lt_quotation_item_in
    quotation_item_inx = lt_quotation_item_inx
    partners = lt_partners
    partnerchanges = lt_partnerchanges
    partneraddresses = lt_partneraddresses
    schedule_lines = lt_schedule_lines
    schedule_linesx = lt_schedule_linesx
    conditions_in = lt_conditions_in
    conditions_inx = lt_conditions_inx.

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