{"audience":"General ledger and cost accounting teams, financial controllers and SAP FI/CO support teams.","authorization_objects":[{"note":"Document posting authorization by company code","object":"F_BKPF_BUK"},{"note":"Posting authorization by business area","object":"F_BKPF_GSB"},{"note":"Authorization to read cost center data","object":"K_CSKS"}],"components":[],"countries":[{"country":"TR","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.","note":"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."}],"effort_days_max":10,"effort_days_min":6,"effort_size":"M","faq":[{"a":"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.","q":"Is it also suitable for companies using 7/B?"},{"a":"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.","q":"Is the cost center kept in the reflection posting?"},{"a":"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.","q":"What changes on S/4HANA?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"From a row you can jump to the document created and the account balance."},{"code":"background","label":"Runs as a background job","note":"Can run as a scheduled job in the month-end closing calendar."}],"functions":[{"name":"BAPI_ACC_DOCUMENT_POST","role":"Posts the reflection and business area transfer entries"},{"name":"BAPI_ACC_DOCUMENT_REV_POST","role":"Reverses the period's reflection documents"}],"gap":"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.","id":"tr-cost-accounts-reflection-closing","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-18","logic":"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).\n2. Balances of the 7-group accounts for the selected period are read with cost center and business area from FAGLFLEXT (ACDOCA on S/4HANA).\n3. 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.\n4. 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.\n5. 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.\n6. With the reversal option, the period's reflection documents are reversed in bulk with BAPI_ACC_DOCUMENT_REV_POST.\n7. In test mode no document is posted; the prepared posting lines are shown.","module":"CO","object_type":"batch_job","output_columns":[{"calculated":false,"formula":"","label":"Cost account","source_field":"RACCT","source_table":"FAGLFLEXT"},{"calculated":false,"formula":"","label":"Account name","source_field":"TXT50","source_table":"SKAT"},{"calculated":false,"formula":"","label":"Cost center","source_field":"RCNTR","source_table":"FAGLFLEXT"},{"calculated":false,"formula":"","label":"Business area","source_field":"RBUSA","source_table":"FAGLFLEXT"},{"calculated":true,"formula":"Sum of HSLnn for the period","label":"Period cost","source_field":null,"source_table":null},{"calculated":true,"formula":"Reflection account from the mapping table","label":"Reflection account","source_field":null,"source_table":null},{"calculated":true,"formula":"Target account from the mapping table and cost center category","label":"Target account","source_field":null,"source_table":null},{"calculated":true,"formula":"Amount reflected in this run and earlier documents","label":"Reflected amount","source_field":null,"source_table":null},{"calculated":true,"formula":"Period cost − reflected amount","label":"Remaining difference","source_field":null,"source_table":null},{"calculated":true,"formula":"Accounting document created","label":"Document no.","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"parameter","label":"Company code","name":"P_BUKRS","ref_field":"BKPF-BUKRS","required":true},{"example":"2026","kind":"parameter","label":"Fiscal year","name":"P_GJAHR","ref_field":"BKPF-GJAHR","required":true},{"example":"10","kind":"parameter","label":"Period","name":"P_MONAT","ref_field":"BKPF-MONAT","required":true},{"example":"31.10.2026","kind":"parameter","label":"Posting date","name":"P_BUDAT","ref_field":"BKPF-BUDAT","required":true},{"example":"0001","kind":"select_option","label":"Business area","name":"S_GSBER","ref_field":"BSEG-GSBER","required":false},{"example":"","kind":"checkbox","label":"Reverse the period's reflection documents","name":"P_REV","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (check without posting)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"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.","process":"R2R","quote_url":"https://nekuhub.com/en/request-a-quote/?report=tr-cost-accounts-reflection-closing","related":["co-assessment-sender-receiver-statement","tr-cost-of-goods-manufactured-statement"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Allocates between cost centers; does not create the 7/A reflection and target account postings at G/L level.","tcode":"KSU5"},{"note":"Reflection postings can be entered manually; collecting balances, the business area transfer and the remaining difference check are manual.","tcode":"FB50"}],"summary":"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.","tables":[{"access":"read","join_on":"","role":"Period balances of the 7-group accounts: account, cost center, business area (driving table)","table":"FAGLFLEXT","variant":"both"},{"access":"read","join_on":"","role":"Universal journal used for balances on S/4HANA","table":"ACDOCA","variant":"both"},{"access":"read","join_on":"CSKS-KOSTL = FAGLFLEXT-RCNTR","role":"Cost center category and business area (for target account and transfer)","table":"CSKS","variant":"both"},{"access":"read","join_on":"SKA1-SAKNR = FAGLFLEXT-RACCT","role":"7-group, reflection and target accounts in the chart of accounts","table":"SKA1","variant":"both"},{"access":"read","join_on":"SKAT-SAKNR = SKA1-SAKNR AND SKAT-KTOPL = SKA1-KTOPL","role":"Account names","table":"SKAT","variant":"both"},{"access":"write","join_on":"","role":"Header of the reflection document created","table":"BKPF","variant":"both"},{"access":"write","join_on":"BSEG-BELNR = BKPF-BELNR","role":"Reflection, target account and business area transfer lines","table":"BSEG","variant":"both"}],"title":"Month-End Closing of Turkish 7/A Cost Accounts via Reflection Accounts","url":"https://nekuhub.com/en/programs/turkey-7a-cost-accounts-month-end-reflection-closing/","vendor_id":"nekudos"}