BAPILFHEAD 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 BAPILFHEAD
Related tables to BAPILFHEAD
Access table BAPILFHEAD




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

BAPILFHEAD 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_BAPILFHEAD TYPE BAPILFHEAD.

The BAPILFHEAD 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 BAPILFHEAD 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
REF_DOCDocument number of the reference document OLDNR_LFCHAR10CHAR10
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
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
PYMT_METHPayment Method DZLSCHCHAR1Assigned to domainZLSCH
INV_LIST_DATEAgency Business: Posting Date for the Remuneration List WFDAT_RLDATS8DATUM
SOURCE_TYPECategory of document preceding vendor billing document WFTYP_VONCHAR1WFTYP_VON
DOCIDSAP ArchiveLink: Document ID SAEARDOIDCHAR40SADC40
TESTRUNSwitch to Simulation Session for Write BAPIs TESTRUNCHAR1BAPIFLAG
LOGSYSTEMLogical System LOGSYSTEMCHAR10Assigned to domainALPHALOGSYS
REF_DOC_NO_LONGReference Document Number (for Dependencies see Long Text) XBLNR_LONGCHAR35XBLNR_LONG
BILL_REASONAgency business: Reason for activity WFGRUCHAR3TMLFGWFGRU
ALT_PAYEEAgency business: Payee W_LIFZECHAR10LFA1ALPHALIFNR
IDO_TYPE_VENDORAB: Identification Object Type Vendor WLF_IDOBJ_TYPE_VENDORCHAR4TMIDTVWLF_IDOBJ_TYPE_VENDOR
ID_OBJECT_VENDORAB: Identification Object Vendor WLF_IDOBJ_VENDORCHAR30WLF_IDOBJ
VAT_REG_NOVendor VAT registration number LIEFRUINRCHAR20STCEG
TAX_DEPART_CTYTax departure country LANDTXCHAR3Assigned to domainLAND1LND
INCOTERMS1Incoterms (Part 1) INCO1CHAR3Assigned to domainINCO1
INCOTERMS2Incoterms (Part 2) INCO2CHAR28INCO2

Key field Non-key field



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

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

How to access SAP table BAPILFHEAD

Within an ECC or HANA version of SAP you can also view further information about BAPILFHEAD 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!