‎2013 Apr 10 2:41 PM
hello people I'm using to change the BAPI_contract_change contract items in bulk, put in a situation specifies the BAPI does say strange behavior, explain: when only process one item for inclusion this is processed properly and even creates the conditions for price normally.
But if the process more than one item for inclusion (2,3,10,100 items ....), the BAPI creates a condition where no price for the first item, ie all others, no matter how the condition is created price, only the first is the condition without creating price, someone there has gone through this situation?
wait.
Thank you.
‎2013 Apr 11 6:11 AM
Hi ,
U can do in below way:
Call function 'BAPI_CONTRACT_CHANGE'
exporting
purchasingdocument = h_evrtn
tables
item = item
itemx = itemx
item_cond_validity = item_cond_validity
item_cond_validityx = item_cond_validityx
item_condition = item_condition
item_conditionx = item_conditionx
return = h_return.
You must especially consider: item_condition-change_id = 'U'.
Thanks
Tarak
‎2013 Apr 11 1:35 PM
ok this possibility is already being used, however the first item to be added to the contract insists not update the status of payment.
has another idea?
Thank you.
‎2013 Apr 12 7:51 AM
‎2013 Apr 12 12:27 PM
Hi kumar,
thanks for the tip.
But my problem is not with the conditions of these prices I can already add / delete / change, what happens is that when I add new items in the contract, the first item price condition is not created, but to include only one item a condition is created.
So the problem in this bapi_contract_change the inclusion of new items where the first item to be included is not being created conditions for prices, but all other items are created perfectly.
understand?
I think the problem is the same BAPI, and not in the way while the data for the same.
In my blog http://www.ricardobhz.com.br/2013/03/carga-atualizacao-de-contratos.html, is an example of what I can do and also a list of notes that BAPI_contract_change applied to work correctly.
Thank you.