P_CustRetProcFlow0
P_CustRetProcFlow0 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentBasic) and exposes 10 fields with key fields Level1Document, Level1DocumentItem, CustomerReturn.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentBasic | CustRet | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PCUSTRETPROCF0 | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Level1Document | |||
| KEY | Level1DocumentItem | |||
| KEY | CustomerReturn | I_SalesDocumentBasic | SalesDocument | |
| CustomerReturnType | I_SalesDocumentBasic | SalesDocumentType | ||
| SDDocumentCategory | I_SalesDocumentBasic | SDDocumentCategory | ||
| SalesOrganization | I_SalesDocumentBasic | SalesOrganization | ||
| DistributionChannel | I_SalesDocumentBasic | DistributionChannel | ||
| OrganizationDivision | I_SalesDocumentBasic | OrganizationDivision | ||
| RetsMgmtProcess | I_SalesDocumentBasic | RetsMgmtProcess | ||
| PlndSubsqntCrdtMemoReqIsRqd |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'PCUSTRETPROCF0'
define view P_CustRetProcFlow0
as select from I_SalesDocumentBasic as CustRet
{
//Key
key cast( ' ' as vbeln_von) as Level1Document,
key cast( ' ' as posnr_von) as Level1DocumentItem,
//Customer Return
key CustRet.SalesDocument as CustomerReturn,
//Category
CustRet.SalesDocumentType as CustomerReturnType,
CustRet.SDDocumentCategory,
//Organization
CustRet.SalesOrganization,
CustRet.DistributionChannel,
CustRet.OrganizationDivision,
//ARM-based Process Identification Number
CustRet.RetsMgmtProcess,
//Relevance for planned subsequent process steps
case
when ( ( CustRet.OverallTotalDeliveryStatus = 'A' or
CustRet.OverallTotalDeliveryStatus = 'B' )
and CustRet.RetsMgmtProcess != '' ) --- planned subsequent delivery for ARM-based Customer Returns only
then
'X'
else
''
end as DeliveryDocumentIsRequired,
cast('' as boolean) as PlndSubsqntCrdtMemoReqIsRqd, --- planned subsequent credit memo request
cast('' as boolean) as PlndSubsqntRplcmtOrderIsRqd --- planned subsequent replacement order
}
where CustRet.SDDocumentCategory = 'H' --> Customer Return
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTBASIC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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