C_BillgDocReqWorklist

DDL: C_BILLGDOCREQWORKLIST SQL: CSDBDRWL Type: view CONSUMPTION Package: ODATA_SD_BIL_BDR_UI_V2

Billing Document Request

C_BillgDocReqWorklist is a Consumption CDS View that provides data about "Billing Document Request" in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentRequest) and exposes 49 fields with key field BillingDocumentRequest. It has 7 associations to related views. Part of development package ODATA_SD_BIL_BDR_UI_V2.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocumentRequest I_BillingDocumentRequest from

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_CustomerProjectItem _CustomerProjectItem _CustomerProjectItem.CustomerProjectItemType = '0SOH' and _CustomerProjectItem.CustomerProjectItem = PBDRSO.SalesOrder
[0..1] C_CustomerProjectVH _CustomerProject $projection.customerproject = _CustomerProject.CustomerProject
[0..*] C_BillingDocReqItemObjPg _Item $projection.BillingDocumentRequest = _Item.BillingDocumentRequest
[0..1] C_SoldToValueHelp _SoldToParty $projection.SoldToParty = _SoldToParty.Customer
[0..1] C_SoldToValueHelp _PayerParty $projection.PayerParty = _PayerParty.Customer
[0..1] C_BillingDocumentUserVH _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] E_BillingDocument _Extension $projection.BillingDocumentRequest = _Extension.BillingDocument

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CSDBDRWL view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
Search.searchable true view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
ObjectModel.compositionRoot true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Billing Document Request view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY BillingDocumentRequest I_BillingDocumentRequest BillingDocumentRequest
ReferenceSDDocument I_BillingDocumentRequest BillingDocumentRequest
BillingDocumentRequestType
BillingDocumentTypeName
SoldToParty I_BillingDocumentRequest SoldToParty Sold-to Party
SoldToPartyName _SoldToParty OrganizationBPName1 Name 1
SoldToPartyAdditionalName _SoldToParty OrganizationBPName2 Name 2
SalesDocumentCondition I_BillingDocumentRequest PricingDocument Document Condition
OverallBillingDocReqStatus I_BillingDocumentRequest OverallBillingDocReqStatus
PayerParty I_BillingDocumentRequest PayerParty Payer
PayerPartyName _PayerParty OrganizationBPName1 Name 1
PayerPartyAdditionalName _PayerParty OrganizationBPName2 Name 2
CompanyCode I_BillingDocumentRequest CompanyCode Receiver Company Code
SalesOrganization I_BillingDocumentRequest SalesOrganization Sales Organization
BillingDocumentDate I_BillingDocumentRequest BillingDocumentDate Billing Date
CreationDate I_BillingDocumentRequest CreationDate Time Stamp
CreatedByUser I_BillingDocumentRequest CreatedByUser User Name
BillingIssueType I_BillingDocumentRequest BillingIssueType
BillgDocReqRefLgclSyst
BillingDocRequestReference
BillgDocReqRefSDDocCategory
ProposedBillingDocumentType ProposedBillingDocumentType
TotalTaxAmount I_BillingDocumentRequest TotalTaxAmount Tax Amount
TotalGrossAmount
TotalNetAmount I_BillingDocumentRequest TotalNetAmount Total Net Amount
TransactionCurrency I_BillingDocumentRequest TransactionCurrency Transaction Currency
CustomerProject _CustomerProjectItem CustomerProject Engmnt Project ID
SDDocumentCategory SDDocumentCategory Document Cat.
CustomerPaymentTerms I_BillingDocumentRequest CustomerPaymentTerms Pyt Terms
IncotermsVersion I_BillingDocumentRequest IncotermsVersion Inco. Version
IncotermsClassification I_BillingDocumentRequest IncotermsClassification Incoterms
IncotermsLocation1 I_BillingDocumentRequest IncotermsLocation1 Inco. Location1
_CompanyCode I_BillingDocumentRequest _CompanyCode
_SalesOrganization I_BillingDocumentRequest _SalesOrganization
_SDDocumentCategory I_BillingDocumentRequest _SDDocumentCategory
_ReferenceDocSDDocCategory I_BillingDocumentRequest _ReferenceDocSDDocCategory
_CustomerPaymentTerms I_BillingDocumentRequest _CustomerPaymentTerms
_IncotermsClassification I_BillingDocumentRequest _IncotermsClassification
_IncotermsVersion I_BillingDocumentRequest _IncotermsVersion
_BillingDocumentRequestType I_BillingDocumentRequest _BillingDocumentRequestType
_BillingIssueType I_BillingDocumentRequest _BillingIssueType
_OvrlBillingDocReqStatus I_BillingDocumentRequest _OvrlBillingDocReqStatus
_ProposedBillingDocumentType I_BillingDocumentRequest _ProposedBillingDocumentType
_TransactionCurrency I_BillingDocumentRequest _TransactionCurrency
_CustomerProject _CustomerProject
_SoldToParty _SoldToParty
_PayerParty _PayerParty
_CreatedByUser _CreatedByUser
_Item _Item

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 C_BillgDocReqWorklist.
-- 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: CSDBDRWL

CREATE VIEW C_BillgDocReqWorklist AS
SELECT
  I_BillingDocumentRequest.BillingDocumentRequest AS BillingDocumentRequest,
  I_BillingDocumentRequest.BillingDocumentRequest AS ReferenceSDDocument,
  cast ( I_BillingDocumentRequest.BillingDocumentRequestType as sdbil_odata_bdr_type preserving type ) AS BillingDocumentRequestType,
  I_BillingDocumentRequest._BillingDocumentRequestType._Text[1: Language = $session.system_language ].BillingDocumentTypeName AS BillingDocumentTypeName,
  I_BillingDocumentRequest.SoldToParty AS SoldToParty,
  _SoldToParty.OrganizationBPName1 AS SoldToPartyName,
  _SoldToParty.OrganizationBPName2 AS SoldToPartyAdditionalName,
  I_BillingDocumentRequest.PricingDocument AS SalesDocumentCondition,
  I_BillingDocumentRequest.OverallBillingDocReqStatus AS OverallBillingDocReqStatus,
  I_BillingDocumentRequest.PayerParty AS PayerParty,
  _PayerParty.OrganizationBPName1 AS PayerPartyName,
  _PayerParty.OrganizationBPName2 AS PayerPartyAdditionalName,
  I_BillingDocumentRequest.CompanyCode AS CompanyCode,
  I_BillingDocumentRequest.SalesOrganization AS SalesOrganization,
  I_BillingDocumentRequest.BillingDocumentDate AS BillingDocumentDate,
  I_BillingDocumentRequest.CreationDate AS CreationDate,
  I_BillingDocumentRequest.CreatedByUser AS CreatedByUser,
  I_BillingDocumentRequest.BillingIssueType AS BillingIssueType,
  cast ( I_BillingDocumentRequest.ReferenceDocumentLogicalSystem as sdbil_odata_source_system preserving type ) AS BillgDocReqRefLgclSyst,
  cast ( I_BillingDocumentRequest.ReferenceDocument as sdbil_odata_source_document preserving type ) AS BillingDocRequestReference,
  cast ( I_BillingDocumentRequest.ReferenceDocSDDocCategory as sdbil_odata_src_doc_cat preserving type ) AS BillgDocReqRefSDDocCategory,
  ProposedBillingDocumentType,
  I_BillingDocumentRequest.TotalTaxAmount AS TotalTaxAmount,
  (I_BillingDocumentRequest.TotalNetAmount + I_BillingDocumentRequest.TotalTaxAmount) AS TotalGrossAmount,
  I_BillingDocumentRequest.TotalNetAmount AS TotalNetAmount,
  I_BillingDocumentRequest.TransactionCurrency AS TransactionCurrency,
  _CustomerProjectItem.CustomerProject AS CustomerProject,
  SDDocumentCategory,
  I_BillingDocumentRequest.CustomerPaymentTerms AS CustomerPaymentTerms,
  I_BillingDocumentRequest.IncotermsVersion AS IncotermsVersion,
  I_BillingDocumentRequest.IncotermsClassification AS IncotermsClassification,
  I_BillingDocumentRequest.IncotermsLocation1 AS IncotermsLocation1,
  I_BillingDocumentRequest._CompanyCode AS _CompanyCode,
  I_BillingDocumentRequest._SalesOrganization AS _SalesOrganization,
  I_BillingDocumentRequest._SDDocumentCategory AS _SDDocumentCategory,
  I_BillingDocumentRequest._ReferenceDocSDDocCategory AS _ReferenceDocSDDocCategory,
  I_BillingDocumentRequest._CustomerPaymentTerms AS _CustomerPaymentTerms,
  I_BillingDocumentRequest._IncotermsClassification AS _IncotermsClassification,
  I_BillingDocumentRequest._IncotermsVersion AS _IncotermsVersion,
  I_BillingDocumentRequest._BillingDocumentRequestType AS _BillingDocumentRequestType,
  I_BillingDocumentRequest._BillingIssueType AS _BillingIssueType,
  I_BillingDocumentRequest._OvrlBillingDocReqStatus AS _OvrlBillingDocReqStatus,
  I_BillingDocumentRequest._ProposedBillingDocumentType AS _ProposedBillingDocumentType,
  I_BillingDocumentRequest._TransactionCurrency AS _TransactionCurrency
FROM I_BillingDocumentRequest
LEFT OUTER JOIN I_CustomerProjectItem AS _CustomerProjectItem ON _CustomerProjectItem.CustomerProjectItemType = '0SOH' AND _CustomerProjectItem.CustomerProjectItem = PBDRSO.SalesOrder  -- association [0..1]
LEFT OUTER JOIN C_CustomerProjectVH AS _CustomerProject ON customerproject = _CustomerProject.CustomerProject  -- association [0..1]
LEFT OUTER JOIN C_BillingDocReqItemObjPg AS _Item ON BillingDocumentRequest = _Item.BillingDocumentRequest  -- association [0..*]
LEFT OUTER JOIN C_SoldToValueHelp AS _SoldToParty ON SoldToParty = _SoldToParty.Customer  -- association [0..1]
LEFT OUTER JOIN C_SoldToValueHelp AS _PayerParty ON PayerParty = _PayerParty.Customer  -- association [0..1]
LEFT OUTER JOIN C_BillingDocumentUserVH AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN E_BillingDocument AS _Extension ON BillingDocumentRequest = _Extension.BillingDocument  -- association [0..1]
;