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

> 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.

- Type: Program, Custom development, Background program
- Module: CO
- Estimated effort: M (6–10 working days)
- Localization: TR
- Last updated: 2026-11-18
- URL: https://nekuhub.com/en/programs/turkey-7a-cost-accounts-month-end-reflection-closing/


## Localization and legal basis: Türkiye

- Legal basis: The Turkish Uniform Chart of Accounts and its 7/A cost account option, set by the General Communiqués on the Accounting System.
- The mapping of reflection and closing accounts is defined for the company's chart of accounts during installation and checked together with the financial advisor.

## 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.

### Closest standard alternatives

- KSU5: Allocates between cost centers; does not create the 7/A reflection and target account postings at G/L level.
- FB50: Reflection postings can be entered manually; collecting balances, the business area transfer and the remaining difference check are manual.

## Tables used

| Table | Role | Access | Join | System |
|---|---|---|---|---|
| FAGLFLEXT | Period balances of the 7-group accounts: account, cost center, business area (driving table) | Read | - | ECC + S/4 |
| ACDOCA | Universal journal used for balances on S/4HANA | Read | - | ECC + S/4 |
| CSKS | Cost center category and business area (for target account and transfer) | Read | CSKS-KOSTL = FAGLFLEXT-RCNTR | ECC + S/4 |
| SKA1 | 7-group, reflection and target accounts in the chart of accounts | Read | SKA1-SAKNR = FAGLFLEXT-RACCT | ECC + S/4 |
| SKAT | Account names | Read | SKAT-SAKNR = SKA1-SAKNR AND SKAT-KTOPL = SKA1-KTOPL | ECC + S/4 |
| BKPF | Header of the reflection document created | Write | - | ECC + S/4 |
| BSEG | Reflection, target account and business area transfer lines | Write | BSEG-BELNR = BKPF-BELNR | ECC + S/4 |

## BAPIs and functions used

- BAPI_ACC_DOCUMENT_POST: Posts the reflection and business area transfer entries
- BAPI_ACC_DOCUMENT_REV_POST: Reverses the period's reflection documents

## 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 |
| S_GSBER | Business area | Range / multiple | BSEG-GSBER | No |
| P_REV | Reverse the period's reflection documents | Checkbox | - | No |
| P_TEST | Test mode (check without posting) | Checkbox | - | No |

## Result list columns

| Column | Source |
|---|---|
| Cost account | FAGLFLEXT-RACCT |
| Account name | SKAT-TXT50 |
| Cost center | FAGLFLEXT-RCNTR |
| Business area | FAGLFLEXT-RBUSA |
| Period cost | Calculated: Sum of HSLnn for the period |
| Reflection account | Calculated: Reflection account from the mapping table |
| Target account | Calculated: Target account from the mapping table and cost center category |
| Reflected amount | Calculated: Amount reflected in this run and earlier documents |
| Remaining difference | Calculated: Period cost − reflected amount |
| Document no. | Calculated: Accounting document created |

## 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.

## Authorization objects

- F_BKPF_BUK: Document posting authorization by company code
- F_BKPF_GSB: Posting authorization by business area
- K_CSKS: Authorization 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.

---
Let us build this program for your system: https://nekuhub.com/en/request-a-quote/?report=tr-cost-accounts-reflection-closing
