C_PurDocListGRDetails
Goods Receipt Details
C_PurDocListGRDetails is a Consumption CDS View that provides data about "Goods Receipt Details" in SAP S/4HANA. It has 14 associations to related views.
Associations (14)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_PurOrdSingleScheduleLine | eket | $projection.PurchaseOrder = eket.PurchasingDocument and $projection.PurchaseOrderItem = eket.PurchasingDocumentItem |
| [1..1] | I_PurchasingOrganization | t024e | $projection.PurchasingOrganization = t024e.PurchasingOrganization |
| [1..1] | I_PurchasingGroup | t024 | $projection.PurchasingGroup = t024.PurchasingGroup |
| [1..1] | I_Plant | t001w | $projection.Plant = t001w.Plant |
| [0..*] | I_PurchasingDocumentTypeText | _PurchasingDocumentTypeText | $projection.PurchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType and $projection.PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory |
| [0..*] | I_MaterialText | _MatText | $projection.Material = _MatText.Material |
| [0..*] | I_MaterialGroupText | _MatGroupText | $projection.MaterialGroup = _MatGroupText.MaterialGroup |
| [0..1] | dd07t | _StatusText | $projection.GoodsMovementType1 = _StatusText.domvalue_l and _StatusText.domname = 'MMPUR_DOC_STATUS' and _StatusText.as4local = 'A' |
| [1..1] | I_Plant | _SupplyingPlant | $projection.SupplyingPlant = _SupplyingPlant.Plant |
| [0..*] | I_PurgDocumentItemCategoryText | _ItemCategoryText | $projection.PurchaseOrderItemCategory = _ItemCategoryText.PurchasingDocumentItemCategory |
| [0..*] | I_AcctAssignmentCategoryText | _AcctAssignmentCategoryText | $projection.AccountAssignmentCategory = _AcctAssignmentCategoryText.AccountAssignmentCategory |
| [1..1] | I_MaterialDocumentItem | _MaterialDocumentItem | $projection.PurchasingDocument = _MaterialDocumentItem.MaterialDocument and $projection.MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear and $projection.PurchasingDocumentItem = _MaterialDocumentItem.MaterialDocumentItem |
| [0..1] | C_Purdoclistsuppaddr | _Sup_addr | $projection.Supplier = _Sup_addr.Supplier |
| [0..*] | I_CountryText | _CountryName | $projection.SupplierAddressCountry = _CountryName.Country |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDOCLGRDTL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Goods Receipt Details | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | C_PurDocListPOHistoryGR | MaterialDocument | Material Doc. |
| MaterialDocumentYear | ||||
| KEY | PurchasingDocumentItem | C_PurDocListPOHistoryGR | MaterialDocumentItem | Material Document Item |
| AccountAssignmentNumber | ||||
| GoodsMovementType | C_PurDocListPOHistoryGR | GoodsMovementType | Movement Type | |
| PurchaseOrder | C_PurDocListPOHistoryGR | PurchaseOrder | Purchasing Document | |
| PurchaseOrderItem | ||||
| PurchaseOrderType | ||||
| Material | ||||
| ManufacturerMaterial | ||||
| MaterialGroup | C_PurDocListPOHistoryGR | MaterialGroup | Product Group | |
| PurchaseOrderQty | C_PurDocListPOHistoryGR | PurchaseOrderQty | Purchase Order Quantity | |
| char2endasGoodsMovementType1 | ||||
| Quantity | ||||
| PurchaseOrderQuantityUnit | ||||
| ScheduleLineDeliveryDateasDeliveryDate | ||||
| PostingDate | ||||
| PurchasingGroupasPurchasingGroup | ||||
| SupplyingPlant | C_PurDocListPOHistoryGR | SupplyingPlant | Supplying Plant | |
| SupplyingPlantName | _SupplyingPlant | PlantName | Plant Name | |
| Supplier | C_PurDocListPOHistoryGR | Supplier | Supplier | |
| SupplierName | lfa1 | name1 | PA text | |
| SupplierAddressCountry | _Sup_addr | SupplierAddressCountry | ||
| SupplierAddressCity | _Sup_addr | SupplierAddressCity | ||
| PurchasingOrganization | C_PurDocListPOHistoryGR | PurchasingOrganization | Purchasing Organization | |
| PurchasingOrganizationName | t024e | PurchasingOrganizationName | Purch. Org. Name | |
| Plant | C_PurDocListPOHistoryGR | Plant | Valuation Area | |
| PlantName | t001w | PlantName | Plant Name | |
| PurchasingDocumentItemText | C_PurDocListPOHistoryGR | PurchaseOrderItemText | Short Text | |
| PurchasingDocumentType | C_PurDocListPOHistoryGR | PurchaseOrderType | PO Type | |
| PurchasingGroupName | t024 | PurchasingGroupName | Purchasing Grp. Name | |
| PurchasingDocumentCategory1 | C_PurDocListPOHistoryGR | PurchasingDocumentCategory | Doc. Category | |
| PurchasingDocumentCategory | ||||
| PurchaseOrderItemCategory | ||||
| AccountAssignmentCategory | ||||
| WBSElementInternalID | ||||
| WBSElementExternalID | ||||
| WorkPackageFullName | ||||
| SalesOrder | ||||
| CostCenter | ||||
| CostCenterName | ||||
| ControllingArea | ||||
| cntg | ||||
| IsEndOfPurposeBlocked | C_PurDocListPOHistoryGR | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| WorkItem | ||||
| _Text | ||||
| ServicePerformer | _MaterialDocumentItem | ServicePerformer | Service Performer | |
| ServicePerformerName | ||||
| _MatText | _MatText | |||
| _MatGroupText | _MatGroupText | |||
| _StatusText | _StatusText | |||
| _PurchasingDocumentTypeText | _PurchasingDocumentTypeText | |||
| _ItemCategoryText | _ItemCategoryText | |||
| _AcctAssignmentCategoryText | _AcctAssignmentCategoryText | |||
| _CountryName | _CountryName |
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_PurDocListGRDetails.
-- 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: CDOCLGRDTL
CREATE VIEW C_PurDocListGRDetails AS
SELECT
C_PurDocListPOHistoryGR.MaterialDocument AS PurchasingDocument,
C_PurDocListPOHistoryGR.MaterialDocumentItem AS PurchasingDocumentItem,
C_PurDocListPOHistoryGR.GoodsMovementType AS GoodsMovementType,
C_PurDocListPOHistoryGR.PurchaseOrder AS PurchaseOrder,
C_PurDocListPOHistoryGR.MaterialGroup AS MaterialGroup,
C_PurDocListPOHistoryGR.PurchaseOrderQty AS PurchaseOrderQty,
C_PurDocListPOHistoryGR.SupplyingPlant AS SupplyingPlant,
_SupplyingPlant.PlantName AS SupplyingPlantName,
C_PurDocListPOHistoryGR.Supplier AS Supplier,
lfa1.name1 AS SupplierName,
_Sup_addr.SupplierAddressCountry AS SupplierAddressCountry,
_Sup_addr.SupplierAddressCity AS SupplierAddressCity,
C_PurDocListPOHistoryGR.PurchasingOrganization AS PurchasingOrganization,
t024e.PurchasingOrganizationName AS PurchasingOrganizationName,
C_PurDocListPOHistoryGR.Plant AS Plant,
t001w.PlantName AS PlantName,
C_PurDocListPOHistoryGR.PurchaseOrderItemText AS PurchasingDocumentItemText,
C_PurDocListPOHistoryGR.PurchaseOrderType AS PurchasingDocumentType,
t024.PurchasingGroupName AS PurchasingGroupName,
C_PurDocListPOHistoryGR.PurchasingDocumentCategory AS PurchasingDocumentCategory1,
'G' AS PurchasingDocumentCategory,
cast('' as abap.char(1)) AS PurchaseOrderItemCategory,
cast('' as abap.char(1)) AS AccountAssignmentCategory,
cast('' as abap.char(8)) AS WBSElementInternalID,
cast('' as ps_posid_edit) AS WBSElementExternalID,
cast('' as abap.char(110)) AS WorkPackageFullName,
cast('' as vbeln) AS SalesOrder,
cast('' as kostl) AS CostCenter,
cast('' as fis_kostl_name) AS CostCenterName,
cast('' as fis_kokrs) AS ControllingArea,
cast(1 as abap.int4) AS cntg,
C_PurDocListPOHistoryGR.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
_MaterialDocumentItem._WorkItem.WorkItem AS WorkItem,
_MaterialDocumentItem._WorkItem._Text AS _Text,
_MaterialDocumentItem.ServicePerformer AS ServicePerformer,
_MaterialDocumentItem._BusinessPartner.BusinessPartnerName AS ServicePerformerName
LEFT OUTER JOIN P_PurOrdSingleScheduleLine AS eket ON PurchaseOrder = eket.PurchasingDocument AND PurchaseOrderItem = eket.PurchasingDocumentItem -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS t024e ON PurchasingOrganization = t024e.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS t024 ON PurchasingGroup = t024.PurchasingGroup -- association [1..1]
LEFT OUTER JOIN I_Plant AS t001w ON Plant = t001w.Plant -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON PurchasingDocumentType = _PurchasingDocumentTypeText.PurchasingDocumentType AND PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory -- association [0..*]
LEFT OUTER JOIN I_MaterialText AS _MatText ON Material = _MatText.Material -- association [0..*]
LEFT OUTER JOIN I_MaterialGroupText AS _MatGroupText ON MaterialGroup = _MatGroupText.MaterialGroup -- association [0..*]
LEFT OUTER JOIN dd07t AS _StatusText ON GoodsMovementType1 = _StatusText.domvalue_l AND _StatusText.domname = 'MMPUR_DOC_STATUS' AND _StatusText.as4local = 'A' -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_PurgDocumentItemCategoryText AS _ItemCategoryText ON PurchaseOrderItemCategory = _ItemCategoryText.PurchasingDocumentItemCategory -- association [0..*]
LEFT OUTER JOIN I_AcctAssignmentCategoryText AS _AcctAssignmentCategoryText ON AccountAssignmentCategory = _AcctAssignmentCategoryText.AccountAssignmentCategory -- association [0..*]
LEFT OUTER JOIN I_MaterialDocumentItem AS _MaterialDocumentItem ON PurchasingDocument = _MaterialDocumentItem.MaterialDocument AND MaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear AND PurchasingDocumentItem = _MaterialDocumentItem.MaterialDocumentItem -- association [1..1]
LEFT OUTER JOIN C_Purdoclistsuppaddr AS _Sup_addr ON Supplier = _Sup_addr.Supplier -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _CountryName ON SupplierAddressCountry = _CountryName.Country -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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