P_ARProcessFlowQuotation

DDL: P_ARPROCESSFLOWQUOTATION SQL: PARPROCFLOWQUOT Type: view CONSUMPTION

AR Process Flow - Quotation

P_ARProcessFlowQuotation is a Consumption CDS View that provides data about "AR Process Flow - Quotation" in SAP S/4HANA. It reads from 1 data source (I_SalesDocument) and exposes 35 fields with key field QuotationDocument. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocument I_SalesDocument from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_UserContactCard _UserContactCard _UserContactCard.ContactCardID = $projection.CreatedByUser
[0..1] I_Customer _ShipToParty $projection.ShipToParty = _ShipToParty.Customer

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PARPROCFLOWQUOT view
VDM.viewType #CONSUMPTION view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label AR Process Flow - Quotation view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.preserveKey true view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY QuotationDocument SalesDocument
SalesDocumentDate SalesDocumentDate
SalesDocumentType SalesDocumentType
SalesDocumentTypeName
OverallSDProcessStatus OverallSDProcessStatus
OverallSDProcessStatusDesc
TotalNetAmount TotalNetAmount
TransactionCurrency TransactionCurrency
SoldToParty SoldToParty
CustomerName _SoldToParty CustomerName
CustomerFullName _SoldToParty CustomerFullName
ShipToParty _Partner Customer
ShipToPartyName _ShipToParty CustomerName
PurchaseOrderByCustomer PurchaseOrderByCustomer
SalesOrganization SalesOrganization
SalesOrganizationName
DistributionChannel DistributionChannel
DistributionChannelName
OrganizationDivision OrganizationDivision
DivisionName
DivisionName1astxt_vtrberasSalesAreaDesc
CustomerPaymentTerms CustomerPaymentTerms
CustomerPaymentTermsName
CreatedByUser I_SalesDocument CreatedByUser
FullName _UserContactCard FullName
CreationDate I_SalesDocument CreationDate
CreationTime CreationTime
SalesOffice SalesOffice
SalesGroup SalesGroup
CustomerPurchaseOrderDate CustomerPurchaseOrderDate
_Item _Item
_ShipToParty _ShipToParty
_SoldToParty _SoldToParty
_TransactionCurrency _TransactionCurrency
_UserContactCard _UserContactCard
@AbapCatalog.sqlViewName: 'PARPROCFLOWQUOT'
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.privilegedAssociations:  [ '_UserContactCard'] 
@EndUserText.label: 'AR Process Flow - Quotation'
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass:  #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #C
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #REQUIRED
@AbapCatalog.preserveKey:true
define view P_ARProcessFlowQuotation
  as
  
select from I_SalesDocument
  left outer to one join I_SDDocumentPartner as _Partner on  SalesDocument = _Partner.SDDocument  
                                                         and _Partner.PartnerFunction = 'WE'

  association [1..1] to I_UserContactCard as _UserContactCard 
                                              on  _UserContactCard.ContactCardID = $projection.CreatedByUser
  association [0..1] to I_Customer        as _ShipToParty     
                                             on  $projection.ShipToParty = _ShipToParty.Customer

{
  key SalesDocument as QuotationDocument,
      
      SalesDocumentDate,
      
      SalesDocumentType,
      _SalesDocumentType._Text[1:Language = $session.system_language].SalesDocumentTypeName,
      
      OverallSDProcessStatus,
      _OverallSDProcessStatus._Text[1:Language = $session.system_language].OverallSDProcessStatusDesc,
      
      TotalNetAmount,
      
      @Semantics.currencyCode: true
      @ObjectModel.foreignKey.association: '_TransactionCurrency'       
      TransactionCurrency,
      
      SoldToParty,
      _SoldToParty.CustomerName,
      _SoldToParty.CustomerFullName,
      _Partner.Customer                                       as ShipToParty,
      _ShipToParty.CustomerName                               as ShipToPartyName, 
       
      PurchaseOrderByCustomer,
      
      SalesOrganization,
      _SalesOrganization._Text[1:Language = $session.system_language].SalesOrganizationName,
      DistributionChannel,
      _DistributionChannel._Text[1:Language = $session.system_language].DistributionChannelName,
      OrganizationDivision,
      _OrganizationDivision._Text[1:Language = $session.system_language].DivisionName,
      cast( 
        concat(
        concat( 
        concat(
        concat(
        SalesOrganization, 
        '/'), 
         DistributionChannel), 
         '/'), 
         OrganizationDivision)        as far_salesarea_key ) as SalesAreaSemanticKey,
         
      cast( 
        concat_with_space(
        concat(
        concat_with_space(
        concat(
        _SalesOrganization._Text[1:Language = $session.system_language].SalesOrganizationName, 
        ','), 
        cast(_DistributionChannel._Text[1:Language = $session.system_language].DistributionChannelName as vtxtk), 1), 
        ','),  
        _OrganizationDivision._Text[1:Language = $session.system_language].DivisionName, 1) as txt_vtrber ) 
        as SalesAreaDesc,
         
      
      CustomerPaymentTerms,
      _CustomerPaymentTerms._Text[1:Language = $session.system_language].CustomerPaymentTermsName,
      
      I_SalesDocument.CreatedByUser,
      _UserContactCard.FullName,
      I_SalesDocument.CreationDate,
      CreationTime,
      
      SalesOffice,
      SalesGroup,
      CustomerPurchaseOrderDate,
            
      _Item,
      _ShipToParty,
      _SoldToParty,
      _TransactionCurrency,
      _UserContactCard

}
where
  OvrlItmGeneralIncompletionSts <> ''  and
  SDDocumentCategory = 'B' //Quotation