BAPI_INV_LINE SAP (BAPI Structure: Bill Lines for a Document) Structure details
Description: BAPI Structure: Bill Lines for a Document
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 Document | 0 | |||||||
LINE_TYPE | Line Type | INV_LINE_TYPE | NUMC | 4 | TINV_C_LINETYPE | INV_LINE_TYPE | |||
BETRW | Gross Amount in Transaction Currency with +/- Sign | INV_BETRW_GROSS | CURR | 13(2) | WRTV7 | ||||
BETRW_NET | Net Amount in Transaction Currency with +/- Sign | INV_BETRW_NET | CURR | 13(2) | WRTV7 | ||||
CURRENCY | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
QUANTITY | Quantity | INV_QUANT | QUAN | 15(3) | INV_QUANTITY | ||||
UNIT | Unit of Measurement | INV_UNIT | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
PRICE | Price | INV_PRICE | DEC | 17(8) | INV_PRICE | ||||
PRODUCT_ID | Identification | INV_PRODUCT_ID | CHAR | 20 | INV_PRODUCT_ID | ||||
TAXBW | Tax Amount in Transaction Currency | INV_TAXBW | CURR | 13(2) | WRTV7 | ||||
STRPZ | Tax rate | STRPZ_KK_1 | DEC | 6 | PRZ33_KK | ||||
MWSKZ | Tax on sales/purchases code | MWSKZ | CHAR | 2 | Assigned to domain | MWSKZ | |||
DATE_OF_PAYMENT | Due Date | INV_DATE_OF_PAYMENT | DATS | 8 | |||||
PAYMENTDATE | Payment Date | INV_PAYMENTDATE | DATS | 8 | INV_PAYMENTDATE | ||||
EXT_LINE_NO | External Document Line Item Number | INV_EXT_LINE_NO | NUMC | 6 | |||||
DATE_FROM | Start of Period | INV_DATE_FROM | DATS | 8 | |||||
DATE_TO | End of Period | INV_DATE_TO | DATS | 8 | |||||
KOSTL | Cost Center | KOSTL | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | KOS | |
AUFNR | Order Number | AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
PRCTR | Profit Center | PRCTR | CHAR | 10 | Assigned to domain | ALPHA | PRCTR | PRC | PRCTR_EMPTY |
PS_PSP_PNR | Work Breakdown Structure Element (WBS Element) | PS_PSP_PNR | NUMC | 8 | Assigned to domain | KONPR | PS_POSNR | ||
INV_BVT | Bank Details ID for Sender | INV_BVT | CHAR | 4 | |||||
BETRW_REQ | Requested Gross Amount in Transaction Currency | INV_REQ_BETRW_GROSS | CURR | 13(2) | WRTV7 | ||||
BETRW_SKONTO | Cash Discount Amount in Transaction Currency with +/+ Sign | INV_BETRW_SKONTO | CURR | 13(2) | WRTV7 | ||||
RSTGR | Reason Code for Payments | RSTGR | CHAR | 3 | Assigned to domain | RSTGR | |||
DIFF_QUANT | Difference | INV_DIFF_QUANT | QUAN | 15(3) | INV_QUANTITY | ||||
FACTOR | Factor for Quantity Determination | INV_FACTOR | DEC | 17(8) | |||||
READING_OLD | Meter Readings Result for Old Value | INV_READING_OLD | CHAR | 30 | INV_READING | ||||
READING_NEW | Meter Readings Result for New Value | INV_READING_NEW | CHAR | 30 | INV_READING | ||||
MC_NAME1 | Search Help Field 1 (Name 1/Last Name) | BU_MCNAME1 | CHAR | 35 | CHAR35 | ||||
MC_NAME2 | Search Help Field 2 (Name 2/First Name) | BU_MCNAME2 | CHAR | 35 | CHAR35 | ||||
MC_STREET | Street name in upper case for search help | AD_MC_STRT | CHAR | 25 | CHAR25 | ||||
MC_HOUSE_NUM1 | House Number | AD_HSNM1 | CHAR | 10 | TEXT10 | ||||
MC_CITY1 | City name in upper case for search help | AD_MC_CITY | CHAR | 25 | CHAR25 | ||||
MC_POSTCODE | City postal code | AD_PSTCD1 | CHAR | 10 | CHAR10 | ||||
EXT_IDENT_TYPE | External Identification Type (for Example PoD) | INV_EXT_IDENT_TYPE | CHAR | 2 | INV_EXT_IDENT_TYPE | ||||
EXT_IDENT | External Identification of Document (e.g. Point of Delivery) | INV_EXT_IDENT | CHAR | 50 | INV_EXT_IDENT | ||||
EXT_INVOICE_NO | External Bill/Payment Advice Note Number | INV_EXT_INVOICE_NO | CHAR | 40 | TEXT40 | ||||
OWN_INVOICE_NO | Internal Document Number | INV_OWN_INVOICE_NO | CHAR | 40 | TEXT40 | ||||
VTREF | Reference Specifications from Contract | VTREF_KK | CHAR | 20 | ALPHA | VTREF_KK | VTZ | ||
EXT_PARTNER | Business Partner Number in External System | BU_BPEXT | CHAR | 20 | CHAR20 | ||||
SBASW | Amount Subject to Tax in Transaction Currency (Tax Base Amt) | SBASW_KK | CURR | 13(2) | WRTV7 | ||||
SBASW_GROSS | Tax Amount Including Taxes in Transaction Currency | INV_SBASW_GROSS | CURR | 13(2) | WRTV7 | ||||
EXT_LINE_REF_NO | External Reference Number for Linking Several Document Lines | INV_EXT_LINE_REF_NO | NUMC | 18 | |||||
EXT_LINE_NO_OLD | External Number of Document Line Before Change | 0 | |||||||
PRICE_UNIT | Measurement Unit for Price | INV_PRICE_UNIT | UNIT | 3 | Assigned to domain | CUNIT | MEINS |
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 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