!--a11y-->
Determine Total Cash Flow and Remaining
Capital 
You can use this
function to aggregate individual
cash flows for
loan transactions in SEM Banking into a total cash flow. The total cash flow,
therefore, stretches over the entire life of the loan. The system also displays the development of the balance, which
results from the total cash flow.
Additionally, you can also determine the remaining capital of the loan for a specific key date using the cash flows in SEM Banking.
You have already costed the relevant loans.
To determine the total cash flow and the remaining capital for the selected loan transactions, use the AggregatedCashflowGetDetMult Business Application Programming Interface (BAPI).
The BAPI reads all the relevant cash flows related to the loan from the database to create a total cash flow. These cash flows can be broken down into the cash flow categories 1 (commitment cash flow), 2 (settlement cash flow), 3 and 5 (replacement cash flow in the case of a cash flow disturbance type 1), and 7 (rollover cash flow).
The following graphic shows how the total cash flow is formed:

The system builds up the total cash flow from those sections marked in red.
If no settlement cash flow exists, the system uses the commitment cash flow to create the total cash flow.
The remaining capital is determined for a specific key date using the balance development from the total cash flow.

The system only includes the flows that have been selected as volume-relevant in the Assign Flow Indicator Customizing activity (SEM Banking ® Profitability Analysis ® Single Transaction Costing ® Costing ® Assign Flow Indicator) in the development of the balance.
The key date for determining the remaining capital must be before the last costing process for the transaction. If this is not the case, simulated disbursements in the cash flows can effect the remaining capital calculation.
You can use the ExportDbRecords parameter to control whether the system returns cash flow information from the database.
The BAPI has not been released. It is possible, therefore, that changes may be made to the interface.
Call the AggregatedCashflowGetDetMult BAPI in the BAPI Explorer dialog structure by choosing Banking Components ® Data Pool ® LoanSemB.

Generating the total cash flow, and determining the remaining capital from the loans, are for analytical purposes only. The results are not saved.
For more information on this BAPI, see the corresponding function module documentation.
