Lesson 1 of 6
Treasury in SAP S/4HANA beyond cash management
10 min
Listen to this lesson
sap-fin-207 ended with Contoso's treasurer reading the cash position every morning and deciding whether to move, borrow or invest. This course starts where that decision is made. When treasury invests surplus cash, borrows, buys foreign currency forward or hedges a risk, it creates financial transactions with their own lifecycle, valuation and accounting. SAP manages them in SAP Treasury and Risk Management (TRM), part of SAP S/4HANA's finance capabilities, alongside cash management, bank communication and in-house banking.
Contoso's treasury has grown with the company. With Contoso Parts Distribution (1810) and, after the acquisition, Alternadores del Norte (1910, MXN), it now has idle USD balances to invest, an MXN exposure to manage and three companies paying suppliers through different banks. The course follows the decisions treasury makes and the evidence auditors ask for. Figures, deals and rates in this course are illustrative course data.
The components
The Transaction Manager is the core: every deal is a financial transaction with a product type (for example fixed-term deposit or FX forward), a transaction type (for example investment or purchase), a counterparty, flows (principal, interest, currency amounts) and statuses. Flows post to the general ledger through position management and valuation areas, so a deal can be valued one way for US GAAP in ledger 0L and another for IFRS in ledger 2L.
How TRM integrates with finance
| Integration point | What happens | Contoso example |
|---|---|---|
| General ledger | Deal flows and valuations post through account determination per valuation area | Interest income on a USD deposit in 1710 |
| Cash management | Deal flows appear in the cash position and liquidity forecast | Maturity of the deposit shows as an inflow |
| Bank accounts and payments | Settlement of deals creates payment requests | Principal paid to the bank on value date |
| Business partner | Counterparties are business partners in treasury roles | Contoso's US relationship bank |
| Exchange rates and market data | Valuation uses rates, curves and prices | MXN/USD spot and forward rates |
Where Treasury and Risk Management touches the rest of SAP S/4HANA.
Because TRM writes to the same Universal Journal, a treasury posting error is a general ledger error. That is why auditors look at treasury so closely: deals are large, valuation involves judgment and market data, and a missing control can move significant amounts without passing through accounts payable or receivable.
What would you do?
Contoso's treasurer wants to invest USD 5,000,000 of surplus cash for 90 days and asks whether a manual journal entry and a spreadsheet are enough, since it is "just one deposit". What do you advise?
What goes wrong in testing
| Symptom | Usual cause | Test |
|---|---|---|
| Deal posts to the wrong account | Account determination per valuation area incomplete | Post each product and flow type once in each valuation area |
| Deal missing from the cash position | Flows not integrated with cash management | Create a deal and check the forecast for its value dates |
| IFRS ledger has no treasury postings | Second valuation area not set up or not assigned to 2L | Compare postings in 0L and 2L for the same deal |
Integration defects that show up in treasury testing.
What Contoso converts and what it adds
Contoso's ECC system (EP1) ran Treasury and Risk Management for a handful of USD money market deals and an occasional FX forward. The system conversion carries those deals and their positions into SAP S/4HANA, where TRM remains part of the finance scope. What is new after go-live is the MXN exposure from Alternadores, the in-house bank design and the hedge accounting policy. That split matters for testing: converted functions need regression and reconciliation, new functions need full process tests and control design.
| Area | In ECC (EP1) | After conversion | Test type |
|---|---|---|---|
| Money market deals | Used | Converted, unchanged process | Regression and position reconciliation |
| FX forwards | Occasional, no hedge accounting | Used for the MXN loan with hedge accounting | New process and control tests |
| Valuation areas | 0L only | 0L and 2L | New configuration tests |
| In-house bank | Not used | New design with APM | Full process, integration and control tests |
What changes in Contoso treasury, and how each area is tested (illustrative).
One simple rule keeps the treasury test plan honest: every deal type the treasurer intends to trade in the first year must have been through its full lifecycle in the quality system, with the users and roles it will have in production. If a product is not tested, it is not traded until it is.
- TRM manages deals that cash management only forecasts.
- The Transaction Manager handles deal lifecycle, flows and accounting.
- Valuation areas let one deal be valued differently per ledger (0L, 2L).
- Treasury postings are general ledger postings, so treasury controls are financial controls.
Check your understanding · not graded
Lesson check
1. Which TRM component manages the lifecycle of deals such as deposits and FX forwards?
2. What lets one deal be valued differently for US GAAP and IFRS?
3. Why do auditors focus on treasury controls?
4. Where does a deposit's maturity appear before value date?