I_SlsAcctgGrssMargPerMatlOvw
Gross Margin per Material card data
I_SlsAcctgGrssMargPerMatlOvw is a Composite CDS View that provides data about "Gross Margin per Material card data" in SAP S/4HANA. It reads from 1 data source (I_ActualPlanLineItemSemTag) and exposes 65 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. Part of development package ODATA_SALES_ACCTG_OVERVIEW.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ActualPlanLineItemSemTag | I_ActualPlanLineItemSemTag | from |
Parameters (10)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | fis_bukrs | |
| P_PlanningCategory | fac_revvar_pln_category | |
| P_Interval1Year | fis_gjahr | |
| P_Interval1FromFiscalPeriod | fis_period_from | |
| P_Interval1ToFiscalPeriod | fis_period_to | |
| P_Interval1Type | fac_revvar_interval_type | |
| P_Interval2Year | fis_gjahr | |
| P_Interval2FromFiscalPeriod | fis_period_from | |
| P_Interval2ToFiscalPeriod | fis_period_to | |
| P_Interval2Type | fac_revvar_interval_type |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISAGMPMOVW | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Gross Margin per Material card data | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | Ledger | Ledger | |
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | FinancialPlanningReqTransSqnc | FinancialPlanningReqTransSqnc | Request TSN | |
| KEY | FinancialPlanningDataPacket | FinancialPlanningDataPacket | Data packet number | |
| KEY | FinancialPlanningEntryItem | FinancialPlanningEntryItem | ||
| KEY | GLAccountHierarchy | GLAccountHierarchy | ||
| KEY | SemanticTag | SemanticTag | Semantic Tag | |
| FiscalPeriod | FiscalPeriod | Tax period | ||
| PlanningCategory | PlanningCategory | Plan Category | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| BaseUnitName | ||||
| LedgerName | ||||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| Country | _CustomerSupplierCountry | Country | Venue: Ctry/Reg | |
| CountryName | ||||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| SalesOrganizationName | ||||
| Division | Division | Internal Division ID | ||
| DivisionName | ||||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| DistributionChannelName | ||||
| Customer | Customer | Sold-to Party | ||
| CustomerName | _Customer | BPCustomerFullName | ||
| Material | SoldMaterial | Product Sold | ||
| MaterialName | ||||
| MaterialGroup | Product Sold Group | |||
| MaterialGroupName | ||||
| CustomerGroup | CustomerGroup | Customer Group | ||
| GLAccount | GLAccount | General Ledger | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| CustomerSupplierCountry | CustomerSupplierCountry | Customer or Supplier Country/Region | ||
| CustomerSupplierIndustry | CustomerSupplierIndustry | Industry | ||
| RatioUnit | ||||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CostCenter | CostCenter | Cost Center | ||
| Plant | Plant | Valuation Area | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| AssetClass | AssetClass | Asset Class | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| Supplier | Supplier | Supplier | ||
| SalesDocument | SalesDocument | SD Document | ||
| OrderID | OrderID | Order ID | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| _GLAccountInCompanyCode | _GLAccountInCompanyCode | |||
| _Customer | _Customer | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _Supplier | _Supplier | |||
| _CurrentProfitCenter | _CurrentProfitCenter | |||
| _CurrentCostCenter | _CurrentCostCenter | |||
| _SalesDocument | _SalesDocument | |||
| _Order | _Order | |||
| _ServiceDocument | _ServiceDocument |
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_SlsAcctgGrssMargPerMatlOvw.
-- 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: ISAGMPMOVW
-- Parameters: P_CompanyCode : fis_bukrs, P_PlanningCategory : fac_revvar_pln_category, P_Interval1Year : fis_gjahr, P_Interval1FromFiscalPeriod : fis_period_from, P_Interval1ToFiscalPeriod : fis_period_to, P_Interval1Type : fac_revvar_interval_type, P_Interval2Year : fis_gjahr, P_Interval2FromFiscalPeriod : fis_period_from, P_Interval2ToFiscalPeriod : fis_period_to, P_Interval2Type : fac_revvar_interval_type
CREATE VIEW I_SlsAcctgGrssMargPerMatlOvw AS
SELECT
Ledger,
SourceLedger,
CompanyCode,
FiscalYear,
AccountingDocument,
LedgerGLLineItem,
FinancialPlanningReqTransSqnc,
FinancialPlanningDataPacket,
FinancialPlanningEntryItem,
GLAccountHierarchy,
SemanticTag,
FiscalPeriod,
PlanningCategory,
BaseUnit,
_BaseUnit._Text[1:Language = $session.system_language].UnitOfMeasureName AS BaseUnitName,
_Ledger._Text[1:Language = $session.system_language].LedgerName AS LedgerName,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
CompanyCodeCurrency,
_CustomerSupplierCountry.Country AS Country,
_CustomerSupplierCountry._Text[1:Language = $session.system_language].CountryName AS CountryName,
SalesOrganization,
_SalesOrganization._Text[1:Language = $session.system_language].SalesOrganizationName AS SalesOrganizationName,
Division,
_Division._Text[1:Language = $session.system_language].DivisionName AS DivisionName,
DistributionChannel,
_DistributionChannel._Text[1:Language = $session.system_language].DistributionChannelName AS DistributionChannelName,
Customer,
_Customer.BPCustomerFullName AS CustomerName,
SoldMaterial AS Material,
_SoldMaterial._Text[1:Language = $session.system_language].MaterialName AS MaterialName,
cast(SoldProductGroup as fins_matkl_pa) AS MaterialGroup,
_MaterialGroup._Text[1:Language = $session.system_language].MaterialGroupName AS MaterialGroupName,
CustomerGroup,
GLAccount,
ProfitCenter,
CustomerSupplierCountry,
CustomerSupplierIndustry,
cast('%' as msehi) AS RatioUnit,
GlobalCurrency,
FinancialAccountType,
FunctionalArea,
BusinessArea,
Segment,
ControllingArea,
CostCenter,
Plant,
ValuationArea,
OrganizationDivision,
ServiceDocumentType,
AssetClass,
PostingDate,
Supplier,
SalesDocument,
OrderID,
AccountingDocumentType,
ServiceDocument
FROM I_ActualPlanLineItemSemTag
;
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