P_LogcDocDelivery
P_LogcDocDelivery is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_DeliveryDocument) and exposes 3 fields with key field DeliveryDocument.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DeliveryDocument | I_DeliveryDocument | from |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DeliveryDocument | DeliveryDocument | ||
| ProdCmplncLogsDocumentCategory | ||||
| ShippingPoint | ShippingPoint |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM: {
private: true,
viewType: #CONSUMPTION
}
define view entity P_LogcDocDelivery
as select from I_DeliveryDocument
{
key DeliveryDocument,
// map to the defined logistic document categories of pc if_ehfnd_logistic_comn_c
cast ('LF' as ehfnd_log_doc_category) as ProdCmplncLogsDocumentCategory, // Outbound Delivery (EHFND_LOG_DOC_CATEGORY)
// cast (
// case
// when PurchasingDocumentCategory = 'J'
// then 'LF' // Outbound Delivery (EHFND_LOG_DOC_CATEGORY)
// end as ehfnd_log_doc_category) as ProdCmplncLogsDocumentCategory,
//Needed for Authorization check
@ObjectModel.readOnly:true
@Consumption.hidden: true
ShippingPoint
}
where
SDDocumentCategory = 'J' // if_ehfnd_sd_integration_c=>gc_vbtypl-outbound_delivery
// filter blocked logistic document
// and(
// OverallDangerousGoodsStatus <> 'D' // dom_total_dgsta_le - Blocked – Dangerous Goods Transport Forbidden
// )
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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