Ansicht
Dokumentation
FMEUF_CERT_GET_CONTRIBUTIONS - Certification run. Update
ABAP Short Reference General Material DataThis documentation is copyright by SAP AG.
Functionality
Example
Notes
Further information
The test class LCL_FMEUF_CALC_PREV_CONTR_TEST tests the function module FMEUF_CERT_GET_CONTRIBUTIONS. That class calls the function module with a list of items to be certified in different financing sources (FS):
Doc. Key | FS |
---|---|
4711 001 | A1 |
4711 001 | A2 |
4711 001 | B1 |
4711 001 | B2 |
4711 001 | C1 |
4711 002 | A2 |
4711 002 | B1 |
In other words, they are two document lines to be certified in five different financing sources.
The test class prepares a table with previous certifications of those two document lines, too:
Doc. Key | FS | Cert.Am. | Cert.Con. |
---|---|---|---|
4711 001 | A1 | 0.03 | 0.01 |
4711 001 | A1 | 0.30 | 0.10 |
4711 001 | A2 | 3.00 | 1.00 |
4711 001 | A2 | 30.00 | 10.00 |
4711 001 | B1 | 300.00 | 100.00 |
4711 001 | B1 | 3000.00 | 1000.00 |
4711 001 | B2 | 30000.00 | 10000.00 |
4711 001 | B2 | 300000.00 | 100000.00 |
4711 001 | C1 | 3000000.00 | 1000000.00 |
4711 001 | C1 | 30000000.00 | 10000000.00 |
4711 002 | A1 | 0.05 | 0.02 |
4711 002 | A1 | 0.50 | 0.20 |
4711 002 | A2 | 5.00 | 2.00 |
4711 002 | A2 | 50.00 | 20.00 |
4711 002 | B1 | 500.00 | 200.00 |
4711 002 | B1 | 5000.00 | 2000.00 |
4711 002 | B2 | 50000.00 | 20000.00 |
4711 002 | B2 | 500000.00 | 200000.00 |
The class also prepares the following information about all the financing sources involved:
FS | FS Type | Usage | |
---|---|---|---|
A1 | A | The class calls the | |
A2 | A | function module with | |
B1 | B | different combinations | |
B2 | B | of FS utilizations | |
C1 | C |
The function returns a previously certified amount and contribution for every item in the certification list
Doc. Key | FS | Prev. Cert. Amt. | Prev. Con. |
---|---|---|---|
4711 001 | A1 | ? | 11111111.11 |
4711 001 | A2 | ? | 11111111.11 |
4711 001 | B1 | ? | 11111111.11 |
4711 001 | B2 | ? | 11111111.11 |
4711 001 | C1 | ? | 11111111.11 |
4711 002 | A2 | ? | 222222.22 |
4711 002 | B1 | ? | 222222.22 |
The previous contribution for a document line is the sum of all the previous contributions for that line (independently of the FS).
The previously certified amount is different depending on the usage of the FS. The class checks the result received from the function module in the following table of results, according to the utilization of the relevant FS:
Doc. Key | FS | If usage = Space | If usage = I | If usage = O | If usage = R |
---|---|---|---|---|---|
4711 001 | A1 | 33.33 | 0.33 | 33333333.33 | 11111111.11 |
4711 001 | A2 | 33.33 | 33.00 | 33333333.33 | 11111111.11 |
4711 001 | B1 | 333300.00 | 3300.00 | 33333333.33 | 11111111.11 |
4711 001 | B2 | 333300.00 | 330000.00 | 33333333.33 | 11111111.11 |
4711 001 | C1 | 33000000.00 | 33000000.00 | 33333333.33 | 11111111.11 |
4711 002 | A2 | 55.55 | 0.55 | 555555.55 | 222222.22 |
4711 002 | B1 | 555500.00 | 55.00 | 555555.55 | 222222.22 |