P_JP_TaxReallocationBillingItm

DDL: P_JP_TAXREALLOCATIONBILLINGITM SQL: PJPTAXBILLITM Type: view COMPOSITE

P_JP_TaxReallocationBillingItm is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentItem) and exposes 21 fields with key fields BillingDocument, BillingDocumentItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocumentItem _BillingItem from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_BillingDocument _Billing $projection.BillingDocument = _Billing.BillingDocument

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PJPTAXBILLITM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument I_BillingDocumentItem BillingDocument SD Document
KEY BillingDocumentItem I_BillingDocumentItem BillingDocumentItem Item
ReferenceSDDocument I_BillingDocumentItem ReferenceSDDocument Reference Doc.
ReferenceSDDocumentItem I_BillingDocumentItem ReferenceSDDocumentItem Reference Item
ReferenceSDDocumentCategory I_BillingDocumentItem ReferenceSDDocumentCategory Prec.Doc.Categ.
ItemNetAmount I_BillingDocumentItem NetAmount Stated Amount
BillDocItemTaxAmt I_BillingDocumentItem TaxAmount Tax Amt in Rptg Crcy
OverallBillingStatus _Billing OverallBillingStatus
BillingDocumentDate _Billing BillingDocumentDate Billing Date
CancelledBillingDocument _Billing CancelledBillingDocument Canceld Bill.Dc
BillingDocumentIsCancelled _Billing BillingDocumentIsCancelled Canceled
TotalNetAmount _Billing TotalNetAmount Total Net Amount
TotalTaxAmount _Billing TotalTaxAmount Tax Amount
DocumentReferenceID _Billing DocumentReferenceID Reference
AccountingDocument
CompanyCode _Billing CompanyCode Receiver Company Code
FiscalYear _Billing FiscalYear G/L Fiscal Year
_Billing _Billing
_AccountingDocument _Billing _AccountingDocument
_CompanyCode _Billing _CompanyCode
_FiscalYear _Billing _FiscalYear

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_JP_TaxReallocationBillingItm.
-- 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.
-- SQL view name: PJPTAXBILLITM

CREATE VIEW P_JP_TaxReallocationBillingItm AS
SELECT
  _BillingItem.BillingDocument AS BillingDocument,
  _BillingItem.BillingDocumentItem AS BillingDocumentItem,
  _BillingItem.ReferenceSDDocument AS ReferenceSDDocument,
  _BillingItem.ReferenceSDDocumentItem AS ReferenceSDDocumentItem,
  _BillingItem.ReferenceSDDocumentCategory AS ReferenceSDDocumentCategory,
  _BillingItem.NetAmount AS ItemNetAmount,
  _BillingItem.TaxAmount AS BillDocItemTaxAmt,
  _Billing.OverallBillingStatus AS OverallBillingStatus,
  _Billing.BillingDocumentDate AS BillingDocumentDate,
  _Billing.CancelledBillingDocument AS CancelledBillingDocument,
  _Billing.BillingDocumentIsCancelled AS BillingDocumentIsCancelled,
  _Billing.TotalNetAmount AS TotalNetAmount,
  _Billing.TotalTaxAmount AS TotalTaxAmount,
  _Billing.DocumentReferenceID AS DocumentReferenceID,
  cast(_Billing.AccountingDocument as fis_belnr preserving type) AS AccountingDocument,
  _Billing.CompanyCode AS CompanyCode,
  _Billing.FiscalYear AS FiscalYear,
  _Billing._AccountingDocument AS _AccountingDocument,
  _Billing._CompanyCode AS _CompanyCode,
  _Billing._FiscalYear AS _FiscalYear
FROM I_BillingDocumentItem AS _BillingItem
LEFT OUTER JOIN I_BillingDocument AS _Billing ON BillingDocument = _Billing.BillingDocument  -- association [1..1]
;