I_PT_DelDocCustAddVers_2

DDL: I_PT_DELDOCCUSTADDVERS_2 Type: view_entity COMPOSITE Package: GLO-LOG-PT

SAFT Cust Address Version

I_PT_DelDocCustAddVers_2 is a Composite CDS View that provides data about "SAFT Cust Address Version" in SAP S/4HANA. It reads from 3 data sources (I_DeliveryDocument, I_PT_DeliveryDgtlSgntr, I_PT_CustomerAddressVersion_2) and exposes 5 fields with key fields DeliveryDocument, Customer. Part of development package GLO-LOG-PT.

Data Sources (3)

SourceAliasJoin Type
I_DeliveryDocument DeliveryDocument inner
I_PT_DeliveryDgtlSgntr Signature from
I_PT_CustomerAddressVersion_2 Version inner

Annotations (7)

NameValueLevelField
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label SAFT Cust Address Version view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY DeliveryDocument I_DeliveryDocument DeliveryDocument
KEY Customer I_DeliveryDocument ShipToParty
CompanyCode
PortugueseCustomerVersion
_ShipToParty I_DeliveryDocument _ShipToParty
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@AccessControl.authorizationCheck:#MANDATORY
@AccessControl.personalData.blocking: #REQUIRED
@EndUserText.label: 'SAFT Cust Address Version'
define view entity I_PT_DelDocCustAddVers_2
  as select from I_PT_DeliveryDgtlSgntr      as Signature
    inner join   I_DeliveryDocument          as DeliveryDocument on Signature.DeliveryDocument = DeliveryDocument.DeliveryDocument
    inner join   I_PT_CustomerAddressVersion_2 as Version          on DeliveryDocument.ShipToParty                  =  Version.Customer
                                                                 and(
                                                                   Signature.PortugueseDigitalSignatureDate       >  Version.PortugueseDigitalSignatureDate
                                                                   or(
                                                                     Signature.PortugueseDigitalSignatureDate     =  Version.PortugueseDigitalSignatureDate
                                                                     and Signature.PortugueseDigitalSignatureTime >= Version.PortugueseDigitalSignatureTime
                                                                   )
                                                                 )
{
  key DeliveryDocument.DeliveryDocument                                 as DeliveryDocument,
  key DeliveryDocument.ShipToParty                                      as Customer,
      DeliveryDocument._SalesOrganization.CompanyCode                   as CompanyCode,
      cast(max(Version.PortugueseCustomerVersion) as sipt_data_version) as PortugueseCustomerVersion,

      /* Associations */
      //FOR DPP AUTHORIZATION CHECK

      DeliveryDocument._ShipToParty
}
where
 Signature.PortugueseDigitalSignature <> ''
group by
  DeliveryDocument.DeliveryDocument,
  DeliveryDocument._SalesOrganization.CompanyCode,
  DeliveryDocument.ShipToParty;