FI Program Custom development Background program

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

Short answer: 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.

Estimated effort
M · 10–15 working days
System
ECC and S/4HANA
Tables
8
Scope
Global
Built by
NeKuDos Teknoloji
Last updated

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.

Who uses it? General ledger and closing teams, the legal department, finance managers and the contacts for the external auditors.

Closest standard alternatives

  • FB50 G/L Account Posting (Single Screen). The provision is posted by hand; there is no case register or calculation.
  • FBL3N G/L Account Line Items. Lists provision account items by assignment; does not prepare the movement schedule.

Tables used

The tables the program reads and updates. ECC and S/4HANA differences are marked separately.

TableRoleAccessSystem
ACDOCAUniversal Journal Entry Line ItemsBalance per case on provision accounts (S/4HANA)ReadS/4HANA only
BSEGAccounting Document SegmentBalance per case on provision accounts (ECC)ReadECC only
BKPFAccounting Document HeaderHeader of the provision document createdWriteECC + S/4
SKB1G/L Account Master (Company Code)Company code settings of provision, expense and income accountsReadECC + S/4
TCURRExchange RatesPeriod-end exchange rate for foreign currency casesReadECC + S/4
BUT000Business Partner: General DataCounterparty business partner nameReadECC + S/4
T001Company CodesCompany code local currencyReadECC + S/4
CDHDRChange Document HeaderTracking of changes to the case registerWriteECC + S/4

BAPIs and functions used

  • BAPI_ACC_DOCUMENT_POSTAccounting: Post Document. Posts the additional provision and the release
  • BAPI_ACC_DOCUMENT_CHECKAccounting: Check Document. Checks the posting in a test run
  • BAPI_ACC_DOCUMENT_REV_POSTAccounting: Post Reversal. Reverses an incorrect provision posting
  • READ_EXCHANGE_RATEDetermine Exchange Rate from Table TCURR. Reads the period-end exchange rate
  • TEXT_CONVERT_XLS_TO_SAPConvert Excel File to SAP Format. Uploads case data from the lawyer's report

Selection screen parameters

ParameterDescriptionTypeReference fieldRequiredExample
P_BUKRSCompany codeSingle valueBKPF-BUKRSYes1000
P_GJAHRFiscal yearSingle valueBKPF-GJAHRYes2026
P_MONATPeriodSingle valueBKPF-MONATYes12
P_BUDATPosting dateSingle valueBKPF-BUDATYes31.12.2026
P_BLARTDocument typeSingle valueBKPF-BLARTNoSA
P_TESTTest run (no posting)Checkbox—NoX

Result list columns

#ColumnSource
1Case no.Calculated Number in the case register
2CounterpartyBUT000-NAME_ORG1
3SubjectCalculated Case subject (labour, commercial, tax, other)
4RiskCalculated Probable, possible or remote
5Claimed amountCalculated Claimed amount in case currency
6CurrencyCalculated Case currency
7Opening provisionACDOCA-HSL
8Calculated provisionCalculated Best estimate by rule × period-end rate
9DifferenceCalculated Calculated − opening (positive addition, negative release)
10DocumentBKPF-BELNR
11MessageCalculated Posting or check result

Sample result list

Case no.CounterpartySubjectRiskClaimed amountCurrencyOpening provisionCalculated provisionDifferenceDocumentMessage
DV-2025-014Örnek Lojistik A.Ş.CommercialProbable850,000TRY600,000850,000250,000100004512Additional provision posted
DV-2025-022Demo Trading GmbHCommercialProbable120,000EUR5,160,0005,640,000480,000100004513Additional provision including exchange difference
DV-2026-003Former employee (free text)LabourPossible240,000TRY180,0000-180,000100004514Risk lowered, provision released
DV-2026-009Anadolu İnşaat Ltd.CommercialRemote1,500,000TRY000Notes list only
A view built with fictional sample data; not real system data.

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.

Performance notes

Sum the previous period's provision balance once from ACDOCA for the provision accounts grouped by assignment, not separately per case. Creating one document per company code with one line per case instead of one document per case speeds up the close.

Features

  • Test mode (check without posting) Calculated provisions and differences are shown without posting.
  • Runs as a background job
  • Line-by-line result and error log
  • Export to Excel The lawyer's report is uploaded with Excel; the movement schedule is exported to Excel.
  • ALV list (sort, filter, subtotals)

Authorization objects

  • F_BKPF_BUKAccounting posting by company code
  • F_BKPF_KOAPosting 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.

Related reports

FI Program Custom Mass upload

Mass G/L Journal Entry Upload from Excel

A custom program that posts multi-line G/L documents (accruals, reclassifications, allocation entries) in bulk from Excel or CSV rows. It checks every …

BKPF · BSEG · SKB1 · CSKS

Let us build this program for your system

Briefly describe your system and expectations. We will clarify the scope and come back with an effort and price quote.

Related report: Legal Case Register and Litigation Provision Calculation and Posting Program (IAS 37)