P_BillingDocumentItemBasic_2

DDL: P_BILLINGDOCUMENTITEMBASIC_2 Type: view_entity BASIC

P_BillingDocumentItemBasic_2 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (vbrk, vbrp) and exposes 186 fields with key fields BillingDocument, BillingDocumentItem.

Data Sources (2)

SourceAliasJoin Type
vbrk vbrk inner
vbrp vbrp from

Annotations (3)

NameValueLevelField
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (186)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument vbrp vbeln SD Sched. Agmt
KEY BillingDocumentItem vbrp posnr WBS Element
SalesDocumentItemCategory
SalesDocumentItemType vbrp posar Item Type
ReturnItemProcessingType vbrp shkzg Returns
CreatedByUser vbrp ernam User Name
CreationDate vbrp erdat Entered On
CreationTime vbrp erzet Time
ReferenceLogicalSystem vbrp logsys Source system
OrganizationDivision
Division
SalesOffice vbrp vkbur Sales Office
Product
OriginallyRequestedMaterial vbrp matwa MaterialEntered
InternationalArticleNumber vbrp ean11 EAN/UPC
PricingReferenceMaterial vbrp pmatn Pr. Ref. Matl
Batch vbrp charg Chargeable Proc.
ProductHierarchyNode vbrp prodh Prod. Hierarchy
ProductGroup
AdditionalMaterialGroup1 vbrp mvgr1 MaterialGroup 1
AdditionalMaterialGroup2 vbrp mvgr2 MaterialGroup 2
AdditionalMaterialGroup3 vbrp mvgr3 MaterialGroup 3
AdditionalMaterialGroup4 vbrp mvgr4 MaterialGroup 4
AdditionalMaterialGroup5 vbrp mvgr5 MaterialGroup 5
ProductConfiguration vbrp cuobj Object Number
MaterialCommissionGroup vbrp provg Time intvl key
Plant vbrp werks Receiving Plant
StorageLocation vbrp lgort Sublocation
ReplacementPartType vbrp atpkz Replacemt Part
MaterialGroupHierarchy1 vbrp wgru1 MatGroup 1
MaterialGroupHierarchy2 vbrp wgru2 MatGroup 2
PlantRegion vbrp wkreg Region-Dlv.Plnt
PlantCounty vbrp wkcou County-Dlv.Plnt
PlantCity vbrp wkcty City-Dlv.Plant
TransitPlant vbrp transit_plant Transit Plant
ValueChainCategory vbrp vcm_chain_category Value Chain Category
BOMExplosion vbrp sernr Serial Number
MaterialDeterminationType vbrp prosa MatDetermActive
BillingDocumentItemText vbrp arktx Short Text
ServicesRenderedDate vbrp fbuda Services Rendered Date
BillingQuantity vbrp fkimg Invoiced Qty
BillingQuantityUnit vbrp vrkme UoM for SubItm CCD
BillingQuantityInBaseUnit vbrp fklmg Bill.Qty in SKU
BaseUnit vbrp meins Valuation Unit
MRPRequiredQuantityInBaseUnit vbrp lmeng Required Quantity for Mat.Management
BillingToBaseQuantityDnmntr vbrp umvkn Denominator
BillingToBaseQuantityNmrtr vbrp umvkz Numerator
ItemGrossWeight vbrp brgew Weight
ItemNetWeight vbrp ntgew Net Weight
ItemWeightUnit vbrp gewei Weight Unit
ItemVolume vbrp volum Volume
ItemVolumeUnit vbrp voleh Volume Unit
BillToPartyCountry vbrp lland_auft Dst.CtryRg.Ord.
BillToPartyRegion vbrp regio_auft Region Order
BillingPlanRule vbrp fareg Billing Rule
BillingPlan vbrp fplnr Invoicing plan
BillingPlanItem vbrp fpltr Item
DocumentBillingStatus vbrp fksaa Ord.Rel.BillgSt
NetAmount vbrp netwr Value
TransactionCurrency vbrp waerk Doc. Currency
GrossAmount vbrp brtwr Gross value
PricingDate vbrp prsdt Pricing Date
PriceDetnExchangeRate
PricingScaleQuantityInBaseUnit vbrp smeng Scale Quantity
TaxAmount vbrp mwsbp Tax Amount
CostAmount vbrp wavwr Cost
Subtotal1Amount vbrp kzwi1 Subtotal 1
Subtotal2Amount vbrp kzwi2 Subtotal 2
Subtotal3Amount vbrp kzwi3 Subtotal 3
Subtotal4Amount vbrp kzwi4 Subtotal 4
Subtotal5Amount vbrp kzwi5 Subtotal 5
Subtotal6Amount vbrp kzwi6 Subtotal 6
StatisticalValueControl vbrp kowrr Stat. Value
CashDiscountIsDeductible vbrp sktof No Cash Disc.
CustomerConditionGroup1 vbrp kdkg1 Condition grp 1
CustomerConditionGroup2 vbrp kdkg2 Condition grp 2
CustomerConditionGroup3 vbrp kdkg3 Condition grp 3
CustomerConditionGroup4 vbrp kdkg4 Condition grp 4
CustomerConditionGroup5 vbrp kdkg5 Condition grp 5
ManualPriceChangeType vbrp mprok Manual Price
MaterialPricingGroup vbrp kondm Mat. Price Grp
StatisticsExchangeRate
MainItemPricingRefMaterial vbrp upmat Single-Character Flag
MainItemMaterialPricingGroup vbrp ukonm MnItem MatPrcGr
TimeSheetOvertimeCategory vbrp cats_overtime_category Overtime Category
PricingRelevance vbrp prsfd Pricing Relev.
DepartureCountry vbrp aland Dep. Ctry/Reg.
TaxJurisdiction vbrp txjcd Tax Jurisdict.
ProductTaxClassification1 vbrp taxm1 Tax Classifica.
ProductTaxClassification2 vbrp taxm2 Tax Classifica.
ProductTaxClassification3 vbrp taxm3 Tax Classifica.
ProductTaxClassification4 vbrp taxm4 Tax Classifica.
ProductTaxClassification5 vbrp taxm5 Tax Classifica.
ProductTaxClassification6 vbrp taxm6 Tax Classifica.
ProductTaxClassification7 vbrp taxm7 Tax Classifica.
ProductTaxClassification8 vbrp taxm8 Tax Classifica.
ProductTaxClassification9 vbrp taxm9 Tax Classifica.
ZeroVATRsn vbrp j_1arfz Reason for Zero VAT
TaxCode vbrp mwsk1 Tax Code
TaxRateValidityStartDate vbrp txdat_from Tax Rate Valid-From
CountryOfOrigin vbrp spe_herkl C/R of Origin
RegionOfOrigin vbrp spe_herkr Reg. of Origin
CommodityCode vbrp itm_comco Commodity Code
EligibleAmountForCashDiscount vbrp skfbp Csh.Disc.Bas
BusinessArea vbrp gsber Business Area
ProfitCenter vbrp prctr Profit Centers
WBSElementInternalID
ProviderContract vbrp vtkey Contract
ProviderContractItem
BillingPerformancePeriodStrDte vbrp perop_beg PEROP Start
BillingPerformancePeriodEndDte vbrp perop_end PEROP End
ControllingArea vbrp kokrs Org. Value
ProfitabilitySegment_2
OrderID vbrp aufnr SettlementOrder
CostCenter vbrp kostl Substitute CC
OriginSDDocument vbrp vbelv Preceding Doc.
OriginSDDocumentItem vbrp posnv SettlmtRefDocItem
PriceDetnExchangeRateDate vbrp kursk_dat Translatn Date
MatlAccountAssignmentGroup vbrp ktgrm AcctAssmtGrpMat
ReferenceSDDocument vbrp vgbel Reference Doc.
ReferenceSDDocumentItem vbrp vgpos Reference Item
ReferenceSDDocumentCategory
SalesDocument vbrp aubel Trigger doc
SalesDocumentItem vbrp aupos Item
SalesSDDocumentCategory
HigherLevelItem vbrp uepos Higher-Lev.Item
HigherLvlItmOfBatSpltItm vbrp uecha HghLevItmBatch
BillingDocumentItemInPartSgmt vbrp pospa Partner Item
ExternalReferenceDocument
BillingDocExtReferenceDocItem
PrelimBillingDocument vbrp pbd_id Prelimin. Bill. Doc.
PrelimBillingDocumentItem vbrp pbd_item_id Prelimin. Doc. Item
SalesGroup vbrp vkgrp Sales Group
AdditionalCustomerGroup1 vbrp kvgr1 Customer Grp 1
AdditionalCustomerGroup2 vbrp kvgr2 Customer Grp 2
AdditionalCustomerGroup3 vbrp kvgr3 Customer Grp 3
AdditionalCustomerGroup4 vbrp kvgr4 Customer Grp 4
AdditionalCustomerGroup5 vbrp kvgr5 Customer Grp 5
SDDocumentReason vbrp augru_auft Order Reason
RetailPromotion vbrp aktnr Promotion
RebateBasisAmount vbrp bonba Rebate Basis
VolumeRebateGroup vbrp bonus Volume Rebate Group
ItemIsRelevantForCredit vbrp cmpnt Credit Active
CreditRelatedPrice vbrp cmpre Credit Price
SalesDeal vbrp knuma_ag Sales Deal
SalesPromotion vbrp knuma_pi Promotion
SalesOrderSalesDistrict vbrp bzirk_auft Sls Dist. Order
SalesOrderCustomerGroup vbrp kdgrp_auft CustGrpOrder
SalesOrderCustomerPriceGroup vbrp konda_auft PriceGroupOrder
SalesOrderPriceListType vbrp pltyp_auft Price List Ord.
SalesOrderSalesOrganization vbrp vkorg_auft SOrg of Order
SalesOrderDistributionChannel vbrp vtweg_auft Dist. Chan. Or.
SalesDocIsCreatedFromReference vbrp auref SalesDocumentRefer
ShippingPoint vbrp vstel ShpPtDeparture
ServiceDocumentType vbrp service_doc_type Transaction Type
ServiceDocument vbrp service_doc_id Transaction ID
ServiceDocumentItem vbrp service_doc_item_id Service Doc. Item
BusinessSolutionOrder vbrp solution_order_id Solution Order
BusinessSolutionOrderItem vbrp solution_order_item_id Solution Order Item
HigherLevelItemUsage vbrp uepvw Usage HL Item
BillingDocumentIsTemporary
SDDocumentCategory vbrp vbtyp_ana Document Cat.
BillingDocumentType vbrp fkart_ana Billing Type
SalesOrganization vbrp vkorg_ana Sales Org.
DistributionChannel vbrp vtweg_ana Distr. Channel
CustomerPriceGroup vbrp konda_ana CustPrice Group
CustomerGroup vbrp kdgrp_ana Customer Group
Country vbrp land1_ana Dest. Ctry/Reg
Region vbrp regio_ana Region
CityCode vbrp cityc_ana City Code
SalesDistrict vbrp bzirk_ana Sales District
OverallSDProcessStatus vbrp gbstk_ana Overall Status
OverallBillingStatus vbrp vf_status_ana Status
SoldToParty vbrp kunag_ana Sold-to Party
PayerParty vbrp kunrg_ana Payer
BillingDocumentDate vbrp fkdat_ana Billing Date
CompanyCode vbrp bukrs_ana Company Code
County vbrp counc_ana County Code
CustomerRebateAgreement vbrp knuma_ana Agreement
BillingDocumentCategory vbrp fktyp_ana BillingCategory
ShipToParty vbrp kunwe_ana Ship-to Party
BillToParty vbrp kunre_ana Bill-to Party
SalesEmployee vbrp perve_ana Sales Employee
ResponsibleEmployee vbrp perzm_ana Employee Responsible
PricingDocument vbrk knumv Doc. Condition
CancelledBillingDocument vbrk sfakn Canceld Bill.Dc

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 P_BillingDocumentItemBasic_2.
-- 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 P_BillingDocumentItemBasic_2 AS
SELECT
  vbrp.vbeln AS BillingDocument,
  vbrp.posnr AS BillingDocumentItem,
  cast(vbrp.pstyv as sales_doc_item_category preserving type) AS SalesDocumentItemCategory,
  vbrp.posar AS SalesDocumentItemType,
  vbrp.shkzg AS ReturnItemProcessingType,
  vbrp.ernam AS CreatedByUser,
  vbrp.erdat AS CreationDate,
  vbrp.erzet AS CreationTime,
  vbrp.logsys AS ReferenceLogicalSystem,
  cast(vbrp.spara as sales_order_divison preserving type) AS OrganizationDivision,
  vbrp. spart AS Division,
  vbrp.vkbur AS SalesOffice,
  cast (vbrp.matnr as productnumber preserving type) AS Product,
  vbrp.matwa AS OriginallyRequestedMaterial,
  vbrp.ean11 AS InternationalArticleNumber,
  vbrp.pmatn AS PricingReferenceMaterial,
  vbrp.charg AS Batch,
  vbrp.prodh AS ProductHierarchyNode,
  cast (vbrp.matkl as productgroup preserving type ) AS ProductGroup,
  vbrp.mvgr1 AS AdditionalMaterialGroup1,
  vbrp.mvgr2 AS AdditionalMaterialGroup2,
  vbrp.mvgr3 AS AdditionalMaterialGroup3,
  vbrp.mvgr4 AS AdditionalMaterialGroup4,
  vbrp.mvgr5 AS AdditionalMaterialGroup5,
  vbrp.cuobj AS ProductConfiguration,
  vbrp.provg AS MaterialCommissionGroup,
  vbrp.werks AS Plant,
  vbrp.lgort AS StorageLocation,
  vbrp.atpkz AS ReplacementPartType,
  vbrp.wgru1 AS MaterialGroupHierarchy1,
  vbrp.wgru2 AS MaterialGroupHierarchy2,
  vbrp.wkreg AS PlantRegion,
  vbrp.wkcou AS PlantCounty,
  vbrp.wkcty AS PlantCity,
  vbrp.transit_plant AS TransitPlant,
  vbrp.vcm_chain_category AS ValueChainCategory,
  vbrp.sernr AS BOMExplosion,
  vbrp.prosa AS MaterialDeterminationType,
  vbrp.arktx AS BillingDocumentItemText,
  vbrp.fbuda AS ServicesRenderedDate,
  vbrp.fkimg AS BillingQuantity,
  vbrp.vrkme AS BillingQuantityUnit,
  vbrp.fklmg AS BillingQuantityInBaseUnit,
  vbrp.meins AS BaseUnit,
  vbrp.lmeng AS MRPRequiredQuantityInBaseUnit,
  vbrp.umvkn AS BillingToBaseQuantityDnmntr,
  vbrp.umvkz AS BillingToBaseQuantityNmrtr,
  vbrp.brgew AS ItemGrossWeight,
  vbrp.ntgew AS ItemNetWeight,
  vbrp.gewei AS ItemWeightUnit,
  vbrp.volum AS ItemVolume,
  vbrp.voleh AS ItemVolumeUnit,
  vbrp.lland_auft AS BillToPartyCountry,
  vbrp.regio_auft AS BillToPartyRegion,
  vbrp.fareg AS BillingPlanRule,
  vbrp.fplnr AS BillingPlan,
  vbrp.fpltr AS BillingPlanItem,
  vbrp.fksaa AS DocumentBillingStatus,
  vbrp.netwr AS NetAmount,
  vbrp.waerk AS TransactionCurrency,
  vbrp.brtwr AS GrossAmount,
  vbrp.prsdt AS PricingDate,
  cast( vbrp.kursk as kursk_not_converted preserving type ) AS PriceDetnExchangeRate,
  vbrp.smeng AS PricingScaleQuantityInBaseUnit,
  vbrp.mwsbp AS TaxAmount,
  vbrp.wavwr AS CostAmount,
  vbrp.kzwi1 AS Subtotal1Amount,
  vbrp.kzwi2 AS Subtotal2Amount,
  vbrp.kzwi3 AS Subtotal3Amount,
  vbrp.kzwi4 AS Subtotal4Amount,
  vbrp.kzwi5 AS Subtotal5Amount,
  vbrp.kzwi6 AS Subtotal6Amount,
  vbrp.kowrr AS StatisticalValueControl,
  vbrp.sktof AS CashDiscountIsDeductible,
  vbrp.kdkg1 AS CustomerConditionGroup1,
  vbrp.kdkg2 AS CustomerConditionGroup2,
  vbrp.kdkg3 AS CustomerConditionGroup3,
  vbrp.kdkg4 AS CustomerConditionGroup4,
  vbrp.kdkg5 AS CustomerConditionGroup5,
  vbrp.mprok AS ManualPriceChangeType,
  vbrp.kondm AS MaterialPricingGroup,
  cast(vbrp.stcur as stcur_ap_not_converted preserving type ) AS StatisticsExchangeRate,
  vbrp.upmat AS MainItemPricingRefMaterial,
  vbrp.ukonm AS MainItemMaterialPricingGroup,
  vbrp.cats_overtime_category AS TimeSheetOvertimeCategory,
  vbrp.prsfd AS PricingRelevance,
  vbrp.aland AS DepartureCountry,
  vbrp.txjcd AS TaxJurisdiction,
  vbrp.taxm1 AS ProductTaxClassification1,
  vbrp.taxm2 AS ProductTaxClassification2,
  vbrp.taxm3 AS ProductTaxClassification3,
  vbrp.taxm4 AS ProductTaxClassification4,
  vbrp.taxm5 AS ProductTaxClassification5,
  vbrp.taxm6 AS ProductTaxClassification6,
  vbrp.taxm7 AS ProductTaxClassification7,
  vbrp.taxm8 AS ProductTaxClassification8,
  vbrp.taxm9 AS ProductTaxClassification9,
  vbrp.j_1arfz AS ZeroVATRsn,
  vbrp.mwsk1 AS TaxCode,
  vbrp.txdat_from AS TaxRateValidityStartDate,
  vbrp.spe_herkl AS CountryOfOrigin,
  vbrp.spe_herkr AS RegionOfOrigin,
  vbrp.itm_comco AS CommodityCode,
  vbrp.skfbp AS EligibleAmountForCashDiscount,
  vbrp.gsber AS BusinessArea,
  vbrp.prctr AS ProfitCenter,
  cast( vbrp.ps_psp_pnr as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
  vbrp.vtkey AS ProviderContract,
  cast( vbrp.vtpos as provider_contract_item preserving type ) AS ProviderContractItem,
  vbrp.perop_beg AS BillingPerformancePeriodStrDte,
  vbrp.perop_end AS BillingPerformancePeriodEndDte,
  vbrp.kokrs AS ControllingArea,
  cast( vbrp.paobjnr as rkeobjnr_char ) AS ProfitabilitySegment_2,
  vbrp.aufnr AS OrderID,
  vbrp.kostl AS CostCenter,
  vbrp.vbelv AS OriginSDDocument,
  vbrp.posnv AS OriginSDDocumentItem,
  vbrp.kursk_dat AS PriceDetnExchangeRateDate,
  vbrp.ktgrm AS MatlAccountAssignmentGroup,
  vbrp.vgbel AS ReferenceSDDocument,
  vbrp.vgpos AS ReferenceSDDocumentItem,
  cast( vbrp.vgtyp as reference_doc_category preserving type ) AS ReferenceSDDocumentCategory,
  vbrp.aubel AS SalesDocument,
  vbrp.aupos AS SalesDocumentItem,
  cast( vbrp.autyp as sales_document_category preserving type ) AS SalesSDDocumentCategory,
  vbrp.uepos AS HigherLevelItem,
  vbrp.uecha AS HigherLvlItmOfBatSpltItm,
  vbrp.pospa AS BillingDocumentItemInPartSgmt,
  cast( vbrp.vgbel_ex as ext_reference_document preserving type ) AS ExternalReferenceDocument,
  cast( vbrp.vgpos_ex as billingdocextreferencedocitem preserving type ) AS BillingDocExtReferenceDocItem,
  vbrp.pbd_id AS PrelimBillingDocument,
  vbrp.pbd_item_id AS PrelimBillingDocumentItem,
  vbrp.vkgrp AS SalesGroup,
  vbrp.kvgr1 AS AdditionalCustomerGroup1,
  vbrp.kvgr2 AS AdditionalCustomerGroup2,
  vbrp.kvgr3 AS AdditionalCustomerGroup3,
  vbrp.kvgr4 AS AdditionalCustomerGroup4,
  vbrp.kvgr5 AS AdditionalCustomerGroup5,
  vbrp.augru_auft AS SDDocumentReason,
  vbrp.aktnr AS RetailPromotion,
  vbrp.bonba AS RebateBasisAmount,
  vbrp.bonus AS VolumeRebateGroup,
  vbrp.cmpnt AS ItemIsRelevantForCredit,
  vbrp.cmpre AS CreditRelatedPrice,
  vbrp.knuma_ag AS SalesDeal,
  vbrp.knuma_pi AS SalesPromotion,
  vbrp.bzirk_auft AS SalesOrderSalesDistrict,
  vbrp.kdgrp_auft AS SalesOrderCustomerGroup,
  vbrp.konda_auft AS SalesOrderCustomerPriceGroup,
  vbrp.pltyp_auft AS SalesOrderPriceListType,
  vbrp.vkorg_auft AS SalesOrderSalesOrganization,
  vbrp.vtweg_auft AS SalesOrderDistributionChannel,
  vbrp.auref AS SalesDocIsCreatedFromReference,
  vbrp.vstel AS ShippingPoint,
  vbrp.service_doc_type AS ServiceDocumentType,
  vbrp.service_doc_id AS ServiceDocument,
  vbrp.service_doc_item_id AS ServiceDocumentItem,
  vbrp.solution_order_id AS BusinessSolutionOrder,
  vbrp.solution_order_item_id AS BusinessSolutionOrderItem,
  vbrp.uepvw AS HigherLevelItemUsage,
  cast (vbrp.draft as vf_draft_indicator preserving type ) AS BillingDocumentIsTemporary,
  vbrp.vbtyp_ana AS SDDocumentCategory,
  vbrp.fkart_ana AS BillingDocumentType,
  vbrp.vkorg_ana AS SalesOrganization,
  vbrp.vtweg_ana AS DistributionChannel,
  vbrp.konda_ana AS CustomerPriceGroup,
  vbrp.kdgrp_ana AS CustomerGroup,
  vbrp.land1_ana AS Country,
  vbrp.regio_ana AS Region,
  vbrp.cityc_ana AS CityCode,
  vbrp.bzirk_ana AS SalesDistrict,
  vbrp.gbstk_ana AS OverallSDProcessStatus,
  vbrp.vf_status_ana AS OverallBillingStatus,
  vbrp.kunag_ana AS SoldToParty,
  vbrp.kunrg_ana AS PayerParty,
  vbrp.fkdat_ana AS BillingDocumentDate,
  vbrp.bukrs_ana AS CompanyCode,
  vbrp.counc_ana AS County,
  vbrp.knuma_ana AS CustomerRebateAgreement,
  vbrp.fktyp_ana AS BillingDocumentCategory,
  vbrp.kunwe_ana AS ShipToParty,
  vbrp.kunre_ana AS BillToParty,
  vbrp.perve_ana AS SalesEmployee,
  vbrp.perzm_ana AS ResponsibleEmployee,
  vbrk.knumv AS PricingDocument,
  vbrk.sfakn AS CancelledBillingDocument
FROM vbrp
INNER JOIN vbrk ON /* join condition not captured in parsed metadata */
;