Fonction SAP BAPI_CUSTOMERQUOTATION_CHANGE - Change Customer Quotation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BEHAVE_WHEN_ERROR BAPIFLAG-BAPIFLAG C 1 X Error Handling
INT_NUMBER_ASSIGNMENT BAPIFLAG-BAPIFLAG C 1 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 No Refresh of Status Buffer
QUOTATION_HEADER_IN BAPISDH1 u 778 X Inquiry Header
QUOTATION_HEADER_INX BAPISDH1X u 108 Quotation Header Checkbox
SALESDOCUMENT BAPIVBELN-VBELN C 10 Sales and Distribution Document Number
SIMULATION BAPIFLAG-BAPIFLAG C 1 X Simulation Mode

Paramètre Reférence Long. Facultatif Description
CONDITIONS_IN BAPICOND 336 X Conditions
CONDITIONS_INX BAPICONDX 46 X Conditions Checkbox
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
QUOTATION_CFGS_BLOB BAPICUBLB 256 X Configuration: BLOB Internal Data (SCE)
QUOTATION_CFGS_INST BAPICUINS 233 X Configuration: Instances
QUOTATION_CFGS_PART_OF BAPICUPRT 123 X Configuration: Part-of Specifications
QUOTATION_CFGS_REF BAPICUCFG 397 X Configuration: Reference Data
QUOTATION_CFGS_REFINST BAPICUREF 20 X Configuration: Reference Item / Instance
QUOTATION_CFGS_VALUE BAPICUVAL 276 X Configuration: Characteristic Values
QUOTATION_CFGS_VK BAPICUVK 55 X Configuration: Variant Condition Key
QUOTATION_ITEM_IN BAPISDITM 1622 X Quotation Items
QUOTATION_ITEM_INX BAPISDITMX 195 X Quotation Items Checkbox
QUOTATION_KEYS BAPISDKEY 189 X Output Table of Reference Keys
QUOTATION_TEXT BAPISDTEXT 160 X Texts
RETURN BAPIRET2 548 Return Code
SCHEDULE_LINES BAPISCHDL 198 X Schedule Lines
SCHEDULE_LINESX BAPISCHDLX 109 X Check Table for Schedule Lines

Functionality
Using this method, you can change or delete customer quotations.
Header, item, schedule line and configuration data can be changed.
The following is a general rule:
Only enter the fields you wish to change.
Select the fields you wish to change.
Fill in the UPDATEFLAG field with a U.
Always enter the key fields when you make a change,even in thecheckbox.
An exception here is configuration. If you wish to change this, youneed to fill it in completely.
Maintain the quantities and dates via the schedule line data.
Possible UPDATEFLAGS: U = change
D = delete
I = insert
RESET N1

Example
Delete quotation completely.
Delete quotation item.
Changes to quotation.
Change configuration.
RESET N1

Notes
Minimum specifications:
The quotation number must definitely be entered in the SALESDOCUMENTstructure.
Always enter key fields when you make a change.
The update indicator QUOTATION_HEADER_INX must always be entered.
Commit control
The BAPI does not have a database. This means that the relevantapplication must leave the commit, in order that changes can be carriedout on the database. The BAPI BAPI_TRANSACTION_COMMIT is available forthis.
INCLUDE SD_BEHAVE_WHEN_ERROR OBJECT DOKU ID TX
INCLUDE SD_BAPI_INTNUMASS OBJECT DOKU ID TX

Description
Internal control parameter
This parameter controls internal program behaviour. The parameter isintended to be used to switch off specific processing because data is tobe transferred externally.
Examples: - Pricing of SPE (Sales Pricing Engine) has been executed.
,,,,The results are to be transferred to the sales document
,,,, No pricing is to take place in the SAP system
,,- The same applies for SCE (Sales Configuration Engine)

Value range
PRICING can be filled with the following values: Space, B , C , G.

Description
This parameter contains the data for the sales document header.
INCLUDE SD_BAPISDHEADX1_DOCU 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

Description
Checkbox for condition changes.
INCLUDE SD_EXTENSIONIN OBJECT DOKU ID TX

Description
Addressdata.
You can enter document addresses here.

Description
Partner changes.
You can enter partner changes in this structure.
See the example in SAP Note 205775.

Description
Document partner
You use this table parameter to enter partners such as sold-to party andship-to party; this is possible at both header and item level.
You must enter at least one sold-to party at header level. All otherpartner roles are then determined automatically.
You can also enter deviating addresses in the structure.
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

Description
This parameter contains the item input data for the sales document.
INCLUDE SD_BAPISCHEDULEX_DOCU OBJECT DOKU ID TX
INCLUDE SD_BAPI_KEYS OBJECT DOKU ID TX
INCLUDE SD_BAPI_TEXT OBJECT DOKU ID TX
INCLUDE SD_BAPI_RETURN OBJECT DOKU ID TX

Description
This parameter contains the schedule line data
INCLUDE SD_BAPISCHEDULEX_DOCU OBJECT DOKU ID TX

414058CHECKLISTSD: differences in online and BAPI processing
495964Check incorrect date in the BAPI
436247Enhancements for connection of R/3 to CRM Release 3.0
376539BAPI SD: Errors in partner/address specifications ignored
423484Parameter LOGIC_SWITCH for CHANGE BAPIs
396530BAPI SD: Header texts are not copied when changing
392934Problem with text changes by means of BAPI or IDocs
350318Dialog box when changing ship-to party via BAPI
321313No address change with CHANGE BAPI