A_CreditMemoReqPartnerSimln

DDL: A_CREDITMEMOREQPARTNERSIMLN Type: view_entity COMPOSITE

Header Partner Simulation

A_CreditMemoReqPartnerSimln is a Composite CDS View that provides data about "Header Partner Simulation" in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentBasic, I_SDDocumentPartner) and exposes 11 fields with key fields CreditMemoRequest, PartnerFunction.

Data Sources (2)

SourceAliasJoin Type
I_SalesDocumentBasic CreditMemoRequest inner
I_SDDocumentPartner Partner from

Annotations (8)

NameValueLevelField
EndUserText.label Header Partner Simulation view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY CreditMemoRequest I_SDDocumentPartner SDDocument
KEY PartnerFunction
Customer I_SDDocumentPartner Customer
Supplier I_SDDocumentPartner Supplier
Personnel I_SDDocumentPartner Personnel
ContactPerson I_SDDocumentPartner ContactPerson
CreditMemoRequestType I_SalesDocumentBasic SalesDocumentType
OrganizationDivision I_SalesDocumentBasic OrganizationDivision
SalesOrganization I_SalesDocumentBasic SalesOrganization
DistributionChannel I_SalesDocumentBasic DistributionChannel
_CreditMemoRequest _CreditMemoRequest
@EndUserText.label: 'Header Partner Simulation'
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AccessControl: {
  authorizationCheck: #MANDATORY,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #C,
     sizeCategory:   #XL
   }
}
@Metadata.ignorePropagatedAnnotations: true
define view entity A_CreditMemoReqPartnerSimln
  as select from I_SDDocumentPartner  as Partner
    inner join   I_SalesDocumentBasic as CreditMemoRequest on  CreditMemoRequest.SalesDocument      = Partner.SDDocument // needed for DCL

                                                           and CreditMemoRequest.SDDocumentCategory = 'K'

  association        to parent A_CreditMemoRequestSimulation as _CreditMemoRequest        on  _CreditMemoRequest.CreditMemoRequest = $projection.CreditMemoRequest

//  association [0..1] to I_BusPartAddress                     as _BusinessPartnerAddressCP on  Partner.AddressID                  = _BusinessPartnerAddressCP.AddressID

//                                                                                          and $projection.ContactPerson          is not initial

//                                                                                          and Partner.SDDocPartnerAddressRefType = 'I'


{
      @ObjectModel.readOnly: true
  key Partner.SDDocument                                as CreditMemoRequest,
      @ObjectModel.sapObjectNodeTypeReference: 'PartnerFunction'
      @ObjectModel.mandatory: true
  key cast(Partner.PartnerFunction as parvw_unv) as PartnerFunction,

      Partner.Customer,

      Partner.Supplier,

      Partner.Personnel,

      Partner.ContactPerson,

//      @Feature: 'SW:Q2C_MULTIPLE_BP_ADDRESSES, SW:Q2C_MULTIPLE_BP_ADDRESSES2'

//      case Partner.ContactPerson

//        when '0000000000' then

//         Partner._BusinessPartnerAddress.AddressUUID

//       else

//         _BusinessPartnerAddressCP.AddressUUID

//                                                    end as BusinessPartnerAddressUUID,

//

//      @Feature: 'SW:Q2C_MULTIPLE_BP_ADDRESSES, SW:Q2C_MULTIPLE_BP_ADDRESSES2'

//      @ObjectModel.readOnly: true

//      Partner._BPRefAddressForDocSpcfcAddr.AddressUUID  as BPRefAddrForDocSpcfcAddrUUID,


      // For Access control

      @Consumption.hidden: true
      CreditMemoRequest.SalesDocumentType               as CreditMemoRequestType,
      @Consumption.hidden: true
      CreditMemoRequest.OrganizationDivision,
      @Consumption.hidden: true
      CreditMemoRequest.SalesOrganization,
      @Consumption.hidden: true
      CreditMemoRequest.DistributionChannel,

      //Expose associations

      _CreditMemoRequest
} where Partner.SDDocument = '0'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTBASIC",
"I_SDDOCUMENTPARTNER"
],
"ASSOCIATED":
[
"A_CREDITMEMOREQUESTSIMULATION"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/