ICA_MatchingOplAcctgDocItem

DDL: ICA_MATCHINGOPLACCTGDOCITEM Type: view_entity Package: FIN_ICA_MATCH

Match Opl Accounting Document Item

ICA_MatchingOplAcctgDocItem is a CDS View that provides data about "Match Opl Accounting Document Item" in SAP S/4HANA. It reads from 3 data sources (bseg, bkpf, t001) and exposes 330 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It has 1 association to related views. Part of development package FIN_ICA_MATCH.

Data Sources (3)

SourceAliasJoin Type
bseg a from
bkpf b inner
t001 c inner

Associations (1)

CardinalityTargetAliasCondition
[1] E_OperationalAcctgDocItem _Extension $projection.CompanyCode = _Extension.CompanyCode and $projection.FiscalYear = _Extension.FiscalYear and $projection.AccountingDocument = _Extension.AccountingDocument and $projection.AccountingDocumentItem = _Extension.AccountingDocumentItem

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Match Opl Accounting Document Item view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
Metadata.ignorePropagatedAnnotations true view

Fields (330)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bseg bukrs Value
KEY AccountingDocument bseg belnr SD Document
KEY FiscalYear bseg gjahr Settlement Year
KEY AccountingDocumentItem bseg buzei Posting View Item
MatchingMethodID
ChartOfAccounts t001 ktopl G/L Chart of Accounts
AccountingDocumentItemType bseg buzid Line Item ID
ClearingDate bseg augdt Clearing
ClearingCreationDate bseg augcp ClearingEntDate
ClearingJournalEntryFiscalYear bseg auggj Clrg Fiscal Yr
ClearingDocFiscalYear
ClearingJournalEntry bseg augbl Clrng doc.
ClearingAccountingDocument
PostingKey bseg bschl Posting Key
FinancialAccountType bseg koart Account type
SpecialGLCode bseg umskz Special G/L Ind
SpecialGLTransactionType bseg umsks Transact.Type
DebitCreditCode bseg shkzg Returns
BusinessArea bseg gsber Business Area
PartnerBusinessArea bseg pargb Trdg Part.BA
TaxCode bseg mwskz Tax Code
TaxCountry bseg tax_country Tax Ctry/Rgn
TaxRateValidityStartDate bseg txdat_from Tax Rate Valid-From
WithholdingTaxCode bseg qsskz WTax Code
TaxType bseg mwart Tax Type
TaxItemGroup bseg txgrp Tax off grpg
TransactionTypeDetermination bseg ktosl Transaction
ValueDate bseg valut Value date
AssignmentReference bseg zuonr Finance Project
DocumentItemText bseg sgtxt Text
PartnerCompany bseg vbund Trading Partner
FinancialTransactionType bseg bewar Transact. Type
CorporateGroupAccount bseg altkt Group Account Number
PlanningLevel bseg fdlev Planning Level
ControllingArea bseg kokrs Org. Value
CostCenter bseg kostl Substitute CC
OrderID bseg aufnr SettlementOrder
BillingDocument bseg vbeln SD Sched. Agmt
SalesDocument bseg vbel2 Sales Document
SalesDocumentItem bseg posn2 Item
ScheduleLine bseg eten2 Schedule Line
ServiceDocumentType bseg service_doc_type Transaction Type
ServiceDocument bseg service_doc_id Transaction ID
ServiceDocumentItem bseg service_doc_item_id Service Doc. Item
MasterFixedAsset bseg anln1 Asset
FixedAsset bseg anln2 Sub-number
AssetTransactionType bseg anbwa Trans. type
AssetValueDate bseg bzdat Reference date
PersonnelNumber bseg pernr Personnel no.
IsSalesRelated bseg xumsw Sales-Related
LineItemDisplayIsEnabled bseg xkres Line Items
IsOpenItemManaged bseg xopvw OI Management
AddressAndBankIsSetManually
DownPaymentIsNetProcedure bseg xanet Indicator: Down Payment in Net Procedure?
IsNotCashDiscountLiable bseg xskrl W/o CashDsc.
IsAutomaticallyCreated bseg xauto Auto. Item Keys
IsUsedInPaymentTransaction bseg xzahl Payt Tran.
OperationalGLAccount bseg saknr G/L Account
GLAccount bseg hkont Transfer acct
Customer bseg kunnr Stock customer
Supplier bseg lifnr Vendor no.
BranchAccount bseg filkd Branch
IsBalanceSheetAccount bseg xbilk Checkbox
ProfitLossAccountType bseg gvtyp P&L state. acct
SpecialGLAccountAssignment bseg hzuon Sp.G/L Assgt
DueCalculationBaseDate bseg zfbdt Payment date
PaymentTerms bseg zterm Terms of Payment
CashDiscount1Days bseg zbd1t Payment in
CashDiscount2Days bseg zbd2t Payment in
NetPaymentDays bseg zbd3t Payment in
CashDiscount1Percent bseg zbd1p Max. Cash Dis. (%)
CashDiscount2Percent bseg zbd2p Nrm. Cash Dis. (%)
PaymentMethod bseg zlsch Pymt Meth.
PaymentBlockingReason bseg zlspr Pymt Lock Rsn
FixedCashDiscount bseg zbfix Fixed
HouseBank bseg hbkid House Bank
BPBankAccountInternalID bseg bvtyp Part.bank type
TaxDistributionCode1 bseg mwsk1 Tax Code
TaxDistributionCode2 bseg mwsk2 W/Tax Code
TaxDistributionCode3 bseg mwsk3 Tax Code
InvoiceReference bseg rebzg Invoice Ref.
InvoiceReferenceFiscalYear bseg rebzj Fiscal Year
InvoiceItemReference bseg rebzz Item
FollowOnDocumentType bseg rebzt Follow-On Doc. Type
StateCentralBankPaymentReason bseg lzbkz SCB Ind.
SupplyingCountry bseg landl Supply C/R
InvoiceList bseg samnr Collect.Inv.
BillOfExchangeUsageDocument bseg disbn Usage Document
BillOfExchangeUsage bseg wverw Usage
DunningKey bseg mschl Dunning key
DunningBlockingReason bseg mansp DunnLockReason
LastDunningDate bseg madat Last Dunned
DunningLevel bseg manst Dunning Level
DunningArea bseg maber Dunning Area
PaytSlipWthRefSubscriber bseg esrnr not in use
PaytSlipWthRefReference bseg esrre not in use
PaytSlipWthRefCheckDigit bseg esrpz not in use
WithholdingTaxCertificate bseg qsznr Exemption No.
Product
Plant bseg werks Receiving Plant
PurchasingDocument bseg ebeln Source PurchDoc
PurchasingDocumentItem bseg ebelp Item pur. doc.
AccountAssignmentNumber bseg zekkn Account Assgmt No.
IsCompletelyDelivered bseg elikz Delivery Completion
MaterialPriceControl bseg vprsv Price control
ValuationArea bseg bwkey Valuation Area
InventoryValuationType bseg bwtar Valuation Type
VATRegistration bseg stceg VAT Reg. No.
DelivOfGoodsDestCountry bseg egbld Dest. C/R
DelivOfGoodsOriginCountry bseg eglld Supplying C/R
PaymentDifferenceReason bseg rstgr Reason Code
ProfitCenter bseg prctr Profit Centers
JointVenture bseg vname Volatility Name
JointVentureCostRecoveryCode bseg recid Statistical Key Figure Item
JointVentureEquityGroup bseg egrup Equity group
JointVenturePartner
TreasuryContractType bseg vertt Contract Type
AssetContract bseg vertn Int. dist. key
CashFlowType bseg vbewa Flow Type
TaxJurisdiction bseg txjcd Tax Jurisdict.
REInternalFinNumber
RealEstateObject bseg imkey Real Estate Key
SettlementReferenceDate bseg dabrz Reference date
CommitmentItem bseg fipos Commitment item
CommitmentItemShortID
CostObject bseg kstrg Cost Objects
ProjectNetwork bseg nplnr Network
OrderInternalBillOfOperations bseg aufpl TaskList No.Ops
OrderIntBillOfOperationsItem bseg aplzl Plan No.f.Oper.
WBSElementInternalID
ProfitabilitySegment_2
JointVentureEquityType bseg etype RDS Entity Type
IsEUTriangularDeal bseg xegdr EU Triang. Deal
CostOriginGroup bseg hrkft Origin group order
CompanyCodeCurrencyDetnMethod bseg hwmet Calculation Method
ClearingIsReversed bseg xragl Reverse clrg
PaymentMethodSupplement bseg uzawe Pmnt Meth. Sup.
AlternativeGLAccount bseg lokkt Local Acct No.
FundsCenter bseg fistl Funds Center
Fund bseg geber Fund
TaxCompanyCode bseg stbuk Tax comp. code
PartnerProfitCenter bseg pprct Partner PC
Reference1IDByBusinessPartner bseg xref1 Reference Key 1
Reference2IDByBusinessPartner bseg xref2 Reference Key 2
EarmarkedFundsDocument bseg kblnr Earmarked funds
EarmarkedFundsDocumentItem bseg kblpos Document Item
IsNegativePosting bseg xnegp Reversl Posting Type
PaymentCardItem bseg rfzei Payt Card Item
PaymentCardPaymentSettlement bseg ccbtc Settlement
CreditControlArea bseg kkber Cred.Contr.Area
AlternativePayeePayer bseg empfb Payer
Reference3IDByBusinessPartner bseg xref3 Third Reference
DataExchangeInstruction1 bseg dtws1 Instruct. Key 1
DataExchangeInstruction2 bseg dtws2 Instruct. Key 2
DataExchangeInstruction3 bseg dtws3 Instruct. key 3
DataExchangeInstruction4 bseg dtws4 Instruct. key 4
Region bseg grirg Region
HasPaymentOrder bseg xpypr Payment Sent
PaymentReference bseg kidno Payment Ref.
TaxDeterminationDate bseg txdat Tax Date
ClearingItem bseg agzei Clearing Item
BusinessPlace bseg bupla Business place
TaxSection bseg secco Section Code
CostCtrActivityType bseg lstar Activity Type
AccountsReceivableIsPledged bseg cession_kz AR Pledging Ind
AcctsReceivablePledgingCode
BusinessProcess bseg prznr Sender BProc
GrantID bseg grant_nbr Receiver Grant
FunctionalArea bseg fkber_long Functional Area
CustomerIsInExecution bseg gmvkz Execution
FundedProgram bseg measure obsolete
LedgerGLLineItem bseg docln Matching Document Line Item
Segment bseg segment Segment number
PartnerSegment bseg psegment Partner Segment
PartnerFunctionalArea bseg pfkber Partner FArea
HouseBankAccount bseg hktid House Bank Account
CostElement bseg kstar Settlement CE
TaxItemAcctgDocItemRef bseg taxps Tax doc. item number
PaymentServiceProvider bseg pays_prov PSP
PaymentRefByPaytSrvcProvider bseg pays_tran PSP Payment Ref.
SEPAMandate bseg mndid Mandate Ref.
ReferenceDocumentType bseg awtyp Reference Document Type
OriginalReferenceDocument bseg awkey RefKey GJE
ReferenceDocumentLogicalSystem bseg awsys Logical System
AccountingDocumentItemRef bseg posnr WBS Element
FiscalPeriod bseg h_monat Period
AccountingDocumentCategory bseg h_bstat Document Status
PostingDate bseg h_budat Posting Date
DocumentDate bseg h_bldat Document Date
AccountingDocumentType bseg h_blart Document Type
NetDueDate bseg netdt Due On
CashDiscount1DueDate bseg sk1dt Cash Discount 1
CashDiscount2DueDate bseg sk2dt Cash Discount 2
OffsettingAccount bseg gkont Offsetting Acct
OffsettingAccountType bseg gkart Offst.Acct Type
PartnerFund bseg pgeber Partner Fund
PartnerGrant bseg pgrant_nbr Partner Grant
BudgetPeriod bseg budget_pd Rec BudPer
PartnerBudgetPeriod bseg pbudget_pd Par. BudPer
BranchCode bseg j_1tpbupl Branch Code
JointVentureProductionDate
OplAcctgDocItmCntrySpcfcRef1 bseg glo_ref1 Country/Region Specific Reference 1
PaymentReason bseg payt_rsn Payment Reason
CashLedgerCompanyCode bseg re_bukrs Company Code
CashLedgerAccount bseg re_account Ex/Rv A/c in CL
PubSecBudgetAccountCoCode bseg bdgt_account_cocode Company Code for Budget Account
PubSecBudgetAccount bseg bdgt_account Budget Account
CompanyCodeCurrency bseg h_hwaer Local Currency
AmountInCompanyCodeCurrency bseg dmbtr Loc. amount
FunctionalCurrency bseg rfccur Functional Currency
AmountInFunctionalCurrency bseg fcsl Amount in FunctCrcy
TaxAmountInCoCodeCrcy bseg mwsts LC tax amount
TaxBaseAmountInCoCodeCrcy bseg hwbas LC Base Amt
ValuationDiffAmtInCoCodeCrcy bseg bdiff Valuation Diff.
CashDiscountAmtInCoCodeCrcy bseg sknto Discount Amt
TaxBrkdwnAmount1InCoCodeCrcy bseg dmbt1 Amount
TaxBrkdwnAmount2InCoCodeCrcy bseg dmbt2 Amount 1st ML Curr.
TaxBrkdwnAmount3InCoCodeCrcy bseg dmbt3 Amount 2nd ML Curr.
NonDcblTaxAmountInCoCodeCrcy bseg navhw Non-Deductible
InvoiceAmtInCoCodeCrcy bseg rewrt Invoice Value
TransactionCurrency bseg h_waers Currency
AmountInTransactionCurrency bseg wrbtr Gross Amount
OriginalTaxBaseAmount bseg txbfw Original Tax Base Amount
TaxAmount bseg wmwst Tax Amount
TaxBaseAmountInTransCrcy bseg fwbas Base Amount
WithholdingTaxBaseAmount bseg qsshb WTax Base
PlannedAmtInTransactionCrcy bseg fdwbt Planned Amount
CashDiscountBaseAmount bseg skfbt Disc. base
CashDiscountAmount bseg wskto CD Amount
NetPaymentAmount bseg nebtr Payment Amt
TaxBrkdwnAmount1InTransCrcy bseg wrbt1 Amount
TaxBrkdwnAmount2InTransCrcy bseg wrbt2 Amount
TaxBrkdwnAmount3InTransCrcy bseg wrbt3 Amount
WithholdingTaxAmount bseg qbshb Withholding Tax
WithholdingTaxExemptionAmt bseg qsfbt WTax-Exempt
NonDcblTaxAmountInTransCrcy bseg navfw Non-Deductible
InvoiceAmountInFrgnCurrency bseg rewwr FC Invoice Amt
BalanceTransactionCurrency bseg pswsl G/L Currency
AmountInBalanceTransacCrcy bseg pswbt G/L Amount
AdditionalCurrency1 bseg h_hwae2 Local curr. 2
ValuationDiffAmtInAddlCrcy1 bseg bdif2 Valuation Diff. 2
AmountInAdditionalCurrency1 bseg dmbe2 LC2 Amount
TaxAmountInAdditionalCurrency1 bseg mwst2 LC2 Tax
AdditionalCurrency2 bseg h_hwae3 Local curr. 3
AmountInAdditionalCurrency2 bseg dmbe3 LC3 Amount
TaxAmountInAdditionalCurrency2 bseg mwst3 LC3 Tax
ValuationDiffAmtInAddlCrcy2 bseg bdif3 Valuation Diff. 3
PaymentCurrency bseg pycur Paymnt Crcy
AmountInPaymentCurrency bseg pyamt Pt Crcy Amt
BaseUnit bseg meins Valuation Unit
Quantity bseg menge WarrCountValue
GoodsMovementEntryUnit bseg erfme Unit of Entry
QuantityInEntryUnit bseg erfmg Quantity in UnE
PurchasingDocumentPriceUnit bseg bprme PO Price Unit
PurchaseOrderQty bseg bpmng Qty. in OPUn
MaterialPriceUnitQty bseg peinh Unit of measure
EarmarkedFunds bseg kblnr Earmarked funds
EarmarkedFundsItem bseg kblpos Document Item
IN_GSTPartner bseg gst_part GST Partner
IN_GSTPlaceOfSupply bseg plc_sup Place of Supply
IN_HSNOrSACCode bseg hsn_sac HSN/SAC Code
clientNULLasTimestamp
LastManualChangeDate
LastAutomaticChangeDate
ExchangeRateDate bkpf wwert Translatn Date
AccountingDocCreatedByUser bkpf usnam User Name
TransactionCode bkpf tcode Undefined range (can be used for patch levels)
IntercompanyTransaction bkpf bvorg Intercompany Transac
DocumentReferenceID bkpf xblnr Reference
RecurringAccountingDocument bkpf dbblg Rec.Entry Doc.
ReverseDocument bkpf stblg Reversed With
ReverseDocumentFiscalYear bkpf stjah Year
AccountingDocumentHeaderText bkpf bktxt Header Text
NetAmountIsPosted bkpf xnetb Net document type
JrnlEntryIsPostedToPrevPeriod bkpf xrueb Back-Posting?
BusinessTransactionType bkpf glvor Bus.transaction
BatchInputSession bkpf grpid Session Name
FinancialManagementArea bkpf fikrs FM Area
ReversalIsPlanned bkpf xstov Reversal Flag
PlannedReversalDate bkpf stodt Reversal Date
TaxIsCalculatedAutomatically bkpf xmwst Calculate Tax
AdditionalCurrency1Role bkpf curt2 LC2 Crcy Type
AdditionalCurrency2Role bkpf curt3 LC3 Crcy Type
TaxBaseAmountIsNetAmount bkpf xsnet Net Entry
SourceCompanyCode bkpf ausbk Source CoCode
LogicalSystem bkpf awsys Logical System
TaxExchangeRate bkpf txkrs Tx Crcy Transl.
ReversalReason bkpf stgrd Reversal Reason
ParkedByUser
ParkingDate bkpf ppdat Parked On
ParkingTime bkpf pptme Parked At
Branch bkpf brnch Business Place
NmbrOfPages bkpf numpg Number of Pages
IsDiscountDocument bkpf adisc discount document
Reference1InDocumentHeader bkpf xref1_hd Ref.key(head) 1
Reference2InDocumentHeader bkpf xref2_hd Ref.key(head.)2
InvoiceReceiptDate bkpf reindat Inv. Recpt Date
Ledger bkpf rldnr Ledger (Compat.)
LedgerGroup bkpf ldgrp Target Ledger Group
AlternativeReferenceDocument
TaxReportingDate bkpf vatdate Valid From
TaxFulfillmentDate bkpf fulfilldate Tax Settlement Date
AccountingDocumentClass bkpf doccat Document Cat.
ExchangeRateType bkpf kurst Fix.rate type (EMU)
SenderLogicalSystem bkpf logsystem_sender Sender Log Sys.
SenderCompanyCode bkpf bukrs_sender Sender CoCode
SenderAccountingDocument bkpf belnr_sender Sender Doc.No.
SenderFiscalYear bkpf gjahr_sender Sender FiscalYr
ReversalReferenceDocumentCntxt bkpf aworg_rev Reversal Org.
ReversalReferenceDocument bkpf awref_rev Reversal Ref.
LatePaymentReason bkpf penrc Reason f. Delay
SalesDocumentCondition bkpf knumv Doc. Condition
IsReversal bkpf xreversing Reversal doc.
IsReversed bkpf xreversed Reversed
GLBusinessTransactionGroup bkpf glbtgrp GL Bus. Trans. Grp
CostAccountingValuationDate bkpf co_valdt Valuation Date
JrnlEntryCntrySpecificRef1 bkpf glo_ref1_hd Reference
JrnlEntryCntrySpecificDate1 bkpf glo_dat1_hd Date
JrnlEntryCntrySpecificRef2 bkpf glo_ref2_hd Country/Region Specific Reference 2
JrnlEntryCntrySpecificDate2 bkpf glo_dat2_hd Country/Region Specific Date 2
JrnlEntryCntrySpecificRef3 bkpf glo_ref3_hd Country/Region Specific Reference 3
JrnlEntryCntrySpecificDate3 bkpf glo_dat3_hd Country/Region Specific Date 3
JrnlEntryCntrySpecificRef4 bkpf glo_ref4_hd Country/Region Specific Reference 4
JrnlEntryCntrySpecificDate4 bkpf glo_dat4_hd Country/Region Specific Date 4
JrnlEntryCntrySpecificRef5 bkpf glo_ref5_hd Country/Region Specific Reference 5
JrnlEntryCntrySpecificDate5 bkpf glo_dat5_hd Country/Region Specific Date 5
JrnlEntryCntrySpecificBP1 bkpf glo_bp1_hd Ctry/Reg. Specific Business Partner 1
JrnlEntryCntrySpecificBP2 bkpf glo_bp2_hd Ctry/Reg. Specific Business Partner 2
WithholdingTaxReportingDate bkpf whtdate Wtax Reporting Date
Company t001 rcomp Trading Partner

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view ICA_MatchingOplAcctgDocItem.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW ICA_MatchingOplAcctgDocItem AS
SELECT
  a.bukrs AS CompanyCode,
  a.belnr AS AccountingDocument,
  a.gjahr AS FiscalYear,
  a.buzei AS AccountingDocumentItem,
  cast ('' as ica_method_id) AS MatchingMethodID,
  c.ktopl AS ChartOfAccounts,
  a.buzid AS AccountingDocumentItemType,
  a.augdt AS ClearingDate,
  a.augcp AS ClearingCreationDate,
  a.auggj AS ClearingJournalEntryFiscalYear,
  cast( a.auggj as fis_auggj_no_conv_depre preserving type ) AS ClearingDocFiscalYear,
  a.augbl AS ClearingJournalEntry,
  cast( a.augbl as fis_augbl_depre preserving type ) AS ClearingAccountingDocument,
  a.bschl AS PostingKey,
  a.koart AS FinancialAccountType,
  a.umskz AS SpecialGLCode,
  a.umsks AS SpecialGLTransactionType,
  a.shkzg AS DebitCreditCode,
  a.gsber AS BusinessArea,
  a.pargb AS PartnerBusinessArea,
  a.mwskz AS TaxCode,
  a.tax_country AS TaxCountry,
  a.txdat_from AS TaxRateValidityStartDate,
  a.qsskz AS WithholdingTaxCode,
  a.mwart AS TaxType,
  a.txgrp AS TaxItemGroup,
  a.ktosl AS TransactionTypeDetermination,
  a.valut AS ValueDate,
  a.zuonr AS AssignmentReference,
  a.sgtxt AS DocumentItemText,
  a.vbund AS PartnerCompany,
  a.bewar AS FinancialTransactionType,
  a.altkt AS CorporateGroupAccount,
  a.fdlev AS PlanningLevel,
  a.kokrs AS ControllingArea,
  a.kostl AS CostCenter,
  a.aufnr AS OrderID,
  a.vbeln AS BillingDocument,
  a.vbel2 AS SalesDocument,
  a.posn2 AS SalesDocumentItem,
  a.eten2 AS ScheduleLine,
  a.service_doc_type AS ServiceDocumentType,
  a.service_doc_id AS ServiceDocument,
  a.service_doc_item_id AS ServiceDocumentItem,
  a.anln1 AS MasterFixedAsset,
  a.anln2 AS FixedAsset,
  a.anbwa AS AssetTransactionType,
  a.bzdat AS AssetValueDate,
  a.pernr AS PersonnelNumber,
  a.xumsw AS IsSalesRelated,
  a.xkres AS LineItemDisplayIsEnabled,
  a.xopvw AS IsOpenItemManaged,
  cast( a.xcpdd as farp_xcpdd ) AS AddressAndBankIsSetManually,
  a.xanet AS DownPaymentIsNetProcedure,
  a.xskrl AS IsNotCashDiscountLiable,
  a.xauto AS IsAutomaticallyCreated,
  a.xzahl AS IsUsedInPaymentTransaction,
  a.saknr AS OperationalGLAccount,
  a.hkont AS GLAccount,
  a.kunnr AS Customer,
  a.lifnr AS Supplier,
  a.filkd AS BranchAccount,
  a.xbilk AS IsBalanceSheetAccount,
  a.gvtyp AS ProfitLossAccountType,
  a.hzuon AS SpecialGLAccountAssignment,
  a.zfbdt AS DueCalculationBaseDate,
  a.zterm AS PaymentTerms,
  a.zbd1t AS CashDiscount1Days,
  a.zbd2t AS CashDiscount2Days,
  a.zbd3t AS NetPaymentDays,
  a.zbd1p AS CashDiscount1Percent,
  a.zbd2p AS CashDiscount2Percent,
  a.zlsch AS PaymentMethod,
  a.zlspr AS PaymentBlockingReason,
  a.zbfix AS FixedCashDiscount,
  a.hbkid AS HouseBank,
  a.bvtyp AS BPBankAccountInternalID,
  a.mwsk1 AS TaxDistributionCode1,
  a.mwsk2 AS TaxDistributionCode2,
  a.mwsk3 AS TaxDistributionCode3,
  a.rebzg AS InvoiceReference,
  a.rebzj AS InvoiceReferenceFiscalYear,
  a.rebzz AS InvoiceItemReference,
  a.rebzt AS FollowOnDocumentType,
  a.lzbkz AS StateCentralBankPaymentReason,
  a.landl AS SupplyingCountry,
  a.samnr AS InvoiceList,
  a.disbn AS BillOfExchangeUsageDocument,
  a.wverw AS BillOfExchangeUsage,
  a.mschl AS DunningKey,
  a.mansp AS DunningBlockingReason,
  a.madat AS LastDunningDate,
  a.manst AS DunningLevel,
  a.maber AS DunningArea,
  a.esrnr AS PaytSlipWthRefSubscriber,
  a.esrre AS PaytSlipWthRefReference,
  a.esrpz AS PaytSlipWthRefCheckDigit,
  a.qsznr AS WithholdingTaxCertificate,
  cast( a.matnr as productnumber ) AS Product,
  a.werks AS Plant,
  a.ebeln AS PurchasingDocument,
  a.ebelp AS PurchasingDocumentItem,
  a.zekkn AS AccountAssignmentNumber,
  a.elikz AS IsCompletelyDelivered,
  a.vprsv AS MaterialPriceControl,
  a.bwkey AS ValuationArea,
  a.bwtar AS InventoryValuationType,
  a.stceg AS VATRegistration,
  a.egbld AS DelivOfGoodsDestCountry,
  a.eglld AS DelivOfGoodsOriginCountry,
  a.rstgr AS PaymentDifferenceReason,
  a.prctr AS ProfitCenter,
  a.vname AS JointVenture,
  a.recid AS JointVentureCostRecoveryCode,
  a.egrup AS JointVentureEquityGroup,
  cast( a.vptnr as jv_part_cds preserving type ) AS JointVenturePartner,
  a.vertt AS TreasuryContractType,
  a.vertn AS AssetContract,
  a.vbewa AS CashFlowType,
  a.txjcd AS TaxJurisdiction,
  cast( a.imkey as recaimkeyfi preserving type ) AS REInternalFinNumber,
  a.imkey AS RealEstateObject,
  a.dabrz AS SettlementReferenceDate,
  a.fipos AS CommitmentItem,
  cast( a.fipos as fis_fipos_shortid preserving type ) AS CommitmentItemShortID,
  a.kstrg AS CostObject,
  a.nplnr AS ProjectNetwork,
  a.aufpl AS OrderInternalBillOfOperations,
  a.aplzl AS OrderIntBillOfOperationsItem,
  cast( a.projk as fis_wbsint_no_conv preserving type ) AS WBSElementInternalID,
  cast( a.paobjnr as rkeobjnr_char ) AS ProfitabilitySegment_2,
  a.etype AS JointVentureEquityType,
  a.xegdr AS IsEUTriangularDeal,
  a.hrkft AS CostOriginGroup,
  a.hwmet AS CompanyCodeCurrencyDetnMethod,
  a.xragl AS ClearingIsReversed,
  a.uzawe AS PaymentMethodSupplement,
  a.lokkt AS AlternativeGLAccount,
  a.fistl AS FundsCenter,
  a.geber AS Fund,
  a.stbuk AS TaxCompanyCode,
  a.pprct AS PartnerProfitCenter,
  a.xref1 AS Reference1IDByBusinessPartner,
  a.xref2 AS Reference2IDByBusinessPartner,
  a.kblnr AS EarmarkedFundsDocument,
  a.kblpos AS EarmarkedFundsDocumentItem,
  a.xnegp AS IsNegativePosting,
  a.rfzei AS PaymentCardItem,
  a.ccbtc AS PaymentCardPaymentSettlement,
  a.kkber AS CreditControlArea,
  a.empfb AS AlternativePayeePayer,
  a.xref3 AS Reference3IDByBusinessPartner,
  a.dtws1 AS DataExchangeInstruction1,
  a.dtws2 AS DataExchangeInstruction2,
  a.dtws3 AS DataExchangeInstruction3,
  a.dtws4 AS DataExchangeInstruction4,
  a.grirg AS Region,
  a.xpypr AS HasPaymentOrder,
  a.kidno AS PaymentReference,
  a.txdat AS TaxDeterminationDate,
  a.agzei AS ClearingItem,
  a.bupla AS BusinessPlace,
  a.secco AS TaxSection,
  a.lstar AS CostCtrActivityType,
  a.cession_kz AS AccountsReceivableIsPledged,
  cast( a.cession_kz as fis_cession_kz_code preserving type ) AS AcctsReceivablePledgingCode,
  a.prznr AS BusinessProcess,
  a.grant_nbr AS GrantID,
  a.fkber_long AS FunctionalArea,
  a.gmvkz AS CustomerIsInExecution,
  a.measure AS FundedProgram,
  a.docln AS LedgerGLLineItem,
  a.segment AS Segment,
  a.psegment AS PartnerSegment,
  a.pfkber AS PartnerFunctionalArea,
  a.hktid AS HouseBankAccount,
  a.kstar AS CostElement,
  a.taxps AS TaxItemAcctgDocItemRef,
  a.pays_prov AS PaymentServiceProvider,
  a.pays_tran AS PaymentRefByPaytSrvcProvider,
  a.mndid AS SEPAMandate,
  a.awtyp AS ReferenceDocumentType,
  a.awkey AS OriginalReferenceDocument,
  a.awsys AS ReferenceDocumentLogicalSystem,
  a.posnr AS AccountingDocumentItemRef,
  a.h_monat AS FiscalPeriod,
  a.h_bstat AS AccountingDocumentCategory,
  a.h_budat AS PostingDate,
  a.h_bldat AS DocumentDate,
  a.h_blart AS AccountingDocumentType,
  a.netdt AS NetDueDate,
  a.sk1dt AS CashDiscount1DueDate,
  a.sk2dt AS CashDiscount2DueDate,
  a.gkont AS OffsettingAccount,
  a.gkart AS OffsettingAccountType,
  a.pgeber AS PartnerFund,
  a.pgrant_nbr AS PartnerGrant,
  a.budget_pd AS BudgetPeriod,
  a.pbudget_pd AS PartnerBudgetPeriod,
  a.j_1tpbupl AS BranchCode,
  cast( a.prodper as jv_prodper_cds preserving type ) AS JointVentureProductionDate,
  a.glo_ref1 AS OplAcctgDocItmCntrySpcfcRef1,
  a.payt_rsn AS PaymentReason,
  a.re_bukrs AS CashLedgerCompanyCode,
  a.re_account AS CashLedgerAccount,
  a.bdgt_account_cocode AS PubSecBudgetAccountCoCode,
  a.bdgt_account AS PubSecBudgetAccount,
  a.h_hwaer AS CompanyCodeCurrency,
  a.dmbtr AS AmountInCompanyCodeCurrency,
  a.rfccur AS FunctionalCurrency,
  a.fcsl AS AmountInFunctionalCurrency,
  a.mwsts AS TaxAmountInCoCodeCrcy,
  a.hwbas AS TaxBaseAmountInCoCodeCrcy,
  a.bdiff AS ValuationDiffAmtInCoCodeCrcy,
  a.sknto AS CashDiscountAmtInCoCodeCrcy,
  a.dmbt1 AS TaxBrkdwnAmount1InCoCodeCrcy,
  a.dmbt2 AS TaxBrkdwnAmount2InCoCodeCrcy,
  a.dmbt3 AS TaxBrkdwnAmount3InCoCodeCrcy,
  a.navhw AS NonDcblTaxAmountInCoCodeCrcy,
  a.rewrt AS InvoiceAmtInCoCodeCrcy,
  a.h_waers AS TransactionCurrency,
  a.wrbtr AS AmountInTransactionCurrency,
  a.txbfw AS OriginalTaxBaseAmount,
  a.wmwst AS TaxAmount,
  a.fwbas AS TaxBaseAmountInTransCrcy,
  a.qsshb AS WithholdingTaxBaseAmount,
  a.fdwbt AS PlannedAmtInTransactionCrcy,
  a.skfbt AS CashDiscountBaseAmount,
  a.wskto AS CashDiscountAmount,
  a.nebtr AS NetPaymentAmount,
  a.wrbt1 AS TaxBrkdwnAmount1InTransCrcy,
  a.wrbt2 AS TaxBrkdwnAmount2InTransCrcy,
  a.wrbt3 AS TaxBrkdwnAmount3InTransCrcy,
  a.qbshb AS WithholdingTaxAmount,
  a.qsfbt AS WithholdingTaxExemptionAmt,
  a.navfw AS NonDcblTaxAmountInTransCrcy,
  a.rewwr AS InvoiceAmountInFrgnCurrency,
  a.pswsl AS BalanceTransactionCurrency,
  a.pswbt AS AmountInBalanceTransacCrcy,
  a.h_hwae2 AS AdditionalCurrency1,
  a.bdif2 AS ValuationDiffAmtInAddlCrcy1,
  a.dmbe2 AS AmountInAdditionalCurrency1,
  a.mwst2 AS TaxAmountInAdditionalCurrency1,
  a.h_hwae3 AS AdditionalCurrency2,
  a.dmbe3 AS AmountInAdditionalCurrency2,
  a.mwst3 AS TaxAmountInAdditionalCurrency2,
  a.bdif3 AS ValuationDiffAmtInAddlCrcy2,
  a.pycur AS PaymentCurrency,
  a.pyamt AS AmountInPaymentCurrency,
  a.meins AS BaseUnit,
  a.menge AS Quantity,
  a.erfme AS GoodsMovementEntryUnit,
  a.erfmg AS QuantityInEntryUnit,
  a.bprme AS PurchasingDocumentPriceUnit,
  a.bpmng AS PurchaseOrderQty,
  a.peinh AS MaterialPriceUnitQty,
  a.kblnr AS EarmarkedFunds,
  a.kblpos AS EarmarkedFundsItem,
  a.gst_part AS IN_GSTPartner,
  a.plc_sup AS IN_GSTPlaceOfSupply,
  a.hsn_sac AS IN_HSNOrSACCode,
  cast ( b.aedat as fis_lastmanualchangedate preserving type ) AS LastManualChangeDate,
  cast ( b.upddt as fis_lastautomaticchangedate preserving type) AS LastAutomaticChangeDate,
  b.wwert AS ExchangeRateDate,
  b.usnam AS AccountingDocCreatedByUser,
  b.tcode AS TransactionCode,
  b.bvorg AS IntercompanyTransaction,
  b.xblnr AS DocumentReferenceID,
  b.dbblg AS RecurringAccountingDocument,
  b.stblg AS ReverseDocument,
  b.stjah AS ReverseDocumentFiscalYear,
  b.bktxt AS AccountingDocumentHeaderText,
  b.xnetb AS NetAmountIsPosted,
  b.xrueb AS JrnlEntryIsPostedToPrevPeriod,
  b.glvor AS BusinessTransactionType,
  b.grpid AS BatchInputSession,
  b.fikrs AS FinancialManagementArea,
  b.xstov AS ReversalIsPlanned,
  b.stodt AS PlannedReversalDate,
  b.xmwst AS TaxIsCalculatedAutomatically,
  b.curt2 AS AdditionalCurrency1Role,
  b.curt3 AS AdditionalCurrency2Role,
  b.xsnet AS TaxBaseAmountIsNetAmount,
  b.ausbk AS SourceCompanyCode,
  b.awsys AS LogicalSystem,
  b.txkrs AS TaxExchangeRate,
  b.stgrd AS ReversalReason,
  cast(b.ppnam as fis_ppnam preserving type ) AS ParkedByUser,
  b.ppdat AS ParkingDate,
  b.pptme AS ParkingTime,
  b.brnch AS Branch,
  b.numpg AS NmbrOfPages,
  b.adisc AS IsDiscountDocument,
  b.xref1_hd AS Reference1InDocumentHeader,
  b.xref2_hd AS Reference2InDocumentHeader,
  b.reindat AS InvoiceReceiptDate,
  b.rldnr AS Ledger,
  b.ldgrp AS LedgerGroup,
  cast(b.xblnr_alt as fis_xblnr_alt_alpha preserving type ) AS AlternativeReferenceDocument,
  b.vatdate AS TaxReportingDate,
  b.fulfilldate AS TaxFulfillmentDate,
  b.doccat AS AccountingDocumentClass,
  b.kurst AS ExchangeRateType,
  b.logsystem_sender AS SenderLogicalSystem,
  b.bukrs_sender AS SenderCompanyCode,
  b.belnr_sender AS SenderAccountingDocument,
  b.gjahr_sender AS SenderFiscalYear,
  b.aworg_rev AS ReversalReferenceDocumentCntxt,
  b.awref_rev AS ReversalReferenceDocument,
  b.penrc AS LatePaymentReason,
  b.knumv AS SalesDocumentCondition,
  b.xreversing AS IsReversal,
  b.xreversed AS IsReversed,
  b.glbtgrp AS GLBusinessTransactionGroup,
  b.co_valdt AS CostAccountingValuationDate,
  b.glo_ref1_hd AS JrnlEntryCntrySpecificRef1,
  b.glo_dat1_hd AS JrnlEntryCntrySpecificDate1,
  b.glo_ref2_hd AS JrnlEntryCntrySpecificRef2,
  b.glo_dat2_hd AS JrnlEntryCntrySpecificDate2,
  b.glo_ref3_hd AS JrnlEntryCntrySpecificRef3,
  b.glo_dat3_hd AS JrnlEntryCntrySpecificDate3,
  b.glo_ref4_hd AS JrnlEntryCntrySpecificRef4,
  b.glo_dat4_hd AS JrnlEntryCntrySpecificDate4,
  b.glo_ref5_hd AS JrnlEntryCntrySpecificRef5,
  b.glo_dat5_hd AS JrnlEntryCntrySpecificDate5,
  b.glo_bp1_hd AS JrnlEntryCntrySpecificBP1,
  b.glo_bp2_hd AS JrnlEntryCntrySpecificBP2,
  b.whtdate AS WithholdingTaxReportingDate,
  c.rcomp AS Company
FROM bseg AS a
INNER JOIN bkpf AS b ON /* join condition not captured in parsed metadata */
INNER JOIN t001 AS c ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN E_OperationalAcctgDocItem AS _Extension ON CompanyCode = _Extension.CompanyCode AND FiscalYear = _Extension.FiscalYear AND AccountingDocument = _Extension.AccountingDocument AND AccountingDocumentItem = _Extension.AccountingDocumentItem  -- association [1]
;