Skip to Content
0
Mar 02, 2015 at 03:08 PM

How to change the value of Purchasing group while saving in ME21N

472 Views

Hi Guys,

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?