I_BR_CTeVehicle
Brazil CTe Vehicles
I_BR_CTeVehicle is a Basic CDS View that provides data about "Brazil CTe Vehicles" in SAP S/4HANA. It reads from 1 data source (j_1bcte_d_res) and exposes 17 fields with key fields BR_CTe, BR_CTeVehicleSequenceNmbr, BR_CTeVehicleRENAVAM. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| j_1bcte_d_res | CTeVehicle | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_BR_VehicleOwnershipType | _BR_VehicleOwnershipType | _BR_VehicleOwnershipType.VehicleOwnershipType = $projection.VehicleOwnershipType |
| [0..1] | I_BR_CTeVehicleType | _BR_CTeVehicleType | _BR_CTeVehicleType.VehicleType = $projection.VehicleType |
| [0..1] | I_BR_VehicleAxlesType | _BR_VehicleAxlesType | _BR_VehicleAxlesType.BR_CTeVehicleAxlesType = $projection.BR_CTeVehicleAxlesType |
| [0..1] | I_BR_TrailerType | _BR_TrailerType | _BR_TrailerType.BR_CTeVehicleTrailerType = $projection.BR_CTeVehicleTrailerType |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IBRCTEVEHICLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Brazil CTe Vehicles | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BR_CTe | j_1bcte_d_res | docnum | Ref. Doc Number |
| KEY | BR_CTeVehicleSequenceNmbr | j_1bcte_d_res | counter | Version |
| KEY | BR_CTeVehicleRENAVAM | j_1bcte_d_res | renavam | RENAVAM |
| BR_CTeVehicleLicensePlate | ||||
| BR_CTeVehicleTareWeight | j_1bcte_d_res | tare_kg | Tare Weight Kg | |
| BR_CTeVehicleCapacityWeight | ||||
| BR_CTeVehicleCapacityLength | j_1bcte_d_res | capa_m | Capa m3 | |
| VehicleOwnershipType | j_1bcte_d_res | owner_tp | Ownership Type | |
| VehicleType | j_1bcte_d_res | res_type | Vehicle Type | |
| BR_CTeVehicleAxlesType | j_1bcte_d_res | rodado_tp | Vehicle Axis Type | |
| BR_CTeVehicleTrailerType | j_1bcte_d_res | car_tp | Trailer Type | |
| BR_CTeVehicleRegion | ||||
| BR_CTeVehicleSeal | ||||
| _BR_VehicleOwnershipType | _BR_VehicleOwnershipType | |||
| _BR_CTeVehicleType | _BR_CTeVehicleType | |||
| _BR_VehicleAxlesType | _BR_VehicleAxlesType | |||
| _BR_TrailerType | _BR_TrailerType |
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_CTeVehicle.
-- 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: IBRCTEVEHICLE
CREATE VIEW I_BR_CTeVehicle AS
SELECT
CTeVehicle.docnum AS BR_CTe,
CTeVehicle.counter AS BR_CTeVehicleSequenceNmbr,
CTeVehicle.renavam AS BR_CTeVehicleRENAVAM,
cast(CTeVehicle.plate as logbr_plate_cte preserving type) AS BR_CTeVehicleLicensePlate,
CTeVehicle.tare_kg AS BR_CTeVehicleTareWeight,
cast(CTeVehicle.capa_kg as logbr_capa_kg_cte) AS BR_CTeVehicleCapacityWeight,
CTeVehicle.capa_m AS BR_CTeVehicleCapacityLength,
CTeVehicle.owner_tp AS VehicleOwnershipType,
CTeVehicle.res_type AS VehicleType,
CTeVehicle.rodado_tp AS BR_CTeVehicleAxlesType,
CTeVehicle.car_tp AS BR_CTeVehicleTrailerType,
cast(CTeVehicle.state as logbr_vehicle_region preserving type) AS BR_CTeVehicleRegion,
cast(CTeVehicle.seal_nr as logbr_seal_cte preserving type) AS BR_CTeVehicleSeal
FROM j_1bcte_d_res AS CTeVehicle
LEFT OUTER JOIN I_BR_VehicleOwnershipType AS _BR_VehicleOwnershipType ON _BR_VehicleOwnershipType.VehicleOwnershipType = VehicleOwnershipType -- association [0..1]
LEFT OUTER JOIN I_BR_CTeVehicleType AS _BR_CTeVehicleType ON _BR_CTeVehicleType.VehicleType = VehicleType -- association [0..1]
LEFT OUTER JOIN I_BR_VehicleAxlesType AS _BR_VehicleAxlesType ON _BR_VehicleAxlesType.BR_CTeVehicleAxlesType = BR_CTeVehicleAxlesType -- association [0..1]
LEFT OUTER JOIN I_BR_TrailerType AS _BR_TrailerType ON _BR_TrailerType.BR_CTeVehicleTrailerType = BR_CTeVehicleTrailerType -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA