FAC_DART_Z3_DOCUMENTTYPE

DDL: FAC_DART_Z3_DOCUMENTTYPE SQL: FAC_DZDOCTYPE Type: view Package: FINS_FI_DART_Z3

Document Type Master Data

FAC_DART_Z3_DOCUMENTTYPE is a CDS View that provides data about "Document Type Master Data" in SAP S/4HANA. It reads from 1 data source (t003) and exposes 23 fields with key field AccountingDocumentType. It has 1 association to related views. Part of development package FINS_FI_DART_Z3.

Data Sources (1)

SourceAliasJoin Type
t003 t003 from

Parameters (1)

NameTypeDefault
P_Language sylangu

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_AccountingDocumentTypeText _Text $projection.AccountingDocumentType = _Text.AccountingDocumentType

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName FAC_DZDOCTYPE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey AccountingDocumentType view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Document Type Master Data view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY AccountingDocumentType Rep. rec. doc. type
AccountingDocumentTypeName
AccountingDocumentNumberRange numkr Number range Orders
AuthorizationGroup brgru Authorization
AllowedFinancialAccountTypes koars Account Types
DocumentType stbla Reverse Document Type
IndDocumentPostedNet xnetb Net document type
IndPostingFromBillingDocument xrvup SAP Bill.Doc.
IndCanOnlyBeUsedinBatchInput xsybl BI Only
IndReferenceNumber xmref Reference Number
ExchangeRateType kurst Fix.rate type (EMU)
IndNegativePostings xnegp Reversl Posting Type
IndPostingstoAssets xkoaa Assets
IndPostingstoCustomer xkoad Customer
IndPostingstoVendor xkoak Supplier
IndPostingstoMaterialAccount xkoam Material
IndPostingstoGLAccount xkoas G/L Account
SystemClient mandt System Client
xrvup xrvup SAP Bill.Doc.
xsybl xsybl BI Only
kurst kurst Fix.rate type (EMU)
xkoasecc xkoasecc Secondary Costs
_Text _Text

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 FAC_DART_Z3_DOCUMENTTYPE.
-- 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.
-- SQL view name: FAC_DZDOCTYPE
-- Parameters: P_Language : sylangu

CREATE VIEW FAC_DART_Z3_DOCUMENTTYPE AS
SELECT
  cast ( blart as farp_blart preserving type ) AS AccountingDocumentType,
  _Text[1: Language = $parameters.P_Language].AccountingDocumentTypeName AS AccountingDocumentTypeName,
  numkr AS AccountingDocumentNumberRange,
  brgru AS AuthorizationGroup,
  koars AS AllowedFinancialAccountTypes,
  stbla AS DocumentType,
  xnetb AS IndDocumentPostedNet,
  xrvup AS IndPostingFromBillingDocument,
  xsybl AS IndCanOnlyBeUsedinBatchInput,
  xmref AS IndReferenceNumber,
  kurst AS ExchangeRateType,
  xnegp AS IndNegativePostings,
  xkoaa AS IndPostingstoAssets,
  xkoad AS IndPostingstoCustomer,
  xkoak AS IndPostingstoVendor,
  xkoam AS IndPostingstoMaterialAccount,
  xkoas AS IndPostingstoGLAccount,
  mandt AS SystemClient,
  xrvup,
  xsybl,
  kurst,
  xkoasecc
FROM t003
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _Text ON AccountingDocumentType = _Text.AccountingDocumentType  -- association [0..*]
;