I_FreightContractVH
Value Help for Freight Contract
I_FreightContractVH is a Basic CDS View that provides data about "Value Help for Freight Contract" in SAP S/4HANA. It reads from 7 data sources and exposes 25 fields with key fields FreightContract, FreightContractItem, SequenceNumber. It has 2 associations to related views.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| ekko | a | from |
| I_FreightContractItemVH | b | left_outer |
| lfa1 | c | left_outer |
| eket | d | left_outer |
| t161 | e | left_outer |
| oij_el_layt_inf | f | left_outer |
| oij_el_cp_layt | g | left_outer |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_NominationVehicleIdVH | _VehicleId | $projection.VehicleId = _VehicleId.VehicleId |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFRCNTRCTVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #BASIC | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Value Help for Freight Contract | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FreightContract | ekko | ebeln | Freight Contract |
| KEY | FreightContractItem | I_FreightContractItemVH | FreightContractItem | Freight Contract Item |
| KEY | SequenceNumber | oij_el_layt_inf | seqnr | |
| ScheduleLine | eket | etenr | ||
| Material | I_FreightContractItemVH | Material | ||
| Plant | I_FreightContractItemVH | Plant | ||
| StorageLocation | I_FreightContractItemVH | StorageLocation | ||
| Supplier | ekko | lifnr | ||
| OrganizationBPName1 | lfa1 | name1 | ||
| PurchasingOrganization | ekko | ekorg | ||
| PurchasingDocumentType | ekko | bsart | ||
| OrderQuantity | I_FreightContractItemVH | OrderQuantity | ||
| OrderQuantityUnit | I_FreightContractItemVH | OrderQuantityUnit | ||
| ValuationType | I_FreightContractItemVH | ValuationType | ||
| Batch | eket | charg | ||
| NetPriceAmount | I_FreightContractItemVH | NetPriceAmount | ||
| DocumentCurrency | I_FreightContractItemVH | DocumentCurrency | ||
| ExchangeAgreement | I_FreightContractItemVH | ExchangeAgreement | ||
| ExchangeAgreementType | I_FreightContractItemVH | ExchangeAgreementType | ||
| ModeOfTransport | I_FreightContractItemVH | ModeOfTransport | ||
| LocationId | oij_el_layt_inf | locid | Location | |
| VehicleId | oij_el_cp_layt | vehicle | ||
| CompanyCode | ekko | bukrs | ||
| _VehicleId | _VehicleId | |||
| _Supplier | _Supplier |
@AbapCatalog.sqlViewName: 'IFRCNTRCTVH'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #BASIC
@Search.searchable: true
@ObjectModel:{
usageType.serviceQuality: #D,
usageType.sizeCategory: #L,
usageType.dataClass: #TRANSACTIONAL
}
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData: {blocking: #REQUIRED}
@EndUserText.label: 'Value Help for Freight Contract'
@ClientHandling.algorithm: #SESSION_VARIABLE
define view I_FreightContractVH
as select from ekko as a
left outer join I_FreightContractItemVH as b on a.ebeln = b.FreightContract
left outer join lfa1 as c on a.lifnr = c.lifnr
left outer join eket as d on b.FreightContract = d.ebeln
and b.PurchasingDocumentItem = d.ebelp
left outer join t161 as e on a.bstyp = e.bstyp
and a.bsart = e.bsart
left outer join oij_el_layt_inf as f on a.ebeln = f.vbeln
// added for dpp by aishwarya
left outer join oij_el_cp_layt as g on b.FreightContract = g.vbeln
and b.FreightContractItem = g.posnr
association [0..1] to I_NominationVehicleIdVH as _VehicleId on $projection.VehicleId = _VehicleId.VehicleId
association [0..1] to I_Supplier as _Supplier on $projection.Supplier = _Supplier.Supplier
{
@Search.defaultSearchElement: true
@EndUserText.label: 'Freight Contract'
key a.ebeln as FreightContract,
@EndUserText.label: 'Freight Contract Item'
key b.FreightContractItem as FreightContractItem,
@UI.hidden: true
key f.seqnr as SequenceNumber,
@UI.hidden: true
d.etenr as ScheduleLine,
b.Material as Material,
b.Plant as Plant,
@UI.hidden: true
b.StorageLocation as StorageLocation,
@UI.hidden: true
a.lifnr as Supplier,
@UI.hidden: true
c.name1 as OrganizationBPName1,
@UI.hidden: true
a.ekorg as PurchasingOrganization,
// @UI.selectionField: [{exclude: true}]
a.bsart as PurchasingDocumentType,
@UI.hidden: true
b.OrderQuantity as OrderQuantity,
@UI.hidden: true
b.OrderQuantityUnit as OrderQuantityUnit,
@UI.hidden: true
b.ValuationType as ValuationType,
@UI.hidden: true
d.charg as Batch,
@UI.hidden: true
b.NetPriceAmount as NetPriceAmount,
@UI.hidden: true
b.DocumentCurrency as DocumentCurrency,
@UI.hidden: true
b.ExchangeAgreement as ExchangeAgreement,
@UI.hidden: true
b.ExchangeAgreementType as ExchangeAgreementType,
@UI.hidden: true
b.ModeOfTransport as ModeOfTransport,
@EndUserText.label: 'Location'
@UI.hidden: true
f.locid as LocationId,
// added for dpp by aishwarya
@UI.hidden: true
g.vehicle as VehicleId,
@UI.hidden: true
a.bukrs as CompanyCode,
_VehicleId,
@Consumption.valueHelp: '_Supplier'
_Supplier
}
where
a.bstyp = 'K'
and a.bsart = 'FC'
and a.loekz = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_FREIGHTCONTRACTITEMVH",
"EKET",
"EKKO",
"LFA1",
"OIJ_EL_CP_LAYT",
"OIJ_EL_LAYT_INF",
"T161"
],
"ASSOCIATED":
[
"I_NOMINATIONVEHICLEIDVH",
"I_SUPPLIER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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