I_BR_CTeDocumentType

DDL: I_BR_CTEDOCUMENTTYPE SQL: IBRCTEDOCTYPE Type: view BASIC

Brazil CT-e Document Type

I_BR_CTeDocumentType (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Country or Region-Specific Functions for Finance

I_BR_CTeDocumentType is a Basic CDS View that provides data about "Brazil CT-e Document Type" in SAP S/4HANA. It reads from 1 data source (dd07l) and exposes 2 fields with key field BR_CTeDocumentType. It has 1 association to related views.

SAP Help Documentation

CategoryElectronic Documents
StatusReleased
Purpose
This CDS view provides freight document type codes to the CT-e.

Structure
The key field is CTeDocumentType . Measures and attributes CTe Document Type ( CTeDocumentType )

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCountry or Region-Specific Functions for Finance
Application ComponentFI-LOC-LO-BR
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities
PackageCountry or Region-Specific Functions for Finance for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides freight document type codes to the CT-e. </p>

Documentation

Data Sources (1)

SourceAliasJoin Type
dd07l dd07l from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_BR_CTeDocumentTypeText _Text $projection.BR_CTeDocumentType = _Text.BR_CTeDocumentType

Annotations (15)

NameValueLevelField
EndUserText.label Brazil CT-e Document Type view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IBRCTEDOCTYPE view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey BR_CTeDocumentType view
ObjectModel.compositionRoot true view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.resultSet.sizeCategory #XS view
AbapCatalog.preserveKey true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY BR_CTeDocumentType CT-e Type
_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 I_BR_CTeDocumentType.
-- 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: IBRCTEDOCTYPE

CREATE VIEW I_BR_CTeDocumentType AS
SELECT
  cast ( substring( domvalue_l, 1, 1 ) as logbr_type_cte preserving type ) AS BR_CTeDocumentType
FROM dd07l
LEFT OUTER JOIN I_BR_CTeDocumentTypeText AS _Text ON BR_CTeDocumentType = _Text.BR_CTeDocumentType  -- association [0..*]
;