I_PT_DELDOCCUSTADDVERS_2

CDS View

SAFT Cust Address Version

I_PT_DELDOCCUSTADDVERS_2 is a CDS View in S/4HANA. SAFT Cust Address Version. It contains 2 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
I_PT_DelDocCustAddrHist_2 view_entity from COMPOSITE SAFT PT Delivery Doc CustAddr History

Fields (2)

KeyField CDS FieldsUsed in Views
KEY DeliveryDocument DeliveryDocument 1
CompanyCode CompanyCode 1
@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;