KOKS SAP (Historical balance audit trail: Subledger accts master rec.) Structure details
Description: Historical balance audit trail: Subledger accts master rec.
Structure field list including key, data, relationships and ABAP select examples
KOKS is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Historical balance audit trail: Subledger accts master rec." Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_KOKS TYPE KOKS.
The KOKS table consists of various fields, each holding specific information or linking keys about Historical balance audit trail: Subledger accts master rec. data available in SAP. These include KOART (Account Type), BUKRS (Company Code), KONTO (Customer Numbers), EMPFG (Payee code).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
SAP KOKS structure fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
KOART | Account Type | KOART | CHAR | 1 | KOART | ||||
BUKRS | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
KONTO | Customer Numbers | KUNNR | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | KUN | C_KUNNR |
EMPFG | Payee code | EMPFG | CHAR | 16 | EMPFG | ||||
SAART | Record Type for Accumulated Balance Audit Trail | SAART | CHAR | 1 | CHAR1 | ||||
ALTKZ | Full audit trail:ID:Altern.acct no. filled with credit acct | ALTKZ | CHAR | 1 | XFELD | ||||
ALTKT | Account Number in Group | ALTKT | CHAR | 10 | ALPHA | ALTKT | |||
ANRED | Title | ANRED | CHAR | 15 | TEXT15 | ||||
NAME1 | Name | NAME1 | CHAR | 30 | TEXT30 | ||||
NAME2 | Name 2 | NAME2 | CHAR | 30 | TEXT30 | ||||
PSTLZ | Postal Code | PSTLZ | CHAR | 10 | PSTLZ | ||||
ORT01 | City | ORT01 | CHAR | 25 | TEXT25 | ||||
LAND1 | Country Key | LAND1 | CHAR | 3 | Assigned to domain | LAND1 | LND | ||
STRAS | House number and street | STRAS | CHAR | 30 | TEXT30 | ||||
PFACH | PO Box | PFACH | CHAR | 10 | PFACH | ||||
PSTL2 | P.O. Box Postal Code | PSTL2 | CHAR | 10 | PSTLZ | ||||
ORT02 | District | ORT02 | CHAR | 25 | TEXT25 | ||||
REGIO | STATE (State, Province, County) | REGIO | CHAR | 3 | Assigned to domain | REGIO | |||
COUNC | County Code | COUNC | CHAR | 3 | Assigned to domain | COUNC | |||
CITYC | City Code | CITYC | CHAR | 4 | Assigned to domain | CITYC | |||
XCPDK | Indicator: Is the account a one-time account? | XCPDK | CHAR | 1 | XFELD | ||||
XZEMP | Indicator: Alternative payee in document allowed ? | XZEMP | CHAR | 1 | XFELD | ||||
BLNKZ | Subsidy indicator for determining the reduction rates | BLNKZ | CHAR | 2 | Assigned to domain | BLNKZ | |||
KTOKS | G/L Account Group | KTOKS | CHAR | 4 | Assigned to domain | KTOKS | |||
KTOKK | Vendor account group | KTOKK | CHAR | 4 | Assigned to domain | KTOKK | KGK | ||
KTOKD | Customer Account Group | KTOKD | CHAR | 4 | Assigned to domain | KTOKD | KGD | ||
BANKN | Bank account number | BANKN | CHAR | 18 | BANKN | ||||
BANKL | Bank Keys | BANKK | CHAR | 15 | BANKK | BNK | |||
BANKS | Bank country key | BANKS | CHAR | 3 | Assigned to domain | LAND1 | BKL | ||
BANKA | Name of bank | BANKA | CHAR | 60 | TEXT60 | ||||
PSKTO | Account Number of Bank Account At Post Office | PSKTO | CHAR | 16 | PSKTO | ||||
BKONT | Bank Control Key | BKONT | CHAR | 2 | BKONT | ||||
BANKP | Check Digit for Bank No./Account | BANKP | CHAR | 2 | BANKP | ||||
SWIFT | SWIFT/BIC for International Payments | SWIFT | CHAR | 11 | SWIFT | ||||
KNRZA | Account number of an alternative payer | KNRZA | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | ||
BRSCH | Industry key | BRSCH | CHAR | 4 | Assigned to domain | BRSCH | |||
KONZS | Group key | KONZS | CHAR | 10 | KONZS | ||||
KDNRE | Head office account number (in branch accounts) | KNRZE | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | ||
TELF1 | First telephone number | TELF1 | CHAR | 16 | TEXT16 | ||||
TELX1 | Telex number | TELX1 | CHAR | 30 | TEXT30 | ||||
TELFX | Fax Number | TELFX | CHAR | 31 | TEXT31 | ||||
TELTX | Teletex number | TELTX | CHAR | 30 | TEXT30 | ||||
DATLT | Data communication line no. | DATLT | CHAR | 14 | TEXT14 | ||||
TELBX | Telebox number | TELBX | CHAR | 15 | TEXT15 | ||||
SORTL | Sort field | SORTL | CHAR | 10 | CHAR10 | ||||
WAERS | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
SPRAS | Language Key | SPRAS | LANG | 1 | Assigned to domain | ISOLA | SPRAS | SPR | H_T002 |
LIFNR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
KUNNR | Customer Numbers | KUNNR | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | KUN | C_KUNNR |
KLIMG | Credit limit: Total limit across all control areas | KLIMG | CURR | 15(2) | WERT8 | ||||
BBBNR | International location number (part 1) | BBBNR | NUMC | 7 | NUM07 | ||||
BBSNR | International location number (Part 2) | BBSNR | NUMC | 5 | NUM05 | ||||
BUBKZ | Check digit for the international location number | BUBKZ | NUMC | 1 | NUM01 | ||||
STCD1 | Tax Number 1 | STCD1 | CHAR | 16 | STCD1 | ||||
STCD2 | Tax Number 2 | STCD2 | CHAR | 11 | STCD2 | ||||
FISKN | Account number of the master record with the fiscal address | FISKN_D | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | ||
STKZU | Liable for VAT | STKZU | CHAR | 1 | XFELD | ||||
STKZA | Indicator: Business Partner Subject to Equalization Tax? | STKZA | CHAR | 1 | STKZA | ||||
ESRNR | ISR Subscriber Number | ESRNR | CHAR | 11 | ESRNR | ||||
AKONT | Reconciliation Account in General Ledger | AKONT | CHAR | 10 | Assigned to domain | ALPHA | SAKNR | ||
BEGRU | Authorization Group | BEGRU | CHAR | 4 | BEGRU | ||||
EIKTO | Shipper's (Our) Account Number at the Customer or Vendor | EIKTO | CHAR | 12 | CHAR12 | ||||
ERNAM | Name of Person who Created the Object | ERNAM | CHAR | 12 | USNAM | ||||
ZUAWA | Key for sorting according to assignment numbers | DZUAWA | CHAR | 3 | Assigned to domain | ZUAWA | |||
ZWELS | List of the Payment Methods to be Considered | DZWELS | CHAR | 10 | ZWELS | ||||
ZAMIM | Indicator: Payment notice to customer (with cleared items)? | DZAMIM | CHAR | 1 | XFELD | ||||
ZTERM | Terms of Payment Key | DZTERM | CHAR | 4 | ZTERM | ||||
ZAHLS | Block Key for Payment | DZAHLS | CHAR | 1 | Assigned to domain | ZAHLS | |||
MAHNS | Dunning level | MAHNS_D | NUMC | 1 | MAHNS | ||||
KLIMK | Customer's credit limit | KLIMK | CURR | 15(2) | WERT8 | ||||
VZSKZ | Interest calculation indicator | VZSKZ | CHAR | 2 | Assigned to domain | VZSKZ | |||
ZINDT | Key date of the last interest calculation | DZINDT | DATS | 8 | DATUM | ||||
ZINRT | Interest calculation frequency in months | DZINRT | NUMC | 2 | ZINRT | ||||
DATLZ | Date of the last interest calculation run | DATLZ | DATS | 8 | DATUM | ||||
VBUND | Company ID of trading partner | RASSC | CHAR | 6 | Assigned to domain | ALPHA | RCOMP | PGS | |
BUSAB | Accounting clerk | BUSAB | CHAR | 2 | Assigned to domain | BUSAB | |||
KNRZE | Head office account number (in branch accounts) | KNRZE | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | ||
PERRN | Period Indicator | PERKZ | CHAR | 1 | PERKZ | PKZ | |||
WAKON | Terms of payment key for bill of exchange charges | WAKON | CHAR | 4 | ZTERM | ||||
MSCHL | Dunning key | MSCHL | CHAR | 1 | Assigned to domain | MSCHL | |||
WEBTR | Bill of exchange limit (in local currency) | WEBTR | CURR | 13(2) | WERT7 | ||||
REMIT | Next payee | REMIT | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | ||
FDGRV | Planning group | FDGRV | CHAR | 10 | Assigned to domain | ALPHA | FDGRP | ||
QSZNR | Certificate Number of the Withholding Tax Exemption | QSZNR | CHAR | 10 | CHAR10 | ||||
QSZDT | Validity Date for Withholding Tax Exemption Certificate | QSZDT | DATS | 8 | DATUM | ||||
VRSNR | Insurance number | VRSNR | CHAR | 10 | CHAR10 | ||||
REPRF | Check Flag for Double Invoices or Credit Memos | REPRF | CHAR | 1 | XFELD | ||||
DTAWS | Instruction key for data medium exchange | DTAWS | CHAR | 2 | Assigned to domain | DTAWS | |||
DTAMS | Indicator for Data Medium Exchange | DTAMS | CHAR | 1 | DTAMS |
Key field | Non-key field |
How do I retrieve data from SAP structure KOKS using ABAP code?
As KOKS is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on KOKS as there is no data to select.How to access SAP table KOKS
Within an ECC or HANA version of SAP you can also view further information about KOKS and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects