Skip to Content

PO limits change Error using BAPI_PO_CHANGE

Nov 16, 2017 at 02:37 PM


avatar image
Former Member

code-snippet.pngHi ,

I am trying to Change PO Limits Values (Overall and Expected Values) with actual value of PO using BAPI_PO_CHANGE. Suppose Actual Value of PO is '39,384.07' then Updating same in overall and expected value of PO.when doing these i am getting error 'Overall limit may not be set below current "actual" value'. IF i try to change the value manually using ME22N, there is no error. I doubt this is something with Decimal notation of BAPI. IN BAPI , structure PO_limits ( LIMITS decimal places are 4, and ExpectedValue Decimal places are 4) . Whereas I am Getting Actual Value(which is decimal places 2) From ESUH table and Passing to BAPI . Attached Code snippet .

Kindly Suggest me how to Change PO_limits Value .

Thanks & Regards,

code-snippet.png (33.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jürgen L
Nov 16, 2017 at 05:52 PM

It would make some sense to to show the values from wa_limits-limit and wa_esuh-actvalue from a debugger sessions

before the clear statement is execute.

Also you can go to SE91 and do a where used search for message 11 271 and then check in the debugger what values are shown there in the variables before the message is issued.

10 |10000 characters needed characters left characters exceeded