SAP Materials Management
Visitor : 130
Default delivery address in purchasing document is derived from Plant / Sloc combination. If storage location is not available plant address will be defaulted. Business requirement may warrant populating a different delivery address based on the process.
For example : If the delivery of items are managed by a third party freight forwarder who consolidates the shipments in his local warehouse and then forwards the shipment to the factory , its a standard business practice , that the delivery address in the PO would be freight forwarders Warehouse in the country. In such cases delivery address in the PO line item needs to modified.
Option 01 : Manual Entry
Address can be directly entered in the delivery address tab on the Purchasing document -> Item details tab.
SAP provided few other other as well.
Option 02 : Customer Enhancement
Is standard functionality doesnt suffice the requirement , customer enhancement option can be used.
Enhancement : MMDA0001, can be used for defaulting delivery address in purchasing documents if the logic for determining delivery address in different from stand which Plant / Storage Loc combination.
The enhancement MMDA0001 facilitates the determination of customers' own default delivery addresses in purchasing documents. In the standard system, the delivery address is determined via the combination plant/storage location. If no storage location address is maintained, the plant address is suggested. 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) The fields of the communication structure CMMDA are available to you as data. You will normally have to extend the structure by adding a customer-specific append structure containing the fields required for address determination purposes. Example As a rule, you wish to use the storage location address. However, materials belonging to material group '4711' are to be delivered to a special address which is stored in the address pool under the number 123. 1. First you define an append structure ZZCMMDA for the structure CMMDA via the ABAP dictionary and include in it the field MATKL (material group, data element MATKL). The field is supplied by the program via the statement MOVE-CORRESPONDING from the corresponding field in the purchasing document item. 2. After this you can create the INCLUDE program ZXM06U32 and fill it with the following lines of coding: IF I_CMMDA-MATKL EQ '4711'. E_ADRNR = '0000000123'. ENDIF.