Cash management is a core functionality of treasury, and it allows us to view all types of cash flows in SAP S/4HANA.
First of all, we can define transactions as relevant to cash management, and cash management can reflect cash flows relating to prior-day bank statements, current-day bank statements, projected accounts payable and accounts receivable activity, and cash flows related to treasury and risk management financial transactions. Each of these activities is categorized differently in the cash reporting to assist in the proper reporting of the cash flows and to increase the flexibility to slice and dice the data as required.
In cash reporting, the key differentiator to classify the source of the cash flow is the certainty level, which we assign at the point of creation to show what application has created the cash flow. Treasury transactions have a designated set of certainty levels, and the following certainty levels detail transactions that originate from bank statements and postings:
The following certainty levels are specific to treasury transactions and are generated directly from the transaction cash flows:
We can leverage the cash management customizing in treasury and risk management to ensure that the cash flows that originate from cash management flow correctly into a cash position. There are a couple of settings that we need to set up in a certain way to ensure that the flows show up at the correct planning levels. In the following sections, we’ll cover how to assign the planning levels for each of the product and transaction types. First, we’ll look at how to assign the planning levels in the link to cash management function, and then, we’ll look at the exceptions and how we can exclude cash flows from creating cash management records. We’ll also review a newer function in SAP S/4HANA that creates additional flexibility in the assignment planning levels by using additional attributes in the financial transactions. After reviewing all the sections on assignments, we’ll review the final output of these settings to show how these cash flows appear in the main cash management SAP Fiori app, Cash Flow Analyzer.
The main transaction we use to assign the planning levels for cash management is found in the Financial Supply Chain Management > Treasury and Risk Management > Transaction Manager > General Settings > Link to Cash Management > Assign Planning Levels menu path. We set up this transaction specifically for each company code, and the key settings we define in this transaction are as follows:
There are some cash flows that should not flow through to the cash management reporting. If we need to set up this scenario, you can find the customizing in the Financial Supply Chain Management > Treasury and Risk Management > Transaction Manager > General Settings > Link to Cash Management > Specify Update Types for Cash Management menu path. When this is the case, we can drive the cash management record creation by the update type. In this transaction, we don’t need to specify all update types, and by default, all the update types will generate cash management records. We should use this transaction on an exception basis, and we can use it to exclude update types from cash management record creation. In the next figure, we have two update types set up in this transaction. In this scenario, update types MM1100+ and MM1901‒ won’t create any cash management records.
This setting is useful when setting up letters of credit. The nominal amounts of the letters of credit are only used for the fee calculation and are not actual cash flows. Since this is the case, we can filter the update types in this configuration to ensure that the forecasted cash flows are accurate.
There are some initial settings that we can set up in the Basic Settings for Cash Management Integration node. We can find this customizing in the Financial Supply Chain Management > Treasury and Risk Management > Transaction Manager > General Settings > Link to Cash Management > Basic Settings for Cash Management Integration menu path. In this configuration, there are a few settings that we can select (see figure below), as follows:
Additionally, if we need to use the enhanced derivation rules for the planning levels, then we need to check this box.
With SAP S/4HANA, we have an additional way to assign the planning levels to treasury contract flows. Instead of just assigning planning levels directly to a product type and activity type, we have additional attributes we can use to assign the planning levels. To derive the flows, we need to go to the Substitution Rules for Planning Levels – Treasury Flows app, as shown in this figure.
To derive the flows, we need to set up the following attributes. First, we need to add the Rule Name and Description for a rule. One thing to note is that the Rule Name needs to include only letters, numbers, and underscores (spaces are not allowed).
Second, we need to fill out the Precondition to determine the scenarios that the derivation should be triggered for. If we need to set multiple preconditions, we can click the Add button to add lines to this area. We can use the following fields to create a precondition:
To select one of the fields or functions, we click on the box to the left of the field. These fields are shown in this figure.
Once we’ve selected the field, the Value field will allow us to use the dropdown list to make the appropriate selection. In the example below, the company code and product type have been selected for the Precondition.
Finally, we can create the substitution, which defines the planning level when the defined precondition is met. In the next figure, we’re substituting the planning level TM when the contract has a value of 1000 with a product type of FX.
Once we’ve fully assigned the cash management cash flows to the treasury and risk management cash flows, we can view them in the cash management reports. The Cash Flow Analyzer app is the main report we use to view the cash flows. This report can view the forecasted treasury cash flows, and if we want to only view the flows from treasury and risk management, we can either filter them by the specific Planning Level defined for treasury and risk management or filter them by Certainty Level (certainty levels TRM_D and TRM_O are specific to treasury and risk management), as shown in the figure below. To view the forecasted treasury flows, select certainty levels TRM_D and TRM_O.
With the Certainty Level filtered in the report, we can now see the forecast for all transactions in treasury and risk management, as shown here.
Each of the line items in this report has hyperlinks we can use to drill down further into the details. This functionality allows us to drill down all the way into the financial transaction that was created in the Create Financial Transaction app. To achieve this, we click on an amount and select the Display Cash Flow Items option. After we drill down further into the specific cash flow, the details will be displayed as in the next figure. From this screen, clicking the Contract Number hyperlink will allow us to navigate to the Display Financial Transaction app to view that specific transaction’s structure and details.
Creating the link between treasury and risk management and cash management in SAP S/4HANA allows for a more comprehensive solution and helps us more effectively manage current cash balances and forecast future cash requirements.
Editor’s note: This post has been adapted from a section of the book Treasury and Risk Management with SAP S/4HANA: The Comprehensive Guide by Luke Carlson, Andrew Carlson, and Jeffrey Lasecki.