P_AllwdCustRetTypePerSlsOrg

DDL: P_ALLWDCUSTRETTYPEPERSLSORG SQL: PALWDORDTPSO Type: view CONSUMPTION

P_AllwdCustRetTypePerSlsOrg is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentType) and exposes 6 fields with key fields SalesOrganization, DistributionChannel, Division.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentType SalesDocumentType inner

Annotations (7)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PALWDORDTPSO view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY SalesOrganization AllowedReturnType SalesOrganization
KEY DistributionChannel AllowedReturnType DistributionChannel
KEY Division AllowedReturnType Division
_SalesOrganization AllowedReturnType _SalesOrganization
_DistributionChannel AllowedReturnType _DistributionChannel
_Division AllowedReturnType _Division
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'PALWDORDTPSO'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED

define view P_AllwdCustRetTypePerSlsOrg
  as select distinct from I_AllwdOrdTypPerSlsOrg as AllowedReturnType
  inner join     I_SalesDocumentType    as SalesDocumentType on AllowedReturnType.SalesDocumentType = SalesDocumentType.SalesDocumentType
{

  key AllowedReturnType.SalesOrganization,
  key AllowedReturnType.DistributionChannel,
  key AllowedReturnType.Division,
  
      //Associations

      AllowedReturnType._SalesOrganization,
      AllowedReturnType._DistributionChannel,
      AllowedReturnType._Division
}
where SalesDocumentType.RetsMgmtIsActive   = 'X'
  and SalesDocumentType.SDDocumentCategory = 'H'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ALLWDORDTYPPERSLSORG",
"I_SALESDOCUMENTTYPE"
],
"ASSOCIATED":
[
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_SALESORGANIZATION"
],
"BASE":
[
"I_ALLWDORDTYPPERSLSORG"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/