I_PrelimBillingDocumentItem
Preliminary Billing Document Item
I_PrelimBillingDocumentItem (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PrelimBillingDocumentItem · Sales
I_PrelimBillingDocumentItem is a Basic CDS View (Dimension) that provides data about "Preliminary Billing Document Item" in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentItemBasic) and exposes 279 fields with key fields PrelimBillingDocument, PrelimBillingDocumentItem. It has 6 associations to related views.
SAP Help Documentation
| Category | Preliminary Billing Documents |
|---|---|
| Data Category | Dimension |
| Corresponding DataSource | TBD |
This CDS view provides the prerequisites for answering questions about items in preliminary billing documents. Example business questions could include: What is the net amount of a given preliminary billing document item? What is the total preliminarily invoiced amount for a certain product (that is, material) last year? How much revenue has a certain project generated? Which product (that is, material) generated the most revenue last year?
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: V_VBRK_FKA (Billing: Authorization for Billing Types) V_VBRK_VKO (Billing: Authorization for Sales Organizations)
Structure
Object types This view relates to the following SAP object types: PreliminaryBillingDocument You can use the fields PrelimBillingDocument (document number) and PrelimBillingDocumentItem (item number) as key fields. Measures and Attributes Some important attributes are: Product ( Product ), that is, material. Item type ( SalesDocumentItemType ) Text of item in preliminary billing document (BillingDocumentItemText) Some important measures are: Billing quantity ( BillingQuanity ) Billing quantity unit ( BillingQuantityUnit ) Item gross weight ( ItemGrossWeight ) Item net value ( NetAmount ) Item tax amount ( TaxAmount ) Exchange rate for price determination from document currency into accounting currency ( PriceDetnExchangeRate ) Exchange rate at time of creation for statistics ( StatisticsExchangeRate ) Note In all CDS view exchange rate fields, negative values are used to indicate indirect quotation. Indirect quotation gives the cost of one unit of the from-currency (for example, document currency) in units of the to-currency (for example, accounting currency). Positive values indicate direct quotation, which gives the cost of one unit of the to-currency in units of the from-currency.
Data Extraction
Data Extraction Type Full Delta (change data capture)
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sales |
| Application Component | SD-BIL-PBD |
| Capabilities | Data Source for Defining CDS Entities, Analytical Dimension, Data Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Data Extraction |
| Package | Sales for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the prerequisites for answering questions about items in preliminary billing documents. Example business questions could include:</p> <ul> <li><p>What is the net amount of a given preliminary billing document item?</p></li> <li><p>What is the total preliminarily invoiced amount for a certain product (that is, material) last year?</p></li> <li><p>How much revenue has a certain project generated?</p></li> <li><p>Which product (that is, material) generated the most revenue last year?</p></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocumentItemBasic | Item | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PrelimBillingDocument | _PrelimBillingDocument | $projection.PrelimBillingDocument = _PrelimBillingDocument.PrelimBillingDocument |
| [0..*] | I_PrelimBillingDocItemPartner | _Partner | $projection.PrelimBillingDocument = _Partner.PrelimBillingDocument and $projection.PrelimBillingDocumentItem = _Partner.PrelimBillingDocumentItem |
| [0..*] | I_PrelimBillgDocItemPrcgElmnt | _PricingElement | $projection.PrelimBillingDocument = _PricingElement.PrelimBillingDocument and $projection.PrelimBillingDocumentItem = _PricingElement.PrelimBillingDocumentItem |
| [1..1] | I_PrelimBillingDocumentItem | _HigherLevelItem | $projection.PrelimBillingDocument = _HigherLevelItem.PrelimBillingDocument and $projection.HigherLevelItem = _HigherLevelItem.PrelimBillingDocumentItem |
| [0..1] | I_PrelimBillingDocumentItem | _HigherLvlItmOfBatSpltItm | $projection.PrelimBillingDocument = _HigherLvlItmOfBatSpltItm.PrelimBillingDocument and $projection.HigherLvlItmOfBatSpltItm = _HigherLvlItmOfBatSpltItm.PrelimBillingDocumentItem |
| [1] | E_BillingDocumentItem | _Extension | $projection.PrelimBillingDocument = _Extension.BillingDocument and $projection.PrelimBillingDocumentItem = _Extension.BillingDocumentItem |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.representativeKey | PrelimBillingDocumentItem | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.sapObjectNodeType.name | PrelimBillingDocumentItem | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| EndUserText.label | Preliminary Billing Document Item | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ISDPREBILDOCITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (279)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrelimBillingDocument | Preliminary Billing Document | ||
| KEY | PrelimBillingDocumentItem | Preliminary Billing Document Item | ||
| SalesDocumentItemCategory | SalesDocumentItemCategory | Sales Document Item Category | ||
| SalesDocumentItemType | Sales Document Item Type | |||
| ReturnItemProcessingType | ReturnItemProcessingType | Returns item | ||
| CreatedByUser | CreatedByUser | Name of Person Responsible for Creating the Object | ||
| CreationDate | CreationDate | Record Created On | ||
| CreationTime | CreationTime | Time of Change | ||
| ReferenceLogicalSystem | ReferenceLogicalSystem | Logical system | ||
| OrganizationDivision | OrganizationDivision | Division in Sales Order Header | ||
| Division | Division | Internal Division ID | ||
| SalesOffice | SalesOffice | Sales Office | ||
| Material | Material | Material Number | ||
| Product | Product | Product Number | ||
| OriginallyRequestedMaterial | OriginallyRequestedMaterial | Material Entered | ||
| InternationalArticleNumber | InternationalArticleNumber | International Article Number (EAN/UPC) | ||
| PricingReferenceMaterial | PricingReferenceMaterial | Pricing Reference Material | ||
| Batch | Batch | Batch Number | ||
| ProductHierarchyNode | ProductHierarchyNode | Product Hierarchy | ||
| MaterialGroup | MaterialGroup | Material Group | ||
| ProductGroup | ProductGroup | Product Sold Group | ||
| AdditionalMaterialGroup1 | AdditionalMaterialGroup1 | Material Group 1 | ||
| AdditionalMaterialGroup2 | AdditionalMaterialGroup2 | Material Group 2 | ||
| AdditionalMaterialGroup3 | AdditionalMaterialGroup3 | Material Group 3 | ||
| AdditionalMaterialGroup4 | AdditionalMaterialGroup4 | Material Group 4 | ||
| AdditionalMaterialGroup5 | AdditionalMaterialGroup5 | Material Group 5 | ||
| ProductConfiguration | ProductConfiguration | Configuration | ||
| MaterialCommissionGroup | MaterialCommissionGroup | Commission Group | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | Storage Location | ||
| ReplacementPartType | ReplacementPartType | Replacement part | ||
| MaterialGroupHierarchy1 | MaterialGroupHierarchy1 | Material Group Hierarchy 1 | ||
| MaterialGroupHierarchy2 | MaterialGroupHierarchy2 | Material Group Hierarchy 2 | ||
| PlantRegion | PlantRegion | Region in which plant is located | ||
| PlantCounty | PlantCounty | County in which plant is located | ||
| PlantCity | PlantCity | City in which plant is located | ||
| BOMExplosion | BOMExplosion | BOM explosion number | ||
| MaterialDeterminationType | MaterialDeterminationType | ID for material determination | ||
| BillingDocumentItemText | Short Text for Billing Document Item | |||
| ServicesRenderedDate | ServicesRenderedDate | Date on which services are rendered | ||
| BillingQuantity | Billing Quantity | |||
| BillingQuantityUnit | Billing Quantity Unit | |||
| BillingQuantityInBaseUnit | BillingQuantityInBaseUnit | Billing quantity in stock keeping unit | ||
| BaseUnit | BaseUnit | Base Unit of Measure | ||
| MRPRequiredQuantityInBaseUnit | MRPRequiredQuantityInBaseUnit | Required quantity for mat.management in stockkeeping units | ||
| BillingToBaseQuantityDnmntr | Denominator (divisor) for conversion of billing Qty into SKU | |||
| BillingToBaseQuantityNmrtr | Numerator (factor) for conversion of bill. quantity into SKU | |||
| ItemGrossWeight | ItemGrossWeight | Gross Weight | ||
| ItemNetWeight | ItemNetWeight | Net Weight | ||
| ItemWeightUnit | ItemWeightUnit | Unit of Weight | ||
| ItemVolume | ItemVolume | Volume | ||
| ItemVolumeUnit | ItemVolumeUnit | Volume Unit | ||
| BillToPartyCountry | BillToPartyCountry | Destination Country/Region of Sales Order | ||
| BillToPartyRegion | BillToPartyRegion | Region of Sales Order | ||
| BillingPlanRule | BillingPlanRule | Rule in billing plan/invoice plan | ||
| BillingPlan | BillingPlan | Billing Plan Number / Invoicing Plan Number | ||
| BillingPlanItem | BillingPlanItem | Item for billing plan/invoice plan/payment cards | ||
| NetAmount | NetAmount | Net Value of Billing item in Document Currency | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| GrossAmount | GrossAmount | Gross Value of the Billing Item in Document Currency | ||
| PricingDate | PricingDate | Date for Pricing and Exchange Rate | ||
| PriceDetnExchangeRate | PriceDetnExchangeRate | Exchange Rate for Price Determination | ||
| PricingScaleQuantityInBaseUnit | PricingScaleQuantityInBaseUnit | Scale Quantity in base unit of measure | ||
| TaxAmount | TaxAmount | Tax Amount in Document Currency | ||
| CostAmount | CostAmount | Cost in Document Currency | ||
| Subtotal1Amount | Subtotal1Amount | Subtotal 1 from Pricing Procedure for Price Element | ||
| Subtotal2Amount | Subtotal2Amount | Subtotal 2 from Pricing Procedure for Price Element | ||
| Subtotal3Amount | Subtotal3Amount | Subtotal 3 from Pricing Procedure for Price Element | ||
| Subtotal4Amount | Subtotal4Amount | Subtotal 4 from Pricing Procedure for Price Element | ||
| Subtotal5Amount | Subtotal5Amount | Subtotal 5 from Pricing Procedure for Price Element | ||
| Subtotal6Amount | Subtotal6Amount | Subtotal 6 from Pricing Procedure for Price Element | ||
| StatisticalValueControl | StatisticalValueControl | Statistical Values | ||
| CashDiscountIsDeductible | CashDiscountIsDeductible | Cash Discount Indicator | ||
| CustomerConditionGroup1 | CustomerConditionGroup1 | Customer condition group 1 | ||
| CustomerConditionGroup2 | CustomerConditionGroup2 | Customer condition group 2 | ||
| CustomerConditionGroup3 | CustomerConditionGroup3 | Customer condition group 3 | ||
| CustomerConditionGroup4 | CustomerConditionGroup4 | Customer condition group 4 | ||
| CustomerConditionGroup5 | CustomerConditionGroup5 | Customer condition group 5 | ||
| ManualPriceChangeType | ManualPriceChangeType | Status manual price change | ||
| MaterialPricingGroup | MaterialPricingGroup | Material Price Group | ||
| StatisticsExchangeRate | StatisticsExchangeRate | Exchange rate for statistics (Exch.rate at time of creation) | ||
| MainItemPricingRefMaterial | MainItemPricingRefMaterial | Pricing reference material of main item | ||
| MainItemMaterialPricingGroup | MainItemMaterialPricingGroup | Material pricing group of main item | ||
| TimeSheetOvertimeCategory | TimeSheetOvertimeCategory | Overtime Category | ||
| PricingRelevance | PricingRelevance | Pricing Relevance | ||
| DepartureCountry | DepartureCountry | Departure Country/Region (from which the goods are sent) | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| ProductTaxClassification1 | ProductTaxClassification1 | Tax Classification of Material | ||
| ProductTaxClassification2 | ProductTaxClassification2 | Tax Classification 2 for Material | ||
| ProductTaxClassification3 | ProductTaxClassification3 | Tax Classification 3 for Material | ||
| ProductTaxClassification4 | ProductTaxClassification4 | Tax Classification 4 for Material | ||
| ProductTaxClassification5 | ProductTaxClassification5 | Tax Classification 5 for Material | ||
| ProductTaxClassification6 | ProductTaxClassification6 | Tax Classification 6 for Material | ||
| ProductTaxClassification7 | ProductTaxClassification7 | Tax Classification 7 for Material | ||
| ProductTaxClassification8 | ProductTaxClassification8 | Tax Classification 8 for Material | ||
| ProductTaxClassification9 | ProductTaxClassification9 | Tax Classification 9 for Material | ||
| ZeroVATRsn | ZeroVATRsn | Reason for Zero VAT | ||
| CountryOfOrigin | CountryOfOrigin | Country/Region of Origin of Material (Non-Preferential Ori.) | ||
| RegionOfOrigin | RegionOfOrigin | Region of Origin of Material (Non-Preferential Origin) | ||
| CommodityCode | CommodityCode | Commodity Code | ||
| EligibleAmountForCashDiscount | EligibleAmountForCashDiscount | Amount eligible for cash discount in document currency | ||
| BusinessArea | BusinessArea | Business Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| OrderID | OrderID | Order Number | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| ProviderContract | ProviderContract | Identification of a Provider Contract | ||
| ProviderContractItem | ProviderContractItem | Provider Contract Item | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitabilitySegment | Deprecated: Profitability Segment | |||
| ProfitabilitySegment_2 | ProfitabilitySegment_2 | Profitability Segment | ||
| CostCenter | CostCenter | Cost Center | ||
| OriginSDDocument | OriginSDDocument | Originating Document | ||
| OriginSDDocumentItem | OriginSDDocumentItem | Originating Item | ||
| PriceDetnExchangeRateDate | PriceDetnExchangeRateDate | Translation Date | ||
| MatlAccountAssignmentGroup | MatlAccountAssignmentGroup | Account Assignment Group for Material | ||
| ReferenceSDDocument | ReferenceSDDocument | Document Number of Reference Document | ||
| ReferenceSDDocumentItem | ReferenceSDDocumentItem | Item number of the reference item | ||
| ReferenceSDDocumentCategory | ReferenceSDDocumentCategory | Reference Document Category | ||
| SalesDocument | SalesDocument | Sales Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| SalesSDDocumentCategory | SalesSDDocumentCategory | Sales Document Category | ||
| HigherLevelItem | HigherLevelItem | Higher-Level Item in Bill of Material Structures | ||
| HigherLvlItmOfBatSpltItm | HigherLvlItmOfBatSpltItm | Higher-Level Item of Batch Split Item | ||
| BillingDocumentItemInPartSgmt | BillingDocumentItemInPartSgmt | Item Number in the Partner Segment | ||
| ExternalReferenceDocument | ExternalReferenceDocument | External Reference Document | ||
| ExternalReferenceDocumentItem | ExternalReferenceDocumentItem | External Reference Document Item | ||
| BillingDocExtReferenceDocItem | BillingDocExtReferenceDocItem | External Reference Document Item of Bllg Process Doc. Item | ||
| SalesGroup | SalesGroup | Sales Group | ||
| AdditionalCustomerGroup1 | AdditionalCustomerGroup1 | Customer Group 1 | ||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Group 2 | ||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Group 3 | ||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Group 4 | ||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Group 5 | ||
| SDDocumentReason | SDDocumentReason | Order Reason (Reason for the Business Transaction) | ||
| RetailPromotion | RetailPromotion | Retail Promotion | ||
| RebateBasisAmount | RebateBasisAmount | Rebate Basis Amount | ||
| VolumeRebateGroup | VolumeRebateGroup | Volume rebate group | ||
| ItemIsRelevantForCredit | ItemIsRelevantForCredit | ID: Item with active credit function / relevant for credit | ||
| CreditRelatedPrice | CreditRelatedPrice | Item credit price | ||
| SalesDeal | SalesDeal | Sales Deal | ||
| SalesPromotion | SalesPromotion | Promotion | ||
| SalesOrderSalesDistrict | SalesOrderSalesDistrict | Sales district of sales order | ||
| SalesOrderCustomerGroup | SalesOrderCustomerGroup | Customer group of sales order | ||
| SalesOrderCustomerPriceGroup | SalesOrderCustomerPriceGroup | Price group of sales order | ||
| SalesOrderPriceListType | SalesOrderPriceListType | Price list type of sales order | ||
| SalesOrderSalesOrganization | SalesOrderSalesOrganization | Sales organization of sales order | ||
| SalesOrderDistributionChannel | SalesOrderDistributionChannel | Distribution channel of sales order | ||
| SalesDocIsCreatedFromReference | SalesDocIsCreatedFromReference | Sales document was created from reference | ||
| ShippingPoint | ShippingPoint | Shipping Point / Receiving Point | ||
| ServiceDocumentType | ServiceDocumentType | Service Document Type | ||
| ServiceDocument | ServiceDocument | Service Document ID | ||
| ServiceDocumentItem | ServiceDocumentItem | Service Document Item ID | ||
| BusinessSolutionOrder | BusinessSolutionOrder | Solution Order | ||
| BusinessSolutionOrderItem | BusinessSolutionOrderItem | Solution Order Item | ||
| SDDocumentCategory | SDDocumentCategory | SD Document Category | ||
| BillingDocumentType | BillingDocumentType | Billing Type | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | Distribution Channel | ||
| CustomerPriceGroup | CustomerPriceGroup | Customer Price Group | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| Country | Country | Destination Country/Region | ||
| Region | Region | Region (State, Province, County) | ||
| CityCode | CityCode | IATA: City | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| OverallSDProcessStatus | OverallSDProcessStatus | Overall Processing Status (Header/All Items) | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| PayerParty | PayerParty | Payer | ||
| BillingDocumentDate | BillingDocumentDate | Billing Date | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| County | County | Wyoming County | ||
| CustomerRebateAgreement | CustomerRebateAgreement | Agreement (various conditions grouped together) | ||
| BillingDocumentCategory | BillingDocumentCategory | Billing Category | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| BillToParty | BillToParty | Inv. Recipient | ||
| SalesEmployee | SalesEmployee | Sales Employee | ||
| ResponsibleEmployee | ResponsibleEmployee | Employee Responsible | ||
| _PrelimBillingDocument | _PrelimBillingDocument | |||
| _Partner | _Partner | |||
| _PricingElement | _PricingElement | |||
| _SalesDocumentItemCategory | _SalesDocumentItemCategory | |||
| _SalesDocumentItemType | _SalesDocumentItemType | |||
| _CreatedByUser | _CreatedByUser | |||
| _ReferenceLogicalSystem | _ReferenceLogicalSystem | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _Division | _Division | |||
| _SalesOffice | _SalesOffice | |||
| _Material | _Material | |||
| _Product | _Product | |||
| _OriginallyRequestedMaterial | _OriginallyRequestedMaterial | |||
| _PricingReferenceMaterial | _PricingReferenceMaterial | |||
| _Batch | _Batch | |||
| _ProductHierarchyNode | _ProductHierarchyNode | |||
| _MaterialGroup | _MaterialGroup | |||
| _ProductGroup | _ProductGroup | |||
| _AdditionalMaterialGroup1 | _AdditionalMaterialGroup1 | |||
| _AdditionalMaterialGroup2 | _AdditionalMaterialGroup2 | |||
| _AdditionalMaterialGroup3 | _AdditionalMaterialGroup3 | |||
| _AdditionalMaterialGroup4 | _AdditionalMaterialGroup4 | |||
| _AdditionalMaterialGroup5 | _AdditionalMaterialGroup5 | |||
| _MaterialCommissionGroup | _MaterialCommissionGroup | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _PlantRegion | _PlantRegion | |||
| _BillingQuantityUnit | _BillingQuantityUnit | |||
| _BaseUnit | _BaseUnit | |||
| _ItemWeightUnit | _ItemWeightUnit | |||
| _ItemVolumeUnit | _ItemVolumeUnit | |||
| _BillToPartyCountry | _BillToPartyCountry | |||
| _BillToPartyRegion | _BillToPartyRegion | |||
| _BillingPlanRule | _BillingPlanRule | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _StatisticalValueControl | _StatisticalValueControl | |||
| _MaterialPricingGroup | _MaterialPricingGroup | |||
| _MainItemPricingRefMaterial | _MainItemPricingRefMaterial | |||
| _MainItemMaterialPricingGroup | _MainItemMaterialPricingGroup | |||
| _TimeSheetOvertimeCat | _TimeSheetOvertimeCat | |||
| _PricingRelevance | _PricingRelevance | |||
| _DepartureCountry | _DepartureCountry | |||
| _CountryOfOrigin | _CountryOfOrigin | |||
| _RegionOfOrigin | _RegionOfOrigin | |||
| _BusinessArea | _BusinessArea | |||
| _ProfitCenter | _ProfitCenter | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenter | _CostCenter | |||
| _CostCenter_2 | _CostCenter_2 | |||
| _ReferenceSDDocumentCategory | _ReferenceSDDocumentCategory | |||
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _SalesSDDocumentCategory | _SalesSDDocumentCategory | |||
| _HigherLevelItem | _HigherLevelItem | |||
| _HigherLvlItmOfBatSpltItm | _HigherLvlItmOfBatSpltItm | |||
| _SalesGroup | _SalesGroup | |||
| _AdditionalCustomerGroup1 | _AdditionalCustomerGroup1 | |||
| _AdditionalCustomerGroup2 | _AdditionalCustomerGroup2 | |||
| _AdditionalCustomerGroup3 | _AdditionalCustomerGroup3 | |||
| _AdditionalCustomerGroup4 | _AdditionalCustomerGroup4 | |||
| _AdditionalCustomerGroup5 | _AdditionalCustomerGroup5 | |||
| _SDDocumentReason | _SDDocumentReason | |||
| _RetailPromotion | _RetailPromotion | |||
| _SalesDeal | _SalesDeal | |||
| _SalesOrderSalesDistrict | _SalesOrderSalesDistrict | |||
| _SalesOrderCustomerGroup | _SalesOrderCustomerGroup | |||
| _SalesOrderCustomerPriceGroup | _SalesOrderCustomerPriceGroup | |||
| _SalesOrderPriceListType | _SalesOrderPriceListType | |||
| _SalesOrderSalesOrganization | _SalesOrderSalesOrganization | |||
| _SalesOrderDistributionChannel | _SalesOrderDistributionChannel | |||
| _ShippingPoint | _ShippingPoint | |||
| _ServiceDocumentType | _ServiceDocumentType | |||
| _MatlAccountAssignmentGroup | _MatlAccountAssignmentGroup | |||
| _ProviderContract | _ProviderContract | |||
| _ProviderContractItem | _ProviderContractItem | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _MaterialText | _MaterialText | |||
| _ProductText | _ProductText | |||
| _ShippingPointText | _ShippingPointText | |||
| _PricingReferenceMaterialText | _PricingReferenceMaterialText | |||
| _MainItemPricingRefMatlText | _MainItemPricingRefMatlText | |||
| _OriginallyRequestedMatlText | _OriginallyRequestedMatlText | |||
| _SDDocumentCategory | _SDDocumentCategory | |||
| _BillingDocumentCategory | _BillingDocumentCategory | |||
| _BillingDocumentType | _BillingDocumentType | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _CustomerPriceGroup | _CustomerPriceGroup | |||
| _CustomerGroup | _CustomerGroup | |||
| _Country | _Country | |||
| _Region | _Region | |||
| _CityCode | _CityCode | |||
| _SalesDistrict | _SalesDistrict | |||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _SoldToParty | _SoldToParty | |||
| _PayerParty | _PayerParty | |||
| _CompanyCode | _CompanyCode | |||
| _County | _County | |||
| _ShipToParty | _ShipToParty | |||
| _BillToParty | _BillToParty | |||
| _SalesEmployee | _SalesEmployee | |||
| _ResponsibleEmployee | _ResponsibleEmployee |
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 I_PrelimBillingDocumentItem.
-- 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 I_PrelimBillingDocumentItem AS
SELECT
cast( BillingDocument as prelim_billing_document preserving type ) AS PrelimBillingDocument,
cast( BillingDocumentItem as prelim_billing_document_item preserving type ) AS PrelimBillingDocumentItem,
SalesDocumentItemCategory,
cast( SalesDocumentItemType as sales_document_item_type preserving type ) AS SalesDocumentItemType,
ReturnItemProcessingType,
CreatedByUser,
CreationDate,
CreationTime,
ReferenceLogicalSystem,
OrganizationDivision,
Division,
SalesOffice,
Material,
Product,
OriginallyRequestedMaterial,
InternationalArticleNumber,
PricingReferenceMaterial,
Batch,
ProductHierarchyNode,
MaterialGroup,
ProductGroup,
AdditionalMaterialGroup1,
AdditionalMaterialGroup2,
AdditionalMaterialGroup3,
AdditionalMaterialGroup4,
AdditionalMaterialGroup5,
ProductConfiguration,
MaterialCommissionGroup,
Plant,
StorageLocation,
ReplacementPartType,
MaterialGroupHierarchy1,
MaterialGroupHierarchy2,
PlantRegion,
PlantCounty,
PlantCity,
BOMExplosion,
MaterialDeterminationType,
cast( BillingDocumentItemText as billing_document_item_desc preserving type ) AS BillingDocumentItemText,
ServicesRenderedDate,
cast( BillingQuantity as billing_quantity preserving type ) AS BillingQuantity,
cast( BillingQuantityUnit as billing_quantity_unit preserving type ) AS BillingQuantityUnit,
BillingQuantityInBaseUnit,
BaseUnit,
MRPRequiredQuantityInBaseUnit,
cast( BillingToBaseQuantityDnmntr as billing_to_base_qty_dnmntr preserving type ) AS BillingToBaseQuantityDnmntr,
cast( BillingToBaseQuantityNmrtr as billing_to_base_qty_nmrtr preserving type ) AS BillingToBaseQuantityNmrtr,
ItemGrossWeight,
ItemNetWeight,
ItemWeightUnit,
ItemVolume,
ItemVolumeUnit,
BillToPartyCountry,
BillToPartyRegion,
BillingPlanRule,
BillingPlan,
BillingPlanItem,
NetAmount,
TransactionCurrency,
GrossAmount,
PricingDate,
PriceDetnExchangeRate,
PricingScaleQuantityInBaseUnit,
TaxAmount,
CostAmount,
Subtotal1Amount,
Subtotal2Amount,
Subtotal3Amount,
Subtotal4Amount,
Subtotal5Amount,
Subtotal6Amount,
StatisticalValueControl,
CashDiscountIsDeductible,
CustomerConditionGroup1,
CustomerConditionGroup2,
CustomerConditionGroup3,
CustomerConditionGroup4,
CustomerConditionGroup5,
ManualPriceChangeType,
MaterialPricingGroup,
StatisticsExchangeRate,
MainItemPricingRefMaterial,
MainItemMaterialPricingGroup,
TimeSheetOvertimeCategory,
PricingRelevance,
DepartureCountry,
TaxJurisdiction,
ProductTaxClassification1,
ProductTaxClassification2,
ProductTaxClassification3,
ProductTaxClassification4,
ProductTaxClassification5,
ProductTaxClassification6,
ProductTaxClassification7,
ProductTaxClassification8,
ProductTaxClassification9,
ZeroVATRsn,
CountryOfOrigin,
RegionOfOrigin,
CommodityCode,
EligibleAmountForCashDiscount,
BusinessArea,
ProfitCenter,
OrderID,
WBSElementInternalID,
ProviderContract,
ProviderContractItem,
ControllingArea,
cast ( case when ProfitabilitySegment_2 > '9999999999' then '9999999999' else lpad( ProfitabilitySegment_2, 10, '0' ) end as rkeobjnr_numc ) AS ProfitabilitySegment,
ProfitabilitySegment_2,
CostCenter,
OriginSDDocument,
OriginSDDocumentItem,
PriceDetnExchangeRateDate,
MatlAccountAssignmentGroup,
ReferenceSDDocument,
ReferenceSDDocumentItem,
ReferenceSDDocumentCategory,
SalesDocument,
SalesDocumentItem,
SalesSDDocumentCategory,
HigherLevelItem,
HigherLvlItmOfBatSpltItm,
BillingDocumentItemInPartSgmt,
ExternalReferenceDocument,
ExternalReferenceDocumentItem,
BillingDocExtReferenceDocItem,
SalesGroup,
AdditionalCustomerGroup1,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
SDDocumentReason,
RetailPromotion,
RebateBasisAmount,
VolumeRebateGroup,
ItemIsRelevantForCredit,
CreditRelatedPrice,
SalesDeal,
SalesPromotion,
SalesOrderSalesDistrict,
SalesOrderCustomerGroup,
SalesOrderCustomerPriceGroup,
SalesOrderPriceListType,
SalesOrderSalesOrganization,
SalesOrderDistributionChannel,
SalesDocIsCreatedFromReference,
ShippingPoint,
ServiceDocumentType,
ServiceDocument,
ServiceDocumentItem,
BusinessSolutionOrder,
BusinessSolutionOrderItem,
SDDocumentCategory,
BillingDocumentType,
SalesOrganization,
DistributionChannel,
CustomerPriceGroup,
CustomerGroup,
Country,
Region,
CityCode,
SalesDistrict,
OverallSDProcessStatus,
SoldToParty,
PayerParty,
BillingDocumentDate,
CompanyCode,
County,
CustomerRebateAgreement,
BillingDocumentCategory,
ShipToParty,
BillToParty,
SalesEmployee,
ResponsibleEmployee
FROM I_BillingDocumentItemBasic AS Item
LEFT OUTER JOIN I_PrelimBillingDocument AS _PrelimBillingDocument ON PrelimBillingDocument = _PrelimBillingDocument.PrelimBillingDocument -- association [1..1]
LEFT OUTER JOIN I_PrelimBillingDocItemPartner AS _Partner ON PrelimBillingDocument = _Partner.PrelimBillingDocument AND PrelimBillingDocumentItem = _Partner.PrelimBillingDocumentItem -- association [0..*]
LEFT OUTER JOIN I_PrelimBillgDocItemPrcgElmnt AS _PricingElement ON PrelimBillingDocument = _PricingElement.PrelimBillingDocument AND PrelimBillingDocumentItem = _PricingElement.PrelimBillingDocumentItem -- association [0..*]
LEFT OUTER JOIN I_PrelimBillingDocumentItem AS _HigherLevelItem ON PrelimBillingDocument = _HigherLevelItem.PrelimBillingDocument AND HigherLevelItem = _HigherLevelItem.PrelimBillingDocumentItem -- association [1..1]
LEFT OUTER JOIN I_PrelimBillingDocumentItem AS _HigherLvlItmOfBatSpltItm ON PrelimBillingDocument = _HigherLvlItmOfBatSpltItm.PrelimBillingDocument AND HigherLvlItmOfBatSpltItm = _HigherLvlItmOfBatSpltItm.PrelimBillingDocumentItem -- association [0..1]
LEFT OUTER JOIN E_BillingDocumentItem AS _Extension ON PrelimBillingDocument = _Extension.BillingDocument AND PrelimBillingDocumentItem = _Extension.BillingDocumentItem -- association [1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA