BAPILFHEADO SAP (Communication structure: Header data, vendor billing doc.) Structure details

Dictionary Type: Structure
Description: Communication structure: Header data, vendor billing doc.




ABAP Code to SELECT data from BAPILFHEADO
Related tables to BAPILFHEADO
Access table BAPILFHEADO




Structure field list including key, data, relationships and ABAP select examples

BAPILFHEADO 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 "Communication structure: Header data, vendor billing doc." 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_BAPILFHEADO TYPE BAPILFHEADO.

The BAPILFHEADO table consists of various fields, each holding specific information or linking keys about Communication structure: Header data, vendor billing doc. data available in SAP. These include BILL_TYPE (Agency business: Billing document type), BILL_DATE (Agency business: Posting date), DIFF_INV (Different Invoicing Party), PURCH_ORG (Purchasing Organization).. 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: Can be enhanced (character-type or numeric)


SAP BAPILFHEADO 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
DOCUMENT_NUMBERAgency Business: Document Number WBELN_LFCHAR10Assigned to domainALPHAWBELNWLF
BILL_TYPEAgency business: Billing document type WFARTCHAR4TMFKWFARTWFA
BILL_DATEAgency business: Posting date WFDATDATS8DATUM
DIFF_INVDifferent Invoicing Party LIFRECHAR10LFA1ALPHALIFNRLRE
PURCH_ORGPurchasing Organization EKORGCHAR4T024EEKORGEKO
PUR_GROUPPurchasing Group EKGRPCHAR3T024EKGRPEKG
COMP_CODECompany Code BUKRSCHAR4T001BUKRSBUKC_T001
ACCTSTATUSStatus for transfer to accounting WFBSKCHAR1WFBSK
CURRENCYCurrency of Agency Document WAERLCUKY5TCURCWAERSFWS
CURRENCY_ISOISO code currency WAERS_ISOCHAR3ISOCD
DOC_DATEDocument Date in Document BLDATDATS8DATUM
REF_DOC_NOReference Document Number XBLNRCHAR16XBLNR
PAYMT_REFPayment Reference KIDNOCHAR30CHAR30
ALLOC_NMBRAssignment Number DZUONRCHAR18ZUONR
GROSS_AMNTAgency business: Total invoice amount WBRTWBDEC23(4) BAPICURR
EXCH_RATEDirect Quoted Exchange Rate UKURSPDEC9(5) PKURS
EXCH_RATE_VIndirect Quoted Exchange Rate UKURSMDEC9(5) PKURS
EX_RATE_FXIndicator: Fixing of exchange rate WKUFIXCHAR1XFELD
TRANS_DATETranslation Date WWERT_DDATS8DATUM
PMNTTRMSTerms of Payment Key DZTERMCHAR4ZTERM
DSCNT1_TOCash (Prompt Payment) Discount Days DZBDETDEC3ZBDXT
DSCT_PCT1Cash Discount Percentage 1 DZBD1PDEC5(3) PRZ23
DSCNT2_TOCash discount days 2 DZBD2TDEC3ZBDXT
DSCT_PCT2Cash Discount Percentage 2 DZBD2PDEC5(3) PRZ23
DSCNT3_TONet Payment Terms Period DZBD3TDEC3ZBDXT
ADD_VAL_DYAdditional value days VALTGNUMC2TAGE2
FIX_VAL_DYFixed value date VALDTDATS8DATUM
LOGSYSTEMLogical System LOGSYSTEMCHAR10Assigned to domainALPHALOGSYS
REF_DOC_NO_LONGReference Document Number (for Dependencies see Long Text) XBLNR_LONGCHAR35XBLNR_LONG
PYMT_METHPayment Method DZLSCHCHAR1Assigned to domainZLSCH
INV_LIST_DATEAgency Business: Posting Date for the Remuneration List WFDAT_RLDATS8DATUM
ALT_PAYEEAgency business: Payee W_LIFZECHAR10LFA1ALPHALIFNR
SETTLEMENT_TYPESettlement Type NAFKTCHAR1NAFKT
BILL_CATEGORYAgency business: Billing category WFTYPCHAR2WFTYP
CANCELLED_DOCAgency business: cancelled (reversed) document LFAKSCHAR10Assigned to domainALPHAWBELN
BILL_REASONAgency business: Reason for activity WFGRUCHAR3TMLFGWFGRU
CONTRACTReferencing Contract Number WCONTRACTCHAR10ALPHAWCONTRACT
CONTRACT_TYPEContract Type for Contract Number WCONTRACT_TYPECHAR1WCONTRACT_TYPE
COLLECTION_TYPEDocument Summarization Attribute WCOLLECTIONCHAR1WCOLLECTION
SETTLE_CATEGORYSettlement Attributes WSETTLE_CATEGORYCHAR1WSETTLE_CATEGORY
VAT_REG_NOVendor VAT registration number LIEFRUINRCHAR20STCEG
TAX_DEPART_CTYTax departure country LANDTXCHAR3T005LAND1LND
TAX_DEST_CTYTax Destination Country LAND1TXCHAR3T005LAND1LND
INCOTERMS1Incoterms (Part 1) INCO1CHAR3Assigned to domainINCO1
INCOTERMS2Incoterms (Part 2) INCO2CHAR28INCO2

Key field Non-key field



How do I retrieve data from SAP structure BAPILFHEADO using ABAP code?

As BAPILFHEADO 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 BAPILFHEADO as there is no data to select.

How to access SAP table BAPILFHEADO

Within an ECC or HANA version of SAP you can also view further information about BAPILFHEADO and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!