2016 Dec 15 2:37 PM
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
2016 Dec 15 3:17 PM
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
2022 Mar 25 6:25 AM
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.