A_SalesInquiry

DDL: A_SALESINQUIRY Type: view COMPOSITE

Sales Inquiry Header

A_SalesInquiry is a Composite CDS View that provides data about "Sales Inquiry Header" in SAP S/4HANA. It reads from 1 data source (I_SalesInquiryEnhanced) and exposes 39 fields with key field SalesInquiry. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesInquiryEnhanced SalesInquiry from

Associations (4)

CardinalityTargetAliasCondition
[0..*] A_SalesInquiryItem _Item _Item.SalesInquiry = $projection.SalesInquiry
[0..*] A_SalesInquiryPartner _Partner _Partner.SalesInquiry = $projection.SalesInquiry
[0..*] A_SalesInquiryPrcgElmnt _PricingElement _PricingElement.SalesInquiry = $projection.SalesInquiry
[0..1] E_SalesDocumentBasic _Extension $projection.SalesInquiry = _Extension.SalesDocument

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Sales Inquiry Header view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASALESINQUIRY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey Salesinquiry view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY SalesInquiry SalesInquiry
SalesInquiryType SalesInquiryType
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
SalesDistrict SalesDistrict Sales District
SoldToParty SoldToParty Sold-to Party
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangeDateTime LastChangeDateTime Timestamp
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
CustomerPurchaseOrderType CustomerPurchaseOrderType
CustomerPurchaseOrderDate CustomerPurchaseOrderDate Purchase Order Date
SalesInquiryDate SalesInquiryDate
TotalNetAmount TotalNetAmount Total Net Amount
TransactionCurrency TransactionCurrency Transaction Currency
SDDocumentReason SDDocumentReason Order Reason
PricingDate PricingDate Pricing Date
HeaderBillingBlockReason HeaderBillingBlockReason Billing Block
BindingPeriodValidityStartDate BindingPeriodValidityStartDate
BindingPeriodValidityEndDate BindingPeriodValidityEndDate Binding Period
HdrOrderProbabilityInPercent HdrOrderProbabilityInPercent
ExpectedOrderNetAmount ExpectedOrderNetAmount
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
IncotermsVersion IncotermsVersion Inco. Version
CustomerPaymentTerms CustomerPaymentTerms Pyt Terms
PaymentMethod PaymentMethod Pymt Meth.
OverallSDProcessStatus OverallSDProcessStatus
TotalCreditCheckStatus TotalCreditCheckStatus
OverallSDDocumentRejectionSts OverallSDDocumentRejectionSts
_Item _Item
_Partner _Partner
_PricingElement _PricingElement

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view A_SalesInquiry.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW A_SalesInquiry AS
SELECT
  SalesInquiry,
  SalesInquiryType,
  SalesOrganization,
  DistributionChannel,
  OrganizationDivision,
  SalesGroup,
  SalesOffice,
  SalesDistrict,
  SoldToParty,
  CreationDate,
  CreatedByUser,
  LastChangeDate,
  LastChangeDateTime,
  PurchaseOrderByCustomer,
  CustomerPurchaseOrderType,
  CustomerPurchaseOrderDate,
  SalesInquiryDate,
  TotalNetAmount,
  TransactionCurrency,
  SDDocumentReason,
  PricingDate,
  HeaderBillingBlockReason,
  BindingPeriodValidityStartDate,
  BindingPeriodValidityEndDate,
  HdrOrderProbabilityInPercent,
  ExpectedOrderNetAmount,
  IncotermsClassification,
  IncotermsTransferLocation,
  IncotermsLocation1,
  IncotermsLocation2,
  IncotermsVersion,
  CustomerPaymentTerms,
  PaymentMethod,
  OverallSDProcessStatus,
  TotalCreditCheckStatus,
  OverallSDDocumentRejectionSts
FROM I_SalesInquiryEnhanced AS SalesInquiry
LEFT OUTER JOIN A_SalesInquiryItem AS _Item ON _Item.SalesInquiry = SalesInquiry  -- association [0..*]
LEFT OUTER JOIN A_SalesInquiryPartner AS _Partner ON _Partner.SalesInquiry = SalesInquiry  -- association [0..*]
LEFT OUTER JOIN A_SalesInquiryPrcgElmnt AS _PricingElement ON _PricingElement.SalesInquiry = SalesInquiry  -- association [0..*]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON SalesInquiry = _Extension.SalesDocument  -- association [0..1]
;