P_SalesDocEmployeeResponsible

DDL: P_SALESDOCEMPLOYEERESPONSIBLE SQL: PSDOCEMPLRESP Type: view CONSUMPTION

P_SalesDocEmployeeResponsible is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 2 fields with key field CustomerReturn.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocument Document from

Annotations (7)

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

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CustomerReturn I_SalesDocument SalesDocument
EmploymentInternalID CompletePartner Personnel
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'PSDOCEMPLRESP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #NOT_REQUIRED

define view P_SalesDocEmployeeResponsible

  as select from    I_SalesDocument              as Document
  left outer to one join I_SDDocumentCompletePartners as CompletePartner on  Document.SalesDocument          = CompletePartner.SDDocument
                                                                         and CompletePartner.PartnerFunction = 'ZM'
                                                                         and CompletePartner.SDDocumentItem  = '000000'
{
  key Document.SalesDocument    as CustomerReturn,
      CompletePartner.Personnel as EmploymentInternalID
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENT",
"I_SDDOCUMENTCOMPLETEPARTNERS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/