P_MY_TxItmWithSlsDeductionProd
P_MY_TxItmWithSlsDeductionProd is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_OperationalAcctgDocItem, P_MY_TxItmWithSlsDeductionAmt) and exposes 63 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | inner |
| P_MY_TxItmWithSlsDeductionAmt | P_MY_TxItmWithSlsDeductionAmt | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.sqlViewName | PMYTXIMWSTDPRD | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_MY_TxItmWithSlsDeductionAmt | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_MY_TxItmWithSlsDeductionAmt | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_MY_TxItmWithSlsDeductionAmt | FiscalYear | G/L Fiscal Year |
| KEY | TaxItem | TaxItem | Tax Item | |
| KEY | TaxCode | P_MY_TxItmWithSlsDeductionAmt | TaxCode | Tax Code |
| KEY | TransactionTypeDetermination | P_MY_TxItmWithSlsDeductionAmt | TransactionTypeDetermination | Transaction Key |
| KEY | ValidFrom | ValidFrom | Vers.Valid From | |
| KEY | TaxBoxStructureType | TaxBoxStructureType | ||
| KEY | TaxGroup | TaxGroup | Tax Group | |
| KEY | TaxBox | TaxBox | Tax.Bs.Gp.No. | |
| KEY | TaxDeclnAmountType | TaxDeclnAmountType | ||
| KEY | TaxBoxAggregationOperation | TaxBoxAggregationOperation | ||
| KEY | Product | I_OperationalAcctgDocItem | Product | Product Sold |
| StatryRptRun | P_MY_TxItmWithSlsDeductionAmt | StatryRptRun | ||
| CAReconciliationKey | P_MY_TxItmWithSlsDeductionAmt | CAReconciliationKey | Reconcil. Key | |
| TaxRate | TaxRate | Tax Rate | ||
| TaxRateValidityStartDate | P_MY_TxItmWithSlsDeductionAmt | TaxRateValidityStartDate | Tax Rate Validity Start Date | |
| TaxType | P_MY_TxItmWithSlsDeductionAmt | TaxType | Tax Type | |
| GLAccount | P_MY_TxItmWithSlsDeductionAmt | GLAccount | General Ledger | |
| BusinessPlace | P_MY_TxItmWithSlsDeductionAmt | BusinessPlace | Business place | |
| TaxJurisdiction | P_MY_TxItmWithSlsDeductionAmt | TaxJurisdiction | Tax Jurisdiction | |
| LowestLevelTaxJurisdiction | LowestLevelTaxJurisdiction | Jurisdict. Code | ||
| AccountingDocumentType | P_MY_TxItmWithSlsDeductionAmt | AccountingDocumentType | Journal Entry Type | |
| ReferenceDocumentType | P_MY_TxItmWithSlsDeductionAmt | ReferenceDocumentType | Reference Document Type | |
| ReverseDocument | ReverseDocument | Reversed With | ||
| ReverseDocumentFiscalYear | ReverseDocumentFiscalYear | Year | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| Ledger | Ledger | Ledger | ||
| LedgerGroup | LedgerGroup | Ledger Group | ||
| ReportingDate | ReportingDate | |||
| PostingDate | P_MY_TxItmWithSlsDeductionAmt | PostingDate | Posting Date for GR | |
| DocumentDate | P_MY_TxItmWithSlsDeductionAmt | DocumentDate | Journal Entry Date | |
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| FiscalPeriod | P_MY_TxItmWithSlsDeductionAmt | FiscalPeriod | Tax period | |
| ExchangeRate | ExchangeRate | Exchange rate | ||
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| ReportingCountry | ReportingCountry | |||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| BusinessPartnerCountry | BusinessPartnerCountry | BP Ctry/Reg. | ||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| CustomerSupplierAddress | CustomerSupplierAddress | |||
| MY_CompanyRegistrationNumber | MY_CompanyRegistrationNumber | |||
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| TaxNumber2 | TaxNumber2 | Tax Number 2 | ||
| TaxNumber3 | TaxNumber3 | |||
| ReportingCurrency | ReportingCurrency | Currency | ||
| TaxBaseAmountInRptgCrcy | TaxBaseAmountInRptgCrcy | Base Amount | ||
| TaxAmountInRptgCrcy | TaxAmountInRptgCrcy | Tax Rept. Crcy | ||
| CountryCurrency | CountryCurrency | Currency | ||
| TaxBaseAmountInCountryCrcy | TaxBaseAmountInCountryCrcy | Base Amount | ||
| TaxAmountInCountryCrcy | TaxAmountInCountryCrcy | Tax Rept. Crcy | ||
| DocumentCurrency | P_MY_TxItmWithSlsDeductionAmt | DocumentCurrency | Document Currency | |
| TaxBaseAmountInCoCodeCrcy2endasTaxAmount | ||||
| CompanyCodeCurrency | P_MY_TxItmWithSlsDeductionAmt | CompanyCodeCurrency | Local Currency | |
| TaxBaseAmountInCoCodeCrcy | I_OperationalAcctgDocItem | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| AdditionalCurrency1 | P_MY_TxItmWithSlsDeductionAmt | AdditionalCurrency1 | Local curr. 2 | |
| AdditionalCurrency2 | P_MY_TxItmWithSlsDeductionAmt | AdditionalCurrency2 | Local curr. 3 | |
| _AccountingDocument | _AccountingDocument | |||
| _GLAccount | _GLAccount | |||
| _TaxJurisdiction | _TaxJurisdiction | |||
| _ReportedItemsLog | _ReportedItemsLog |
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_MY_TxItmWithSlsDeductionProd.
-- 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.
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id
CREATE VIEW P_MY_TxItmWithSlsDeductionProd AS
SELECT
P_MY_TxItmWithSlsDeductionAmt.CompanyCode AS CompanyCode,
P_MY_TxItmWithSlsDeductionAmt.AccountingDocument AS AccountingDocument,
P_MY_TxItmWithSlsDeductionAmt.FiscalYear AS FiscalYear,
TaxItem,
P_MY_TxItmWithSlsDeductionAmt.TaxCode AS TaxCode,
P_MY_TxItmWithSlsDeductionAmt.TransactionTypeDetermination AS TransactionTypeDetermination,
ValidFrom,
TaxBoxStructureType,
TaxGroup,
TaxBox,
TaxDeclnAmountType,
TaxBoxAggregationOperation,
I_OperationalAcctgDocItem.Product AS Product,
P_MY_TxItmWithSlsDeductionAmt.StatryRptRun AS StatryRptRun,
P_MY_TxItmWithSlsDeductionAmt.CAReconciliationKey AS CAReconciliationKey,
TaxRate,
P_MY_TxItmWithSlsDeductionAmt.TaxRateValidityStartDate AS TaxRateValidityStartDate,
P_MY_TxItmWithSlsDeductionAmt.TaxType AS TaxType,
P_MY_TxItmWithSlsDeductionAmt.GLAccount AS GLAccount,
P_MY_TxItmWithSlsDeductionAmt.BusinessPlace AS BusinessPlace,
P_MY_TxItmWithSlsDeductionAmt.TaxJurisdiction AS TaxJurisdiction,
LowestLevelTaxJurisdiction,
P_MY_TxItmWithSlsDeductionAmt.AccountingDocumentType AS AccountingDocumentType,
P_MY_TxItmWithSlsDeductionAmt.ReferenceDocumentType AS ReferenceDocumentType,
ReverseDocument,
ReverseDocumentFiscalYear,
DocumentReferenceID,
Ledger,
LedgerGroup,
ReportingDate,
P_MY_TxItmWithSlsDeductionAmt.PostingDate AS PostingDate,
P_MY_TxItmWithSlsDeductionAmt.DocumentDate AS DocumentDate,
TaxReportingDate,
P_MY_TxItmWithSlsDeductionAmt.FiscalPeriod AS FiscalPeriod,
ExchangeRate,
IsReversal,
IsReversed,
AccountingDocumentHeaderText,
ReportingCountry,
BusinessPartner,
BusinessPartnerCountry,
BusinessPartnerName,
CustomerSupplierAddress,
MY_CompanyRegistrationNumber,
TaxNumber1,
TaxNumber2,
TaxNumber3,
ReportingCurrency,
TaxBaseAmountInRptgCrcy,
TaxAmountInRptgCrcy,
CountryCurrency,
TaxBaseAmountInCountryCrcy,
TaxAmountInCountryCrcy,
P_MY_TxItmWithSlsDeductionAmt.DocumentCurrency AS DocumentCurrency,
case P_MY_TxItmWithSlsDeductionAmt.TaxBaseAmountInCoCodeCrcy when 0 then 0 else division( abs(P_MY_TxItmWithSlsDeductionAmt.TaxAmount * cast(I_OperationalAcctgDocItem.AmountInCompanyCodeCurrency as abap.dec(10,4)) ), P_MY_TxItmWithSlsDeductionAmt.TaxBaseAmountInCoCodeCrcy,2) end as TaxAmount AS TaxBaseAmountInCoCodeCrcy2endasTaxAmount,
P_MY_TxItmWithSlsDeductionAmt.CompanyCodeCurrency AS CompanyCodeCurrency,
I_OperationalAcctgDocItem.AmountInCompanyCodeCurrency AS TaxBaseAmountInCoCodeCrcy,
P_MY_TxItmWithSlsDeductionAmt.AdditionalCurrency1 AS AdditionalCurrency1,
P_MY_TxItmWithSlsDeductionAmt.AdditionalCurrency2 AS AdditionalCurrency2
FROM P_MY_TxItmWithSlsDeductionAmt
INNER JOIN I_OperationalAcctgDocItem ON /* join condition not captured in parsed metadata */
;
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