Once the address IDoc has run through the ALE and communication layer, it is available for inbound processing in the target system. The ALE layer calls the function moduleIDOC_INPUT_ADRMAS (or IDOC_INPUT_ADR2MAS , IDOC_INPUT_ADR3MAS ) which converts the IDoc segments into BAPI structures again. Subsequently, method SAVEREPLICA is called for each address object ( BAPI_ADDRESSORG_SAVEREPLICA , BAPI_ADDRESSPERS_SAVEREPLICA , BAPI_ADDRCONTPART_SAVEREPLICA ). This method updates the addresses in the target system.
In ALE Customizing, you must ensure in advance that the address and the master object are sent to the same target system. To do this, you must define a dependency between the address message type and the master object message type in the distribution model. This ensures that distribution filters at master object level are also applied to the address object. For example, if you want to distribute only vendors for specific vendor numbers to a target system, then the addresses for other vendor numbers should not be distributed to this receiving system.
In ALE Customizing, you should additionally set up serialization between the message types of the master objects and address objects to define a specific order for creating, sending and updating the corresponding IDocs. Some address fields can be required fields for the application. The best way to achieve consistency in the target system is to ensure that addresses are processed by their primary object. If a new master object is created, the address information is then already available.
If an application object including address data is changed in the source system, the address number (person number) in the target system is determined as with outbound processing by the above-mentioned callback function modules of the application. If a new master object (including the address) is created in the source system, a new address number is assigned in the target system and stored together with the assignment information for the master object from the address IDoc in the temporary tableADOWNERREF . When the master data IDoc is processed, the new address number is stored as a reference to the address, and the corresponding record is deleted from table ADOWNERREF .
To do this, the application program must call function modulesADDR_ADOWNERREF_READ and ADDR_ADOWNERREF_DELETE .