Application Development 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: 

Change value of Overall limit in limit tab ME21N

Former Member
0 Kudos
1,211

Hi Experts,

I am facing the following problem:

We are creating a Purchase Order out of an Purchase requisition. We want the overall limit ("Gesamtlimit" inside the screenshot) to be filled. I tried everything within the badi ME_PROCESS_PO_CUST but there is no way to access this data. (ESUH-SUMLIMIT).

Is there a way to change this value with the above mentioned badi or not? if you have made any experience with that or need more information please let me know.

Thank you very much in advance.

Regards

Patrick

2 REPLIES 2

raymond_giuseppi
Active Contributor
190

First cast your item (IM_ITEM) reference to class interface CL_PO_ITEM_HANDLE_MM and then use interface IF_SERVICES_MM methods and other available methods. (Consider BADI ME_PROCESS_PO_CUST~POST how to read Item service data the launching pad of your research.)

lr_item_handle ?= im_item. " from process_item
" or ls_items-item from process_header/check after a GET_ITEMS

Regards,
Raymond

jesenkohans
Discoverer
0 Kudos
190

Enhancement at the end of Include LMLSLF0R.

I used it for PRQ-Release for blanket order (The PRQ should be released on sumlimit instead of commitment)

IF comsrv-bstyp = 'B' and comsrv-no_srv = 'X'.
IF esuh-sumnolim = 'X'.
comsrv-netpr = 99999999.
ELSE.
comsrv-netpr = esuh-sumlimit.
ENDIF.
ENDIF.


Use comsrv-bstyp = 'F' for moving the overall limit to ekpo-netpr.