LBBIL_INVOICE SAP (Billing Data: Transfer Structure to Smart Forms) Structure details

Dictionary Type: Structure
Description: Billing Data: Transfer Structure to Smart Forms




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




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

LBBIL_INVOICE 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 "Billing Data: Transfer Structure to Smart Forms" 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_LBBIL_INVOICE TYPE LBBIL_INVOICE.

The LBBIL_INVOICE table consists of various fields, each holding specific information or linking keys about Billing Data: Transfer Structure to Smart Forms data available in SAP. These include BIL_NUMBER (Sales and Distribution Document Number), SOLD_TO_PARTY (Sold-to party), SHIP_TO_PARTY (Ship-to party), BILL_TO_PARTY (Bill-to party).. 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 (Deep)


SAP LBBIL_INVOICE 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
HD_GEN 0
BIL_NUMBERSales and Distribution Document Number VBELNCHAR10ALPHAVBELNAUN
SOLD_TO_PARTYSold-to party KUNAGCHAR10ALPHAKUNNRVAG
SHIP_TO_PARTYShip-to party KUNWECHAR10ALPHAKUNNR
BILL_TO_PARTYBill-to party KUNRECHAR10ALPHAKUNNRKUN
PAYERPayer KUNRGCHAR10ALPHAKUNNR
SP_VATVAT Registration Number STCEGCHAR20STCEG
T001_VATVAT Registration Number STCEGCHAR20STCEG
T001Z_VATParameter value PAVALCHAR48TEXT48
INCOTERMS1Incoterms (Part 1) INCO1CHAR3INCO1
INCOTERMS2Incoterms (Part 2) INCO2CHAR28INCO2
SHIP_CONDShipping Conditions VSBEDCHAR2VSBED
TERMS_PAYMTerms of Payment Key DZTERMCHAR4ZTERM
VAL_DAYAdditional value days VALTGNUMC2TAGE2
VAL_DATEFixed value date VALDTDATS8DATUM
BIL_WAERKSD Document Currency WAERKCUKY5WAERSFWS
BIL_NETWRNet Value in Document Currency NETWRCURR15(2) WERTV8
BIL_DISCAmount from billing document qualifying for cash discount SKFBKCURR15(2) WERTV8
BIL_TAXTax amount in document currency MWSBPCURR13(2) WERTV7
BIL_VBTYPESD document category VBTYPCHAR1VBTYP
BIL_CATBilling category FKTYPCHAR1FKTYP
BIL_TYPEBilling Type FKARTCHAR4FKART
BIL_DATEBilling date for billing index and printout FKDATDATS8DATUM
BRT_WEIGHTGross weight BRGEW_15QUAN15(3) MENG15
NET_WEIGHTNet weight NTGEW_15QUAN15(3) MENG15
UNIT_OF_WEIGHTWeight Unit GEWEIUNIT3CUNITMEINS
VOLUMEVolume VOLUM_15QUAN15(3) MENG15
VOLUMEUNITVolume unit VOLEHUNIT3CUNITMEINS
BIL_EDATEDate on Which Record Was Created ERDATDATS8DATUM
BIL_ENAMEName of Person who Created the Object ERNAMCHAR12USNAM
BIL_SCHEMAProcedure (Pricing, Output Control, Acct. Det., Costing,...) KALSM_DCHAR6KALSM
KOND_NUMBNumber of the document condition KNUMVCHAR10KNUMV
BIL_APPLApplication KAPPLCHAR2KAPPLKAP
IL_TYPEInvoice list type FKART_RLCHAR4FKART
IL_DATEBilling date for the invoice list FKDAT_RLDATS8DATUM
MAT_LANDCountry of origin of the material HERKLCHAR3LAND1LND
DLV_LANDCountry of Destination LLANDCHAR3LAND1VLL
SHP_LANDDeparture country (country from which the goods are sent) ALANDCHAR3LAND1VAL
LANDTXTax departure country LANDTXCHAR3LAND1LND
SFAKNCancelled billing document number SFAKNCHAR10ALPHAVBELNVF
XBLNRReference Document Number XBLNR1CHAR16XBLNR1
EXNUMNumber of foreign trade data in MM and SD documents EXNUMCHAR10EXNUM
KIDNOPayment Reference KIDNOCHAR30CHAR30
BUPLABusiness Place BUPLACHAR4J_1BBRANCH
RPLNRNumber of payment card plan type RPLNRCHAR10FPLNR
DPVALNet Value in Document Currency NETWRCURR15(2) WERTV8
CCVALNet Value in Document Currency NETWRCURR15(2) WERTV8
XEGLD_L1Indicator: European Union Member? XEGLDCHAR1XFELD
XEGLD_COIndicator: European Union Member? XEGLDCHAR1XFELD
DPNETNet Value in Document Currency NETWRCURR15(2) WERTV8
DPENDNet Value in Document Currency NETWRCURR15(2) WERTV8
DPMWS_ENDTax amount in document currency MWSBPCURR13(2) WERTV7
DPMWSTax amount in document currency MWSBPCURR13(2) WERTV7
XFILKDBranch/head office relationship XFILKD_VFCHAR1XFILKD_VF
STCD1_T001NTax Number for Plants Abroad STCD1_001NCHAR16STCD1
XEGDRIndicator: Triangular deal within the EU ? XEGDRCHAR1XFELD
KNUMAAgreement (various conditions grouped together) KNUMACHAR10ALPHAKNUMAVMBO
MNDIDUnique Referene to Mandate per Payment Recipient SEPA_MNDIDCHAR35ID035
HD_GEN_DESCRIPT 0
BIL_NUMBERSales and Distribution Document Number VBELNCHAR10ALPHAVBELNAUN
NAME_SHIP_CONDDescription of the shipping conditions VSBED_BEZCHAR20TEXT20
NAME_INCOTERMS1Incoterm description INCO1_BEZCHAR30TEXT30
NAME_BILL_TYPEBilling type description FKART_BEZCHAR20TEXT20
NAME_PAYMTERMDescription of terms of payment DZTERM_BEZCHAR30TEXT30
NAME_PTERMS1Text (80 Characters) TEXT80CHAR80TEXT80UEB
NAME_PTERMS2Text (80 Characters) TEXT80CHAR80TEXT80UEB
NAME_PTERMS3Text (80 Characters) TEXT80CHAR80TEXT80UEB
P_SPLITSplit terms of payment P_SPLITCHAR1CHAR1
ZFBDTBaseline Date for Due Date Calculation DZFBDTDATS8DATUM
HD_ORG 0
BIL_NUMBERSales and Distribution Document Number VBELNCHAR10ALPHAVBELNAUN
SALESORGSales Organization VKORGCHAR4VKORGVKOC_VKORG
SALESORG_ADRAddress ADRNRCHAR10ALPHAADRNR
SALESORG_SPRASLanguage Key SPRASLANG1ISOLASPRASSPRH_T002
DISTRB_CHANNELDistribution Channel VTWEGCHAR2VTWEGVTWC_VTWEG
DIVISIONDivision SPARTCHAR2SPARTSPAC_SPART
COMP_CODECompany Code BUKRSCHAR4BUKRSBUKC_T001
HD_REF 0
BIL_NUMBERSales and Distribution Document Number VBELNCHAR10ALPHAVBELNAUN
FAK_DATEBilling date for billing index and printout FKDATDATS8DATUM
DELIV_NUMBDelivery VBELN_VLCHAR10ALPHAVBELNVL
DELIV_DATEDelivery date LFDATDATS8DATUM
DELIV_LEDATDelivery Creation Date LEDATDATS8DATUM
ORDER_NUMBOrder VBELN_VAUFCHAR10ALPHAVBELNAUF
ORDER_DATESales order date AUDAT_VAUFDATS8DATUM
ALLOC_ZUONRAssignment number ORDNR_VCHAR18ZUONR
ACCOUNT_NUMBAccounting Document Number BELNR_DCHAR10ALPHABELNRBLN
CANC_NUMBCancelled billing document number SFAKNCHAR10ALPHAVBELNVF
VBELN_VAGSales and Distribution Document Number VBELNCHAR10ALPHAVBELNAUN
VAG_DATDate on Which Record Was Created ERDATDATS8DATUM
VBELN_VKTSales and Distribution Document Number VBELNCHAR10ALPHAVBELNAUN
VKT_DATDate on Which Record Was Created ERDATDATS8DATUM
VGTYPActivity or element category VGTYPCHAR3VORG_TYP
VBELN_VG2Sales and Distribution Document Number VBELNCHAR10ALPHAVBELNAUN
VG2_DATDate on Which Record Was Created ERDATDATS8DATUM
PURCH_NOCustomer purchase order number BSTKDCHAR35BSTKD
PURCH_DATECustomer purchase order date BSTDKDATS8DATUM
PO_SUPPLEMPurchase order number supplement BSTZDCHAR4BSTZD
CUST_REFERENCEYour Reference IHREZCHAR12TEXT12
REF_DOCDocument number of the reference document VGBELCHAR10ALPHAVBELN
REF_DOC_TYPEDocument category of preceding SD document VBTYP_VCHAR1VBTYP
PURCH_NO_CCustomer purchase order number BSTKDCHAR35BSTKD
PO_METHODCustomer purchase order type BSARKCHAR4BSARK
PURCH_NO_SShip-to Party's Purchase Order Number BSTKD_ECHAR35BSTKD
PO_DAT_SShip-to party's PO date BSTDK_EDATS8DATUM
PO_METH_SShip-to party purchase order type BSARK_ECHAR4BSARK
REF_1_SShip-to party character IHREZ_ECHAR12TEXT12
HD_KOMK 0
BIL_NUMBERBilling Document VBELN_VFCHAR10ALPHAVBELNVF
KNUMVNumber of the document condition KNUMVCHAR10KNUMV
VKORGSales Organization VKORGCHAR4VKORGVKOC_VKORG
VTWEGDistribution Channel VTWEGCHAR2VTWEGVTWC_VTWEG
SPARTDivision SPARTCHAR2SPARTSPAC_SPART
BZIRKSales district BZIRKCHAR6BZIRKBZI
VKGRPSales Group VKGRPCHAR3VKGRPVKG
BRSCHIndustry key BRSCHCHAR4BRSCH
VKBURSales Office VKBURCHAR4VKBURVKB
KONDAPrice group (customer) KONDACHAR2KONDAVKA
KDGRPCustomer group KDGRPCHAR2KDGRPVKD
PLTYPPrice list type PLTYPCHAR2PLTYPVPL
ALANDDeparture country (country from which the goods are sent) ALANDCHAR3LAND1VAL
WKREGRegion in which plant is located WKREGCHAR3REGIO
WKCOUCounty in which plant is located WKCOUCHAR3CHAR3
WKCTYCity in which plant is located WKCTYCHAR4CHAR4
BUKRSCompany Code BUKRSCHAR4BUKRSBUKC_T001
SUPOSNet Value in Document Currency NETWRCURR15(2) WERTV8
FKWRTCumulative guaranteed discount (not used) FKWRTCURR15(2) WERTV8
WAERKSD Document Currency WAERKCUKY5WAERSFWS
HD_ADR 0
HD_PART_ADD 0
HD_CARD 0
HD_PAY 0
HD_KOND 0
HD_FIN 0
HD_TECH 0
HD_DOWNPAY 0
IT_GEN 0
IT_ADR 0
IT_PRICE 0
IT_KOND 0
IT_REF 0
IT_REFDLV 0
IT_REFORD 0
IT_REFPURORD 0
IT_REFVAG 0
IT_REFVG2 0
IT_REFVKT 0
IT_TECH 0
IT_FIN 0
IT_CONFITM 0
IT_CONFBATCH 0
MSR_HD 0
BIL_NUMBERBilling Document VBELN_VFCHAR10ALPHAVBELNVF
MSR_IDProcess Identification Number MSR_PROCESS_IDCHAR10ALPHAMSR_PROCESS_ID
MSR_IT 0
SEPA_MANDATE 0
MANDTClient MANDTCLNT3MANDT
MGUIDSEPA Mandate: GUID of Mandate SEPA_MGUIDRAW16
MNDIDUnique Referene to Mandate per Payment Recipient SEPA_MNDIDCHAR35ID035
MVERSSEPA Mandate: Version of Mandate (0 = Current Version) SEPA_MVERSNUMC4NUM04
SIGN_CITYLocation of Signature SEPA_SIGN_CITYCHAR40TEXT40
SIGN_DATEDate of Signature SEPA_SIGN_DATEDATS8DATUM
PAY_TYPESEPA: Transaction Type SEPA_PAY_TYPECHAR1SEPA_PAY_TYPE
VAL_FROM_DATESEPA: Validity Date of Mandate (From) SEPA_VAL_FROM_DATEDATS8DATUM
VAL_TO_DATESEPA: Validity Date of Mandate (To) SEPA_VAL_TO_DATEDATS8DATUM
STATUSSEPA: Mandate Status SEPA_STATUSCHAR1SEPA_STATUS
B2BSEPA-Mandate: B2B Mandate SEPA_B2BCHAR1XFELD
REASON_CODEReason Code for Status Change SEPA_REASON_CODECHAR3SEPA_REASON_CODE
ERNAMUser who Created the Current Version of the Mandate SEPA_ERNAMCHAR12SYCHAR12
ERDATDate on Which the Current Mandate Version was Created SEPA_ERDATDATS8DATUM
ERTIMTime at Which the Current Mandate Version was Created SEPA_ERTIMTIMS6UZEIT
CHG_REASONSEPA: Reason for Change SEPA_CHG_REASONCHAR5SEPA_CHG_REASON
ORIGINSingle-Character Indicator CHAR1CHAR1CHAR1
ORIGIN_REC_CRDIDSEPA Mandate: Original Creditor ID of Mandate SEPA_CRDID_ORIGINCHAR35ID035
ORIGIN_MNDIDSEPA Mandate: Original Mandate of Mandate SEPA_MNDID_ORIGINCHAR35ID035
GLOCKGlobal Lock Set in Mandate SEPA_GLOCKCHAR1BOOLEAN
GLOCK_VAL_FROMGlobal Mandate Lock - Valid From SEPA_GLOCK_VAL_FROM_DATEDATS8DATUM
GLOCK_VAL_TOGlobal Mandate Lock - Valid Until SEPA_GLOCK_VAL_TO_DATEDATS8DATUM
ANWNDSEPA: Application for Which Mandate Relevant SEPA_ANWNDCHAR1SEPA_ANWND
ORI_ERNAMUser who Created the Original Mandate SEPA_ORI_ERNAMCHAR12SYCHAR12
ORI_ERDATDate on Which Original Mandate Created SEPA_ORI_ERDATDATS8DATUM
ORI_ERTIMTime when Original Mandate Was Created SEPA_ORI_ERTIMTIMS6UZEIT
REF_TYPESEPA Mandate: Reference Type SEPA_REF_TYPECHAR10OJ_NAMEOBJ
REF_IDSEPA Mandate: Reference ID SEPA_REF_IDCHAR70SWO_TYPEID
REF_DESCText Field TEXT50CHAR50TEXT50
SND_TYPESEPA Mandate: Sender Type SEPA_SND_TYPECHAR10OJ_NAMEOBJ
SND_IDSEPA Mandate: Sender ID SEPA_SND_IDCHAR70SWO_TYPEID
SND_NAME1Last name of business partner (person) BU_NAMEP_LCHAR40BU_NAME
SND_NAME2First name of business partner (person) BU_NAMEP_FCHAR40BU_NAME
SND_STREETStreet AD_STREETCHAR60TEXT60CLSTRTNAME
SND_HOUSENUMHouse Number AD_HSNM1CHAR10TEXT10
SND_POSTALCity postal code AD_PSTCD1CHAR10CHAR10
SND_CITYCity AD_CITY1CHAR40TEXT40CLCITYNAME
SND_COUNTRYCountry Key LAND1CHAR3LAND1LND
SND_IBANIBAN (International Bank Account Number) IBANCHAR34IBAN
SND_BICSWIFT/BIC for International Payments SWIFTCHAR11SWIFT
SND_DIR_NAMESEPA: Name of Alternative Debtor SEPA_PAYMENT_FORCHAR40BU_NAME
SND_LANGUAGELanguage Key LANGULANG1ISOLASPRAS
SND_DIR_IDSEPA: ID of Alternative Debtor SEPA_SND_DIR_IDCHAR70SWO_TYPEID
SND_DEBTOR_IDSEPA: ID Number of Sender (External Reference) SEPA_SND_DEBTOR_IDCHAR35ID035
REC_TYPESEPA Mandate: Recipient Type SEPA_REC_TYPECHAR10OJ_NAMEOBJ
REC_IDSEPA Mandate: Recipient ID SEPA_REC_IDCHAR70SWO_TYPEID
REC_NAME1Name 1 of organization BU_NAMEOR1CHAR40BU_NAME
REC_NAME2Name 2 of organization BU_NAMEOR2CHAR40BU_NAME
REC_CRDIDCreditor Identification Number SEPA_CRDIDCHAR35ID035
REC_STREETStreet AD_STREETCHAR60TEXT60CLSTRTNAME
REC_HOUSENUMHouse Number AD_HSNM1CHAR10TEXT10
REC_POSTALCity postal code AD_PSTCD1CHAR10CHAR10
REC_CITYCity AD_CITY1CHAR40TEXT40CLCITYNAME
REC_COUNTRYCountry Key LAND1CHAR3LAND1LND
REC_DIR_NAMESEPA: Name of Alternative Payee SEPA_REC_DIR_NAMECHAR40BU_NAME
REC_DIR_IDSEPA: ID of Alternative Payee SEPA_REC_DIR_IDCHAR70SWO_TYPEID
FIRSTUSE_DATESEPA Mandate: Date of First Use SEPA_FIRSTUSE_DATEDATS8DATUM
FIRSTUSE_DOCTYPESEPA Mandate: Type of First Usage SEPA_FIRSTUSE_DOCTYPECHAR10OJ_NAMEOBJ
FIRSTUSE_DOCIDSEPA Mandate: ID of First Usage SEPA_FIRSTUSE_DOCIDCHAR70SWO_TYPEIDOBJ
LASTUSE_DATESEPA Mandate: Date of Last Use SEPA_LASTUSE_DATEDATS8DATUM
LASTUSE_DOCTYPESEPA Mandate: Type of Last Usage SEPA_LASTUSE_DOCTYPECHAR10OJ_NAMEOBJ
LASTUSE_DOCIDSEPA Mandate: ID of Last Usage SEPA_LASTUSE_DOCIDCHAR70SWO_TYPEIDOBJ
FIRSTUSE_PAYRUNSEPA Mandate: ID of Payment Run of First Use SEPA_FIRSTUSE_PAYRUNIDCHAR16CHAR16
ORGF1SEPA Mandate: Internal Organizational Data SEPA_ORG_IDCHAR20CHAR20
ORGF2SEPA Mandate: Internal Organizational Data SEPA_ORG_IDCHAR20CHAR20
ORGF3SEPA Mandate: Internal Organizational Data SEPA_ORG_ID_LONGCHAR35CHAR35
ORGF4SEPA Mandate: Internal Organizational Data SEPA_ORG_ID_LONGCHAR35CHAR35
.INCLU--AP 0
/SAPF15/F15_BW /SAPF15/BEWIRTSCHAFTERCHAR8/SAPF15/BEWIRTSCHAFTER/SAPF15/BEWIRT
/SAPF15/F15_KZ /SAPF15/KASSENZEICHENCHAR12CHAR12
/SAPF15/GUID /SAPF15/GUIDRAW16SYSUUID
.INCLU--AP 0
CONTRACT_IDBKK: SEPA Mandate Contract ID BKK_DTE_MND_CONTRACT_IDCHAR50BKK_MANDATE_CONTRACT
CONTRACT_DESCBKK:SEPA Mandate Contract Description BKK_DTE_MND_CONTRACT_DESCCHAR50BKK_MANDATE_CONTRACT
BANK_CRDTRBank Is Creditor BKK_DTE_MND_BANK_CRDTRCHAR1XFELD
.INCLU--AP 0
LAUFDDate ID LAUFD_KKDATS8DATUM
LAUFIAdditional Identification Characteristic LAUFI_KKCHAR6LAUFI_KK

Key field Non-key field



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

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

How to access SAP table LBBIL_INVOICE

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