# Legal Case Register and Litigation Provision Calculation and Posting Program (IAS 37)

> A program that keeps the case details received from lawyers (parties, subject, claimed amount, currency, risk rating, expected outcome date) in a case register in SAP and calculates the litigation provision at period end following IAS 37. The difference to the previous period's provision is determined, an additional provision or release is posted, and a movement schedule per case is reported.

- Type: Program, Custom development, Background program
- Module: FI
- Estimated effort: M (10–15 working days)
- Last updated: 2026-11-19
- URL: https://nekuhub.com/en/programs/legal-case-register-and-litigation-provision-program/


## Why is the standard not enough?

SAP has no register for legal cases; the provision amount is usually calculated from the legal department's spreadsheet and posted by hand with FB50. When and with which risk assessment a case's provision changed cannot be traced in SAP, and the valuation of foreign currency cases and the movement schedule for the notes need separate work.

### Closest standard alternatives

- FB50: The provision is posted by hand; there is no case register or calculation.
- FBL3N: Lists provision account items by assignment; does not prepare the movement schedule.

## Tables used

| Table | Role | Access | Join | System |
|---|---|---|---|---|
| ACDOCA | Balance per case on provision accounts (S/4HANA) | Read | - | S/4HANA only |
| BSEG | Balance per case on provision accounts (ECC) | Read | - | ECC only |
| BKPF | Header of the provision document created | Write | BKPF-BUKRS = ACDOCA-RBUKRS AND BKPF-BELNR = ACDOCA-BELNR AND BKPF-GJAHR = ACDOCA-GJAHR | ECC + S/4 |
| SKB1 | Company code settings of provision, expense and income accounts | Read | SKB1-BUKRS = ACDOCA-RBUKRS AND SKB1-SAKNR = ACDOCA-RACCT | ECC + S/4 |
| TCURR | Period-end exchange rate for foreign currency cases | Read | - | ECC + S/4 |
| BUT000 | Counterparty business partner name | Read | - | ECC + S/4 |
| T001 | Company code local currency | Read | T001-BUKRS = BKPF-BUKRS | ECC + S/4 |
| CDHDR | Tracking of changes to the case register | Write | - | ECC + S/4 |

## BAPIs and functions used

- BAPI_ACC_DOCUMENT_POST: Posts the additional provision and the release
- BAPI_ACC_DOCUMENT_CHECK: Checks the posting in a test run
- BAPI_ACC_DOCUMENT_REV_POST: Reverses an incorrect provision posting
- READ_EXCHANGE_RATE: Reads the period-end exchange rate
- TEXT_CONVERT_XLS_TO_SAP: Uploads case data from the lawyer's report

## Selection screen parameters

| Parameter | Description | Type | Reference field | Required |
|---|---|---|---|---|
| P_BUKRS | Company code | Single value | BKPF-BUKRS | Yes |
| P_GJAHR | Fiscal year | Single value | BKPF-GJAHR | Yes |
| P_MONAT | Period | Single value | BKPF-MONAT | Yes |
| P_BUDAT | Posting date | Single value | BKPF-BUDAT | Yes |
| P_BLART | Document type | Single value | BKPF-BLART | No |
| P_TEST | Test run (no posting) | Checkbox | - | No |

## Result list columns

| Column | Source |
|---|---|
| Case no. | Calculated: Number in the case register |
| Counterparty | BUT000-NAME_ORG1 |
| Subject | Calculated: Case subject (labour, commercial, tax, other) |
| Risk | Calculated: Probable, possible or remote |
| Claimed amount | Calculated: Claimed amount in case currency |
| Currency | Calculated: Case currency |
| Opening provision | ACDOCA-HSL |
| Calculated provision | Calculated: Best estimate by rule × period-end rate |
| Difference | Calculated: Calculated − opening (positive addition, negative release) |
| Document | BKPF-BELNR |
| Message | Calculated: Posting or check result |

## How does the program work?

1. The case register is kept in a custom table: case number, court file number, counterparty (business partner, customer or supplier number, or free text), subject, company code, claimed amount and currency, interest start, risk rating (probable, possible, remote), expected outcome date and responsible lawyer. Data is entered on screen or uploaded from the lawyer's report with Excel; every change is tracked with change documents.
2. In the period-end run the provision amount is calculated per case by rule: for cases rated 'probable', the best estimate (the claimed amount or the expected amount given by the lawyer, including interest and costs if any); no provision is made for 'possible' and 'remote' cases, they are only added to the notes list. Rates and the rule are set during installation according to the company's accounting policy.
3. Foreign currency cases are translated into local currency at the period-end rate (TCURR). For long-running cases discounting can be applied if required.
4. The calculated amount is compared with the provision balance posted for this case in the previous period (ACDOCA, BSEG in ECC); the difference is posted as an additional provision (expense / provision account) or a release (provision account / income). The posting is created with BAPI_ACC_DOCUMENT_POST and the case number is written to the assignment and text fields.
5. For closed cases (won, lost, settled) the provision is closed; where a payment is due, it is directed from the provision account to the payment posting.
6. The report gives per case the opening provision, additions, releases, use, exchange difference and closing provision.

## Authorization objects

- F_BKPF_BUK: Accounting posting by company code
- F_BKPF_KOA: Posting authorization for G/L account type

## Frequently asked questions

### Who is responsible for the provision rule?

Finance sets the rule according to the company's accounting policy and IAS 37; the program only applies it. The risk rating and best estimate come from the legal department or the external lawyer, and the program does not change them.

### Is the provision accepted for tax purposes?

The tax treatment of a litigation provision depends on current tax law and the nature of the case. If required, the program separates amounts to be treated as non-deductible on a separate account or field; this is checked with the tax advisor during installation.

### Can access to the case register be restricted?

Yes. Because case details are sensitive, the register screen is protected by its own transaction code and company code authorization; the accounting team sees only amount and risk, while the legal department sees the detailed descriptions.

---
Let us build this program for your system: https://nekuhub.com/en/request-a-quote/?report=fi-litigation-provision-tracking
