Overview
The figure shows the overview of ML processing for outsorted billing documents in SAP S/4HANA Utilities.
ML utilizes an extensive amount of previous utilities principal and transaction data to make predictions. This data is saved in the customer's system. ML accesses ML-relevant data for outsorted billing documents by using training and apply datasets. This information forms the groundwork for establishing the release confidence value for particular billing documents. Moreover, this data is essential for training a predictive model in ISLM.
The ISLM is enabled to define, train and activate a predictive model for the predictive scenario UTI_BI_OUTSORTED.
The report REML_BILLING_OUTSRTD_RELPRED picks all the outsorted billing documents based on the user-defined selection criteria. It then calculates the release confidence value for each outsorted billing document in the selection, provided there is enough historical data. Subject to a defined threshold and the calculated release confidence, outsorted billing documents can be automatically released.

The report results are stored in a database table and can be displayed in the application log:
- billing document
- release recommendation
- indicator about whether the documents have been automatically released
The report needs the following prerequisites:
- The training and prediction timeframe must have been maintained in customizing.
- A trained and activated model version for the ISLM predictive scenario UTI_BI_OUTSORTED must be available.
- If billing documents are to be released automatically, a release threshold of at least 0.5 must be provided on the selection screen.
The SAP Fiori app Resolve Outsorted Billing Documents is used to display the release confidence for each outsorted billing document, if the release confidence was correctly determined and the outsorted documents have not been released automatically.
The closer the release confidence value is to 100%, the greater the assurance of the related ML prediction that the document can be released.
ISLM Scenario and Model
The figure shows the ML model training based on historical data and the label determination for outsorted billing documents in ISLM.

The predictive scenario UTI_BI_OUTSORTED works as an SAP template that facilitates ML in processing outsorted billing documents. This scenario encompasses an algorithm, a training dataset, an apply dataset, and a target variable, all of which help in training the customer-oriented predictive model. The training and apply datasets incorporate the pertinent features and labeling logic at the model level for outsorted billing documents.
Initially, the predictive model is untrained, indicating that there is no existing model version. It is necessary for the predictive model to be trained and activated within the customer's system.
The predictive scenario is linked to the application using the ISLM and report REML_BILLING_OUTSRTD_RELPRED, so that the predictive results can be consumed by the end user in their own environment.
In addition to the agent’s decision to release or reverse a billing document, possible subsequent actions are taken into consideration to determine the expected label. This might be that the document was released but subsequently reversed due to a specific reason.
The result is a release confidence value, which can be used either to process the outsorted billing document manually (label No Release), or to automatically release or reverse it without further user interaction (label Release Document).
Training Period
The customizing table TEML_OUTBILPARAM provides the training and prediction timeframes for outsorted billing documents.

In this example,
- the oldest document (billing period start) considered for training dataset is dated 03/01/2017 which is 24 months earlier than today and
- the last document considered for training dataset is dated 01/01/2019 which is 2 months earlier than today.
The timespan between 01/01/2019 and today 03/01/2019 indicates the offset timeframe, during which possible actions could be performed for released documents, meaning that the billing documents within this timeframe should not be used for training.
The logic for the prediction period (apply dataset) also considers the lower timeframe; documents with a billing period start that is earlier than the lower timeframe will not be predicted, all other documents will be predicted