Bank-Specific Salary Payment File Generation
Short answer: A program that reads net payment amounts from payroll results after the payroll run and produces the salary file in the format each bank requires. Payments are split by payment type (salary, advance, bonus, severance) and by the employee's bank; IBAN and total checks are performed, and the file is created together with a control 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?
PC00_M99_CDTA (PC00_M47_CDTA for Türkiye) runs the preliminary payment program and PC00_M99_FPAYM creates the payment medium; but the payment medium formats do not directly cover the banks' local salary file layouts, the split by payment type or a separate file per bank. Companies run separate Excel conversions per format. The program does this conversion inside SAP using a rule table.
Who uses it? Payroll specialists, finance and treasury teams, HR operations staff.
Closest standard alternatives
- PC00_M99_CDTA Bank Transfer Preliminary Program (DME, International). Preliminary payment program; does not produce bank-specific formats or separate files per payment type.
- PC00_M99_FPAYM Create Payment Medium. Creates files using payment medium formats; local salary file layouts require a separate format development.
Localization and legal basis
Türkiye · Turkish Revenue Administration (GİB)
Legal basis: Article 32 of Labour Law No. 4857 and the rules on paying wages through banks.
The file format is checked against each bank's current salary payment specification during installation; the file is sent through the banking channel the company uses.
Tables used
The tables the program reads and updates. ECC and S/4HANA differences are marked separately.
| Table | Role | Access | System |
|---|---|---|---|
| HRPY_RGDIRDirectory for Payroll Results | Payroll result directory: period, payment date, payment type (driving table) | Read | ECC + S/4 |
| PCL2HR Cluster 2 (PCL2) | Payroll cluster: BT payment details and RT net amount | Read | ECC + S/4 |
| PA0009HR Master Record: Infotype 0009 (Bank Details) | Employee bank details and IBAN | Read | ECC + S/4 |
| BNKABank Master Data | Bank name and branch | Read | ECC + S/4 |
| T012KHouse Bank Accounts | Company's paying bank account | Read | ECC + S/4 |
| REGUHPayment Program Settlement Data | Preliminary payment program result (if used) | Read | ECC + S/4 |
| PA0001HR Master Record: Infotype 0001 (Organizational Assignment) | Company code and payroll area | Read | ECC + S/4 |
S/4HANA notes
- T012K: In S/4HANA reads of T012K go through the compatibility view V_T012K_BAM; bank accounts are maintained in Bank Account Management (BAM).
BAPIs and functions used
- CU_READ_RGDIRRead Payroll Directory (Cluster CU). Reads the employee's payroll result directory
- PYXX_READ_PAYROLL_RESULTRead Payroll Result. Reads the payroll result (BT, RT)
- GUI_DOWNLOADDownload Internal Table to PC. Downloads the bank file to the user's computer
Selection screen parameters
| Parameter | Description | Type | Reference field | Required | Example |
|---|---|---|---|---|---|
| P_ABKRS | Payroll area | Single value | PA0001-ABKRS | Yes | T1 |
| P_PERIOD | Payroll period | Single value | — | Yes | 11.2026 |
| P_PAYDT | Payment date | Single value | HRPY_RGDIR-PAYDT | No | 28.11.2026 |
| S_PAYTY | Payment type (salary, advance, bonus, severance) | Range / multiple | HRPY_RGDIR-PAYTY | No | Maaş |
| P_HBKID | Paying house bank | Single value | T012K-HBKID | Yes | BNK01 |
| P_TEST | Test run (no file) | Checkbox | — | No | X |
Result list columns
| # | Column | Source |
|---|---|---|
| 1 | Personnel no. | HRPY_RGDIR-PERNR |
| 2 | Name | PA0001-ENAME |
| 3 | IBAN | PA0009-IBAN |
| 4 | Bank | BNKA-BANKA |
| 5 | Payment type | Calculated Salary, advance, bonus or severance |
| 6 | Net amount | Calculated Payment amount from the BT table |
| 7 | File | Calculated File name created per bank |
| 8 | Status | Calculated Added to file, IBAN error or test |
Sample result list
| Personnel no. | Name | IBAN | Bank | Payment type | Net amount | File | Status |
|---|---|---|---|---|---|---|---|
| 00002011 | Ayşe Korkmaz | TR33 0006 1005 1978 6457 8413 26 | Örnek Bank A.Ş. | Salary | 38,450.75 | MAAS_ORNEKBANK_202611.txt | Added to file |
| 00002018 | Mehmet Uçar | TR12 0001 0012 3456 7890 1234 56 | Demo Katılım Bankası | Salary | 42,110.20 | MAAS_DEMOKATILIM_202611.txt | Added to file |
| 00002025 | Zeynep Acar | TR45 0006 2000 0000 0000 01 | Örnek Bank A.Ş. | Salary | 29,875 | IBAN error | |
| 00002031 | Okan Yel | TR33 0006 1005 1978 6457 8499 01 | Örnek Bank A.Ş. | Bonus | 15,000 | IKR_ORNEKBANK_202611.txt | Added to file |
How does the program work?
- Payroll area, period and payment date are selected; valid payroll results are read from HRPY_RGDIR with CU_READ_RGDIR, and off-cycle runs are included according to the payment type.
- The net amount to pay is taken from the RT/BT tables in cluster PCL2 with PYXX_READ_PAYROLL_RESULT; the BT table gives bank details and amount per payment.
- Alternatively, if the preliminary payment program was run, amounts and payees are read from REGUH, which keeps the selection logic of the standard preliminary program.
- The employee’s IBAN and bank come from PA0009, bank name and branch from BNKA, and the company’s paying account from T012K. IBAN length and check digits are validated.
- A format rule table is selected per bank (field order, fixed length or delimiter, date and amount format, character set, header and total lines) and a separate file is produced for each bank.
- The file total is compared with the payroll net total; if they differ no file is created. The file is written to the server or downloaded with GUI_DOWNLOAD, and the control list is archived as PDF.
Performance notes
Read payroll results once per employee and process only the BT table. For thousands of employees, produce the file on the application server and run in the background.
Features
- Test mode (check without posting) Produces the control list without creating a file
- Line-by-line result and error log Every file is logged with user, time and total; regenerating for the same period gives a warning
- Download failed lines as a separate file Employees with invalid IBAN or missing bank data are listed separately
- Runs as a background job Can run in the background once payroll is closed
Authorization objects
- P_PCLXAuthorization to read the payroll result cluster (RELID RU/TR)
- P_ORGINAuthorization to read employee data by personnel area, employee group and infotype
- S_DATASETFile access authorization to write the file to the application server
Frequently asked questions
How long does it take to add a new bank?
If the bank's specification is known, a new set of rows is added to the format rule table; 0.5–1 day is enough for most banks. Banks that want a completely different structure (e.g. XML) add 1–2 days.
Should the standard preliminary payment program still be run?
It is recommended. If it runs, payment documents and postings stay standard and the program only produces the file format. Without it, the amounts are read directly from the payroll result.
Does it work on S/4HANA?
Yes. The payroll cluster, HRPY_RGDIR and the bank details infotype are the same on S/4HANA (H4S4); bank master data stays in BNKA.
Related reports
Payment Order Request, Approval and Bank Instruction Print Program
A custom program that builds payment requests from due vendor invoices, sends each request to one- or two-step approval by amount limits, removes the …
Employee Bank Details Changed Since Last Payroll Report
A custom ALV control report that lists employees whose bank details (infotype 0009) were created or changed after the last payroll run or within a …
Payroll Summary and Cover Summary Report (Row and Column Layouts)
A payroll summary report that shows wage type totals by company, work site, cost centre or employee group in flexible row and column layouts after the …
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.