Skip to Content
avatar image
Former Member

PO limits change Error using BAPI_PO_CHANGE

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.

    Add comment
    10|10000 characters needed characters exceeded