I_InhRepairUserStatusText

DDL: I_INHREPAIRUSERSTATUSTEXT Type: view BASIC Package: CRMS4_REPAIR_BO

User Status of In-House Repair – Text

I_InhRepairUserStatusText is a Basic CDS View that provides data about "User Status of In-House Repair – Text" in SAP S/4HANA. It reads from 3 data sources (I_CustMgmtLfcycUsrStsMapping, I_CustMgmtLifecycleUserStsText, I_ServiceDocumentType) and exposes 7 fields with key fields Language, InhRepairUserStatus, InhRepairType. It has 3 associations to related views. Part of development package CRMS4_REPAIR_BO.

Data Sources (3)

SourceAliasJoin Type
I_CustMgmtLfcycUsrStsMapping I_CustMgmtLfcycUsrStsMapping inner
I_CustMgmtLifecycleUserStsText I_CustMgmtLifecycleUserStsText from
I_ServiceDocumentType I_ServiceDocumentType inner

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_ServiceDocumentType _InhRepairType $projection.InhRepairType = _InhRepairType.ServiceDocumentType
[0..1] I_InhRepairUserStatus _InhRepairUserStatus $projection.InhRepairType = _InhRepairUserStatus.InhRepairType and $projection.InhRepairUserStatus = _InhRepairUserStatus.InhRepairUserStatus
[0..1] I_Language _Language $projection.Language = _Language.Language

Annotations (14)

NameValueLevelField
EndUserText.label User Status of In-House Repair – Text view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.dataCategory #TEXT view
ObjectModel.representativeKey InhRepairUserStatus view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IIHRUSRSTATUST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Language Language Report Text Language
KEY InhRepairUserStatus
KEY InhRepairType ServiceDocumentType Transaction Type
InhRepairUserStatusName Well Code Des.
_InhRepairType _InhRepairType
_InhRepairUserStatus _InhRepairUserStatus
_Language _Language

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_InhRepairUserStatusText.
-- 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 I_InhRepairUserStatusText AS
SELECT
  Language,
  cast(I_CustMgmtLifecycleUserStsText.CustMgmtLifecycleUserStatus as crms4_repa_header_status_lbl preserving type) AS InhRepairUserStatus,
  ServiceDocumentType AS InhRepairType,
  cast(CustMgmtLifecycleUserStsName as crms4_repa_hdr_status_dsc_lbl preserving type) AS InhRepairUserStatusName
FROM I_CustMgmtLifecycleUserStsText
INNER JOIN I_CustMgmtLfcycUsrStsMapping ON /* join condition not captured in parsed metadata */
INNER JOIN I_ServiceDocumentType ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ServiceDocumentType AS _InhRepairType ON InhRepairType = _InhRepairType.ServiceDocumentType  -- association [0..1]
LEFT OUTER JOIN I_InhRepairUserStatus AS _InhRepairUserStatus ON InhRepairType = _InhRepairUserStatus.InhRepairType AND InhRepairUserStatus = _InhRepairUserStatus.InhRepairUserStatus  -- association [0..1]
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language  -- association [0..1]
;