C_PurgDocSimulationJob

DDL: C_PURGDOCSIMULATIONJOB SQL: CPURGDOCSIM Type: view CONSUMPTION Package: ODATA_MM_COMMONS_MASSUPDT

Purchasing Document Simulation Job

C_PurgDocSimulationJob is a Consumption CDS View that provides data about "Purchasing Document Simulation Job" in SAP S/4HANA. It reads from 2 data sources (P_AppJobStatus, I_PurchasingDocSimulationJob) and exposes 43 fields with key field SimulationJobUUID. It has 6 associations to related views. It is exposed through 2 OData services (ASQL_F3332, ASQL_F4400). Part of development package ODATA_MM_COMMONS_MASSUPDT.

Data Sources (2)

SourceAliasJoin Type
P_AppJobStatus _JobStatus inner
I_PurchasingDocSimulationJob _SimulationJob from

Associations (6)

CardinalityTargetAliasCondition
[1..*] C_SimulationLogStatusCount _Occurrences $projection.SimulationJobUUID = _Occurrences.SimulationJobUUID
[1..*] C_PurgDocsMassChgSimlnMsgs _PurgDocsMassChgSimlnMsgs $projection.SimulationJobUUID = _PurgDocsMassChgSimlnMsgs.SimulationJobUUID --CDS C_PurgDocJobStsMsgCnt has been replaced with P_PurgDocJobOtherMsgCnt
[0..1] P_PurgDocsSimlnLgHdrMsgCnt _DocumentMsgCnt $projection.SimulationJobUUID = _DocumentMsgCnt.SimulationJobUUID
[0..1] I_UserContactCard _UserContactCard $projection.CreatedByUser = _UserContactCard.ContactCardID
[0..1] C_PurgDocCatForMntrMassChgVH _PurchasingDocCategoryVH $projection.PurchasingDocumentCategory = _PurchasingDocCategoryVH.PurchasingDocumentCategory
[0..1] C_PurchasingDocSubtypeVH _PurchasingDocSubtypeVH $projection.PurchasingDocumentSubtype = _PurchasingDocSubtypeVH.PurchasingDocumentSubtype

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName CPURGDOCSIM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Purchasing Document Simulation Job view
ObjectModel.usageType.serviceQuality #C view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.resultSet.sizeCategory #XS view
VDM.viewType #CONSUMPTION view
Search.searchable true view
UI.headerInfo.typeName Job Item view
UI.headerInfo.typeNamePlural Job Items view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value ApplicationJobDescription view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value ReleaseDateTime view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F3332 ASQL_F3332 C2 NOT_RELEASED
ASQL_F4400 ASQL_F4400 C2 NOT_RELEASED

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY SimulationJobUUID SimulationJobUUID WorklistID
PlannedStartTime PlannedStartTime Start Time
ApplicationJob I_PurchasingDocSimulationJob ApplicationJob Job No.
ApplicationJobName I_PurchasingDocSimulationJob ApplicationJobName Job Name
ApplicationLogHandle ApplicationLogHandle Log Handle
PlannedStartDate PlannedStartDate Planned Start
PlannedStartDateTime
CreatedByUser CreatedByUser User Name
NumberOfUniqueErrors NumberOfUniqueErrors Error Messages
NumberOfUniqueWarnings NumberOfUniqueWarnings Warning Messages
NumberOfUniqueInfoSuccessMsgs NumberOfUniqueInfoSuccessMsgs Unique Success Info
AsyncApplicationJobStatus P_AppJobStatus AsyncApplicationJobStatus Status
CreationDate P_AppJobStatus CreationDate Created At
CreationDateTime
CreationTime P_AppJobStatus CreationTime Time of Change
ApplicationJobStatusText Status
ReleaseDateTime ReleaseDateTime Composition Released On
ApplicationJobDescription ApplicationJobDescription Job
LogNumber LogNumber UUID
InternalComment
ErrorFlagIsSet
WarningFlagIsSet
FullName _UserContactCard FullName Created By
NumberOfErrorMsgDocuments NumberOfErrorMsgDocuments Document Error Count
NumberOfInfoSuccessMsgDocs NumberOfInfoSuccessMsgDocs Doc Success Info
NumberOfWarningMsgDocuments NumberOfWarningMsgDocuments Doc Warning Count
NumberOfDocuments _DocumentMsgCnt NumberOfDocuments
_Occurrences _Occurrences
_PurgDocsMassChgSimlnMsgs _PurgDocsMassChgSimlnMsgs
_UserContactCard _UserContactCard
PurgDocMassUpdtIsSimulated PurgDocMassUpdtIsSimulated Is Simulated Job
PurchasingDocumentCategory PurchasingDocumentCategory Document Category
PurchasingDocumentSubtype PurchasingDocumentSubtype Document Sub Category
ReferenceApplicationJobName ReferenceApplicationJobName Job Name
ApplicationJobTemplate ApplicationJobTemplate Job Template Name
ApplicationJobTemplateVersion ApplicationJobTemplateVersion Object Version
RefApplicationJobDescription
PurgDocsSkippedForUpdt
PurgDocsExclForUpdt
PurgDocsAreSkippedForUpdt
_PurchasingDocCategoryVH _PurchasingDocCategoryVH
PurchasingDocumentCategoryName _PurchasingDocCategoryVH PurchasingDocumentCategoryName Short Description
_PurchasingDocSubtypeVH _PurchasingDocSubtypeVH

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_PurgDocSimulationJob.
-- 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: CPURGDOCSIM

CREATE VIEW C_PurgDocSimulationJob AS
SELECT
  SimulationJobUUID,
  PlannedStartTime,
  _SimulationJob.ApplicationJob AS ApplicationJob,
  _SimulationJob.ApplicationJobName AS ApplicationJobName,
  ApplicationLogHandle,
  PlannedStartDate,
  dats_tims_to_tstmp( _SimulationJob.PlannedStartDate, _SimulationJob.PlannedStartTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) AS PlannedStartDateTime,
  CreatedByUser,
  NumberOfUniqueErrors,
  NumberOfUniqueWarnings,
  NumberOfUniqueInfoSuccessMsgs,
  _JobStatus.AsyncApplicationJobStatus AS AsyncApplicationJobStatus,
  _JobStatus.CreationDate AS CreationDate,
  dats_tims_to_tstmp( _JobStatus.CreationDate, _JobStatus.CreationTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) AS CreationDateTime,
  _JobStatus.CreationTime AS CreationTime,
  cast('' as mmpur_status_text) AS ApplicationJobStatusText,
  ReleaseDateTime,
  ApplicationJobDescription,
  LogNumber,
  cast ('' as abap.char( 120 )) AS InternalComment,
  cast ('' as abap.char( 1 )) AS ErrorFlagIsSet,
  cast ('' as abap.char( 1 )) AS WarningFlagIsSet,
  _UserContactCard.FullName AS FullName,
  NumberOfErrorMsgDocuments,
  NumberOfInfoSuccessMsgDocs,
  NumberOfWarningMsgDocuments,
  _DocumentMsgCnt.NumberOfDocuments AS NumberOfDocuments,
  PurgDocMassUpdtIsSimulated,
  PurchasingDocumentCategory,
  PurchasingDocumentSubtype,
  ReferenceApplicationJobName,
  ApplicationJobTemplate,
  ApplicationJobTemplateVersion,
  cast(' ' as balnrext) AS RefApplicationJobDescription,
  cast ('' as abap.sstring( 1332 )) AS PurgDocsSkippedForUpdt,
  cast ('' as abap.sstring( 1332 )) AS PurgDocsExclForUpdt,
  cast ('' as abap.char( 1 )) AS PurgDocsAreSkippedForUpdt,
  _PurchasingDocCategoryVH.PurchasingDocumentCategoryName AS PurchasingDocumentCategoryName
FROM I_PurchasingDocSimulationJob AS _SimulationJob
INNER JOIN P_AppJobStatus AS _JobStatus ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_SimulationLogStatusCount AS _Occurrences ON SimulationJobUUID = _Occurrences.SimulationJobUUID  -- association [1..*]
LEFT OUTER JOIN C_PurgDocsMassChgSimlnMsgs AS _PurgDocsMassChgSimlnMsgs ON SimulationJobUUID = _PurgDocsMassChgSimlnMsgs.SimulationJobUUID  -- association [1..*]
LEFT OUTER JOIN P_PurgDocsSimlnLgHdrMsgCnt AS _DocumentMsgCnt ON SimulationJobUUID = _DocumentMsgCnt.SimulationJobUUID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON CreatedByUser = _UserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN C_PurgDocCatForMntrMassChgVH AS _PurchasingDocCategoryVH ON PurchasingDocumentCategory = _PurchasingDocCategoryVH.PurchasingDocumentCategory  -- association [0..1]
LEFT OUTER JOIN C_PurchasingDocSubtypeVH AS _PurchasingDocSubtypeVH ON PurchasingDocumentSubtype = _PurchasingDocSubtypeVH.PurchasingDocumentSubtype  -- association [0..1]
;