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're only analyzing data from a single SAP instance you may omit field MANT in your relationships as it will we the same across the entire dataset. On the other hand, if you're combining data from multiple SAP instances you need to take MANDT into account.

Field Description Data Type Length Decimals Checktable Data Element
MANDT Client CLNT 3 0 T000 MANDT
BUKRS Company Code CHAR 4 0 T001 BUKRS
BELNR Document Number of an Accounting Document CHAR 10 0 BELNR_D
GJAHR 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
1 Translation taking transaction currency as a basis
2 Translation taking first local currency as a basis
BASW3 Source Currency for Currency Translation CHAR 1 0 CURSR
1 Translation taking transaction currency as a basis
2 Translation taking first local currency as a basis
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
Not transferred yet
A Transfer taken place, document changed later
X Transfer taken place, document unchanged
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
Unknown (Old Document from Release <4.70/R/3 Enterprise)
1 Reversed Document
2 Reversal Document
3 Inversed Document
4 Inverse Posting Document
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
DPC_MM Down Payment Clearing from Module MM
DPC_SD Down Payment Clearing from Module SD
FMPEB1 Transfer Posting PEO
INVREC Invoice Receipt
INVRED Invoice Reduction
PURACC Purchase Account Processing
RET Retention
REVAL Revaluation
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
X Follow-on document for Zero-balance lines
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
All Components
ACCR SAP S/4HANA: Post/Adjustment
ACLS SAP S4/HANA: Journal Entry, Post, Ledger Group Specific
ACRP SAP S4/HANA: Journal Entry, Subsequent Posting
BL Budgetary Ledger (Old)
BLC0 Budgetary Ledger Core (FI and FI-SL)
BLCL BL Closing
CFIN Central Finance (Replicated Posting)
COFI Online Reconciliation CO -> FI
COGS Splitting the Costs of Sales
F001 FI-CA: Account Assignment Data
F002 FI-CA: FI-CA Totals Records
F003 FI-CA: Totals Records Originating from SD Billing Document
F004 FI-CA Transfer (Distributed Systems)
F005 FI-CA Transfer (Distributed Systems) Invoicing
FAR1 Revenue Accounting Account Assignment Check
FCI1 FI-CA: SD Billing Documents, Transfer to FI-CA-INV
FCI2 FI-CA: SD Billing Documents, Processing in FI-CA-INV
FMAD Average Daily Balances
FMC2 FM Reassignment (Park with Chain)
FMCH FM Reassignment
G001 GL: Parallel Reporting with SL
GAL1 ALE for FlexGL + SL (for Customer Modification)
GALE FlexGL ALE Scenario for FI Documents
GLAL Integrative FlexGL Allocation
GLAN FlexGL Allocation Integrative, Non-Leading Ledger
GLBS Simulate General Ledger View
GLFC Foreign Currency Valuation
GLPA GL in ERP: Parallel Financial Reporting
GLYC Year End Closing Postings (Component FI + GL)
GLYO Fiscal Opening Entry
GMRE Grants Management: Reconstruction
GPE0 FlexGL: Post in Period 0
JVJV Joint Venture Accounting (Equity Change and Suspense)
KUJE Ledger-Specific CO Postings
NOFM EA-PS: Exclude FM Update
OASV FI_AA Legacy Data Transfer (S2I)
PRED Predictive Accounting
PSL1 Comb. PA: Subsequently Post SD/MM with FI
R001 IS-U/T: SD Billing Documents, Transfer to FI-CA
R002 IS-U/T: SD Billing Documents, Transfer to IS-U
REEP REFX: Leasing: Exclude AA Components
R_FM FlexGL: Reorganization (FI-AA): Exclude FM Components
STAT Statistical / Estimated Costs
UJES Universal Journal Entry: Posting to Simulation Ledger
W001 FI-CA Transfer for Settlement Management (LO-AB)
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
1 Controlling
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
1 Invalid after Correction
2 Reverses Document after Correction
3 Valid after Correction
4 Temporary Posting
5 Reverses Temporary Posting
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
No item has been removed
D Items removed by deferred summarization
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
unchanged
1 leave out
2 maximum compression
3 leave out if possible otherwise maximum compression
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
1 Deferral reversed
2 Short-Term Waiver
3 Remission
4 Deferral -> can be archived
5 Temporary waiver -> can be archived
6 New Document from Deferral Reversal
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
E Reimbursement Document
R Returns Clearing
T Partial Payment for Invoice
U Transfer Posting Document
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
Sampling process is not applied
B Invoice is batched for Statistical Sampling process
P Invoice is passed by Statistical Sampling process
R Invoice is rejected by Statistical Sampling process
X Invoice is blocked for Statistical Sampling process
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
Document contains no BL lines
C Document is created by correction program
M Document manually linked to other document
P Document contains some BL lines
X Document contains only BL lines
OFFSET_STATUS Treasury Offset Status CHAR 2 0 FMFG_OFFSET_STATUS
01 Eligible for Offset
02 Eligible for Offset, Under Investigation
03 Referred to Treasury, Uncollected
04 Referred to Treasury, Collected
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

BKPF foreign key relationships

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