Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_CONTRACT_CHANGE

ricardobraga
Explorer
0 Likes
2,005

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.

4 REPLIES 4
Read only

Former Member
0 Likes
976

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

Read only

0 Likes
976

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.

Read only

Former Member
0 Likes
976

Hi Moura,

see the below thread.

http://scn.sap.com/thread/868810

Regards,

Sanjeet Kumar

Read only

0 Likes
976

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.