I_PT_DELDOCCUSTADDVERS

CDS View

PT Delivery Doc CustAddr Version

I_PT_DELDOCCUSTADDVERS is a CDS View in S/4HANA. PT Delivery Doc CustAddr Version. It contains 2 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
I_PT_DelDocCustAddrHist view from COMPOSITE SAF-T PT Delivery Doc CustAddr History

Fields (2)

KeyField CDS FieldsUsed in Views
KEY DeliveryDocument DeliveryDocument 1
CompanyCode CompanyCode 1
@AbapCatalog.sqlViewName: 'IPTDELADRVERS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@EndUserText.label: 'PT Delivery Doc CustAddr Version'
define view I_PT_DelDocCustAddVers
  as select from I_PT_DeliveryDgtlSgntr      as Signature

    inner join   I_DeliveryDocument          as DeliveryDocument on Signature.DeliveryDocument = DeliveryDocument.DeliveryDocument

    inner join   I_PT_CustomerAddressVersion 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(PortugueseCustomerVersion) as sipt_data_version)               as PortugueseCustomerVersion,

      /* Associations */
      //FOR DPP AUTHORIZATION CHECK      

      DeliveryDocument._ShipToParty

}
group by
  DeliveryDocument.DeliveryDocument,
  DeliveryDocument._SalesOrganization.CompanyCode,
  DeliveryDocument.ShipToParty;
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DELIVERYDOCUMENT",
"I_PT_CUSTOMERADDRESSVERSION",
"I_PT_DELIVERYDGTLSGNTR",
"I_SALESORGANIZATION"
],
"ASSOCIATED":
[
"I_CUSTOMER"
],
"BASE":
[
"I_DELIVERYDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/