Ansicht
Dokumentation
FI_APAR_MANDATE_GET_CUST_NR - Determine Number Range Interval via Field Values of Mandate
BAL_S_LOG - Application Log: Log header data BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
This function module determines which number range interval to use on the basis of the mandate that you want to create.
Example
You have created the following two entries in the Customizing table using transaction SEPA_NR_CUST:
Account Group | B2B | Transaction Type Number Range Interval | ||
---|---|---|---|---|
N8 | ||||
DEBI | Y | 1 | N7 |
The mandate you want to create has the following field values:
Field | Value |
---|---|
Account Group | DEBI |
B2B | X |
Transaction Type | 1 |
If all the field values of an entry in the Customizing table are empty, the corresponding number range interval matches all mandates. All the field values of the first entry in the Customizing table are empty. Therefore, number range interval N8 matches all mandates.
If one or more fields of an entry in the Customizing table are not empty, the corresponding number range interval matches a mandate if all their field values match. However, since the value for B2B, either X or empty, is a Boolean, and an empty Boolean value matches any Boolean value, X is transformed to Y and empty is transformed to N. Therefore, number range interval N7 also matches the mandate you want to create.
We then determine which entry to use on the basis of their priority. The priority is determined by the sum of all the weights of an entry: the higher the sum, the higher the priority. The weight of an empty field is 0. The weight of a field with a valid value is shown in the following table:
Field | Weight |
---|---|
Account Group | 64 |
B2B | 32 |
Transaction Type | 16 |
(The following fields are by default hidden in the maintenance view) | |
OrgF1 | 8 |
OrgF2 | 4 |
OrgF3 | 2 |
OrgF4 | 1 |
We can see that the second entry has a higher priority. Therefore, number range interval N7 is used to generate a mandate ID.
Notes
If you have not created any entry in the Customizing table or if no entry matches the mandate you want to create, an error message appears to remind you to either maintain the Customizing table or to correct the field values of the mandate.
Further information
Parameters
E_NR_EXTERNALE_NR_INTERVAL
I_WA
Exceptions
Function Group
SEPA_MNDID_GENGeneral Data in Customer Master SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 3846 Date: 20240523 Time: 072302 sap01-206 ( 55 ms )