I_REQUESTFORQUOTATION

CDS View

Request For Quotation

I_REQUESTFORQUOTATION is a CDS View in S/4HANA. Request For Quotation. It contains 51 fields. 15 CDS views read from this table.

CDS Views using this table (15)

ViewTypeJoinVDMDescription
C_RFQLowNumberOfQtn view from CONSUMPTION Situation for low number of Quotations
C_RFQProcessFlow view from CONSUMPTION RFQ Process Flow
C_RFQProcessFlow view union_all CONSUMPTION RFQ Process Flow
C_RFQValueHelp view from CONSUMPTION Request for Quotation Value Help
C_SuplrQtnComparisonChart view from CONSUMPTION Supplier Quotation Comparison Chart
ESH_N_REQUESTFORQUOTATION view from Anchor view -REQUESTFORQUOTATION
I_Requestforquotation_Api01 view from BASIC Request for Quotation
I_RequestForQuotationEnhanced view from COMPOSITE Request For Quotation Enhanced
I_RequestForQuotationStdVH view from COMPOSITE Request For Quotation
I_RFQBidder view inner BASIC Request For Quotation Bidder
I_RFQCompareTP view from TRANSACTIONAL Request For Quotation for Comparison
I_RFQMailParamSecureBidding view from BASIC Parameters for RFQ Email Template for Secure Bidding
P_RFQEventTypes view from CONSUMPTION RFQ based on Purchasing Document Type
P_RFQEventTypes view union_all CONSUMPTION RFQ based on Purchasing Document Type
R_RFQBidder view inner BASIC Request For Quotation Bidder

Fields (51)

KeyField CDS FieldsUsed in Views
KEY PurchasingDocumentCategory PrecedingDocumentCategory,PurchasingDocumentCategory,RFQCategory 4
KEY RequestForQuotation RequestForQuotation 5
_CompanyCode _CompanyCode 1
_CreatedByUser _CreatedByUser 1
_DocumentCurrency _DocumentCurrency 1
_FollowOnDocumentCategory _FollowOnDocumentCategory 1
_FollowOnDocumentType _FollowOnDocumentType 1
_IncotermsClassification _IncotermsClassification 1
_IncotermsVersion _IncotermsVersion 1
_Language _Language 1
_PaymentTerms _PaymentTerms 1
_PurchasingDocumentCategory _PurchasingDocumentCategory 1
_PurchasingDocumentType _PurchasingDocumentType 1
_PurchasingGroup _PurchasingGroup 2
_PurchasingOrganization _PurchasingOrganization 2
_RFQLifecycleStatus _RFQLifecycleStatus 1
BindingPeriodValidityEndDate BindingPeriodValidityEndDate 2
CashDiscount1Days CashDiscount1Days 2
CashDiscount1Percent CashDiscount1Percent 2
CashDiscount2Days CashDiscount2Days 2
CashDiscount2Percent CashDiscount2Percent 2
CompanyCode CompanyCode 3
CorrespncInternalReference CorrespncInternalReference 2
CreatedByUser CreatedByUser 3
CreationDate CreationDate 2
DocumentCurrency DocumentCurrency 2
FollowOnDocumentCategory FollowOnDocumentCategory 2
FollowOnDocumentType FollowOnDocumentType 2
IncotermsClassification IncotermsClassification 2
IncotermsLocation1 IncotermsLocation1 2
IncotermsLocation2 IncotermsLocation2 2
IncotermsTransferLocation IncotermsTransferLocation 2
IncotermsVersion IncotermsVersion 2
IsEndOfPurposeBlocked IsEndOfPurposeBlocked 5
Language Language 2
LastChangeDateTime LastChangeDateTime 2
LatestRegistrationDate LatestRegistrationDate 2
NetPaymentDays NetPaymentDays 2
PaymentTerms PaymentTerms 2
PurchasingDocumentDeletionCode PurchasingDocumentDeletionCode 1
PurchasingDocumentType PurchasingDocumentType,RFQType 6
PurchasingGroup PurchasingGroup 5
PurchasingOrganization PurchasingOrganization 5
QuotationEarliestSubmsnDate QuotationEarliestSubmsnDate 2
QuotationLatestSubmissionDate QuotationLatestSubmissionDate 3
RequestForQuotationName RequestForQuotationName 3
RFQLifecycleStatus RFQLifecycleStatus 2
RFQPublishingDate RFQPublishingDate 2
TargetAmount TargetAmount 2
ValidityEndDate PurContrValidityEndDate,ValidityEndDate 2
ValidityStartDate PurContrValidityStartDate,ValidityStartDate 2
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel:{ representativeKey: 'RequestForQuotation',
               semanticKey: 'RequestForQuotation',
               usageType.dataClass: #TRANSACTIONAL,
               usageType.serviceQuality: #A,
               usageType.sizeCategory: #M }
@EndUserText.label: 'Request For Quotation'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@AbapCatalog.sqlViewName: 'IMMRFQ'

@AccessControl.privilegedAssociations: [ '_CreatedByUser' ]

define view I_RequestForQuotation
  as select from I_PurchasingDocument

  association [1..*] to I_RequestForQuotationItem    as _RequestForQuotationItem  on  $projection.RequestForQuotation = _RequestForQuotationItem.RequestForQuotation

  association [1..*] to I_RFQBidder                  as _RFQBidder                on  $projection.RequestForQuotation = _RFQBidder.RequestForQuotation

  association [0..1] to I_PurchasingDocumentType     as _FollowOnDocumentType     on  $projection.PurchasingDocumentCategory = _FollowOnDocumentType.PurchasingDocumentCategory
                                                                                  and $projection.PurchasingDocumentType     = _FollowOnDocumentType.PurchasingDocumentType

  association [0..1] to I_RequestForQuotationType    as _RFQType                  on  $projection.PurchasingDocumentType = _RFQType.RFQType

  association [0..1] to I_PurchasingDocumentCategory as _FollowOnDocumentCategory on  $projection.PurchasingDocumentCategory = _FollowOnDocumentCategory.PurchasingDocumentCategory

  association [0..*] to I_SupplierQuotation          as _SupplierQuotation        on  $projection.RequestForQuotation = _SupplierQuotation.RequestForQuotation

  association [0..1] to I_RFQLifecycleStatus         as _RFQLifecycleStatus       on  $projection.RFQLifecycleStatus = _RFQLifecycleStatus.RFQLifecycleStatus
  
  --Extension Association
  association [0..1] to E_PurchasingDocument         as _RequestQtnExtension      on $projection.RequestForQuotation = _RequestQtnExtension.PurchasingDocument

{
      @ObjectModel: { readOnly: true }
  key cast (I_PurchasingDocument.PurchasingDocument as vdm_requestforquotation preserving type)          as RequestForQuotation,

      @ObjectModel: { foreignKey.association: '_CompanyCode',
                      mandatory: true }
      I_PurchasingDocument.CompanyCode,

      @ObjectModel: { readOnly: true,
                      foreignKey.association: '_PurchasingDocumentCategory' }
      I_PurchasingDocument.PurchasingDocumentCategory,

      @ObjectModel: { readOnly: true,
                      foreignKey.association: '_RFQType' }
      cast(I_PurchasingDocument.PurchasingDocumentType as vdm_rfq_doc_type preserving type )             as PurchasingDocumentType,

      @ObjectModel: { readOnly: true }
      I_PurchasingDocument.CreatedByUser,

      @ObjectModel: { readOnly: true }
      I_PurchasingDocument.CreationDate,

      @ObjectModel.readOnly: true
      I_PurchasingDocument.LastChangeDateTime,

      @Semantics.language: false
      I_PurchasingDocument.Language,

      @ObjectModel: { foreignKey.association: '_PurchasingOrganization',
                      mandatory: true }
      cast(I_PurchasingDocument.PurchasingOrganization as ekorg_ll preserving type )                     as PurchasingOrganization,

      @ObjectModel: { foreignKey.association: '_PurchasingGroup',
                      mandatory: true }
      I_PurchasingDocument.PurchasingGroup,

      @Semantics.currencyCode:true
      @ObjectModel: { foreignKey.association: '_DocumentCurrency',
                      mandatory: true }
      I_PurchasingDocument.DocumentCurrency,

      @ObjectModel: { foreignKey.association: '_IncotermsClassification' }
      I_PurchasingDocument.IncotermsClassification,
      I_PurchasingDocument.IncotermsTransferLocation,
      @ObjectModel: {foreignKey.association: '_IncotermsVersion' }
      I_PurchasingDocument.IncotermsVersion,
      I_PurchasingDocument.IncotermsLocation1,
      I_PurchasingDocument.IncotermsLocation2,

      @ObjectModel.foreignKey.association: '_PaymentTerms'
      I_PurchasingDocument.PaymentTerms,
      I_PurchasingDocument.CashDiscount1Days,
      I_PurchasingDocument.CashDiscount2Days,
      cast (I_PurchasingDocument.CashDiscount1Percent as vdm_discount_percent_1 preserving type)         as CashDiscount1Percent,
      cast (I_PurchasingDocument.CashDiscount2Percent as vdm_discount_percent_2 preserving type)         as CashDiscount2Percent,
      I_PurchasingDocument.NetPaymentDays,
      I_PurchasingDocument.ValidityStartDate,
      I_PurchasingDocument.ValidityEndDate,
      cast( I_PurchasingDocument.PurchasingDocumentOrderDate as vdm_rfq_publishing_date preserving type) as RFQPublishingDate,
      I_PurchasingDocument.QuotationLatestSubmissionDate,
      I_PurchasingDocument.BindingPeriodValidityEndDate,

      @DefaultAggregation:#NONE
      @Semantics.amount.currencyCode: 'DocumentCurrency'
      I_PurchasingDocument.TargetAmount,


      @ObjectModel: {  foreignKey.association: '_RFQLifecycleStatus'}
      cast ( I_PurchasingDocument.PurchasingProcessingStatus as vdm_rfq_lfst_cd preserving type)         as RFQLifecycleStatus,

      cast ( I_PurchasingDocument.PurchasingDocumentName as vdm_rfq_name preserving type)                as RequestForQuotationName,

      I_PurchasingDocument.QuotationEarliestSubmsnDate,

      cast (I_PurchasingDocument.LatestRegistrationDate as vdm_apply_by preserving type)                 as LatestRegistrationDate,

      I_PurchasingDocument.CorrespncInternalReference,

      @ObjectModel.foreignKey.association: '_FollowOnDocumentCategory'
      I_PurchasingDocument.FollowOnDocumentCategory,

      @ObjectModel.foreignKey.association: '_FollowOnDocumentType'
      I_PurchasingDocument.FollowOnDocumentType,

      // deletion code needed for archiving

      I_PurchasingDocument.PurchasingDocumentDeletionCode,

      I_PurchasingDocument.IsEndOfPurposeBlocked,

      _RequestForQuotationItem,
      _RFQBidder,
      I_PurchasingDocument._PurchasingDocumentType,
      I_PurchasingDocument._PurchasingDocumentCategory,
      _RFQType,
      I_PurchasingDocument._PaymentTerms,
      I_PurchasingDocument._CreatedByUser,
      _IncotermsClassification,
      _IncotermsVersion,
      I_PurchasingDocument._DocumentCurrency,
      I_PurchasingDocument._CompanyCode,
      I_PurchasingDocument._PurchasingGroup,
      _PurchasingOrganization,
      _SupplierQuotation,
      I_PurchasingDocument._Language,
      _RFQLifecycleStatus,
      _FollowOnDocumentCategory,
      _FollowOnDocumentType

}
where
  I_PurchasingDocument.PurchasingDocumentCategory = 'R'