Fonction SAP BAPI_WARRANTYCLAIM_CHANGE2 - Change Warranty Claim

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BADI_CHANGE BAPI2222HEADERCHANGE-BADICHANGECALL C 1 'X' Run Through BADI WTY_CREATE_COPY 'X' = Yes
CLAIM BAPI2222HEADER-CLAIM C 12 Number of Warranty Claim
CLAIM_HEADER BAPI2222HEADERCHANGE u 455 Warranty Claim Header Data
IV_LOG_DISMISS FLAG C 1 SPACE X General Indicator
READFROMBUFFER BAPI2222HEADER-FROMBUFFER C 1 SPACE X Read from Temporary Data Buffer
SIMULATE BAPI2222HEADER-SIMULATION C 1 SPACE X Simulation Mode

Paramètre Reférence Long. Facultatif Description
CLAIM_ITEM BAPI2222ITEMCHANGE 489 X Warranty Claim Item
CLAIM_MEASURE BAPI2222MEASURE 65 X Warranty: Measurement Data for Object and Claim
CLAIM_OBJECT_UPDATE BAPI2222UPDATE 92 X Warranty Claim Change Information Header/Version/Item
CLAIM_PARTNER BAPI2222PARTNER 22 X Partner for Warranty Claim
CLAIM_PRICING BAPI2222PRICING 31 X Prices Belonging to Warranty Claim
CLAIM_TEXT BAPI2222LONGTEXT 147 X Long Texts for Warranty Claim
CLAIM_VERSION BAPI2222VERSIONCHANGE 238 X Warranty Claim Version
EXTENSIONIN BAPIPAREX 990 X Customer Enhancment Import
ITEM_REL BAPI2222ITEMRELATION 28 X Warranty Claim: Relationship Between Items
RETURN BAPIRET2 548 Return Parameters
VERSION_REL BAPI2222VERSIONRELATION 28 X Warranty Claim: Relationship Between Versions


This BAPI is used to change warranty claims (business object BUS2222).An entitlement to warranty services is determined and documented via thewarranty claim.
A claim version header, multiple claim versions and the related itemscan be changed with the BAPI. The items are assigned to the versions bynumbering the versions (handle) and entering the handle in the itemfield HANDLE_VERSION.
Long texts, measurement data, and price information are also assigned tothe header, version or item using a handle.
To change the version, a claim number must be specified.
The function modules SAVE_TEXT, COMMIT_TEXT (long text),MEASUREM_DOCUM_RFC_SINGLE_001, MEASUREM_DIALOG_UPDATE (measurementdocuments), and RV_MESSAGES_UPDATE (message determination) of otherdevelopment classes are called from this BAPI.
There are two ways of calling the function module:
1. The warranty claim is read by the caller of the BAPI and the entireclaim data including the change is transferred to the interface. Thefunction module parameter CLAIM_OBJECT_UPDATE is initial.
2. Only the key fields (claim number and handles) are transferred to theinterface, and the changed fields are selected in tableCLAIM_OBJECT_UPDATE. Tables with values are then only transferred forthese fields in the structures.
Customer-specific data can be transferred using table EXTENSIONIN.Specific data assignment is carried out using the BAdI WTY_BAPI_CREATE.
The BAPI does not contain a COMMIT-WORK command and buffers the data.
After the COMMIT-WORK command has been triggered, the temporary buffershould be deleted using the function module WTY12_REFRESH_BUFFER_RFC.

1079475BAPI: Error analysis for BAPIs in Warranty