C_ServiceDocObjPgErrorLog

DDL: C_SERVICEDOCOBJPGERRORLOG SQL: CSRVCDOCERRORLOG Type: view CONSUMPTION Package: CRMS4_SERV_COMMON

View for Service document error messages

C_ServiceDocObjPgErrorLog is a Consumption CDS View that provides data about "View for Service document error messages" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 22 fields with key fields ServiceDocument, ServiceDocumentUUID, ServiceObjectType, ServiceDocumentType, ServiceDocErrorMsg. It has 1 association to related views. Part of development package CRMS4_SERV_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_SrvcDocErrorMessageDetail _SrvcDocErrorMessageDetail _SrvcDocErrorMessageDetail.ServiceDocument = '????'

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CSRVCDOCERRORLOG view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label View for Service document error messages view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey ServiceDocument view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocument ServiceDocument Transaction ID
KEY ServiceDocumentUUID ServiceDocumentUUID Object GUID
KEY ServiceObjectType ServiceObjectType Object Type
KEY ServiceDocumentType ServiceDocumentType Transaction Type
KEY ServiceDocErrorMsg Message
KEY ServiceDocErrorMsgNo Message No
KEY ApplicationMessageSerialNumber
ServiceDocErrorMsgType
ServiceDocErrorMsgTypeText Message Type
SrvcDocMsgCriticality
ServiceDocErrorMsgDesc _SrvcDocErrorMessageDetail ServiceDocErrorMsgDesc Message Description
ServiceDocErrorRefText Reference Object
ResponsibleEmployee ResponsibleEmployee Employee Resp.
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesGroupOrgUnitID SalesGroupOrgUnitID
ServiceOrganization ServiceOrganization

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 C_ServiceDocObjPgErrorLog.
-- 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: CSRVCDOCERRORLOG

CREATE VIEW C_ServiceDocObjPgErrorLog AS
SELECT
  ServiceDocument,
  ServiceDocumentUUID,
  ServiceObjectType,
  ServiceDocumentType,
  cast( '' as abap.char(20)) AS ServiceDocErrorMsg,
  cast( '' as abap.char(10)) AS ServiceDocErrorMsgNo,
  cast( '' as balmnr) AS ApplicationMessageSerialNumber,
  cast( '' as abap.char(1)) AS ServiceDocErrorMsgType,
  cast( '' as abap.char(12)) AS ServiceDocErrorMsgTypeText,
  cast( 1 as abap.int1) AS SrvcDocMsgCriticality,
  _SrvcDocErrorMessageDetail.ServiceDocErrorMsgDesc AS ServiceDocErrorMsgDesc,
  cast( '' as crmt_ref_obj_text) AS ServiceDocErrorRefText,
  ResponsibleEmployee,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesOffice,
  SalesGroup,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID,
  ServiceOrganization
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN I_SrvcDocErrorMessageDetail AS _SrvcDocErrorMessageDetail ON _SrvcDocErrorMessageDetail.ServiceDocument = '????'  -- association [0..1]
;