C_SalesDocumentTypeVH

DDL: C_SALESDOCUMENTTYPEVH Type: view_entity CONSUMPTION

JIT Sales Document Type : Consumption VH

C_SalesDocumentTypeVH is a Consumption CDS View that provides data about "JIT Sales Document Type : Consumption VH" in SAP S/4HANA. It has 1 association to related views.

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_SalesDocumentTypeText _Text $projection.SalesDocumentType = _Text.SalesDocumentType

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Consumption.ranked true view
EndUserText.label JIT Sales Document Type : Consumption VH view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey SalesDocumentType view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view
VDM.viewType #CONSUMPTION view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY SalesDocumentType SalesDocumentType Sales Doc. Type
SalesDocumentTypeName
SDDocumentCategory SDDocumentCategory Document Cat.
RetsMgmtIsActive RetsMgmtIsActive
SalesDocumentTypeLangDepdnt
_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 C_SalesDocumentTypeVH.
-- 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 C_SalesDocumentTypeVH AS
SELECT
  SalesDocumentType,
  cast(_Text[1: Language=$session.system_language].SalesDocumentTypeName as tvakt_bezei preserving type) AS SalesDocumentTypeName,
  SDDocumentCategory,
  RetsMgmtIsActive,
  SalesDocumentType._SalesDocumentTypeLangDepdnt[1:Language=$session.system_language].SalesDocumentTypeLangDepdnt AS SalesDocumentTypeLangDepdnt
LEFT OUTER JOIN I_SalesDocumentTypeText AS _Text ON SalesDocumentType = _Text.SalesDocumentType  -- association [0..*]
;