I_BR_VehicleFuelType_2

DDL: I_BR_VEHICLEFUELTYPE_2 SQL: IBRVEHFUELTYPE2 Type: view BASIC

Brazil Nota Fiscal Vehicle Fuel Type

I_BR_VehicleFuelType_2 (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_VehicleFuelType_2 is a Basic CDS View that provides data about "Brazil Nota Fiscal Vehicle Fuel Type" in SAP S/4HANA. It reads from 1 data source (j_1bfueltype) and exposes 2 fields with key field VehicleFuelType. It has 1 association to related views.

SAP Help Documentation

CategoryElectronic Documents
Purpose
This CDS view provides the vehicle fuel type codes available to be used in the nota fiscal according to the settings you made in the Update NF-e Fuel Type Customizing activity. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization object assigned: LOBR_NFCDS (Authorization objects for Nota Fiscal CDS Views) Configuration You can update the fuel types available in the electronic nota fiscal by accessing the Update NF-e Fuel Type Customizing activity under SAP Customizing Implementation Guide Logistics - General Tax on Goods Movements Brazil Electronic Fiscal Documents Mapping to NF-e Vehicle.

Structure
Important Fields Important fields in this view include the following: Field Name Description VEHICLEFUELTYPE Vehicle Fuel Type

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 the vehicle fuel type codes available to be used in the nota fiscal according to the settings you made in the Update NF-e Fuel Type Customizing activity.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
j_1bfueltype j_1bfueltype from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_BR_VehicleFuelTypeText_2 _Text $projection.VehicleFuelType = _Text.VehicleFuelType

Annotations (15)

NameValueLevelField
EndUserText.label Brazil Nota Fiscal Vehicle Fuel Type view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IBRVEHFUELTYPE2 view
ObjectModel.representativeKey VehicleFuelType view
ObjectModel.compositionRoot true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
AbapCatalog.preserveKey true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY VehicleFuelType Vehicle Fuel 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_VehicleFuelType_2.
-- 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: IBRVEHFUELTYPE2

CREATE VIEW I_BR_VehicleFuelType_2 AS
SELECT
  cast ( tpcomb as logbr_vehiclefueltype preserving type ) AS VehicleFuelType
FROM j_1bfueltype
LEFT OUTER JOIN I_BR_VehicleFuelTypeText_2 AS _Text ON VehicleFuelType = _Text.VehicleFuelType  -- association [0..*]
;