CO Program Custom development Background program TR · Türkiye

Month-End Closing of Turkish 7/A Cost Accounts via Reflection Accounts

Short answer: A custom closing program for companies using the 7/A option of the Turkish Uniform Chart of Accounts: it reads the month-end balances of the 7-group cost accounts by cost center and business area and closes them through the reflection accounts to the target accounts in groups 15, 6 and 7. Transfers between business areas are posted in the same run, and the documents created and the 7-group trial balance check are shown in one list.

Estimated effort
M · 6–10 working days
System
ECC and S/4HANA
Tables
7
Scope
TR
Built by
NeKuDos Teknoloji
Last updated

Why is the standard not enough?

In SAP, assessment and distribution cycles (KSU5, KSV5) move costs between cost centers but do not create the G/L postings of the Turkish 7/A logic to the reflection accounts (for example 711, 761, 771) and the target accounts (151, 631, 632, 660). These postings are entered manually every month with FB50 or as mass postings prepared in Excel; the business area transfer and the check that the 7 group nets to zero after reflection are done separately.

Who uses it? General ledger and cost accounting teams, financial controllers and SAP FI/CO support teams.

Closest standard alternatives

  • KSU5 Execute Actual Assessment. Allocates between cost centers; does not create the 7/A reflection and target account postings at G/L level.
  • FB50 G/L Account Posting (Single Screen). Reflection postings can be entered manually; collecting balances, the business area transfer and the remaining difference check are manual.

Localization and legal basis

Tables used

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

TableRoleAccessSystem
FAGLFLEXTNew General Ledger: TotalsPeriod balances of the 7-group accounts: account, cost center, business area (driving table)ReadECC + S/4
ACDOCAUniversal Journal Entry Line ItemsUniversal journal used for balances on S/4HANAReadECC + S/4
CSKSCost Center Master RecordCost center category and business area (for target account and transfer)ReadECC + S/4
SKA1G/L Account Master (Chart of Accounts)7-group, reflection and target accounts in the chart of accountsReadECC + S/4
SKATG/L Account DescriptionsAccount namesReadECC + S/4
BKPFAccounting Document HeaderHeader of the reflection document createdWriteECC + S/4
BSEGAccounting Document SegmentReflection, target account and business area transfer linesWriteECC + S/4

S/4HANA notes

  • FAGLFLEXT → ACDOCA: In S/4HANA totals tables are no longer updated separately; FAGLFLEXT is read as a compatibility view that aggregates ACDOCA line items.

BAPIs and functions used

  • BAPI_ACC_DOCUMENT_POSTAccounting: Post Document. Posts the reflection and business area transfer entries
  • BAPI_ACC_DOCUMENT_REV_POSTAccounting: Post Reversal. Reverses the period's reflection documents

Selection screen parameters

ParameterDescriptionTypeReference fieldRequiredExample
P_BUKRSCompany codeSingle valueBKPF-BUKRSYes1000
P_GJAHRFiscal yearSingle valueBKPF-GJAHRYes2026
P_MONATPeriodSingle valueBKPF-MONATYes10
P_BUDATPosting dateSingle valueBKPF-BUDATYes31.10.2026
S_GSBERBusiness areaRange / multipleBSEG-GSBERNo0001
P_REVReverse the period's reflection documentsCheckbox—No—
P_TESTTest mode (check without posting)Checkbox—NoX

Result list columns

#ColumnSource
1Cost accountFAGLFLEXT-RACCT
2Account nameSKAT-TXT50
3Cost centerFAGLFLEXT-RCNTR
4Business areaFAGLFLEXT-RBUSA
5Period costCalculated Sum of HSLnn for the period
6Reflection accountCalculated Reflection account from the mapping table
7Target accountCalculated Target account from the mapping table and cost center category
8Reflected amountCalculated Amount reflected in this run and earlier documents
9Remaining differenceCalculated Period cost − reflected amount
10Document no.Calculated Accounting document created

Sample result list

Cost accountAccount nameCost centerBusiness areaPeriod costReflection accountTarget accountReflected amountRemaining differenceDocument no.
7300001Production Overhead - EnergyPRD-2100001412,80073100011510001412,8000100004521
7600002Marketing, Selling, Distribution - FreightSAT-110000286,4507610001631000186,4500100004522
7700004General Administration - ConsultingYON-010000154,20077100016320001054,200
A view built with fictional sample data; not real system data.

How does the program work?

  1. A mapping table defines the reflection account and target account for each 7-group cost account: direct materials (710 → 711 → 151), direct labour (720 → 721 → 151), production overhead (730 → 731 → 151), marketing, selling and distribution (760 → 761 → 631), general administration (770 → 771 → 632), finance (780 → 781 → 660) and so on. The target account can differ by cost center category (CSKS-KOSAR).
  2. Balances of the 7-group accounts for the selected period are read with cost center and business area from FAGLFLEXT (ACDOCA on S/4HANA).
  3. A reflection posting is prepared for each balance: debit the target account, credit the reflection account. If the cost center’s business area differs from the company’s closing business area, a business area transfer line is added.
  4. Postings are made with BAPI_ACC_DOCUMENT_POST using a dedicated document type; the document header carries the period and run information. If the same period is run again, the earlier documents are found and a warning is shown.
  5. The check list shows cost, reflection and remaining difference for each 7-group account pair; a row is flagged if the difference is not zero.
  6. With the reversal option, the period’s reflection documents are reversed in bulk with BAPI_ACC_DOCUMENT_REV_POST.
  7. In test mode no document is posted; the prepared posting lines are shown.

Performance notes

Read balances by aggregating FAGLFLEXT or ACDOCA by period, company code and the 7-group account range rather than line items. Package postings as one document per business area, so a few documents are created even with hundreds of cost centers.

Features

  • ALV list (sort, filter, subtotals)
  • Test mode (check without posting)
  • Line-by-line result and error log
  • Double-click drill-down to the document From a row you can jump to the document created and the account balance.
  • Runs as a background job Can run as a scheduled job in the month-end closing calendar.

Authorization objects

  • F_BKPF_BUKDocument posting authorization by company code
  • F_BKPF_GSBPosting authorization by business area
  • K_CSKSAuthorization to read cost center data

Frequently asked questions

Is it also suitable for companies using 7/B?

No. Under the 7/B option expenses are tracked by nature and the reflection logic differs. The program is designed for 7/A; closing postings for 7/B need a separate mapping.

Is the cost center kept in the reflection posting?

If the target account is not a cost element the cost center is not carried to the posting; business area and profit center are kept. This way costs are not counted twice in CO.

What changes on S/4HANA?

Balances are read from ACDOCA instead of FAGLFLEXT. Since cost elements are G/L accounts on S/4HANA, the G/L account type of the reflection accounts (not a primary cost element) is checked during installation.

Related reports

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: Month-End Closing of Turkish 7/A Cost Accounts via Reflection Accounts