BAPI_INV_LINE SAP (BAPI Structure: Bill Lines for a Document) Structure details

Dictionary Type: Structure
Description: BAPI Structure: Bill Lines for a Document




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




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

BAPI_INV_LINE 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 "BAPI Structure: Bill Lines for a Document" 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_BAPI_INV_LINE TYPE BAPI_INV_LINE.

The BAPI_INV_LINE table consists of various fields, each holding specific information or linking keys about BAPI Structure: Bill Lines for a Document data available in SAP. These include LINE_TYPE (Line Type), BETRW (Gross Amount in Transaction Currency with +/- Sign), BETRW_NET (Net Amount in Transaction Currency with +/- Sign), CURRENCY (Currency Key).. 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: Cannot Be Enhanced


SAP BAPI_INV_LINE 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
DOC_NO BAPI: Number of Corresponding Document0
LINE_TYPELine Type INV_LINE_TYPENUMC4TINV_C_LINETYPEINV_LINE_TYPE
BETRWGross Amount in Transaction Currency with +/- Sign INV_BETRW_GROSSCURR13(2) WRTV7
BETRW_NETNet Amount in Transaction Currency with +/- Sign INV_BETRW_NETCURR13(2) WRTV7
CURRENCYCurrency Key WAERSCUKY5Assigned to domainWAERSFWS
QUANTITYQuantity INV_QUANTQUAN15(3) INV_QUANTITY
UNITUnit of Measurement INV_UNITUNIT3Assigned to domainCUNITMEINS
PRICEPrice INV_PRICEDEC17(8) INV_PRICE
PRODUCT_IDIdentification INV_PRODUCT_IDCHAR20INV_PRODUCT_ID
TAXBWTax Amount in Transaction Currency INV_TAXBWCURR13(2) WRTV7
STRPZTax rate STRPZ_KK_1DEC6PRZ33_KK
MWSKZTax on sales/purchases code MWSKZCHAR2Assigned to domainMWSKZ
DATE_OF_PAYMENTDue Date INV_DATE_OF_PAYMENTDATS8
PAYMENTDATEPayment Date INV_PAYMENTDATEDATS8INV_PAYMENTDATE
EXT_LINE_NOExternal Document Line Item Number INV_EXT_LINE_NONUMC6
DATE_FROMStart of Period INV_DATE_FROMDATS8
DATE_TOEnd of Period INV_DATE_TODATS8
KOSTLCost Center KOSTLCHAR10Assigned to domainALPHAKOSTLKOS
AUFNROrder Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
PRCTRProfit Center PRCTRCHAR10Assigned to domainALPHAPRCTRPRCPRCTR_EMPTY
PS_PSP_PNRWork Breakdown Structure Element (WBS Element) PS_PSP_PNRNUMC8Assigned to domainKONPRPS_POSNR
INV_BVTBank Details ID for Sender INV_BVTCHAR4
BETRW_REQRequested Gross Amount in Transaction Currency INV_REQ_BETRW_GROSSCURR13(2) WRTV7
BETRW_SKONTOCash Discount Amount in Transaction Currency with +/+ Sign INV_BETRW_SKONTOCURR13(2) WRTV7
RSTGRReason Code for Payments RSTGRCHAR3Assigned to domainRSTGR
DIFF_QUANTDifference INV_DIFF_QUANTQUAN15(3) INV_QUANTITY
FACTORFactor for Quantity Determination INV_FACTORDEC17(8)
READING_OLDMeter Readings Result for Old Value INV_READING_OLDCHAR30INV_READING
READING_NEWMeter Readings Result for New Value INV_READING_NEWCHAR30INV_READING
MC_NAME1Search Help Field 1 (Name 1/Last Name) BU_MCNAME1CHAR35CHAR35
MC_NAME2Search Help Field 2 (Name 2/First Name) BU_MCNAME2CHAR35CHAR35
MC_STREETStreet name in upper case for search help AD_MC_STRTCHAR25CHAR25
MC_HOUSE_NUM1House Number AD_HSNM1CHAR10TEXT10
MC_CITY1City name in upper case for search help AD_MC_CITYCHAR25CHAR25
MC_POSTCODECity postal code AD_PSTCD1CHAR10CHAR10
EXT_IDENT_TYPEExternal Identification Type (for Example PoD) INV_EXT_IDENT_TYPECHAR2INV_EXT_IDENT_TYPE
EXT_IDENTExternal Identification of Document (e.g. Point of Delivery) INV_EXT_IDENTCHAR50INV_EXT_IDENT
EXT_INVOICE_NOExternal Bill/Payment Advice Note Number INV_EXT_INVOICE_NOCHAR40TEXT40
OWN_INVOICE_NOInternal Document Number INV_OWN_INVOICE_NOCHAR40TEXT40
VTREFReference Specifications from Contract VTREF_KKCHAR20ALPHAVTREF_KKVTZ
EXT_PARTNERBusiness Partner Number in External System BU_BPEXTCHAR20CHAR20
SBASWAmount Subject to Tax in Transaction Currency (Tax Base Amt) SBASW_KKCURR13(2) WRTV7
SBASW_GROSSTax Amount Including Taxes in Transaction Currency INV_SBASW_GROSSCURR13(2) WRTV7
EXT_LINE_REF_NOExternal Reference Number for Linking Several Document Lines INV_EXT_LINE_REF_NONUMC18
EXT_LINE_NO_OLD External Number of Document Line Before Change0
PRICE_UNITMeasurement Unit for Price INV_PRICE_UNITUNIT3Assigned to domainCUNITMEINS

Key field Non-key field



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

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

How to access SAP table BAPI_INV_LINE

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