I have a requirement wherein i need to check the value of purchasing group(field EKGRP) on pressing save ie creation of a purchase order. If the EKGRP value is not a specific value say 110 i have to default it to 110 on saving
That is upon saving(in Me21N) the code should check these
1 - Value of EKGRP
2 - Change the value to 110 if it's anything else.
I have gone through EXIT_SAPMM06E_013 and BAPI ME_PROCESS_PO_CUST. The problem with the EXIT_SAPMM06E_013 is that it's tables have no value of EKGRP during runtime.
The BAPI ME_PROCESS_PO_CUST method PROCESS_HEADER does not get called while saving the PO,hence it does not solve my purpose.
Could anyone help me out?