A_BusSolnOrdSimulation

DDL: A_BUSSOLNORDSIMULATION Type: view_entity CONSUMPTION Package: ODATA_CRMS4_SOLUTIONORDER_API

Header Simulation

A_BusSolnOrdSimulation is a Consumption CDS View that provides data about "Header Simulation" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 23 fields with key field BusinessSolutionOrder. It has 3 associations to related views. It is exposed through 1 OData service (API_BUSSOLNORDSIMULATION). Part of development package ODATA_CRMS4_SOLUTIONORDER_API.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (3)

CardinalityTargetAliasCondition
[0..1] E_ServiceDocument _Extension $projection.BusinessSolutionOrder = _Extension.ServiceOrder and _Extension.ServiceCategory = 'BUS2000172'
[0..*] A_BusSolnOrdItemSimulation _Item
[0..*] A_BusSolnOrdPartnerSimulation _Partner

Annotations (10)

NameValueLevelField
EndUserText.label Header Simulation view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #MANDATORY view
Metadata.ignorePropagatedAnnotations true view
OData.entityType.name BusinessSolutionOrder_Type view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.query.implementedBy ABAP:CL_CRMS4_SOLO_SIMLN_QUERY view

OData Services (1)

ServiceBindingVersionContractRelease
API_BUSSOLNORDSIMULATION API_BUSSOLNORDSIMULATION V4 C2 C1

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY BusinessSolutionOrder ServiceDocument
BusSolnOrdType ServiceDocumentType
BusSolnOrdDescription ServiceDocumentDescription
PaymentTerms PaymentTerms
Language Language
ServiceDocumentCreatedByUser ServiceDocumentCreatedByUser
SoldToParty SoldToParty
ShipToParty ShipToParty
BillToParty BillToParty
PayerParty PayerParty
ContactPersonBusinessPartnerId ContactPerson
RespEmployeeBusinessPartnerId ResponsibleEmployee
TransactionCurrency TransactionCurrency
ServiceDocNetAmount ServiceDocNetAmount
SalesOrganization SalesOrganization
DistributionChannel DistributionChannel
Division Division
SalesOffice SalesOffice
SalesGroup SalesGroup
BusSolnOrdHasError ServiceDocumentHasError
ServiceObjectType ServiceObjectType
_Item _Item
_Partner _Partner
//@ClientHandling.algorithm:#SESSION_VARIABLE

@EndUserText.label: 'Header Simulation'
@VDM: {
  lifecycle.contract.type: #PUBLIC_REMOTE_API,
  usage.type: [#TRANSACTIONAL_PROCESSING_SERVICE],
  viewType: #CONSUMPTION
}

@AccessControl: {
    authorizationCheck: #MANDATORY,
    personalData.blocking: #('TRANSACTIONAL_DATA')
}
@Metadata.ignorePropagatedAnnotations: true

@OData: {
  entityType.name: 'BusinessSolutionOrder_Type'
}

@ObjectModel: {
   semanticKey: [ 'BusinessSolutionOrder' ],
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #C,
     sizeCategory:   #L
   },
   query.implementedBy: 'ABAP:CL_CRMS4_SOLO_SIMLN_QUERY'
}
define root view entity A_BusSolnOrdSimulation
  as select from I_ServiceDocumentEnhcd

  association [0..1] to E_ServiceDocument  as _Extension on $projection.BusinessSolutionOrder = _Extension.ServiceOrder
                                                         and _Extension.ServiceCategory = 'BUS2000172'  
  
  composition [0..*] of A_BusSolnOrdItemSimulation as _Item
  composition [0..*] of A_BusSolnOrdPartnerSimulation  as _Partner
{
  key ServiceDocument            as BusinessSolutionOrder,
      @ObjectModel.sapObjectNodeTypeReference: 'ServiceDocumentType'
      ServiceDocumentType        as BusSolnOrdType,
      ServiceDocumentDescription as BusSolnOrdDescription,
      @ObjectModel.sapObjectNodeTypeReference: 'PaymentTerms'
      PaymentTerms,
      Language,
      
//      @Semantics.booleanIndicator: true

//      cast( ' ' as   xfeld preserving type) as ForceSyncCallFlag,

      
      ServiceDocumentCreatedByUser,

      // Partners

      SoldToParty,
      ShipToParty,
      BillToParty,
      PayerParty,
      ContactPerson              as ContactPersonBusinessPartnerId,
      ResponsibleEmployee        as RespEmployeeBusinessPartnerId,

      // Pricing

      @ObjectModel.sapObjectNodeTypeReference: 'Currency'
      TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      ServiceDocNetAmount,
      
      // Organization

      SalesOrganization,
      DistributionChannel,
      @ObjectModel.sapObjectNodeTypeReference: 'Division'
      Division,
      SalesOffice,
      SalesGroup,

      // Status

      @Semantics.booleanIndicator : true
      ServiceDocumentHasError    as BusSolnOrdHasError,
      
      @Consumption.hidden: true
      ServiceObjectType,

      //Compositions

      @ObjectModel.filter.enabled: false
      _Item,
      _Partner

      
}
where
  ServiceObjectType = 'BUS2000172'