P_ChmlCmplncReqMktCntryAll is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_ChmlCmplncMktCvrg, I_ChmlCmplncReqMkt) and exposes 9 fields with key fields ChmlCmplncRequestUUID, Country, ChmlCmplncBusinessProcess, Country, ChmlCmplncBusinessProcess. It has 1 association to related views.
@AbapCatalog:
{
sqlViewName: 'PCRQMREQCTRYBPA',
compiler.compareFilter: true,
preserveKey: true
}@AccessControl:
{
authorizationCheck: #NOT_REQUIRED
}
--Client Handling of the view@ClientHandling.algorithm: #SESSION_VARIABLE
--VDM view type
@VDM.viewType: #COMPOSITE@VDM.private: true/*-----------------------------------------------------------------------------------
Retrieves a distinct list of all involved market countries for a chemical compliance
request which involves
1. Already existing as assessments at the CCI/UP for All business processes
2. Requested countries of a chemcial compliance Request
--------------------------------------------------------------------------------------*/defineview P_ChmlCmplncReqMktCntryAll
asselectfrom I_ChmlCmplncReqMkt _ChmlCmplncReqMkt
join I_ChmlCmplncReq as _ChmlCmplncReqJoined on _ChmlCmplncReqMkt.ChmlCmplncRequestUUID = _ChmlCmplncReqJoined.ChmlCmplncRequestUUID
association [1..1] to I_ChmlCmplncReq as _ChmlCmplncReq on $projection.ChmlCmplncRequestUUID = _ChmlCmplncReq.ChmlCmplncRequestUUID
{
key _ChmlCmplncReqJoined.ChmlCmplncRequestUUID,
key _ChmlCmplncReqMkt.Country,
key 'ALL' as ChmlCmplncBusinessProcess,
_Country,
_ChmlCmplncReq
}
unionselectfrom I_ChmlCmplncMktCvrg as _ChmlCmplncMktCvrg
join I_ChmlCmplncReq as _ChmlCmplncReqJoined on _ChmlCmplncMktCvrg.ChmlCmplncInfoUUID = _ChmlCmplncReqJoined.ChmlCmplncProdUUID
association [1..1] to I_ChmlCmplncReq as _ChmlCmplncReq on $projection.ChmlCmplncRequestUUID = _ChmlCmplncReq.ChmlCmplncRequestUUID
{
key _ChmlCmplncReqJoined.ChmlCmplncRequestUUID,
key _ChmlCmplncMktCvrg.Country,
key 'ALL' as ChmlCmplncBusinessProcess,
_ChmlCmplncMktCvrg._Country,
_ChmlCmplncReq
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHMLCMPLNCMKTCVRG",
"I_CHMLCMPLNCREQ",
"I_CHMLCMPLNCREQMKT"
],
"ASSOCIATED":
[
"I_CHMLCMPLNCREQ",
"I_COUNTRY"
],
"BASE":
[
"I_CHMLCMPLNCREQMKT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/