SAP Table

BKPF Accounting Document Header

SAP table BKPF, known as the "Accounting Document Header," plays a crucial role in the SAP Financial Accounting (FI) module. It stores the header data for financial accounting documents, serving as the primary record for the overarching information of each document. This includes essential fields such as the document number, company code, fiscal year, document date, posting date, and document type. Additionally, BKPF contains information on currency, reference numbers, and reversal status, providing a comprehensive overview that links to detailed line items stored in related tables like BSEG. By consolidating this high-level data, BKPF facilitates efficient management and retrieval of financial transactions within the SAP system.

SAP table BKPF, the "Accounting Document Header," is intrinsically linked to table BSEG, the "Accounting Document Segment." BKPF stores the header information of financial documents, encompassing general data such as document number, company code, fiscal year, and document date. In contrast, BSEG contains detailed line items or segments of these documents, capturing granular transaction data like account numbers, amounts, and specific transaction details. The relationship between BKPF and BSEG is hierarchical, where each entry in BKPF, identified by a unique document number, can correspond to multiple line items in BSEG. This structure allows for efficient organization and retrieval of financial document data, with BKPF providing the summary view and BSEG offering the detailed transactional perspective.

Linking accounting entries with subledgers and other record types in SAP

The fields AWKEY and AWTYP in SAP table BKPF play pivotal roles in linking accounting entries to other records within the SAP system. AWKEY, the "Reference Key," serves as a unique identifier that connects financial transactions in BKPF to corresponding records in other tables across different modules. AWTYP, the "Reference Transaction Type," specifies the type of transaction or document being referenced, further refining the linkage.

When a financial document involves transactions that need to be linked to other records, the combination of AWKEY and AWTYP fields is used to reference the specific documents in other tables. AWKEY provides the unique reference key, while AWTYP indicates the type of transaction or document, such as those related to asset accounting, material management, or other modules. This combination ensures that all financial postings related to various transactions are accurately tracked and easily retrievable for reporting and analysis. By leveraging AWKEY and AWTYP together, users can seamlessly integrate financial accounting data with other processes, providing a comprehensive and detailed view of an organization's financial activities and related records.

SAP table BKPF has 4 primary key fields being MANDT,BUKRS,BELNR,GJAHR.

If you are only analysing data from a single SAP instance you may omit field MANDT in your relationships as it will be the same across the entire dataset. On the other hand, if you are combining data from multiple SAP instances you need to take MANDT into account.

/ Fields

BKPF columns.

Field Description Data Type Length Decimals Checktable Data Element
KeyMANDT Client CLNT 3 0 T000 MANDT
KeyBUKRS Company Code CHAR 4 0 T001 BUKRS
KeyBELNR Document Number of an Accounting Document CHAR 10 0 BELNR_D
KeyGJAHR Fiscal Year NUMC 4 0 GJAHR
BLART Document Type CHAR 2 0 T003 BLART
BLDAT Document Date in Document DATS 8 0 BLDAT
BUDAT Posting Date in the Document DATS 8 0 BUDAT
MONAT Fiscal period NUMC 2 0 MONAT
CPUDT Day On Which Accounting Document Was Entered DATS 8 0 CPUDT
CPUTM Time of Entry TIMS 6 0 CPUTM
AEDAT Date of the Last Document Change by Transaction DATS 8 0 AEDAT_BKPF
UPDDT Date of the Last Document Update DATS 8 0 UPDDT
WWERT Translation date DATS 8 0 WWERT_D
USNAM User Name CHAR 12 0 USNAM
TCODE Transaction Code CHAR 20 0 TCODE
BVORG Number of Cross-Company Code Posting Transaction CHAR 16 0 BVORG
XBLNR Reference Document Number CHAR 16 0 XBLNR1
DBBLG Recurring Entry Document Number CHAR 10 0 DBBLG
DBBLG_GJAHR Recurring Entry Document Fiscal Year NUMC 4 0 DBBLG_GJAHR
DBBLG_BUKRS Recurring Entry Document Company Code CHAR 4 0 T001 DBBLG_BUKRS
STBLG Reverse Document Number CHAR 10 0 STBLG
STJAH Fiscal Year of Reversal Document NUMC 4 0 STJAH
BKTXT Document Header Text CHAR 25 0 BKTXT
WAERS Currency Key CUKY 5 0 TCURC WAERS
KURSF Exchange rate DEC 9 5 KURSF
KZWRS Currency Key for the Group Currency CUKY 5 0 TCURC KZWRS
KZKRS Group Currency Exchange Rate DEC 9 5 KZKRS
BSTAT Document Status CHAR 1 0 BSTAT_D
XNETB Indicator: Document posted net ? CHAR 1 0 XNETB
FRATH Unplanned delivery costs CURR 13 2 FRATH
XRUEB Indicator: Document Is Posted to a Previous Period CHAR 1 0 XRUEB
GLVOR Business Transaction CHAR 4 0 GLVOR
GRPID Batch Input Session Name CHAR 12 0 GRPID_BKPF
DOKID Document Name in the Archive System CHAR 40 0 DOKID_BKPF
ARCID Extract ID Document Header CHAR 10 0 EXTID_BKPF
IBLAR Internal Document Type for Document Control CHAR 2 0 IBLAR
AWTYP Reference procedure CHAR 5 0 AWTYP
AWKEY Reference Key CHAR 20 0 AWKEY
FIKRS Financial Management Area CHAR 4 0 FIKRS
HWAER Local Currency CUKY 5 0 HWAER
HWAE2 Currency Key of Second Local Currency CUKY 5 0 HWAE2
HWAE3 Currency Key of Third Local Currency CUKY 5 0 HWAE3
KURS2 Exchange Rate for the Second Local Currency DEC 9 5 KURS2
KURS3 Exchange Rate for the Third Local Currency DEC 9 5 KURS3
BASW2 Source Currency for Currency Translation CHAR 1 0 CURSR
BASW3 Source Currency for Currency Translation CHAR 1 0 CURSR
UMRD2 Translation Date Type for Second Local Currency CHAR 1 0 UMRD2
UMRD3 Translation Date Type for Third Local Currency CHAR 1 0 UMRD3
XSTOV Indicator: Document Is Flagged for Reversal CHAR 1 0 XSTOV
STODT Planned Date for the Reverse Posting DATS 8 0 STODT
XMWST Calculate Tax Automatically CHAR 1 0 XMWST
CURT2 Currency Type of Second Local Currency CHAR 2 0 CURT2
CURT3 Currency Type of Third Local Currency CHAR 2 0 CURT3
KUTY2 Exchange Rate Type CHAR 4 0 TCURV KURST
KUTY3 Exchange Rate Type CHAR 4 0 TCURV KURST
XSNET G/L Account Amounts Entered Exclude Tax CHAR 1 0 XSNET
AUSBK Source Company Code CHAR 4 0 T001 AUSBK
XUSVR TSP, Use, Sales Tax Entered on Detail Screen CHAR 1 0 XUSVR_BKPF
DUEFL Status of Data Transfer into Subsequent Release CHAR 1 0 DUEFL_BKPF
AWSYS Logical System CHAR 10 0 LOGSYSTEM
TXKRS Exchange Rate for Taxes DEC 9 5 TXKRS_BKPF
CTXKRS Rate for Tax Values in Reporting Currency DEC 9 5 CTXKRS
LOTKZ Lot Number for Requests CHAR 10 0 PSO_LOTKZ
XWVOF Indicator: Customer Bill of Exchange Payment Before Due Date CHAR 1 0 XWVOF
STGRD Reason for Reversal or Inverse Posting CHAR 2 0 T041C STGRD
PPNAM Name of User Who Parked This Document CHAR 12 0 PPNAM
PPDAT Day of Parking of Accounting Document DATS 8 0 PPDATE
PPTME Time of Parking TIMS 6 0 PPTME
PPTCOD Parking Transaction CHAR 20 0 PPTCOD
BRNCH Branch Number CHAR 4 0 PBUSINESSPLACE J_1ABRNCH
NUMPG Number of pages of invoice NUMC 3 0 J_1ANOPG
ADISC Indicator: entry represents a discount document CHAR 1 0 J_1ADISC
XREF1_HD Reference Key 1 Internal for Document Header CHAR 20 0 XREF1_HD
XREF2_HD Reference Key 2 Internal for Document Header CHAR 20 0 XREF2_HD
XREVERSAL Specifies Whether Document Is Reversal Doc. or Reversed Doc. CHAR 1 0 XREVERSAL
REINDAT Invoice Receipt Date DATS 8 0 REINDAT
RLDNR Ledger in General Ledger Accounting CHAR 2 0 FINSC_LD_CMP FINS_LEDGER
LDGRP Ledger Group CHAR 4 0 FAGL_TLDGRP FAGL_LDGRP
PROPMANO Real Estate Management Mandate CHAR 13 0 RE_MANDAT
XBLNR_ALT Alternative Reference Number CHAR 26 0 XBLNR_ALT
VATDATE Tax Reporting Date DATS 8 0 VATDATE
FULFILLDATE Tax Fulfillment Date DATS 8 0 FOT_FULFILLDATE
DOCCAT Classification of an FI Document CHAR 6 0 DOCUMENT_CATEGORY
XSPLIT FI Document Originates from Split Posting (Indicator) CHAR 1 0 SPLIT_POSTING
CASH_ALLOC Cash-Relevant Document CHAR 1 0 FAGL_CASH_ALLOC
FOLLOW_ON Follow-on document indicator CHAR 1 0 FAGL_FOLLOW_ON
XREORG Doc. Contains Open Item that Was Transferred During Reorg. CHAR 1 0 FAGL_R_XDOC_REORG
SUBSET Defines Subset of Components for the FI/CO Interface CHAR 4 0 ACC_SUBSET
KURST Exchange Rate Type CHAR 4 0 TCURV KURST
KURSX Market Data Exchange Rate DEC 28 14 GLE_FXR_DTE_RATEX28
KUR2X Market Data Exchange Rate 2 DEC 28 14 GLE_FXR_DTE_RATE2X28
KUR3X Market Data Exchange Rate 3 DEC 28 14 GLE_FXR_DTE_RATE3X28
XMCA Document Originates from Multi Currency Accounting CHAR 1 0 GLE_DTE_MCA_XMCA
RESUBMISSION Date of Resubmission DATS 8 0 FM_RESUBDAT
LOGSYSTEM_SENDER Logical System of the Sender CHAR 10 0 LOGSYSTEM_SENDER
BUKRS_SENDER Company Code in Sender System CHAR 4 0 BUKRS_SENDER
BELNR_SENDER Document Number of an Accounting Document in Sender System CHAR 10 0 BELNR_SENDER
GJAHR_SENDER Fiscal Year of an Accounting Document in the Sender System NUMC 4 0 GJAHR_SENDER
INTSUBID Internally Assigned SubID for AWKEY NUMC 6 0 INTSUBID
AWORG_REV Reversal: Reference Organizations of Document to Be Reversed CHAR 10 0 AWORG_REV
AWREF_REV Reversal: Reference Document No. of Document to Be Reversed CHAR 10 0 AWREF_REV
XREVERSING Identifier for reversal document CHAR 1 0 CO_STFLG
XREVERSED Indicator: Document was reversed CHAR 1 0 CO_STOKZ
GLBTGRP General Ledger Business Transaction Group CHAR 1 0 FINS_GLBTGRP
CO_VRGNG CO Business Transaction CHAR 4 0 CO_VORGANG
CO_REFBT Document Type of Reference Document CHAR 1 0 CO_REFBT
CO_ALEBN For ALE: CO Document Number in Generating System CHAR 10 0 CO_ALEBN
CO_VALDT Special Valuation Date for Cost Accounting DATS 8 0 CO_VALDT
CO_BELNR_SENDER CO Document Number of Controlling Document in Sender System CHAR 10 0 COBELNR_SENDER
KOKRS_SENDER Controlling Area in Sender System CHAR 4 0 KOKRS_SENDER
ACC_PRINCIPLE Accounting Principle CHAR 4 0 ACCOUNTING_PRINCIPLE
_DATAAGING Data Filter Value for Data Aging DATS 8 0 DATA_TEMPERATURE
TRAVA_PN Transfer Variant for Intercompany Asset Transfers CHAR 4 0 * TRANSVAR
LDGRPSPEC_PN Indicator: Document Was Entered LDGRP-Specific CHAR 1 0 XLDGRPSPEC
AFABESPEC_PN Indicator: Posting with Area Limitation CHAR 1 0 XAFABESPEC
XSECONDARY Secondary journal entry CHAR 1 0 FINS_SECONDARY_ENTRY
REPROCESSING_STATUS_CODE Reprocessing status code CHAR 1 0 FINS_REPROCESSING_STATUS_CODE
TRR_PARTIAL_IND Partial Processing Indicator CHAR 1 0 FINS_TRR_PARTIAL_IND
ITEM_REMOVAL_STATUS Journal Entry Item Removal Status CHAR 1 0 FINS_ITEM_REMOVAL_STATUS
PENRC Reason for Late Payment CHAR 2 0 PENRC
GLO_REF1_HD Country/Region Specific Reference 1 in the Document CHAR 80 0 FAC_GLO_REF1_HD
GLO_DAT1_HD Country/Region Specific Date 1 in the Document DATS 8 0 FAC_GLO_DAT1_HD
GLO_REF2_HD Country/Region Specific Reference 2 in the Document CHAR 25 0 FAC_GLO_REF2_HD
GLO_DAT2_HD Country/Region Specific Date 2 in the Document DATS 8 0 FAC_GLO_DAT2_HD
GLO_REF3_HD Country/Region Specific Reference 3 in the Document CHAR 25 0 FAC_GLO_REF3_HD
GLO_DAT3_HD Country/Region Specific Date 3 in the Document DATS 8 0 FAC_GLO_DAT3_HD
GLO_REF4_HD Country/Region Specific Reference 4 in the Document CHAR 50 0 FAC_GLO_REF4_HD
GLO_DAT4_HD Country/Region Specific Date 4 in the Document DATS 8 0 FAC_GLO_DAT4_HD
GLO_REF5_HD Country/Region Specific Reference 5 in the Document CHAR 50 0 FAC_GLO_REF5_HD
GLO_DAT5_HD Country/Region Specific Date 5 in the Document DATS 8 0 FAC_GLO_DAT5_HD
GLO_BP1_HD Country/Region specific Business Partner 1 in the Document CHAR 10 0 * FAC_GLO_BP1_HD
GLO_BP2_HD Country/Region Specific Business Partner 2 in the Document CHAR 10 0 * FAC_GLO_BP2_HD
EV_POSTNG_CTRL Control Posting of Entry View CHAR 1 0 FINS_ENTRY_VIEW_POSTNG_CONTROL
WHTDATE Withholding Tax Reporting Date DATS 8 0 WHTDATE
CBTTYPE Business Transaction Type CHAR 4 0 FINS_CUSTBTTYPE
CLOSINGSTEP Closing step NUMC 3 0 FINS_CLOSINGSTEP
ANXTYPE Invoice Type CHAR 1 0 /ILE/TMTYP
ANXAMNT Annexation Amount CURR 13 2 /ILE/TMANXA
ANXPERC Annexation Percentage DEC 6 3 /ILE/TMANXP
ZVAT_INDC VAT indicator contain run date of vat file DATS 8 0 /ILE/TVAT_INDC
/SAPF15/STATUS Document Status CHAR 1 0 /SAPF15/STATUS
PSOTY Document category payment requests CHAR 2 0 PSOTP PSOTY_D
PSOAK Reason CHAR 10 0 PSO12 PSOAK
PSOKS Region CHAR 10 0 * PSOKS
PSOSG Reason for reversal - IS-PS requests CHAR 1 0 PSOSG
PSOFN IS-PS: File number CHAR 30 0 PSOFN
INTFORM Interest Formula CHAR 4 0 FM_INTFORM
INTDATE Interest Calc. Date DATS 8 0 FM_INTDATE
PSOBT Posting Day DATS 8 0 PSOBT
PSOZL Actual posting CHAR 1 0 PSOZL
PSODT Last Changed On DATS 8 0 AEDAT
PSOTM Last changed at TIMS 6 0 PSOTM
FM_UMART Type of Payment Transfer CHAR 1 0 FM_UMART
CCINS Payment cards: Card type CHAR 4 0 TCRIN CCINS_30F
CCNUM Payment cards: Card number CHAR 25 0 CCNUM_30F
SSBLK Payment Statistical Sampling Block CHAR 1 0 SSBLK
BATCH Lot Number for Documents CHAR 10 0 LOTKZ
SNAME User Name CHAR 12 0 UNAME
SAMPLED Sampled Invoice by Payment Certification CHAR 1 0 SAMPLED
EXCLUDE_FLAG PPA Exclude Indicator CHAR 1 0 EXCLUDE_FLG
BLIND Budgetary Ledger Indicator CHAR 1 0 FM_BLIND
OFFSET_STATUS Treasury Offset Status CHAR 2 0 FMFG_OFFSET_STATUS
OFFSET_REFER_DAT Date Record Referred to Treasury DATS 8 0 FMFG_REFERRED_OFFSET_DAT
KNUMV Number of the Document Condition CHAR 10 0 KNUMV
BLO Document block CHAR 1 0 PFM_1BLO
CNT Contract number CHAR 10 0 PFM_1CNT
PYBASTYP Type of Payment Basis Document CHAR 2 0 SAFM_AP_PYBSTYP
PYBASNO Payment Basis Document Number CHAR 16 0 SAFM_AP_PYBSNO
PYBASDAT Payment Basis Document Date DATS 8 0 SAFM_AP_PYBSDAT
PYIBAN IBAN (International Bank Account Number) CHAR 34 0 IBAN
INWARDNO_HD Incoming Document Number CHAR 30 0 SAFM_AP_INWARD_NO
INWARDDT_HD Incoming Document Date DATS 8 0 SAFM_AP_INWARD_DT
/ Relationships

BKPF foreign keys.

Table Field Check Table Description Check Field
BKPF AUSBK T001 Company Codes BUKRS
BKPF BLART T003 Document Types MANDT
BKPF BRNCH PBUSINESSPLACE Generated Table for View BUKRS
BKPF BRNCH PBUSINESSPLACE Generated Table for View BRANCH
BKPF BUKRS T001 Company Codes BUKRS
BKPF CCINS TCRIN Payment Cards: Card Types MANDT
BKPF CCINS TCRIN Payment Cards: Card Types CCINS
BKPF DBBLG_BUKRS T001 Company Codes BUKRS
BKPF KURST TCURV Exchange rate types for currency translation MANDT
BKPF KURST TCURV Exchange rate types for currency translation KURST
BKPF KUTY2 TCURV Exchange rate types for currency translation MANDT
BKPF KUTY2 TCURV Exchange rate types for currency translation KURST
BKPF KUTY3 TCURV Exchange rate types for currency translation MANDT
BKPF KUTY3 TCURV Exchange rate types for currency translation KURST
BKPF KZWRS TCURC Currency Codes MANDT
BKPF KZWRS TCURC Currency Codes WAERS
BKPF LDGRP FAGL_TLDGRP Ledger Group LDGRP
BKPF MANDT T000 Clients MANDT
BKPF PSOAK PSO12 Deduction reasons MANDT
BKPF PSOAK PSO12 Deduction reasons PSOAK
BKPF RLDNR FINSC_LD_CMP CompCode-Dependent Settings for Univ. Journal Entry Ledger RLDNR
BKPF RLDNR FINSC_LD_CMP CompCode-Dependent Settings for Univ. Journal Entry Ledger BUKRS
BKPF STGRD T041C Reasons for Reverse Posting MANDT
BKPF STGRD T041C Reasons for Reverse Posting STGRD
BKPF WAERS TCURC Currency Codes MANDT
BKPF WAERS TCURC Currency Codes WAERS