Show TOC

Function documentationDetermination of Address Type

 

The correspondence tool determines the address type for each recipient. The address determined with the address type is used as the mailing address in correspondence. The key of the address - the address number - is saved in the appropriate correspondence container.

Integration

The system transfers the address number when it outputs the correspondence to the print workbench.

Prerequisites

The application does not suppress recipient determination when requesting the correspondence.

Address type determination as the result of recipient determination was not suppressed.

You have defined a standard address in the master data of each business partner to whom you want to send correspondence. If needed, you have entered alternative addresses and assigned an address type.

You created the relationship between the correspondence role and correspondence type and assigned an address type to it in Customizing by choosing Start of the navigation path Cross-Application Components Next navigation step General Application Functions Next navigation step Correspondence Next navigation step Configure Address Determination End of the navigation path.

Features

The system determines the address for each correspondence recipient during the creation of the correspondence request.

The application has to determine the address type defined in Customizing for the correspondence role provided in recipient determination. If no relationship is maintained in Customizing or no address type is defined in the relationship, then no address type is determined.

If the implementation of the application inherited from the class CL_FKK_CORR_EVENT_CREATE_PATT, the correspondence tool determines this in the inherited method DETERMINE_RECEIVERS.

If the application has chosen the BTE event concept, and defined the event BTE 44012060 for determining the address type, then the BTE is processed. Using this event, the application can adjust the address type determined by the correspondence tool to your requirements.

The correspondence tool determines the address using the address type, the recipient’s business partner number, the business partner role, and the date of execution. If no address is defined for the address type or no address was determined, the business partner’s standard address is used.

Since at least one standard address must be maintained for every business partner, an address can always be found for each recipient.

For a description of the interface for the BTE event concept, see sample function module SAMPLE_INTERFACE_44012060..

Activities

At the event for determining the address type, BTE 44012060, you can influence the address type determined during address determination. The event runs when the address number for correspondence is determined. At event BTE 44012060 , you can determine a time-specific address if several addresses with different address types are defined in Customizing for a business partner.

In addition to the standard address, for each correspondence type, you can define a time-specific address type to which you only send specific correspondence. You define the address for this address type in the master data of the business partner. If no address types with addresses are defined for a business partner, the standard address defined for the business partner is used for all correspondence.

Example Example

All correspondence for business partner Smith should be sent to his standard address, except for dunning notices. These are to be sent to a separate dunning address.

To do this, you:

  1. Create the address typedunning address.

  2. Enter the dunning address in the master data of business partner Smith.

If no dunning address is defined, the dunning notices are sent to the standard address (like all other types of correspondence created for business partner Smith).

End of the example.