R_BusinessSolutionQuotationTP

DDL: R_BUSINESSSOLUTIONQUOTATIONTP Type: view_entity TRANSACTIONAL

Business Solution Quotation - TP

R_BusinessSolutionQuotationTP is a Transactional CDS View that provides data about "Business Solution Quotation - TP" in SAP S/4HANA. It reads from 2 data sources (I_BusSolutionQuotationType, I_ServiceDocumentEnhcd) and exposes 60 fields with key field BusinessSolutionQuotation. It has 8 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BusSolutionQuotationType BusSolutionQuotationType inner
I_ServiceDocumentEnhcd ServiceDocumentEnhcd from

Associations (8)

CardinalityTargetAliasCondition
[0..1] I_SrvcLifeCycleSystemStatusT _LifecycleUserStsText $projection.ServiceDocumentStatus = _LifecycleUserStsText.SrvcLifeCycleSystemStatus and _LifecycleUserStsText.Language = $session.system_language
[0..1] I_SrvcMgmtBPQuickView_2 _SrvcDocBPRespEmployee $projection.RespEmployeeBusinessPartnerId = _SrvcDocBPRespEmployee.BusinessPartner
[1] I_SrvcDocRejectionStatus _ServiceDocCancelled $projection.BusSolnQuotationIsRejected = _ServiceDocCancelled.ServiceDocumentIsRejected
[1] I_SrvcDocReleaseStatus _ServiceDocReleaseStatus $projection.BusSolnQuotationIsReleased = _ServiceDocReleaseStatus.ServiceDocumentIsReleased
[0..1] I_ServiceDocumentPriorityText _ServiceDocumentPriorityText $projection.ServiceDocumentPriority = _ServiceDocumentPriorityText.ServiceDocumentPriority and _ServiceDocumentPriorityText.Language = $session.system_language
[1] I_BusinessPartner _ServiceDocCreatedBy $projection.ServiceDocumentCreatedByUser = _ServiceDocCreatedBy.BusinessPartner
[1] P_BusSolnQtanAcceptanceStatus _SolnQtanAccptcStatus $projection.BusinessSolutionQuotation = _SolnQtanAccptcStatus.BusinessSolutionQuotation
[0..*] R_BusSolnQtanItemTP _BusinessSolutionQtanItemTP

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Business Solution Quotation - TP view
ObjectModel.sapObjectNodeType.name BusinessSolutionQuotation view
ObjectModel.representativeKey BusinessSolutionQuotation view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY BusinessSolutionQuotation I_ServiceDocumentEnhcd ServiceDocument
CustMgmtObjectType I_ServiceDocumentEnhcd ServiceObjectType
BusSolutionQuotationType I_ServiceDocumentEnhcd ServiceDocumentType
BusSolutionQuotationUUID I_ServiceDocumentEnhcd ServiceDocumentUUID
BusSolnQtanDescription I_ServiceDocumentEnhcd ServiceDocumentDescription
SalesOrganization I_ServiceDocumentEnhcd SalesOrganization
DistributionChannel I_ServiceDocumentEnhcd DistributionChannel
Division I_ServiceDocumentEnhcd Division
SalesOffice I_ServiceDocumentEnhcd SalesOffice
SalesGroup I_ServiceDocumentEnhcd SalesGroup
SalesOrganizationOrgUnitID I_ServiceDocumentEnhcd SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID I_ServiceDocumentEnhcd SalesOfficeOrgUnitID
SalesGroupOrgUnitID I_ServiceDocumentEnhcd SalesGroupOrgUnitID
ServiceOrganization I_ServiceDocumentEnhcd ServiceOrganization
RespEmployeeBusinessPartnerId I_ServiceDocumentEnhcd ResponsibleEmployee
SoldToParty I_ServiceDocumentEnhcd SoldToParty
ServiceDocumentStatus I_ServiceDocumentEnhcd ServiceDocumentStatus
ServiceDocumentStatusName _LifecycleUserStsText SrvcLifeCycleSystemStatusName
CreationDate I_ServiceDocumentEnhcd ServiceDocumentCreationDate
ServiceDocumentCreatedByUser I_ServiceDocumentEnhcd ServiceDocumentCreatedByUser
TransactionCurrency I_ServiceDocumentEnhcd TransactionCurrency
ServiceDocNetAmount I_ServiceDocumentEnhcd ServiceDocNetAmount
ServiceDocumentHasError I_ServiceDocumentEnhcd ServiceDocumentHasError
BusSolnQtanExtReference
PostingDate I_ServiceDocumentEnhcd PostingDate
SoldToPartyCountry I_ServiceDocumentEnhcd SoldToPartyCountry
ServiceDocumentPriority I_ServiceDocumentEnhcd ServiceDocumentPriority
BillToParty I_ServiceDocumentEnhcd BillToParty
PayerParty I_ServiceDocumentEnhcd PayerParty
BusSolnQuotationIsRejected I_ServiceDocumentEnhcd ServiceDocumentIsRejected
BusSolnQuotationIsReleased I_ServiceDocumentEnhcd ServiceDocumentIsReleased
SrvcQuotationValidityStartDate I_ServiceDocumentEnhcd SrvcQuotationValidityStartDate
SrvcQuotationValidityEndDate I_ServiceDocumentEnhcd SrvcQuotationValidityEndDate
ServiceDocGrossAmount I_ServiceDocumentEnhcd ServiceDocGrossAmount
ContactPersonBusinessPartnerId I_ServiceDocumentEnhcd ContactPerson
ContactPersonName
QuotationIsAccepted _SolnQtanAccptcStatus QuotationIsAccepted
SrvcDocAcceptanceStatusText
_SoldToParty I_ServiceDocumentEnhcd _SoldToParty
_TransactionCurrency I_ServiceDocumentEnhcd _TransactionCurrency
_ServiceDocHasError I_ServiceDocumentEnhcd _ServiceDocHasError
_ServiceObjType I_ServiceDocumentEnhcd _ServiceObjType
_ContactPerson I_ServiceDocumentEnhcd _ContactPerson
_SalesOrganization I_ServiceDocumentEnhcd _SalesOrganization
_DistributionChannel I_ServiceDocumentEnhcd _DistributionChannel
_Division I_ServiceDocumentEnhcd _Division
_SalesOffice I_ServiceDocumentEnhcd _SalesOffice
_SalesGroup I_ServiceDocumentEnhcd _SalesGroup
_SalesOrganizationOrgUnit_2 I_ServiceDocumentEnhcd _SalesOrganizationOrgUnit_2
_SalesOfficeOrgUnit_2 I_ServiceDocumentEnhcd _SalesOfficeOrgUnit_2
_SalesGroupOrgUnit_2 I_ServiceDocumentEnhcd _SalesGroupOrgUnit_2
_ServiceOrganizationOrgUnit_2 I_ServiceDocumentEnhcd _ServiceOrganizationOrgUnit_2
_RespEmployee I_ServiceDocumentEnhcd _RespEmployee
_BusinessSolutionQtanItemTP _BusinessSolutionQtanItemTP
_LifecycleUserStsText _LifecycleUserStsText
_SrvcDocBPRespEmployee _SrvcDocBPRespEmployee
_ServiceDocCancelled _ServiceDocCancelled
_ServiceDocReleaseStatus _ServiceDocReleaseStatus
_ServiceDocCreatedBy _ServiceDocCreatedBy
_ServiceDocumentPriorityText _ServiceDocumentPriorityText
@AccessControl: {
  authorizationCheck: #MANDATORY,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@VDM: {
  viewType: #TRANSACTIONAL,
  lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata:
{
  ignorePropagatedAnnotations: true
}

@EndUserText.label: 'Business Solution Quotation - TP'
@ObjectModel.sapObjectNodeType.name: 'BusinessSolutionQuotation'
@ObjectModel: {
  semanticKey: ['BusinessSolutionQuotation'],
  representativeKey: 'BusinessSolutionQuotation',
  usageType: {dataClass:      #TRANSACTIONAL,
              serviceQuality: #C,
              sizeCategory:   #L}
}
define root view entity R_BusinessSolutionQuotationTP
  as select from I_ServiceDocumentEnhcd     as ServiceDocumentEnhcd
    inner join   I_BusSolutionQuotationType as BusSolutionQuotationType on BusSolutionQuotationType.BusSolutionQuotationType = ServiceDocumentEnhcd.ServiceDocumentType

  association [0..1] to I_SrvcLifeCycleSystemStatusT as _LifecycleUserStsText on  $projection.ServiceDocumentStatus      = _LifecycleUserStsText.SrvcLifeCycleSystemStatus
                                                                                        and _LifecycleUserStsText.Language = $session.system_language
  association [0..1] to I_SrvcMgmtBPQuickView_2        as _SrvcDocBPRespEmployee        on  $projection.RespEmployeeBusinessPartnerId = _SrvcDocBPRespEmployee.BusinessPartner

  association [1]    to I_SrvcDocRejectionStatus       as _ServiceDocCancelled          on  $projection.BusSolnQuotationIsRejected = _ServiceDocCancelled.ServiceDocumentIsRejected

  association [1]    to I_SrvcDocReleaseStatus         as _ServiceDocReleaseStatus      on  $projection.BusSolnQuotationIsReleased = _ServiceDocReleaseStatus.ServiceDocumentIsReleased

  association [0..1] to I_ServiceDocumentPriorityText  as _ServiceDocumentPriorityText  on  $projection.ServiceDocumentPriority   = _ServiceDocumentPriorityText.ServiceDocumentPriority
                                                                                        and _ServiceDocumentPriorityText.Language = $session.system_language

  association [1]    to I_BusinessPartner              as _ServiceDocCreatedBy          on  $projection.ServiceDocumentCreatedByUser = _ServiceDocCreatedBy.BusinessPartner

  association [1] to P_BusSolnQtanAcceptanceStatus  as _SolnQtanAccptcStatus         on  $projection.BusinessSolutionQuotation = _SolnQtanAccptcStatus.BusinessSolutionQuotation

  composition [0..*] of R_BusSolnQtanItemTP  as _BusinessSolutionQtanItemTP
{
  key ServiceDocumentEnhcd.ServiceDocument                       as BusinessSolutionQuotation,
      ServiceDocumentEnhcd.ServiceObjectType                     as CustMgmtObjectType,
      ServiceDocumentEnhcd.ServiceDocumentType                   as BusSolutionQuotationType,
      ServiceDocumentEnhcd.ServiceDocumentUUID                   as BusSolutionQuotationUUID,
      ServiceDocumentEnhcd.ServiceDocumentDescription            as BusSolnQtanDescription,

      // Organizational Data

      @ObjectModel.foreignKey.association: '_SalesOrganization'
      ServiceDocumentEnhcd.SalesOrganization,
      @ObjectModel.foreignKey.association: '_DistributionChannel'
      ServiceDocumentEnhcd.DistributionChannel,
      @ObjectModel.foreignKey.association: '_Division'
      ServiceDocumentEnhcd.Division,
      @ObjectModel.foreignKey.association: '_SalesOffice'
      ServiceDocumentEnhcd.SalesOffice,
      @ObjectModel.foreignKey.association: '_SalesGroup'
      ServiceDocumentEnhcd.SalesGroup,

      //CRM Org units

      //these fields are only ON PREMISE

      @Feature: 'BF:API_FULLSCOPE'
      @ObjectModel.foreignKey.association: '_SalesOrganizationOrgUnit_2'
      ServiceDocumentEnhcd.SalesOrganizationOrgUnitID,
      @Feature: 'BF:API_FULLSCOPE'
      @ObjectModel.foreignKey.association: '_SalesOfficeOrgUnit_2'
      ServiceDocumentEnhcd.SalesOfficeOrgUnitID,
      @Feature: 'BF:API_FULLSCOPE'
      @ObjectModel.foreignKey.association: '_SalesGroupOrgUnit_2'
      ServiceDocumentEnhcd.SalesGroupOrgUnitID,
      @Feature: 'BF:API_FULLSCOPE'
      @ObjectModel.foreignKey.association: '_ServiceOrganizationOrgUnit_2'
      ServiceDocumentEnhcd.ServiceOrganization,

      //Partners

      @ObjectModel.foreignKey.association: '_RespEmployee'
      ServiceDocumentEnhcd.ResponsibleEmployee                   as RespEmployeeBusinessPartnerId,


      //Fields added for ListReport- Solution Quotation Manage Page

      @ObjectModel.foreignKey.association: '_SoldToParty'
      ServiceDocumentEnhcd.SoldToParty,

      ServiceDocumentEnhcd.ServiceDocumentStatus,
      _LifecycleUserStsText.SrvcLifeCycleSystemStatusName as ServiceDocumentStatusName,


      ServiceDocumentEnhcd.ServiceDocumentCreationDate           as CreationDate,

      ServiceDocumentEnhcd.ServiceDocumentCreatedByUser,

      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      ServiceDocumentEnhcd.TransactionCurrency,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      ServiceDocumentEnhcd.ServiceDocNetAmount,

      @Semantics.booleanIndicator
      ServiceDocumentEnhcd.ServiceDocumentHasError,

      cast(ServiceDocumentEnhcd.PurchaseOrderByCustomer as crmt_ext_ref_num )               as BusSolnQtanExtReference,

      ServiceDocumentEnhcd.PostingDate,

      ServiceDocumentEnhcd.SoldToPartyCountry,

      ServiceDocumentEnhcd.ServiceDocumentPriority,

      ServiceDocumentEnhcd.BillToParty,

      ServiceDocumentEnhcd.PayerParty,

      @Semantics.booleanIndicator
      ServiceDocumentEnhcd.ServiceDocumentIsRejected             as BusSolnQuotationIsRejected,

      @Semantics.booleanIndicator
      ServiceDocumentEnhcd.ServiceDocumentIsReleased             as BusSolnQuotationIsReleased,

      ServiceDocumentEnhcd.SrvcQuotationValidityStartDate,
      ServiceDocumentEnhcd.SrvcQuotationValidityEndDate,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      ServiceDocumentEnhcd.ServiceDocGrossAmount,
      ServiceDocumentEnhcd.ContactPerson                         as ContactPersonBusinessPartnerId,
      ServiceDocumentEnhcd._ContactPerson.BusinessPartnerName    as ContactPersonName,

      @Semantics.booleanIndicator
      _SolnQtanAccptcStatus.QuotationIsAccepted,
      _SolnQtanAccptcStatus._SolnQtanAcceptanceStatusText.SrvcDocAcceptanceStatusText,
//      _SolnQtanAccptcStatusText.ddtext,

      //'Y'       as BusSolutionQuotationIsAccepted,

      ServiceDocumentEnhcd._SoldToParty,
      ServiceDocumentEnhcd._TransactionCurrency,
      ServiceDocumentEnhcd._ServiceDocHasError,
      ServiceDocumentEnhcd._ServiceObjType,
      ServiceDocumentEnhcd._ContactPerson,

      //End of Fields added for ListReport


      ServiceDocumentEnhcd._SalesOrganization,
      ServiceDocumentEnhcd._DistributionChannel,
      ServiceDocumentEnhcd._Division,
      ServiceDocumentEnhcd._SalesOffice,
      ServiceDocumentEnhcd._SalesGroup,
      ServiceDocumentEnhcd._SalesOrganizationOrgUnit_2,
      ServiceDocumentEnhcd._SalesOfficeOrgUnit_2,
      ServiceDocumentEnhcd._SalesGroupOrgUnit_2,
      ServiceDocumentEnhcd._ServiceOrganizationOrgUnit_2,
      ServiceDocumentEnhcd._RespEmployee,

      //Associations

      _BusinessSolutionQtanItemTP,
      _LifecycleUserStsText,
      _SrvcDocBPRespEmployee,
      _ServiceDocCancelled,
      _ServiceDocReleaseStatus,
      _ServiceDocCreatedBy,
      _ServiceDocumentPriorityText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNER",
"I_BUSSOLUTIONQUOTATIONTYPE",
"I_SERVICEDOCUMENTENHCD",
"I_SRVCLIFECYCLESYSTEMSTATUST",
"I_SRVCQTANACCEPTANCESTATUSTEXT",
"P_BUSSOLNQTANACCEPTANCESTATUS"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_CURRENCY",
"I_CUSTMGMTBUSOBJTYPE",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_SALESGROUP",
"I_SALESOFFICE",
"I_SALESORGANIZATION",
"I_SERVICEDOCERRORSTATUS",
"I_SERVICEDOCUMENTPRIORITYTEXT",
"I_SRVCDOCREJECTIONSTATUS",
"I_SRVCDOCRELEASESTATUS",
"I_SRVCLIFECYCLESYSTEMSTATUST",
"I_SRVCMGMTBPQUICKVIEW_2",
"I_SRVCMGMTORGANIZATIONUNIT",
"R_BUSSOLNQTANITEMTP"
],
"BASE":
[
"I_SERVICEDOCUMENTENHCD"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/