SAP Function BAPI_CUSTOMERCONTRACT_CHANGE - Change Customer Contract

Parameter Reference Type Length Default Optional Text
BEHAVE_WHEN_ERROR BAPIFLAG-BAPIFLAG C 1 SPACE X Error Handling
CONTRACT_HEADER_IN BAPISDH1 u 778 Document Header Data
CONTRACT_HEADER_INX BAPISDH1X u 108 Header Data Checkboxes
INT_NUMBER_ASSIGNMENT BAPIFLAG-BAPIFLAG C 1 SPACE X Internal Item Number Assignment
LOGIC_SWITCH BAPISDLS u 5 X SD Checkbox for the Logic Switch
NO_STATUS_BUF_INIT BAPIFLAG-BAPIFLAG C 1 SPACE X
SALESDOCUMENT BAPIVBELN-VBELN C 10 Sales and Distribution Document Number
SIMULATION BAPIFLAG-BAPIFLAG C 1 X Logical System - Sender

Parameter Reference Length Optional Text
CONDITIONS_IN BAPICOND 336 X Conditions
CONDITIONS_INX BAPICONDX 46 X Conditions Checkbox
CONTRACT_CFGS_BLOB BAPICUBLB 256 X Configuration: BLOB Internal Data (SCE)
CONTRACT_CFGS_INST BAPICUINS 233 X Configuration: Instances
CONTRACT_CFGS_PART_OF BAPICUPRT 123 X Configuration: Part-of Specifications
CONTRACT_CFGS_REF BAPICUCFG 397 X Configuration: Reference Data
CONTRACT_CFGS_REFINST BAPICUREF 20 X Configuration: Reference Item / Instance
CONTRACT_CFGS_VALUE BAPICUVAL 276 X Configuration: Characteristic Values
CONTRACT_CFGS_VK BAPICUVK 55 X Configuration: Variant Condition Key
CONTRACT_DATA_IN BAPICTR 129 X Contract Data
CONTRACT_DATA_INX BAPICTRX 28 X Contract Data Checkboxes
CONTRACT_ITEM_IN BAPISDITM 1622 X Item Data
CONTRACT_ITEM_INX BAPISDITMX 195 X Item Data Checkboxes
CONTRACT_KEYS BAPISDKEY 189 X Output Table of Reference Keys
CONTRACT_TEXT BAPISDTEXT 160 X Texts
EXTENSIONIN BAPIPAREX 990 X Customer Enhancement for VBAK, VBAP, VBEP
PARTNERADDRESSES BAPIADDR1 1574 X BAPI Reference Structure for Addresses (Org./Company)
PARTNERCHANGES BAPIPARNRC 149 X Partner changes
PARTNERS BAPIPARNR 664 X Communications Fields: SD Document Partner: WWW
RETURN BAPIRET2 548 Return Messages

Functionality
Using this method, you can change or delete contracts.
You can change header data, item data, schedule line data, contractdata and configuration data.
In general the following applies:
Only enter fields that you want to change.
Mark the fields you want to change with an X.
Fill in the UPDATEFLAG field with a U.
Always enter the key fields when making changes, including in thecheckbox list.
An exception is configuration. If you change this, you must fill it incompletely.
Enter quantities and dates under schedule line data.
Possible update flags: U = change
D = delete
I = insert
RESET N1

Example
Delete complete contract
Delete contract item
Changes to contract
Change configuration
RESET N1

Notes
Minimum entries required:
You MUST enter the contract number in the SALESDOCUMENT structure.
You must always enter key fields when you make a change.
You must always enter the update indicator in the INQUIRY_HEADER_INX.
Commitment control
The BAPI does not carry out a database commit. This means that thecalling application must leave the commit in order to have changes madeto the database. BAPI_TRANSACTION_COMMIT is available for this purpose.
INCLUDE SD_BEHAVE_WHEN_ERROR OBJECT DOKU ID TX

Description
This parameter contains the data for the sales document header.
INCLUDE SD_BAPISDHEADX1_DOCU OBJECT DOKU ID TX
INCLUDE SD_BAPI_INTNUMASS OBJECT DOKU ID TX
INCLUDE SD_BAPIVBELN_DOCU OBJECT DOKU ID TX
INCLUDE SD_BAPI_SIMULATION OBJECT DOKU ID TX
INCLUDE SD_BAPICONDITION_DOCU OBJECT DOKU ID TX
INCLUDE SD_BAPI_CFGS_BLOB OBJECT DOKU ID TX
INCLUDE SD_BAPI_CFGS_INST OBJECT DOKU ID TX
INCLUDE SD_BAPI_CFGS_PART_OF OBJECT DOKU ID TX
INCLUDE SD_BAPI_CFGS_REF OBJECT DOKU ID TX
INCLUDE SD_BAPI_CFGS_REFINST OBJECT DOKU ID TX
INCLUDE SD_BAPI_CFGS_VALUE OBJECT DOKU ID TX
INCLUDE SD_BAPI_CFGS_VK OBJECT DOKU ID TX
INCLUDE SD_BAPICONTRACT_DOCU OBJECT DOKU ID TX
INCLUDE SD_BAPICONTRACTX_DOCU OBJECT DOKU ID TX
DIESER PARAMETER ENTHÄLT DIE POSITIONSEINGABEDATEN DES VERKAUFBELEGES.
INCLUDE SD_BAPISDITEMX_DOCU OBJECT DOKU ID TX
INCLUDE SD_BAPI_KEYS OBJECT DOKU ID TX
INCLUDE SD_BAPI_TEXT OBJECT DOKU ID TX
INCLUDE SD_EXTENSIONIN OBJECT DOKU ID TX
INCLUDE SD_BAPI_RETURN OBJECT DOKU ID TX

495964Check incorrect date in the BAPI
423484Parameter LOGIC_SWITCH for CHANGE BAPIs
396530BAPI SD: Header texts are not copied when changing
321313No address change with CHANGE BAPI