Hi guys,
I have a requirement where in we will be evaluating certain data in ME21N transaction and based on those criterions we will be updating the
Production order fields; whic are
PREIS (price),PEINH (Price Unit) and WAERS (Curreny) .
In case you want the Functional requirement; here is the excerpt
· At Purchase order save BAdI ‘ME_PROCESS_PO_CUST’ & method ‘POST’
· Check if there is linked order EKKN- AUFNR is not initial
· Read Order type Use EKKN-AUFNR to read AUFK- AUART
· Proceed if the order type is maintained in a new Ztable (ZFIN_EXTOPR – Order types for PO Price update in external operation)
· Proceed if control key is relevant for External operation AFVC- STEUS = ‘PP02’ or ‘ZP07’
· Update Purchase order effective value and unit in the relevant Operation BAPI_ALM_ORDER_MAINTAIN
COPY EKPO- EFFWR (Effective value), EKPO- PEINH (Price Unit) & EKKO-WAERS (Currency) to AFVC- PREIS (price), AFVC- PEINH (Price Unit) and AFVC-WAERS (Curreny) when EKKN- AUFPL_ORD & APLZL_ORD = AFVC-AUFPL & APLZL)
Well, I have tried BAPI_ALM_ORDER_MAINTAIN but with no luck; i also tried another function module called CO_SE_PRODORD_OPR_CHANGE.
Can anyone plesae help me if they have worked on a similiar requirement and how they solved the issue. Any input is appreciated.
Regards,
Prasenjit S. Bist