Hi, there is a SAP function module COD_MAT_GROSS_REPL_WITH_CP that exactly does ! It can be assigned to the MATMAS message type in view V_TBDME.
The function module is part of 'Sales on Demand services' add on which might not be installed in every ERP system.
Regards Jack