Skip to Content
0
Former Member
May 12, 2010 at 05:13 PM

Change Contract Limits on PO - BAPI_PO_CHANGE

238 Views

Hello,

Iam facing one big problem with BAPI_PO_CHANGE.

I need to change values on POCONTRACTLIMITS. My PO document have 2 items, and each item have 1 contract item with limit values. Example:

PO item 10:

Contract Limit tab of item 10

Contract: 312

Contract Item: 010

Limit: 100

PO item 20:

Contract Limit tab of item 20

Contract: 123

Contract Item: 020

Limit: 200

When i execut BAPI_PO_CHANGE with diferent values on field "LIMIT", the BAPi gives sucess changed message but the result is very bad, on tab limit contract for each PO item he add more one line, for example:

PO item 10:

Contract Limit tab of item 10

Contract: 312

Contract Item: 010

Limit: 101

Contract Limit tab of item 20

Contract: 123

Contract Item: 020

Limit: 201

PO item 20:

Contract Limit tab of item 20

Contract: 123

Contract Item: 020

Limit: 201

Contract Limit tab of item 10

Contract: 312

Contract Item: 010

Limit: 101

Any idea?

Thanks in advance.

_______________________________________________________________________________________________________

I had found one solution to this problem. It seams that the BAPI only update individual item, you cannot update all items on same BAPI.

For me this is on bug from SAP, but...

Edited by: Duarte Santos on May 14, 2010 6:17 PM