BSEG_DATA SAP () Structure details

Dictionary Type: Structure
Description:




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




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

BSEG_DATA 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 "" 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_BSEG_DATA TYPE BSEG_DATA.

The BSEG_DATA table consists of various fields, each holding specific information or linking keys about data available in SAP. These include INCLUDE (), MANDT (Client), AUSBK (Source Company Code), BELNR (Accounting Document Number).. 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 BSEG_DATA 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
FIPEXCommitment Item FM_FIPEXCHAR24Assigned to domainFM_FIPEXFPS
MANDTClient MANDTCLNT3MANDT
AUSBKSource Company Code AUSBKCHAR4BUKRS
BELNRAccounting Document Number BELNR_DCHAR10ALPHABELNRBLN
GJAHRFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
BUZEINumber of Line Item Within Accounting Document BUZEINUMC3BUZEIBUZ
KOARTAccount Type KOARTCHAR1KOART
BUKRSCompany Code BUKRSCHAR4BUKRSBUKC_T001
BZALTOld Line Item (Internal Usage) BZALTNUMC3BUZEI
BSCHLPosting Key BSCHLCHAR2BSCHL
UMSKZSpecial G/L Indicator UMSKZCHAR1UMSKZ
UMSKSSpecial G/L Transaction Type UMSKSCHAR1UMSKS
SHKZGDebit/Credit Indicator SHKZGCHAR1SHKZG
GSBERBusiness Area GSBERCHAR4GSBERGSB
PARGBTrading partner's business area PARGBCHAR4GSBERGSB
MWSKZTax on sales/purchases code MWSKZCHAR2MWSKZ
SMWSKTax Category in Account Master Record SMWSKCHAR2SMWSK
DMBTRAmount in Local Currency DMBTRCURR13(2) WERT7
DMBE2Amount in Second Local Currency DMBE2CURR13(2) WERT7
DMBE3Amount in Third Local Currency DMBE3CURR13(2) WERT7
WRBTRAmount in document currency WRBTRCURR13(2) WERT7
HWMETMethod with Which the Local Currency Amount Was Determined HWMETCHAR1HWMET
MWSTSTax Amount in Local Currency MWSTSCURR13(2) WERT7
MWST2Tax Amount in Second Local Currency MWST2CURR13(2) WERT7
MWST3Tax Amount in Third Local Currency MWST3CURR13(2) WERT7
WMWSTTax amount in document currency WMWSTCURR13(2) WERT7
HWBASTax Base Amount in Local Currency HWBASCURR13(2) WERT7
FWBASTax Base Amount in Document Currency FWBASCURR13(2) WERT7
MWARTTax Type MWARTCHAR1MWART
QSSKZWithholding Tax Code QSSKZCHAR2QSSKZ
QSSHBWithholding Tax Base Amount QSSHBCURR13(2) WERT7
QSZNRCertificate Number of the Withholding Tax Exemption QSZNRCHAR10CHAR10
QBSHBWithholding Tax Amount (in Document Currency) QBSHBCURR13(2) WERT7
QSFBTWithholding Tax-Exempt Amount (in Document Currency) QSFBTCURR13(2) WERT7
KURSRHedged Exchange Rate KURSRDEC9(5) KURSP
GBETRHedged Amount in Foreign Currency GBETRCURR13(2) WERT7
VALUTValue date VALUTDATS8DATUM
ZUONRAssignment Number DZUONRCHAR18ZUONR
SGTXTItem Text SGTXTCHAR50TEXT50
ZINKZExempted from interest calculation DZINKZCHAR2ZINKZ
RMVCTTransaction Type RMVCTCHAR3RMVCT
FDLEVPlanning level FDLEVCHAR2FDLEVFFE
FDGRPPlanning Group FDGRPCHAR10ALPHAFDGRPFFG
FDWBTPlanning amount in document currency FDWBTCURR13(2) WERTV7
FDTAGPlanning date FDTAGDATS8DATUMFDT
GEBERFund BP_GEBERCHAR10BP_GEBERFIC
FISTLFunds Center FISTLCHAR16FISTLFIS
KOKRSControlling Area KOKRSCHAR4CACCDCAC
KOSTLCost Center KOSTLCHAR10ALPHAKOSTLKOS
AUFNROrder Number AUFNRCHAR12ALPHAAUFNRANR
KDAUFSales Order Number KDAUFCHAR10ALPHAVBELNAUN
KDPOSItem Number in Sales Order KDPOSNUMC6NUM06KPO
PPRCTRPartner Profit Center PPRCTRCHAR10ALPHAPRCTRPPC
IMKEYInternal Key for Real Estate Object IMKEYCHAR8IMKEY
ANLN1Main Asset Number ANLN1CHAR12ALPHAANLN1AN1
ANLN2Asset Subnumber ANLN2CHAR4ALPHAANLN2AN2
ANBWAAsset Transaction Type ANBWACHAR3BWASL
BZDATAsset value date BZDATDATS8DATUM
PERNRPersonnel Number PERNR_DNUMC8PERNRPER
XUMSWIndicator: Sales-related item ? XUMSWCHAR1XFELD
XCPDDIndicator: Address and bank data set individually XCPDDCHAR1XFELD
XZEMPIndicator: Alternative payee in document allowed ? XZEMPCHAR1XFELD
XSKRLIndicator: Line item not liable to cash discount? XSKRLCHAR1XFELD
XINVEIndicator: Capital Goods Affected? XINVECHAR1XFELD
SAKNRG/L Account Number SAKNRCHAR10ALPHASAKNRSAKC_SAKNR
HKONTGeneral Ledger Account HKONTCHAR10ALPHASAKNR
KUNNRCustomer Numbers KUNNRCHAR10ALPHAKUNNRKUNC_KUNNR
LIFNRAccount Number of Vendor or Creditor LIFNRCHAR10ALPHALIFNRLIFKRED_C
FILKDAccount Number of the Branch FILKDCHAR10ALPHAMAXKK
HZUONAssignment Number for Special G/L Accounts HZUONCHAR18ZUONR
ZFBDTBaseline Date for Due Date Calculation DZFBDTDATS8DATUM
ZTERMTerms of Payment Key DZTERMCHAR4ZTERM
ZBD1TCash discount days 1 DZBD1TDEC3ZBDXT
ZBD2TCash discount days 2 DZBD2TDEC3ZBDXT
ZBD3TNet Payment Terms Period DZBD3TDEC3ZBDXT
ZBD1PCash Discount Percentage 1 DZBD1PDEC5(3) PRZ23
ZBD2PCash Discount Percentage 2 DZBD2PDEC5(3) PRZ23
XSKFBIndicator: Calculate amounts qualifying for cash discount ? XSKFBCHAR1XFELD
SKFBTAmount Eligible for Cash Discount in Document Currency SKFBTCURR13(2) WERT7
SKNTOCash discount amount in local currency SKNTOCURR13(2) WERT7
WSKTOCash discount amount in document currency WSKTOCURR13(2) WERT7
ZLSCHPayment Method SCHZW_BSEGCHAR1ZLSCH
ZLSPRPayment Block Key DZLSPRCHAR1ZAHLSSPE
UZAWEPayment Method Supplement UZAWECHAR2UZAWE
HBKIDShort Key for a House Bank HBKIDCHAR5HBKID
BVTYPPartner Bank Type BVTYPCHAR4BVTYP
REBZGNumber of the Invoice the Transaction Belongs to REBZGCHAR10ALPHABELNR
REBZJFiscal Year of the Relevant Invoice (for Credit Memo) REBZJNUMC4GJAHRGJAHR
REBZZLine Item in the Relevant Invoice REBZZNUMC3BUZEI
REBZTFollow-On Document Type REBZTCHAR1REBZT
ZOLLTCustoms Tariff Number DZOLLTCHAR8ZOLLT
ZOLLDCustoms Date DZOLLDDATS8DATUM
LZBKZState Central Bank Indicator LZBKZCHAR3LZBKZ
LANDLSupplying Country LANDLCHAR3LAND1
DIEKZService Indicator (Foreign Payment) DIEKZCHAR1DIEKZ
SAMNRInvoice List Number SAMNRNUMC8SAMNR
ABPERSettlement period ABPER_RFACCP6BUPER
VRSKZInsurance indicator VRSKZCHAR1CHAR1
VRSDTInsurance date VRSDTDATS8DATUM
BLNBTBase Amount for Determining the Preference Amount BLNBTCURR13(2) WERT7
BLNKZSubsidy indicator for determining the reduction rates BLNKZCHAR2BLNKZ
BLNPZPreference Percentage Rate BLNPZDEC7(2) PRZ52
MSCHLDunning key MSCHLCHAR1MSCHL
MANSPDunning block MANSPCHAR1MANSP
MABERDunning Area MABERCHAR2MABER
ESRNRISR Subscriber Number ESRNRCHAR11ESRNR
ESRREISR Reference Number ESRRECHAR27ALPHAESRRE
ESRPZISR Check Digit ESRPZCHAR2CHAR2
MATNRMaterial Number MATNRCHAR18MATN1MATNRMATS_MAT1
WERKSPlant WERKS_DCHAR4WERKSWRKH_T001W_C
MENGEQuantity MENGE_DQUAN13(3) MENG13
MEINSBase Unit of Measure MEINSUNIT3CUNITMEINS
BPMNGQuantity in Purchase Order Price Unit BPMNGQUAN13(3) MENG13
BPRMEOrder Price Unit (Purchasing) BPRMEUNIT3CUNITMEINS
EBELNPurchasing Document Number EBELNCHAR10ALPHAEBELNBESMEKK_C
EBELPItem Number of Purchasing Document EBELPNUMC5EBELPBSP
REWRTInvoice Value Entered (in Local Currency) REEWRCURR13(2) WRTV7
REWWRInvoice value in foreign currency REFWRCURR13(2) WRTV7
ZEKKNSequential Number of Account Assignment DZEKKNNUMC2NUM02
LFBNRNumber of goods receipt document WEBLNCHAR10ALPHABELNR
LFPOSItem in Material Document MBLPONUMC4MBLPOPOS
LFGJAMaterial Document Year MJAHRNUMC4GJAHRGJAHRMJA
PEINHPrice Unit PEINHDEC5PACK3
VPRSVPrice control indicator VPRSVCHAR1VPRSV
BWKEYValuation Area BWKEYCHAR4BWKEYBWK
BWTARValuation Type BWTAR_DCHAR10BWTARBWT
TBTKZIndicator: subsequent debit/credit TBTKZCHAR1TBTKZ
STCEGVAT Registration Number STCEGCHAR20STCEG
PRCTRProfit Center PRCTRCHAR10ALPHAPRCTRPRCPRCTR_EMPTY
XHKOMIndicator: G/L account assigned manually ? XHKOMCHAR1XFELD
VNAMEJoint Venture JV_NAMECHAR6ALPHAJV_NAMEJVV
RECIDRecovery Indicator JV_RECINDCHAR2ALPHAJV_RECIND
EGRUPEquity group JV_EGROUPCHAR3ALPHAJV_EGROUPGJE
VPTNRPartner account number JV_PARTCHAR10ALPHAKUNNR
VERTTContract Type RANTYPCHAR1RANTYP
VERTNContract Number RANLCHAR13ALPHARANLRAN
VBEWAFlow Type SBEWARTCHAR4SBEWART
TXJCDTax Jurisdiction TXJCDCHAR15TXJCDTXJ
DABRZReference Date for Settlement DABRBEZDATS8DDAT
KSTRGCost Object KSTRGCHAR12KSTRGKTR
NPLNRNetwork Number for Account Assignment NPLNRCHAR12ALPHAAUFNRNET
AUFPLRouting number of operations in the order CO_AUFPLNUMC10AUFPL
PS_PSP_PNRWork Breakdown Structure Element (WBS Element) PS_PSP_PNRNUMC8KONPRPS_POSNR
PAOBJNRProfitability Segment Number (CO-PA) RKEOBJNRNUMC10RKEOBJNR
PASUBNRProfitability segment changes (CO-PA) RKESUBNRNUMC4RKESUBNR
BTYPEPayroll Type JV_BILINDCHAR2ALPHAJV_BILIND
ETYPEEquity type JV_ETYPECHAR3ALPHAJV_ETYPE
XEGDRIndicator: Triangular deal within the EU ? XEGDRCHAR1XFELD
LNRANSequence number of asset line items in fiscal year LNRANNUMC5LNRAN
HRKFTOrigin Group as Subdivision of Cost Element HRKFTCHAR4HRKFT
FIPOSCommitment Item FIPOSCHAR14FIPOSFIP
ZBFIXFixed Payment Terms DZBFIXCHAR1ZBFIX
KDEINDelivery Schedule Line Number ETENRNUMC4ETENR
REPRFCheck Flag for Double Invoices or Credit Memos REPRFCHAR1XFELD
SWAERCurrency Key WAERSCUKY5WAERSFWS
MADATLast dunned on MADATDATS8DATUM
MANSTDunning level MAHNS_DNUMC1MAHNS
ANFBNDocument Number of the Bill of Exchange Payment Request ANFBNCHAR10ALPHABELNR
ANFBJFiscal Year of the Bill of Exchange Payment Request Document ANFBJNUMC4GJAHRGJAHR
ANFBUCompany Code in Which Bill of Exch.Payment Request Is Posted ANFBUCHAR4BUKRS
ANFAEBill of Exchange Payment Request Due Date ANFAEDATS8DATUM
EGMLDReporting Country for Delivery of Goods within the EU EGMLD_BSEZCHAR3LAND1
XEGMDEC reporting country deleted XEGMDCHAR1XFELD
XREF1Business partner reference key XREF1CHAR12CHAR12
XREF2Business partner reference key XREF2CHAR12CHAR12
XZANFIndicator: Payment demand XZANFCHAR1XFELD
STUNRStep number STUNRNUMC3STUNR
ZAEHKCondition counter DZAEHKNUMC2ZAEHK
XFDISIndicator: Cash Management activated? XFDISCHAR1XFELD
KBLNRDocument Number for Earmarked Funds KBLNR_FICHAR10ALPHAKBLNRKBL
KBLPOSEarmarked Funds: Document Item KBLPOSNUMC3KBLPOSKBP
STTAXTax amount as statistical information in document currency STTAXCURR13(2) WERT7
VORNROperation/Activity Number VORNRCHAR4NUMCVVORNRVGN
EREKZFinal Invoice Indicator EREKZCHAR1XFELD
FKBERFunctional Area FKBERCHAR16FKBERFBE
PSTYPItem Category in Purchasing Document PSTYPCHAR1PSTYP
VBUNDCompany ID of trading partner RASSCCHAR6ALPHARCOMPPGS
RSTGRReason Code for Payments RSTGRCHAR3RSTGR
KKBERCredit control area KKBERCHAR4KKBERKKB
XREF3Reference key for line item XREF3CHAR20CHAR20
KIDNOPayment Reference KIDNOCHAR30CHAR30
EMPFBPayee/Payer EMPFBCHAR10ALPHAMAXKK
CCBTCPayment cards: Settlement run CCBTCCHAR10ALPHACCBTC
DTWS1Instruction key 1 DTAT16NUMC2DTWSX
DTWS2Instruction key 2 DTAT17NUMC2DTWSX
DTWS3Instruction key 3 DTAT18NUMC2DTWSX
DTWS4Instruction key 4 DTAT19NUMC2DTWSX
GRICDActivity Code for Gross Income Tax J_1AGICD_DCHAR2J_1AGICD2
GRIRGSTATE (State, Province, County) REGIOCHAR3REGIO
GITYPDistribution Type for Employment Tax J_1ADTYP_DCHAR2J_1ADTYP
IDXSPInflation Index J_1AINDXSPCHAR5J_1AINDXP
BUZIDIdentification of the Line Item BUZIDCHAR1CHAR1
ERLKZCompletion indicator for line item KBLERLKZCHAR1CHAR1_X
PYCURCurrency for Automatic Payment PYCURCUKY5WAERS
PYAMTAmount in Payment Currency PYAMTCURR13(2) WERT7
BUPLABusiness Place BUPLACHAR4J_1BBRANCH
SECCOSection Code SECCOCHAR4SECCOSECCO_ABA
LSTARActivity Type LSTARCHAR6LSTARLARLART_EMPTY
GMVKZItem is in Execution FM_GMVKZCHAR1FM_GMVKZ
SRTYPEType of Additional Receivable FM_SRTYPECHAR2FM_SRTYPE
GRANT_NBRGrant GM_GRANT_NBRCHAR20ALPHAGM_GRANT_NBRGM_GRANT_NBRGRANTS_GENERIC
PRZNRBusiness Process CO_PRZNRCHAR12ALPHACO_PRZNRKWP
KONTTAccount Assignment Category for Industry Solution KONTT_FICHAR2KONTT_FI
KONTLAcct assignment string for industry-specific acct assignmnts KONTL_FICHAR50CHAR50
XNEGPIndicator: Negative posting XNEGPCHAR1XFELD
PENRCReason for late payment PENRCCHAR2CHAR2FM_PENRC
SEGMENTSegment for Segmental Reporting FB_SEGMENTCHAR10ALPHAFB_SEGMENT
PSEGMENTPartner Segment for Segmental Reporting FB_PSEGMENTCHAR10ALPHAFB_SEGMENT
HKTIDID for account details HKTIDCHAR5HKTID
BEWARTransaction Type RMVCTCHAR3RMVCT
FASTPAYPPA Fast Pay Indicator FMFG_FASTPAY_FLGCHAR1XFELD
PPA_EX_INDPPA Exclude Indicator EXCLUDE_FLGCHAR1XFELD
PEROP_BEGBilling Period of Performance Start Date FM_PEROP_FI_LOWDATS8DATUM
PEROP_ENDBilling Period of Performance End Date FM_PEROP_FI_HIGHDATS8DATUM
PGEBERPartner Fund FM_PFUNDCHAR10BP_GEBERPARTNER_FUND
PGRANT_NBRPartner Grant GM_GRANT_PARTNERCHAR20ALPHAGM_GRANT_NBRGRANTS_GENERIC
MEASUREFunded Program FM_MEASURECHAR24FM_MEASUREFM_MEASURE
BUDGET_PDFM: Budget Period FM_BUDGET_PERIODCHAR10FM_BUDGET_PERIODBUDPER
PBUDGET_PDFM: Partner Budget Period FM_PBUDGET_PERIODCHAR10FM_BUDGET_PERIODBUDPER
.INCLU--AP 0
PRODPERProduction Month (Date to find period and year) JV_PRODPERDATS8JV_PRODPER
.INCLU--AP 0
CHWRBDocument Parking: Amount not Modifiable CHWRBCHAR1CHAR1

Key field Non-key field



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

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

How to access SAP table BSEG_DATA

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