C_PurgDocSimulationJob
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)
| Source | Alias | Join Type |
|---|---|---|
| P_AppJobStatus | _JobStatus | inner |
| I_PurchasingDocSimulationJob | _SimulationJob | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3332 | ASQL_F3332 | C2 | NOT_RELEASED | |
| ASQL_F4400 | ASQL_F4400 | C2 | NOT_RELEASED |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA