Ansicht
Dokumentation
FMEUF_PROPOSE_CERT_AMOUNTS - Certification run. Update
ROGBILLS - Synchronize billing plans BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
The aim of this function is to propose the maximum certified amount possible for all the certification items ("all" because, in some cases, the proposal is 0).
The function module FMEUF_PROPOSE_CERT_AMOUNTS receives two tables: the certification list and a table with information for all the financing sources used in the certification list.
The certification list contains the document lines that are being certified. Every document line is assigned to one or more financing sources (see the first and second items in the example). The certification list is sorted (before the function call) by document line and, within the document line, by financing source according to their priority (in their link to the operation). Every item in the certification list has the following information for the proposal of the certified amount:
- Eligible amount
- This is the maximum amount that can be certified for a document line.
- Apportionment amount
- This is the part of the eligible amount that can be certified to the financing source used in the certification item.
- Previously certified amount
- This is the amount of that document line that has been certified in previous certification runs (the same document line might have different previously certified amounts, depending on the utilization of the financing source to which it is being currently certified).
- Previous contribution
- This is the sum of amounts with which any financing source has contributed to sponsor the document line in previous certification runs.
The financing sources table contains the following information for all the financing sources used in the certification run:
- Financing source type
- Used, in combination with the utilization, to propose a certified amount for every document line.
- Utilization
- The different values of the financing source's utilization allow the function to know whether if the amounts proposed for other items in the current run are relevant for the item that is being processed.
- Available certification budget
- Available contribution budget
- Contribution rate
- Applied to the certified amount in an item to obtain the contribution.
- Maximum contribution rate
- Used in residual financing sources to establish a contribution top limit for document lines that have already received a contribution
With the two tables described above, the function module proposes certified amount and contribution for all the items in the list, checking that the total certified amount in a financing source does not exceed its budget and the sum of contributions to a document line does not exceed its eligible amount.
Example
Certification list:
Doc. number | | Line item | | FS | | Eligible | | Apport. | | Prev. cert. | | Prev. contr. | |
---|---|---|---|---|---|---|---|
1215 | | 001 | | FS1 | | 100 | | 75 | | 20 | | 16 | |
1215 | | 001 | | FS2 | | 100 | | 25 | | 15 | | 16 | |
1216 | | 002 | | FS2 | | 200 | | 200 | | 30 | | 27 |
Financing sources:
FS | | FS type | | Utilization | | Cert. budget | | Contr. budget | | Contr. rate | |
---|---|---|---|---|---|---|
FS1 | | 1 | | O | | 10000 | | 8000 | | 80% | |
FS2 | | 2 | | | | 10000 | | 9000 | | 90% |
Resulting certification list:
Doc. number | | Line item | | FS | | Eligible | | Apport. | | Prev. cert. | | Prev. contr. | | Certified | | Contr. |
---|---|---|---|---|---|---|---|---|
1215 | | 001 | | FS1 | | 100 | | 75 | | 20 | | 16 | | 55 | | 44 |
1215 | | 001 | | FS2 | | 100 | | 25 | | 15 | | 16 | | 10 | | 9 |
1216 | | 002 | | FS2 | | 200 | | 200 | | 30 | | 27 | | 170 | | 153 |
Notes
Further information
The function module is tested by unit test class LCL_FMEUF_PROP_CERT_AMTS_TEST.
This class sends this table to the function module to test the proposed certified amount and contribution:
Doc.Key | Item | Elig | App.Amt. | Contr. | Prev.Cert. | Prev.Contr. | Cert. | Prop.Cert | FS |
---|---|---|---|---|---|---|---|---|---|
4711 | 001 | 1000 | 1000 | 640 | 200 | 160 | 800 | 800 | FSA1 |
4711 | 001 | 1000 | 1000 | 0 | 200 | 160 | 0 | 0 | FSA2 |
4711 | 001 | 1000 | 1000 | 0 | 0 | 160 | 0 | 0 | FSA3 |
4711 | 001 | 1000 | 1000 | 150 | 160 | 160 | 150 | 150 | FSB1 |
4711 | 001 | 1000 | 1000 | 0 | 160 | 160 | 0 | 0 | FSB2 |
1900000008EC112006 | 002 | 100.02 | 100.02 | 80,02 | 100,02 | 80,02 | EC1_FNS1 | ||
1900000008EC112006 | 002 | 100.02 | 100.02 | 0 | 0 | 0 | EC1_FNS9 | ||
1900000008EC112006 | 002 | 100.02 | 100.02 | 10 | 10 | 10 | EC3_FNS1 | ||
1900000008EC112006 | 002 | 100.02 | 100.02 | 0 | 0 | 0 | EC3_FNS2 | ||
1900000008EC112006 | 002 | 100.02 | 100.02 | 0 | 0 | 0 | EC4_FNS1 | ||
1900000008EC112006 | 002 | 100.02 | 100.02 | 0 | 0 | 0 | EC4_FNS2 | ||
1900000008EC112006 | 002 | 100.02 | 100.02 | 0 | 0 | 0 | EC5_FNS1 | ||
1900000008EC112006 | 002 | 100.02 | 100.02 | 0 | 0 | 0 | EC5_FNS2 | ||
1700000011EC112006 | 002 | 100.00- | 100.00- | -80 | -100 | -100 | EC4_FNS1 | ||
1700000011EC112006 | 002 | 100.00- | 100.00- | 0 | 0 | 0 | EC1_FNS9 | ||
1700000011EC112006 | 002 | 100.00- | 100.00- | 0 | 0 | 0 | EC3_FNS2 | ||
1700000011EC112006 | 002 | 100.00- | 100.00- | 0 | 0 | 0 | EC3_FNS1 | ||
1700000011EC112006 | 002 | 100.00- | 100.00- | 0 | 0 | 0 | EC4_FNS2 | ||
1700000011EC112006 | 002 | 100.00- | 100.00- | 0 | 0 | 0 | EC5_FNS1 | ||
1700000011EC112006 | 002 | 100.00- | 100.00- | 0 | 0 | 0 | EC5_FNS2 |
The financing source information is contained in the following table:
FS | Usage | FS Type | Open Exp.Budget | Open Contr.Budget | Rate | Max.Rate | Prop.Cert. | Prop.Contr. |
---|---|---|---|---|---|---|---|---|
FSA1 | A | 10000 | 8000 | 80 | 800 | 640 | ||
FSA2 | I | A | 10000 | 8000 | 80 | 0 | 0 | |
FSA3 | O | A | 10000 | 8000 | 20 | 0 | 0 | |
FSB1 | R | B | 10000 | 8000 | 80 | 95 | 150 | 150 |
FSB2 | R | B | 10000 | 8000 | 90 | 90 | 0 | 0 |
EC1_FNS1 | I | EC1 | 10000 | 8000 | 80 | 100.03 | 80.02 | |
EC1_FNS9 | EC1 | 10000 | 8000 | 80 | 25- | 20- | ||
EC3_FNS1 | R | EC3 | 10000 | 8000 | 80 | 90 | 10 | 10 |
EC3_FNS2 | R | EC3 | 10000 | 8000 | 80 | 90 | 0 | 0 |
EC4_FNS1 | O | EC4 | 10000 | 8000 | 80 | 100- | 80- | |
EC4_FNS2 | O | EC4 | 10000 | 8000 | 80 | 0 | 0 | |
EC5_FNS1 | I | EC5 | 10000 | 8000 | 80 | 0 | 0 | |
EC5_FNS2 | I | EC5 | 10000 | 8000 | 80 | 0 | 0 |
Parameters
CT_CERT_ITEMSCT_FINSRC
ET_USED_FNS
IO_EC_BADI
Exceptions
Function Group
FMEUF_CERTIFICATION_RUNBAL_S_LOG - Application Log: Log header data rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 20173 Date: 20240523 Time: 120657 sap01-206 ( 91 ms )