SAP Function BAPI_CONDITION_CONTRACT_CHANGE - Change Condition Contract

Parameter Reference Type Length Default Optional Text
CONDITIONCONTRACTNUMBER BAPICCKEY-CONDITION_CONTRACT_NUMBER C 10 Condition Contract: Key
HEADDATAIN BAPICCHEAD u 179 X BAPI: Condition Contract Header
HEADDATAINX BAPICCHEADX u 30 X BAPI: Condition Contract Header Changes

Parameter Reference Type Length Text
HEADDATAOUT BAPICCHEADOS u 226 BAPI: Condition Contract Header

Parameter Reference Length Optional Text
CONDITIONITEMDATAIN BAPICCCONDITIONITEM 137 X BAPI: Condition Contract: Item Conditions
CONDITIONITEMDATAINX BAPICCCONDITIONITEMX 42 X BAPI Condition Contract: Item Condition Changes
CONDITIONITEMDATAOUT BAPICCCONDITIONITEMO 161 X BAPI: Condition Contract: Item Conditions
CONDITIONKEYDATAIN BAPICCCONDITIONKEY 948 X BAPI Condition Contract: Condition Structure Fields
CONDITIONKEYDATAINX BAPICCCONDITIONKEYX 166 X BAPI Condition Contract: Condition Structure Changes
CONDITIONKEYDATAOUT BAPICCCONDITIONKEYO 1104 X BAPI Condition Contract: Condition Structure Fields
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
HEADTEXTIN BAPICCHEADTEXTCHANGE 146 X Condition Contract for Header Texts If Changes Are Made
HEADTEXTOUT BAPICCHEADTEXT 145 X Condition Contract for Header Texts If Changes Are Made
ITEMDATAIN BAPICCITEM 96 X BAPI: Condition Contract: Eligible Partners
ITEMDATAINX BAPICCITEMX 41 X BAPI: Condition Contract: Eligible Partner Changes
ITEMDATAOUT BAPICCITEMO 154 X BAPI: Condition Contract: Eligible Partners
ITEMTEXTIN BAPICCITEMTEXTCHANGE 220 X Condition Contract: Texts for Eligible Partners for Changes
ITEMTEXTOUT BAPICCITEMTEXT 219 X Condition Contract: Texts for Eligible Partners for Changes
RETURN BAPIRET2 548 X Return Parameter(s)
SCALEDATAIN BAPICCSCALE 44 X BAPI: Condition Contract: Conditions Scale
SCALEDATAOUT BAPICCSCALEO 70 X BAPI: Condition Contract: Conditions Scales

Functionality
You use this method to change a condition contract.
To do this, you select the document number of the condition contract tobe changed, and use the "HEADDATAINX" structure to highlight the fieldsto be changed at header level of the condition contract.
You use the "HEADDATAIN" structure to enter new values.
You can change the eligible partners for the condition contract in thesame way as for "ITEMDATAINX" and "ITEMDATAIN".
You can change conditions using "CONDITIONKEYDATAINX","CONDITIONKEYDATAIN" and "CONDITIONITEMDATAINX ","CONDITIONITEMDATAIN". The condition is found using the entries in"CONDITIONKEYDATAIN". Condition type, condition table, validity andfields of the access are used. It is not necessary to specify thevalidity interval exactly. The specified interval, however, must containthe condition interval.
Scales are specified in table "SCALEDATAIN". If a condition ismaintained using the BAPI, all scales must be specified. This means"SCALEDATAIN" contains no scale changes but rather the scales of thedocument after the change. The program works in such a way that itdeletes all scales for a changed condition and creates them anew asspecified in "SCALEDATAIN" . If a condition is changed and no scales arespecified, all scales of this condition are deleted. If only scalechanges are to be carried out, the condition must be identified by meansof "CONDITIONKEYDATAIN", the structure "CONDITIONKEYDATAINX" is empty,the fields CONDCURR" and "SCALECURR" or "SCALE_UNIT" must be set instructure "CONDITIONITEMDATAIN". You choose "U" as the update indicator.For "SCALECURR" or "SCALE_UNIT", the change flag must be set instructure "CONDITIONITEMDATAINX".
You can use the structures "HEADTEXTIN" and "ITEMTEXTIN" to includecontract texts.
You choose "RETURN" to output messages.
You can view changed document information using the "ITEMDATAOUT","HEADDATAOUT", "CONDITIONKEYDATAOUT" ,"SCALEDATAOUT" and"CONDITIONITEMDATAOUT" structures. Texts are available in the structures"HEADTEXTOUT" und "ITEMTEXTOUT".
You can use the "EXTENSIONIN" structure to add customer-specific fields.Append structures must be used to make these known to the followingstructures:
BAPI_TE_WCOCOH
BAPI_TE_WCOCOHX
BAPI_TE_WCOCOI
BAPI_TE_WCOCOIX
BAPI_TE_KOMG
BAPI_TE_KOMGX
"EXTENSIONOUT" contains the changed customer-specific fields.

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT