User exit/BADI for Return PO item delivery Address
We have a requirement where in when a PO item is marked as return PO item(In ME21n/ME22n/ME23n We have check box at item level) and click on enter/Check/Save, In delivery address of item details we have to populate Vendor address. By default SAP populates Plant address. If we manually give Vendor number in item details=>Delivery address tab then it populates vendor address. We want to automate this functionality.
Is there any Exit/BADI which serve this purpose.
Note: We need this functionality for few doc types(i.e PO doc type should also be available in the exit).
Any ideas could be really helpfull.
Use the User Exit 'MMDA0001' 'EXIT_SAPLMMDA_001'
Function exit EXIT_SAPLMMDA_001 allows you to o choose one storage location address from several existing ones o suggest an address that differs from the storage location address (e.g. an address from the delivery address pool, which you will find in the Purchasing menu under Master data -> Delivery addresses)