Hierarchy

⤷

⤷

IMG Activity
ID | FDM_COLL_INSTMNT_DIS | BAdI: Distribution of Installments to Invoices |
Transaction Code | S_EB5_05000522 | (empty) |
Created on | 20091125 | |
Customizing Attributes | FDM_COLL_INSTMNT_DIS | BAdI: Distribution of Installments to Invoices |
Customizing Activity | FDM_COLL_INSTMNT_DIS | BAdI: Distribution of Installments to Invoices |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | FDM_COLL_INSTMNT_DISTRIBUTE |
Use
You can use this Business Add-In (BAdI) to distribute the installments of an installment plan to the invoices for which promises to pay have been created. The method
DISTRIBUTE_INSTALLMENTS
is available for this. The method is called in receivables processing when you save the promises to pay with installments. You only call it if the installment plan is created for several invoices at the same time.
By distributing the installment plan installments to the invoices, promises to pay with differing numbers of installments can arise. If only one installment is assigned to an invoice, the system creates a promise to pay without an installment plan for this invoice. For this reason, when you save the promise to pay the system does not store the installment plan type used when creating it, if the default implementation is not active for this BAdI.
Requirements
Standard settings
In the default implementation FDM_INST_DISTRIB_RELATIVELY, the system distributes the installments corresponding to the proportion of the entire amount promised assigned to the invoice.
Activities
For information about implementing BAdIs as part of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.
Example
The example implementation FDM_INST_DISTRIB_USING_DUE_DAT takes into account the due date of the invoices when distributing the installments. The first installment is assigned to the invoice with the earliest due date. If the amount of the installment is lower than the promised amount that was intended for the invoice, then the second installment is also assigned to this invoice. Consequently, the next invoice is only considered once the amount of the first invoice has been covered by the installments.
In the example implementation FDM_INST_DISTRIB_WITH_DIALOGUE, the distribution is presented in a dialog box. Here the user has the option of choosing between the equal distribution of installments (default implementation) and distribution by due date (implementation FDM_INST_DISTRIB_USING_DUE_DAT).
You can add to the distributions that are available there. To do this, create a separate BAdI implementation. Use class CL_FDM_COLL_DISTRIB_WITH_DIALO as the superclass for your implementing class. Overwrite methods IF_FDM_COLL_DISTRIB_WITH_DIALO~ON_MENUE_BUTTON_PRESSED and IF_FDM_COLL_DISTRIB_WITH_DIALO~ON_USER_COMMAND. Insert an additional distribution function in IF_FDM_COLL_DISTRIB_WITH_DIALO~ON_MENUE_BUTTON_PRESSED, and implement the distribution algorithm in IF_FDM_COLL_DISTRIB_WITH_DIALO~ON_USER_COMMAND.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20091125 |
SAP Release Created in | 605 |