BAPILFHEAD SAP (Communication structure: Header data, vendor billing doc.) Structure details
Description: Communication structure: Header data, vendor billing doc.
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_DOC | Document number of the reference document | OLDNR_LF | CHAR | 10 | CHAR10 | ||||
BILL_TYPE | Agency business: Billing document type | WFART | CHAR | 4 | TMFK | WFART | WFA | ||
BILL_DATE | Agency business: Posting date | WFDAT | DATS | 8 | DATUM | ||||
DIFF_INV | Different Invoicing Party | LIFRE | CHAR | 10 | LFA1 | ALPHA | LIFNR | LRE | |
PURCH_ORG | Purchasing Organization | EKORG | CHAR | 4 | T024E | EKORG | EKO | ||
PUR_GROUP | Purchasing Group | EKGRP | CHAR | 3 | T024 | EKGRP | EKG | ||
COMP_CODE | Company Code | BUKRS | CHAR | 4 | T001 | BUKRS | BUK | C_T001 | |
CURRENCY | Currency of Agency Document | WAERL | CUKY | 5 | TCURC | WAERS | FWS | ||
CURRENCY_ISO | ISO code currency | WAERS_ISO | CHAR | 3 | ISOCD | ||||
DOC_DATE | Document Date in Document | BLDAT | DATS | 8 | DATUM | ||||
REF_DOC_NO | Reference Document Number | XBLNR | CHAR | 16 | XBLNR | ||||
PAYMT_REF | Payment Reference | KIDNO | CHAR | 30 | CHAR30 | ||||
ALLOC_NMBR | Assignment Number | DZUONR | CHAR | 18 | ZUONR | ||||
GROSS_AMNT | Agency business: Total invoice amount | WBRTWB | DEC | 23(4) | BAPICURR | ||||
EXCH_RATE | Direct Quoted Exchange Rate | UKURSP | DEC | 9(5) | PKURS | ||||
EXCH_RATE_V | Indirect Quoted Exchange Rate | UKURSM | DEC | 9(5) | PKURS | ||||
EX_RATE_FX | Indicator: Fixing of exchange rate | WKUFIX | CHAR | 1 | XFELD | ||||
TRANS_DATE | Translation Date | WWERT_D | DATS | 8 | DATUM | ||||
PMNTTRMS | Terms of Payment Key | DZTERM | CHAR | 4 | ZTERM | ||||
DSCNT1_TO | Cash (Prompt Payment) Discount Days | DZBDET | DEC | 3 | ZBDXT | ||||
DSCT_PCT1 | Cash Discount Percentage 1 | DZBD1P | DEC | 5(3) | PRZ23 | ||||
DSCNT2_TO | Cash discount days 2 | DZBD2T | DEC | 3 | ZBDXT | ||||
DSCT_PCT2 | Cash Discount Percentage 2 | DZBD2P | DEC | 5(3) | PRZ23 | ||||
DSCNT3_TO | Net Payment Terms Period | DZBD3T | DEC | 3 | ZBDXT | ||||
ADD_VAL_DY | Additional value days | VALTG | NUMC | 2 | TAGE2 | ||||
FIX_VAL_DY | Fixed value date | VALDT | DATS | 8 | DATUM | ||||
PYMT_METH | Payment Method | DZLSCH | CHAR | 1 | Assigned to domain | ZLSCH | |||
INV_LIST_DATE | Agency Business: Posting Date for the Remuneration List | WFDAT_RL | DATS | 8 | DATUM | ||||
SOURCE_TYPE | Category of document preceding vendor billing document | WFTYP_VON | CHAR | 1 | WFTYP_VON | ||||
DOCID | SAP ArchiveLink: Document ID | SAEARDOID | CHAR | 40 | SADC40 | ||||
TESTRUN | Switch to Simulation Session for Write BAPIs | TESTRUN | CHAR | 1 | BAPIFLAG | ||||
LOGSYSTEM | Logical System | LOGSYSTEM | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | ||
REF_DOC_NO_LONG | Reference Document Number (for Dependencies see Long Text) | XBLNR_LONG | CHAR | 35 | XBLNR_LONG | ||||
BILL_REASON | Agency business: Reason for activity | WFGRU | CHAR | 3 | TMLFG | WFGRU | |||
ALT_PAYEE | Agency business: Payee | W_LIFZE | CHAR | 10 | LFA1 | ALPHA | LIFNR | ||
IDO_TYPE_VENDOR | AB: Identification Object Type Vendor | WLF_IDOBJ_TYPE_VENDOR | CHAR | 4 | TMIDTV | WLF_IDOBJ_TYPE_VENDOR | |||
ID_OBJECT_VENDOR | AB: Identification Object Vendor | WLF_IDOBJ_VENDOR | CHAR | 30 | WLF_IDOBJ | ||||
VAT_REG_NO | Vendor VAT registration number | LIEFRUINR | CHAR | 20 | STCEG | ||||
TAX_DEPART_CTY | Tax departure country | LANDTX | CHAR | 3 | Assigned to domain | LAND1 | LND | ||
INCOTERMS1 | Incoterms (Part 1) | INCO1 | CHAR | 3 | Assigned to domain | INCO1 | |||
INCOTERMS2 | Incoterms (Part 2) | INCO2 | CHAR | 28 | INCO2 |
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 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