P_AR_MappingOfclDocTypeDetn

DDL: P_AR_MAPPINGOFCLDOCTYPEDETN Type: view_entity COMPOSITE

P_AR_MappingOfclDocTypeDetn is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_AR_OfficialDocumentTypeDetn, I_CompanyCode, I_CountrySpecificDocumentType) and exposes 5 fields with key fields CompanyCode, AccountingDocumentType, AR_OfficialDocumentClass, AR_PrintCharacter.

Data Sources (3)

SourceAliasJoin Type
I_AR_OfficialDocumentTypeDetn AR_OfficialDocumentTypeDetn inner
I_CompanyCode CompanyCode from
I_CountrySpecificDocumentType CountrySpecificDocumentType inner

Parameters (1)

NameTypeDefault
P_AR_Report progname

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #M view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocumentType
KEY AR_OfficialDocumentClass
KEY AR_PrintCharacter
AR_OfficialDocumentType

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 P_AR_MappingOfclDocTypeDetn.
-- 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.
-- Parameters: P_AR_Report : progname

CREATE VIEW P_AR_MappingOfclDocTypeDetn AS
SELECT
  CompanyCode.CompanyCode AS CompanyCode,
  cast( CountrySpecificDocumentType.AccountingDocumentType as fis_blart preserving type ) AS AccountingDocumentType,
  cast( AR_OfficialDocumentTypeDetn.AR_OfficialDocumentClass as doccls preserving type ) AS AR_OfficialDocumentClass,
  cast( AR_OfficialDocumentTypeDetn.AR_PrintCharacter as j_1apchar preserving type ) AS AR_PrintCharacter,
  cast( AR_OfficialDocumentTypeDetn.AR_OfficialDocumentType as j_1aoftp_d preserving type ) AS AR_OfficialDocumentType
FROM I_CompanyCode AS CompanyCode
INNER JOIN I_CountrySpecificDocumentType AS CountrySpecificDocumentType ON /* join condition not captured in parsed metadata */
INNER JOIN I_AR_OfficialDocumentTypeDetn AS AR_OfficialDocumentTypeDetn ON /* join condition not captured in parsed metadata */
;