ICA_BSEG_ENTRY_VIEW_3SL

DDL: ICA_BSEG_ENTRY_VIEW_3SL Type: view_entity Package: FIN_ICA_MATCH

Example: Operational Account Doc Item

ICA_BSEG_ENTRY_VIEW_3SL is a CDS View that provides data about "Example: Operational Account Doc Item" in SAP S/4HANA. It reads from 2 data sources (ICA_MatchingOplAcctgDocItem, ICA_FiscalCalendarDate) and exposes 54 fields. Part of development package FIN_ICA_MATCH.

Data Sources (2)

SourceAliasJoin Type
ICA_MatchingOplAcctgDocItem bseg from
ICA_FiscalCalendarDate finsc_fisc_date inner

Annotations (5)

NameValueLevelField
EndUserText.label Example: Operational Account Doc Item view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
Metadata.ignorePropagatedAnnotations true view

Fields (54)

KeyFieldSource TableSource FieldDescription
RCLNT
method_id ICA_MatchingOplAcctgDocItem MatchingMethodID
DOCNR
DOCLN
GRREF
PSTAT
CSTAT
DUE_DATE
rbukrs ICA_MatchingOplAcctgDocItem CompanyCode Receiver Company Code
ref_belnr ICA_MatchingOplAcctgDocItem AccountingDocument Journal Entry
gjahr ICA_MatchingOplAcctgDocItem FiscalYear G/L Fiscal Year
ref_docln
ryear ICA_FiscalCalendarDate fiscal_year Tax Item Fiscal Year
poper ICA_FiscalCalendarDate fiscal_period Posting Period
fiscyearper ICA_FiscalCalendarDate fiscal_year_period Fiscal Year Period
periv ICA_FiscalCalendarDate fiscal_year_variant FY Variant
xopvw ICA_MatchingOplAcctgDocItem IsOpenItemManaged Open Item Management
augdt ICA_MatchingOplAcctgDocItem ClearingDate Clearing Date
augbl ICA_MatchingOplAcctgDocItem ClearingJournalEntry Clrng doc.
auggj ICA_MatchingOplAcctgDocItem ClearingJournalEntryFiscalYear Fiscal Year of Clearing Journal Entry
bschl ICA_MatchingOplAcctgDocItem PostingKey Posting Key
koart ICA_MatchingOplAcctgDocItem FinancialAccountType Fin. Account Type
umskz ICA_MatchingOplAcctgDocItem SpecialGLCode Special G/L Ind
rwcur ICA_MatchingOplAcctgDocItem TransactionCurrency Transaction Currency
AmountInTransactionCurrencyendaswsl
rhcur ICA_MatchingOplAcctgDocItem CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrencyendashsl
rfccur ICA_MatchingOplAcctgDocItem FunctionalCurrency Functional Currency
AmountInFunctionalCurrencyendasfcsl
zuonr ICA_MatchingOplAcctgDocItem AssignmentReference Assignment Reference
sgtxt ICA_MatchingOplAcctgDocItem DocumentItemText Text
rcomp ICA_MatchingOplAcctgDocItem Company Owner
rassc ICA_MatchingOplAcctgDocItem PartnerCompany Trading Partner
racct ICA_MatchingOplAcctgDocItem GLAccount General Ledger
lracct ICA_MatchingOplAcctgDocItem OperationalGLAccount Operational G/L Acct
kunnr ICA_MatchingOplAcctgDocItem Customer Sold-to Party
lifnr ICA_MatchingOplAcctgDocItem Supplier Supplier
awtyp ICA_MatchingOplAcctgDocItem ReferenceDocumentType Reference Document Type
awkey ICA_MatchingOplAcctgDocItem OriginalReferenceDocument Reference Key
awsys ICA_MatchingOplAcctgDocItem ReferenceDocumentLogicalSystem Ref. Doc. Lgcl Syst.
budat ICA_MatchingOplAcctgDocItem PostingDate Posting Date for GR
bldat ICA_MatchingOplAcctgDocItem DocumentDate Journal Entry Date
blart ICA_MatchingOplAcctgDocItem AccountingDocumentType Journal Entry Type
xblnr ICA_MatchingOplAcctgDocItem DocumentReferenceID Reference
bktxt ICA_MatchingOplAcctgDocItem AccountingDocumentHeaderText Doc.Header Text
xref1_hd ICA_MatchingOplAcctgDocItem Reference1InDocumentHeader Reference 1
xref2_hd ICA_MatchingOplAcctgDocItem Reference2InDocumentHeader Reference 2
usnam ICA_MatchingOplAcctgDocItem AccountingDocCreatedByUser User which created overhead document
timestamp ICA_MatchingOplAcctgDocItem Timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
aedat ICA_MatchingOplAcctgDocItem LastManualChangeDate Manual Change Date
bvorg ICA_MatchingOplAcctgDocItem IntercompanyTransaction Intercompany Transaction
xreversing ICA_MatchingOplAcctgDocItem IsReversal Reversal doc.
xreversed ICA_MatchingOplAcctgDocItem IsReversed Reversed?
bstat ICA_MatchingOplAcctgDocItem AccountingDocumentCategory Journal Entry Category

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_BSEG_ENTRY_VIEW_3SL.
-- 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_BSEG_ENTRY_VIEW_3SL AS
SELECT
  $session.client AS RCLNT,
  bseg.MatchingMethodID AS method_id,
  cast ('0000000000' as ica_docnr) AS DOCNR,
  cast (0 as ica_docln) AS DOCLN,
  cast ('000000000000' as ica_grref) AS GRREF,
  cast ('00' as ica_pstat) AS PSTAT,
  cast ('' as ica_cstat) AS CSTAT,
  cast ('00000000' as ica_due_date) AS DUE_DATE,
  bseg.CompanyCode AS rbukrs,
  bseg.AccountingDocument AS ref_belnr,
  bseg.FiscalYear AS gjahr,
  cast(concat('000', bseg.AccountingDocumentItem) as abap.char( 6 )) AS ref_docln,
  finsc_fisc_date.fiscal_year AS ryear,
  finsc_fisc_date.fiscal_period AS poper,
  finsc_fisc_date.fiscal_year_period AS fiscyearper,
  finsc_fisc_date.fiscal_year_variant AS periv,
  bseg.IsOpenItemManaged AS xopvw,
  bseg.ClearingDate AS augdt,
  bseg.ClearingJournalEntry AS augbl,
  bseg.ClearingJournalEntryFiscalYear AS auggj,
  bseg.PostingKey AS bschl,
  bseg.FinancialAccountType AS koart,
  bseg.SpecialGLCode AS umskz,
  bseg.TransactionCurrency AS rwcur,
  case when bseg.DebitCreditCode = 'H' then -bseg.AmountInTransactionCurrency else bseg.AmountInTransactionCurrency end as wsl AS AmountInTransactionCurrencyendaswsl,
  bseg.CompanyCodeCurrency AS rhcur,
  case when bseg.DebitCreditCode = 'H' then -bseg.AmountInCompanyCodeCurrency else bseg.AmountInCompanyCodeCurrency end as hsl AS AmountInCompanyCodeCurrencyendashsl,
  bseg.FunctionalCurrency AS rfccur,
  case when bseg.DebitCreditCode = 'H' then -bseg.AmountInFunctionalCurrency else bseg.AmountInFunctionalCurrency end as fcsl AS AmountInFunctionalCurrencyendasfcsl,
  bseg.AssignmentReference AS zuonr,
  bseg.DocumentItemText AS sgtxt,
  bseg.Company AS rcomp,
  bseg.PartnerCompany AS rassc,
  bseg.GLAccount AS racct,
  bseg.OperationalGLAccount AS lracct,
  bseg.Customer AS kunnr,
  bseg.Supplier AS lifnr,
  bseg.ReferenceDocumentType AS awtyp,
  bseg.OriginalReferenceDocument AS awkey,
  bseg.ReferenceDocumentLogicalSystem AS awsys,
  bseg.PostingDate AS budat,
  bseg.DocumentDate AS bldat,
  bseg.AccountingDocumentType AS blart,
  bseg.DocumentReferenceID AS xblnr,
  bseg.AccountingDocumentHeaderText AS bktxt,
  bseg.Reference1InDocumentHeader AS xref1_hd,
  bseg.Reference2InDocumentHeader AS xref2_hd,
  bseg.AccountingDocCreatedByUser AS usnam,
  bseg.Timestamp AS timestamp,
  bseg.LastManualChangeDate AS aedat,
  bseg.IntercompanyTransaction AS bvorg,
  bseg.IsReversal AS xreversing,
  bseg.IsReversed AS xreversed,
  bseg.AccountingDocumentCategory AS bstat
FROM ICA_MatchingOplAcctgDocItem AS bseg
INNER JOIN ICA_FiscalCalendarDate AS finsc_fisc_date ON /* join condition not captured in parsed metadata */
;