C_ESJIBillingDocumentItemQuery
Billing Document Item
C_ESJIBillingDocumentItemQuery is a Consumption CDS View that provides data about "Billing Document Item" in SAP S/4HANA. Part of development package ESJI_SD_JAM_INTEG_CDS_CONT.
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CESJIBILGDOCITMQ | view | |
| EndUserText.label | Billing Document Item | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocument | BillingDocument | SD Document | |
| KEY | BillingDocumentItem | BillingDocumentItem | Item | |
| ObjectType | ||||
| CreatedByUser | CreatedByUser | User Name | ||
| SalesOrganization | _BillingDocument | SalesOrganization | Sales Organization | |
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| Division | Division | Internal Division ID | ||
| Material | Material | Vehicle Model | ||
| BillingDocumentType | _BillingDocument | BillingDocumentType | Billing Type | |
| BillingDocumentItemText | ||||
| BillingQuantity | BillingQuantity | Invoiced Qty | ||
| BillingQuantityUnit | BillingQuantityUnit | Sales Unit | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| ItemNetWeight | ItemNetWeight | Net Weight | ||
| ItemWeightUnit | ItemWeightUnit | Unit of Weight | ||
| ItemVolumeUnit | ItemVolumeUnit | Volume Unit | ||
| BillToPartyCountry | BillToPartyCountry | Dst.CtryRg.Ord. | ||
| BillToPartyRegion | BillToPartyRegion | Region Order | ||
| ItemNetAmountOfBillingDoc | NetAmount | Stated Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| PurchaseOrderByCustomer | _BillingDocument | PurchaseOrderByCustomer | Purchase Order Number | |
| AccountingTransferStatus | _BillingDocument | AccountingTransferStatus | ||
| 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. | ||
| SDDocumentReason | SDDocumentReason | Order Reason | ||
| AccountingTransferStatusDesc | ||||
| _BillingDocument | _BillingDocument | |||
| _CreatedByUser | _CreatedByUser | |||
| _OrganizationDivision | _OrganizationDivision | |||
| _Division | _Division | |||
| _Material | _Material | |||
| _BillingQuantityUnit | _BillingQuantityUnit | |||
| _BaseUnit | _BaseUnit | |||
| _ItemWeightUnit | _ItemWeightUnit | |||
| _ItemVolumeUnit | _ItemVolumeUnit | |||
| _BillToPartyCountry | _BillToPartyCountry | |||
| _BillToPartyRegion | _BillToPartyRegion | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _ReferenceSalesDocumentItem | _ReferenceSalesDocumentItem | |||
| _ReferenceSDDocumentCategory | _ReferenceSDDocumentCategory | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _SalesSDDocumentCategory | _SalesSDDocumentCategory | |||
| _SDDocumentReason | _SDDocumentReason |
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_ESJIBillingDocumentItemQuery.
-- 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: CESJIBILGDOCITMQ
-- Parameters: P_Language : sylangu
CREATE VIEW C_ESJIBillingDocumentItemQuery AS
SELECT
BillingDocument,
BillingDocumentItem,
'BUS2037' AS ObjectType,
CreatedByUser,
_BillingDocument.SalesOrganization AS SalesOrganization,
OrganizationDivision,
Division,
Material,
_BillingDocument.BillingDocumentType AS BillingDocumentType,
_Material._Text[1: Language=$parameters.P_Language].MaterialName AS BillingDocumentItemText,
BillingQuantity,
BillingQuantityUnit,
BaseUnit,
ItemNetWeight,
ItemWeightUnit,
ItemVolumeUnit,
BillToPartyCountry,
BillToPartyRegion,
NetAmount AS ItemNetAmountOfBillingDoc,
TransactionCurrency,
_BillingDocument.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
_BillingDocument.AccountingTransferStatus AS AccountingTransferStatus,
ReferenceSDDocument,
ReferenceSDDocumentItem,
ReferenceSDDocumentCategory,
SalesDocument,
SalesDocumentItem,
SalesSDDocumentCategory,
SDDocumentReason,
coalesce(_BillingDocument._AccountingTransferStatus._Text[1: Language=$parameters.P_Language].AccountingTransferStatusDesc, _BillingDocument.AccountingTransferStatus) AS AccountingTransferStatusDesc
;
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