I_ValnDocAcctgItemMktg
Valuation Doc Accounting Item Mktg
I_ValnDocAcctgItemMktg is a Basic CDS View (Cube) that provides data about "Valuation Doc Accounting Item Mktg" in SAP S/4HANA. It reads from 1 data source (/pra/vl_acc_mkt) and exposes 20 fields with key fields ValuationDocumentYear, ValuationDocumentNumber, BookingReversalType, ValnDocAcctgItem, DeductionType. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /pra/vl_acc_mkt | /pra/vl_acc_mkt | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CalendarYear | _ValuationDocumentYear | $projection.ValuationDocumentYear = _ValuationDocumentYear.CalendarYear |
| [0..1] | I_ValuationDocumentHdr | _ValuationDocumentHdr | $projection.ValuationDocumentYear = _ValuationDocumentHdr.ValuationDocumentYear and $projection.ValuationDocumentNumber = _ValuationDocumentHdr.ValuationDocumentNumber |
| [0..1] | I_BookingReversalType | _BookingReversalType | $projection.BookingReversalType = _BookingReversalType.BookingReversalType |
| [0..1] | I_ValnDocAcctgItem | _ValnDocAcctgItem | $projection.ValuationDocumentYear = _ValnDocAcctgItem.ValuationDocumentYear and $projection.ValuationDocumentNumber = _ValnDocAcctgItem.ValuationDocumentNumber and $projection.BookingReversalType = _ValnDocAcctgItem.BookingReversalType and $projection.ValnDocAcctgItem = _ValnDocAcctgItem.ValnDocAcctgItem |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Valuation Doc Accounting Item Mktg | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Metadata.allowExtensions | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IPVVLDOCACCTMKT | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ValuationDocumentYear | vl_doc_year | Document year | |
| KEY | ValuationDocumentNumber | vl_doc_no | DocNr | |
| KEY | BookingReversalType | book_rev_ind | Book/Rev | |
| KEY | ValnDocAcctgItem | Parameter line | ||
| KEY | DeductionType | mkt_type_cd | Mrktg Type Code | |
| CompanyCode | Value | |||
| FiscalPeriod | Acct Period | |||
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| NetInternalMarketingAmt | int_mkt_val | Net Int Mktg Cost | ||
| NetExternalMarketingAmt | ext_mkt_val | Net Ext Mktg Cost | ||
| NetReimbmtMarketingAmt | ded_rmb_am | Net Mktg Reimb | ||
| GrossInternalMarketingAmt | int_gr_mkt_val | Gross Int Mktg Cost | ||
| GrossExternalMarketingAmt | ext_gr_mkt_val | Gross Ext Mktg Cost | ||
| GrossReimbmtMarketingAmt | ded_gr_rmb_am | Gross Mktg Reimb | ||
| _ValuationDocumentYear | _ValuationDocumentYear | |||
| _ValuationDocumentHdr | _ValuationDocumentHdr | |||
| _BookingReversalType | _BookingReversalType | |||
| _ValnDocAcctgItem | _ValnDocAcctgItem | |||
| _CompanyCode | _CompanyCode | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency |
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 I_ValnDocAcctgItemMktg.
-- 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: IPVVLDOCACCTMKT
CREATE VIEW I_ValnDocAcctgItemMktg AS
SELECT
vl_doc_year AS ValuationDocumentYear,
vl_doc_no AS ValuationDocumentNumber,
book_rev_ind AS BookingReversalType,
cast( line_no as oiu_vdm_vl_doc_acctg_line_no preserving type ) AS ValnDocAcctgItem,
mkt_type_cd AS DeductionType,
cast ( bukrs as fis_bukrs preserving type ) AS CompanyCode,
cast (acct_period as oiu_vdm_fis_period preserving type) AS FiscalPeriod,
_CompanyCode.Currency AS CompanyCodeCurrency,
int_mkt_val AS NetInternalMarketingAmt,
ext_mkt_val AS NetExternalMarketingAmt,
ded_rmb_am AS NetReimbmtMarketingAmt,
int_gr_mkt_val AS GrossInternalMarketingAmt,
ext_gr_mkt_val AS GrossExternalMarketingAmt,
ded_gr_rmb_am AS GrossReimbmtMarketingAmt
FROM /pra/vl_acc_mkt
LEFT OUTER JOIN I_CalendarYear AS _ValuationDocumentYear ON ValuationDocumentYear = _ValuationDocumentYear.CalendarYear -- association [0..1]
LEFT OUTER JOIN I_ValuationDocumentHdr AS _ValuationDocumentHdr ON ValuationDocumentYear = _ValuationDocumentHdr.ValuationDocumentYear AND ValuationDocumentNumber = _ValuationDocumentHdr.ValuationDocumentNumber -- association [0..1]
LEFT OUTER JOIN I_BookingReversalType AS _BookingReversalType ON BookingReversalType = _BookingReversalType.BookingReversalType -- association [0..1]
LEFT OUTER JOIN I_ValnDocAcctgItem AS _ValnDocAcctgItem ON ValuationDocumentYear = _ValnDocAcctgItem.ValuationDocumentYear AND ValuationDocumentNumber = _ValnDocAcctgItem.ValuationDocumentNumber AND BookingReversalType = _ValnDocAcctgItem.BookingReversalType AND ValnDocAcctgItem = _ValnDocAcctgItem.ValnDocAcctgItem -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
;
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