PQPRINT_QUEUE_ITEM

DDL: PQPRINT_QUEUE_ITEM SQL: PQPRINT_V_Q_ITEM Type: view

Print Queue Item

PQPRINT_QUEUE_ITEM is a CDS View that provides data about "Print Queue Item" in SAP S/4HANA. It reads from 1 data source (pqprintqueueitem) and exposes 15 fields with key field ITEM_ID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
pqprintqueueitem pqprintqueueitem from

Associations (2)

CardinalityTargetAliasCondition
[1..*] PQPRINT_DOCUMENT DOCUMENTS DOCUMENTS.ITEM_ID = pqprintqueueitem.item_id
[0..*] PQPRINT_DOCUMENT ATTACHMENTS ATTACHMENTS.ITEM_ID = pqprintqueueitem.item_id and ATTACHMENTS.COUNT_ID <> 000

Annotations (2)

NameValueLevelField
AbapCatalog.sqlViewName PQPRINT_V_Q_ITEM view
EndUserText.label Print Queue Item view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY ITEM_ID item_id Simulation Item ID
QUEUE_NAME qname User
USER_ID username User who owns item
ITEM_STATUS item_status Transfer Status
PRINT_CLIENT_STATUS_DESCR status_description Status Description
CREATE_DATE_TIME create_time Time
NUMBER_OF_COPIES number_of_copies Number of copies
LOGHANDLE loghandle LogsHandle
MAIN_DOC_FILE_NAME MAIN_DOCUMENT DOCUMENT_NAME Document Name
DOCUMENT_COUNT
ITEM_SIZE
PAGE_COUNT
DOCUMENTS DOCUMENTS
MAIN_DOCUMENT MAIN_DOCUMENT
ATTACHMENTS ATTACHMENTS Message Attachments

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 PQPRINT_QUEUE_ITEM.
-- 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: PQPRINT_V_Q_ITEM

CREATE VIEW PQPRINT_QUEUE_ITEM AS
SELECT
  ITEM_ID,
  qname AS QUEUE_NAME,
  username AS USER_ID,
  ITEM_STATUS,
  status_description AS PRINT_CLIENT_STATUS_DESCR,
  create_time AS CREATE_DATE_TIME,
  NUMBER_OF_COPIES,
  LOGHANDLE,
  MAIN_DOCUMENT.DOCUMENT_NAME AS MAIN_DOC_FILE_NAME,
  count( distinct DOCUMENTS.COUNT_ID ) AS DOCUMENT_COUNT,
  sum( DOCUMENTS.FILE_SIZE ) AS ITEM_SIZE,
  sum( DOCUMENTS.DOCUMENT_PAGE_COUNT ) AS PAGE_COUNT,
  DOCUMENTS,
  MAIN_DOCUMENT,
  ATTACHMENTS
FROM pqprintqueueitem
LEFT OUTER JOIN PQPRINT_DOCUMENT AS DOCUMENTS ON DOCUMENTS.ITEM_ID = pqprintqueueitem.item_id  -- association [1..*]
LEFT OUTER JOIN PQPRINT_DOCUMENT AS ATTACHMENTS ON ATTACHMENTS.ITEM_ID = pqprintqueueitem.item_id AND ATTACHMENTS.COUNT_ID <> 000  -- association [0..*]
;