Configuration of Purpose Code
Use
SAP delivers sample entries for purpose codes for some SEPA countries. You can also make the following settings:
-
You can enter additional purpose codes that you use.
-
For each SEPA country, you can enter the required purpose codes and your own purpose codes if necessary.
-
You can assign the required purpose codes to customer-specific wage types.
-
You can use the DME: Replace SEPA Purpose Code feature (XDMEP) to change the purpose code that was determined by Customizing based on attributes (for example, the organizational assignment of the employee). The possible attributes are determined by the structure PMEX1.
Integration
The purpose code is processed as follows:
-
The purpose code is determined from the wage type (table view Assignment of Purpose Codes to Wage Type (T77DME_PCD_WT)). If there is no entry for the wage type, SPACE is used.
-
The XDMEP feature is called and the purpose code that was determined based on the wage type is changed if necessary. This is necessary if the purpose code has to be specified further beyond the wage type.
-
If the purpose code determined from Customizing was replaced, the system checks whether the return value for the country grouping is permitted (table view Assignment of Purpose Code to Country Grouping (T77DME_PCD_MOL)).
-
The determined purpose code is transferred to the PURP_CODE field of the interface structure REGUH_BF and then written to the Settlement Data from Payment Program table (REGUH).
-
In the SEPA_CT format tree in the Data Medium Exchange Engine (DME), the PURP_CODE field then has to be transferred to the <Purp> node.
Special Processing for In-House Cash (IHC)
If you perform SEPA payments (credit transfers or direct debits) with the IDoc (PAYEXT) from the SAP ERP HCM system or process the payments using In-House Cash (IHC), the purpose code is also transferred to the IDoc when the payment data is transmitted.
Activities
Check and set up the purpose codes in Customizing for Payroll: International (or in the country-specific Customizing) under .

