A_PrelimBillingDocumentItem
Items
A_PrelimBillingDocumentItem is a Consumption CDS View that provides data about "Items" in SAP S/4HANA. It reads from 1 data source (R_PrelimBillingDocumentItemTP) and exposes 132 fields with key fields PrelimBillingDocument, PrelimBillingDocumentItem. It is exposed through 1 OData service (API_PRELIMINARYBILLINGDOCUMENT). Part of development package ODATA_SD_BIL_PBD_API.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PrelimBillingDocumentItemTP | R_PrelimBillingDocumentItemTP | projection |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Items | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.modelingPattern | #TRANSACTIONAL_QUERY | view | |
| OData.entityType.name | PrelimBillingDocumentItem_Type | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| VDM.viewType | #CONSUMPTION | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| API_PRELIMINARYBILLINGDOCUMENT | API_PRELIMINARYBILLINGDOCUMENT | V4 | C2 | C1 |
Fields (132)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrelimBillingDocument | PrelimBillingDocument | ||
| KEY | PrelimBillingDocumentItem | PrelimBillingDocumentItem | ||
| SalesDocumentItemCategory | SalesDocumentItemCategory | Item Category | ||
| SalesDocumentItemType | SalesDocumentItemType | |||
| ReturnItemProcessingType | ReturnItemProcessingType | Returns | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| ReferenceLogicalSystem | ReferenceLogicalSystem | |||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| Division | Division | Internal Division ID | ||
| SalesOffice | SalesOffice | Sales Office | ||
| Product | Product | Product Sold | ||
| OriginallyRequestedMaterial | OriginallyRequestedMaterial | |||
| InternationalArticleNumber | InternationalArticleNumber | EAN/UPC | ||
| PricingReferenceMaterial | PricingReferenceMaterial | Pr. Ref. Matl | ||
| Batch | Batch | Lot No. | ||
| ProductGroup | ProductGroup | Product Sold Group | ||
| AdditionalMaterialGroup1 | AdditionalMaterialGroup1 | MaterialGroup 1 | ||
| AdditionalMaterialGroup2 | AdditionalMaterialGroup2 | MaterialGroup 2 | ||
| AdditionalMaterialGroup3 | AdditionalMaterialGroup3 | MaterialGroup 3 | ||
| AdditionalMaterialGroup4 | AdditionalMaterialGroup4 | MaterialGroup 4 | ||
| AdditionalMaterialGroup5 | AdditionalMaterialGroup5 | MaterialGroup 5 | ||
| ProductConfiguration | ProductConfiguration | |||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| PlantRegion | PlantRegion | Region-Dlv.Plnt | ||
| PlantCounty | PlantCounty | County-Dlv.Plnt | ||
| PlantCity | PlantCity | City-Dlv.Plant | ||
| MaterialDeterminationType | MaterialDeterminationType | |||
| SoldProduct | SoldProduct | Product Sold | ||
| BillingDocumentItemText | BillingDocumentItemText | Item Descr. | ||
| ServicesRenderedDate | ServicesRenderedDate | Services Rendered Date | ||
| BillingQuantity | BillingQuantity | Invoiced Qty | ||
| BillingQuantityUnitSAPCode | BillingQuantityUnit | Sales Unit | ||
| BillingQuantityUnitISOCode | ||||
| BillingQuantityInBaseUnit | BillingQuantityInBaseUnit | Bill.Qty in SKU | ||
| BaseUnitSAPCode | BaseUnit | Unit of Measure | ||
| BaseUnitISOCode | ||||
| MRPRequiredQuantityInBaseUnit | MRPRequiredQuantityInBaseUnit | Open Quantity | ||
| BillingToBaseQuantityDnmntr | BillingToBaseQuantityDnmntr | |||
| BillingToBaseQuantityNmrtr | BillingToBaseQuantityNmrtr | |||
| ItemGrossWeight | ItemGrossWeight | Gross Weight | ||
| ItemNetWeight | ItemNetWeight | Net Weight | ||
| ItemWeightUnitSAPCode | ItemWeightUnit | Unit of Weight | ||
| ItemWeightUnitISOCode | ||||
| ItemVolume | ItemVolume | Volume | ||
| ItemVolumeUnitSAPCode | ItemVolumeUnit | Volume Unit | ||
| ItemVolumeUnitISOCode | ||||
| BillingPlanRule | BillingPlanRule | |||
| BillingPlan | BillingPlan | Bill. Plan No. | ||
| BillingPlanItem | BillingPlanItem | Item | ||
| NetAmount | NetAmount | Stated Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| GrossAmount | GrossAmount | Gross value | ||
| PricingDate | PricingDate | Pricing Date | ||
| AbsltPriceDetnExchangeRate | AbsltPriceDetnExchangeRate | |||
| PriceDetnExchRateIsIndrctQtan | PriceDetnExchRateIsIndrctQtan | |||
| PricingScaleQuantityInBaseUnit | PricingScaleQuantityInBaseUnit | |||
| TaxAmount | TaxAmount | Tax Amt in Rptg Crcy | ||
| CostAmount | CostAmount | |||
| Subtotal1Amount | Subtotal1Amount | Subtotal 1 Amount | ||
| Subtotal2Amount | Subtotal2Amount | Subtotal 2 Amount | ||
| Subtotal3Amount | Subtotal3Amount | Subtotal 3 Amount | ||
| Subtotal4Amount | Subtotal4Amount | Subtotal 4 Amount | ||
| Subtotal5Amount | Subtotal5Amount | Subtotal 5 Amount | ||
| Subtotal6Amount | Subtotal6Amount | Subtotal 6 Amount | ||
| StatisticalValueControl | StatisticalValueControl | |||
| CashDiscountIsDeductible | CashDiscountIsDeductible | Cash Discount | ||
| CustomerConditionGroup1 | CustomerConditionGroup1 | Condition grp 1 | ||
| CustomerConditionGroup2 | CustomerConditionGroup2 | Condition grp 2 | ||
| CustomerConditionGroup3 | CustomerConditionGroup3 | Condition grp 3 | ||
| CustomerConditionGroup4 | CustomerConditionGroup4 | Condition grp 4 | ||
| CustomerConditionGroup5 | CustomerConditionGroup5 | Condition grp 5 | ||
| ManualPriceChangeType | ManualPriceChangeType | |||
| MaterialPricingGroup | MaterialPricingGroup | |||
| AbsltStatisticsExchangeRate | AbsltStatisticsExchangeRate | |||
| StatisticsExchRateIsIndrctQtan | StatisticsExchRateIsIndrctQtan | |||
| MainItemPricingRefMaterial | MainItemPricingRefMaterial | |||
| MainItemMaterialPricingGroup | MainItemMaterialPricingGroup | |||
| TimeSheetOvertimeCategory | TimeSheetOvertimeCategory | |||
| DepartureCountry | DepartureCountry | Departure Country / Region | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| ProductTaxClassification1 | ProductTaxClassification1 | |||
| ProductTaxClassification2 | ProductTaxClassification2 | |||
| ProductTaxClassification3 | ProductTaxClassification3 | |||
| ProductTaxClassification4 | ProductTaxClassification4 | |||
| ProductTaxClassification5 | ProductTaxClassification5 | |||
| ProductTaxClassification6 | ProductTaxClassification6 | |||
| ProductTaxClassification7 | ProductTaxClassification7 | |||
| ProductTaxClassification8 | ProductTaxClassification8 | |||
| ProductTaxClassification9 | ProductTaxClassification9 | |||
| TaxCode | TaxCode | Tax Code | ||
| TaxRateValidityStartDate | TaxRateValidityStartDate | Tax Rate Validity Start Date | ||
| EligibleAmountForCashDiscount | EligibleAmountForCashDiscount | |||
| BusinessArea | BusinessArea | Business Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProviderContract | ProviderContract | Contract | ||
| ProviderContractItem | ProviderContractItem | Contract Item | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CostCenter | CostCenter | Cost Center | ||
| PriceDetnExchangeRateDate | PriceDetnExchangeRateDate | |||
| MatlAccountAssignmentGroup | MatlAccountAssignmentGroup | |||
| ReferenceSDDocument | ReferenceSDDocument | Reference Doc. | ||
| ReferenceSDDocumentItem | ReferenceSDDocumentItem | Reference Item | ||
| ReferenceSDDocumentCategory | ReferenceSDDocumentCategory | Prec.Doc.Categ. | ||
| SalesDocument | SalesDocument | SD Document | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| SalesSDDocumentCategory | SalesSDDocumentCategory | Document Cat. | ||
| HigherLevelItem | HigherLevelItem | Higher-Lev.Item | ||
| BillingDocumentItemInPartSgmt | BillingDocumentItemInPartSgmt | |||
| SalesGroup | SalesGroup | Sales Group | ||
| AdditionalCustomerGroup1 | AdditionalCustomerGroup1 | Customer Grp 1 | ||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Grp 2 | ||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Grp 3 | ||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Grp 4 | ||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Grp 5 | ||
| SDDocumentReason | SDDocumentReason | Order Reason | ||
| ItemIsRelevantForCredit | ItemIsRelevantForCredit | |||
| CreditRelatedPrice | CreditRelatedPrice | |||
| ShippingPoint | ShippingPoint | Shipping Point | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentItem | ServiceDocumentItem | Service Document | ||
| BusinessSolutionOrder | BusinessSolutionOrder | Solution Order | ||
| BusinessSolutionOrderItem | BusinessSolutionOrderItem | Solution Order Item | ||
| ProjectBillingRequest | ProjectBillingRequest | PBR | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| ProjectExternalID | ProjectExternalID | Project def. | ||
| HigherLevelItemUsage | HigherLevelItemUsage | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| BillingDocumentType | BillingDocumentType | Billing Type |
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_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 A_PrelimBillingDocumentItem AS
SELECT
PrelimBillingDocument,
PrelimBillingDocumentItem,
SalesDocumentItemCategory,
SalesDocumentItemType,
ReturnItemProcessingType,
CreatedByUser,
CreationDate,
CreationTime,
ReferenceLogicalSystem,
OrganizationDivision,
Division,
SalesOffice,
Product,
OriginallyRequestedMaterial,
InternationalArticleNumber,
PricingReferenceMaterial,
Batch,
ProductGroup,
AdditionalMaterialGroup1,
AdditionalMaterialGroup2,
AdditionalMaterialGroup3,
AdditionalMaterialGroup4,
AdditionalMaterialGroup5,
ProductConfiguration,
Plant,
StorageLocation,
PlantRegion,
PlantCounty,
PlantCity,
MaterialDeterminationType,
SoldProduct,
BillingDocumentItemText,
ServicesRenderedDate,
BillingQuantity,
BillingQuantityUnit AS BillingQuantityUnitSAPCode,
cast(_BillingQuantityUnit.UnitOfMeasureISOCode as billg_qty_unit_isocode preserving type) AS BillingQuantityUnitISOCode,
BillingQuantityInBaseUnit,
BaseUnit AS BaseUnitSAPCode,
cast(_BaseUnit.UnitOfMeasureISOCode as meins_iso preserving type) AS BaseUnitISOCode,
MRPRequiredQuantityInBaseUnit,
BillingToBaseQuantityDnmntr,
BillingToBaseQuantityNmrtr,
ItemGrossWeight,
ItemNetWeight,
ItemWeightUnit AS ItemWeightUnitSAPCode,
cast(_ItemWeightUnit.UnitOfMeasureISOCode as gewei_iso preserving type) AS ItemWeightUnitISOCode,
ItemVolume,
ItemVolumeUnit AS ItemVolumeUnitSAPCode,
cast(_ItemVolumeUnit.UnitOfMeasureISOCode as voleh_iso preserving type) AS ItemVolumeUnitISOCode,
BillingPlanRule,
BillingPlan,
BillingPlanItem,
NetAmount,
TransactionCurrency,
GrossAmount,
PricingDate,
AbsltPriceDetnExchangeRate,
PriceDetnExchRateIsIndrctQtan,
PricingScaleQuantityInBaseUnit,
TaxAmount,
CostAmount,
Subtotal1Amount,
Subtotal2Amount,
Subtotal3Amount,
Subtotal4Amount,
Subtotal5Amount,
Subtotal6Amount,
StatisticalValueControl,
CashDiscountIsDeductible,
CustomerConditionGroup1,
CustomerConditionGroup2,
CustomerConditionGroup3,
CustomerConditionGroup4,
CustomerConditionGroup5,
ManualPriceChangeType,
MaterialPricingGroup,
AbsltStatisticsExchangeRate,
StatisticsExchRateIsIndrctQtan,
MainItemPricingRefMaterial,
MainItemMaterialPricingGroup,
TimeSheetOvertimeCategory,
DepartureCountry,
TaxJurisdiction,
ProductTaxClassification1,
ProductTaxClassification2,
ProductTaxClassification3,
ProductTaxClassification4,
ProductTaxClassification5,
ProductTaxClassification6,
ProductTaxClassification7,
ProductTaxClassification8,
ProductTaxClassification9,
TaxCode,
TaxRateValidityStartDate,
EligibleAmountForCashDiscount,
BusinessArea,
ProfitCenter,
ProviderContract,
ProviderContractItem,
ControllingArea,
CostCenter,
PriceDetnExchangeRateDate,
MatlAccountAssignmentGroup,
ReferenceSDDocument,
ReferenceSDDocumentItem,
ReferenceSDDocumentCategory,
SalesDocument,
SalesDocumentItem,
SalesSDDocumentCategory,
HigherLevelItem,
BillingDocumentItemInPartSgmt,
SalesGroup,
AdditionalCustomerGroup1,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
SDDocumentReason,
ItemIsRelevantForCredit,
CreditRelatedPrice,
ShippingPoint,
ServiceDocumentType,
ServiceDocument,
ServiceDocumentItem,
BusinessSolutionOrder,
BusinessSolutionOrderItem,
ProjectBillingRequest,
WBSElementExternalID,
ProjectExternalID,
HigherLevelItemUsage,
SalesOrganization,
BillingDocumentType
FROM R_PrelimBillingDocumentItemTP
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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