R_PhysInvtryBookSrlNmbrDraft

DDL: R_PHYSINVTRYBOOKSRLNMBRDRAFT Type: view_entity BASIC Package: MM_IM_RAP_PI

Query view for book serial number

R_PhysInvtryBookSrlNmbrDraft is a Basic CDS View that provides data about "Query view for book serial number" in SAP S/4HANA. It reads from 1 data source (dpiboksernrdraft) and exposes 16 fields with key fields SerialNumber, FiscalYear, PhysicalInventoryDocument, PhysicalInventoryDocumentItem, DraftUUID. It has 1 association to related views. Part of development package MM_IM_RAP_PI.

Data Sources (1)

SourceAliasJoin Type
dpiboksernrdraft dpiboksernrdraft from

Associations (1)

CardinalityTargetAliasCondition
[1..1] R_PhysInvtryDocumentItemDraft _PhysInvtryDocumentItemDraft $projection.ParentDraftUUID = _PhysInvtryDocumentItemDraft.DraftUUID and $projection.FiscalYear = _PhysInvtryDocumentItemDraft.FiscalYear and $projection.PhysicalInventoryDocument = _PhysInvtryDocumentItemDraft.PhysicalInventoryDocument and $projection.PhysicalInventoryDocumentItem = _PhysInvtryDocumentItemDraft.PhysicalInventoryDocumentItem

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Query view for book serial number view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY SerialNumber serialnumber Serial Number
KEY FiscalYear fiscalyear G/L Fiscal Year
KEY PhysicalInventoryDocument physicalinventorydocument Physical Inventory Document
KEY PhysicalInventoryDocumentItem physicalinventorydocumentitem Physical Inventory Document Item
KEY DraftUUID draftuuid UUID
ParentDraftUUID parentdraftuuid NodeID
SerialNumberPhysicalInvtryType serialnumberphysicalinvtrytype Serial Number Physical Inventory Type
Equipment equipment Equipment check
PhysInvtryDocDraftUUID physinvtrydocdraftuuid Draft Document ID
DraftEntityCreationDateTime draftentitycreationdatetime Draft Created On
DraftEntityLastChangeDateTime draftentitylastchangedatetime Draft Last Changed On
DraftAdministrativeDataUUID draftadministrativedatauuid UUID
DraftEntityOperationCode draftentityoperationcode Draft - Operation Code
HasActiveEntity hasactiveentity TRUE
DraftFieldChanges draftfieldchanges Field Changes
_PhysInvtryDocumentItemDraft _PhysInvtryDocumentItemDraft

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_PhysInvtryBookSrlNmbrDraft.
-- 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_PhysInvtryBookSrlNmbrDraft AS
SELECT
  SerialNumber,
  FiscalYear,
  PhysicalInventoryDocument,
  PhysicalInventoryDocumentItem,
  DraftUUID,
  ParentDraftUUID,
  SerialNumberPhysicalInvtryType,
  Equipment,
  PhysInvtryDocDraftUUID,
  DraftEntityCreationDateTime,
  DraftEntityLastChangeDateTime,
  DraftAdministrativeDataUUID,
  DraftEntityOperationCode,
  HasActiveEntity,
  DraftFieldChanges
FROM dpiboksernrdraft
LEFT OUTER JOIN R_PhysInvtryDocumentItemDraft AS _PhysInvtryDocumentItemDraft ON ParentDraftUUID = _PhysInvtryDocumentItemDraft.DraftUUID AND FiscalYear = _PhysInvtryDocumentItemDraft.FiscalYear AND PhysicalInventoryDocument = _PhysInvtryDocumentItemDraft.PhysicalInventoryDocument AND PhysicalInventoryDocumentItem = _PhysInvtryDocumentItemDraft.PhysicalInventoryDocumentItem  -- association [1..1]
;