R_MasterWarrantyCounterTP

DDL: R_MASTERWARRANTYCOUNTERTP Type: view_entity TRANSACTIONAL Package: RAP_EAM_MASTERWARRANTY

Master Warranty Counter

R_MasterWarrantyCounterTP is a Transactional CDS View that provides data about "Master Warranty Counter" in SAP S/4HANA. It reads from 1 data source (I_WarrantyCounter) and exposes 15 fields with key fields MasterWarranty, MasterWarrantyItem, WarrantyCounterItem. It has 2 associations to related views. Part of development package RAP_EAM_MASTERWARRANTY.

Data Sources (1)

SourceAliasJoin Type
I_WarrantyCounter I_WarrantyCounter from

Associations (2)

CardinalityTargetAliasCondition
[1..1] R_MasterWarrantyTP _MasterWarranty $projection.MasterWarranty = _MasterWarranty.MasterWarranty
[1..1] I_Relstratchartext _CounterText $projection.CharcInternalID = _CounterText.CharacteristicInternalID

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Master Warranty Counter view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.representativeKey WarrantyCounterItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY MasterWarranty MasterWarranty Master warranty
KEY MasterWarrantyItem MasterWarrantyItem Item number
KEY WarrantyCounterItem WarrantyCounterItem WarrCount.Itm
MasterWarrantyItemSequence MasterWarrantyItem Item number
WarrantyCounterItemSequence WarrantyCounterItem WarrCount.Itm
WarrantyCounter WarrantyCounter WarrCounter
WarrantyCounterValue WarrantyCounterValue WarrCountValue
WarrantyCounterCharValue
WrntyCntrValUnitOfMsmt WrntyCntrValUnitOfMsmt DocMeasUnit
CharcInternalID CharcInternalID Characteristic Internal ID
CharcValueDescription
MasterWarrantyChangeDateTime _MasterWarranty MasterWarrantyChangeDateTime
MstrWrntyCntrSortingOrderValue MstrWrntyCntrSortingOrderValue Sort
_MasterWarranty _MasterWarranty
_MasterWarrantyItem _MasterWarrantyItem

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 R_MasterWarrantyCounterTP.
-- 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 R_MasterWarrantyCounterTP AS
SELECT
  MasterWarranty,
  MasterWarrantyItem,
  WarrantyCounterItem,
  MasterWarrantyItem AS MasterWarrantyItemSequence,
  WarrantyCounterItem AS WarrantyCounterItemSequence,
  WarrantyCounter,
  WarrantyCounterValue,
  cast( '' as abap.char( 22 )) AS WarrantyCounterCharValue,
  WrntyCntrValUnitOfMsmt,
  CharcInternalID,
  _CounterText[1:Language=$session.system_language].CharacteristicValueDescription AS CharcValueDescription,
  _MasterWarranty.MasterWarrantyChangeDateTime AS MasterWarrantyChangeDateTime,
  MstrWrntyCntrSortingOrderValue
FROM I_WarrantyCounter
LEFT OUTER JOIN R_MasterWarrantyTP AS _MasterWarranty ON MasterWarranty = _MasterWarranty.MasterWarranty  -- association [1..1]
LEFT OUTER JOIN I_Relstratchartext AS _CounterText ON CharcInternalID = _CounterText.CharacteristicInternalID  -- association [1..1]
;