P_KR_StRpGenTaxPyrVATItem00
General Taxpayer VAT Report Item for South Korea
P_KR_StRpGenTaxPyrVATItem00 is a Composite CDS View that provides data about "General Taxpayer VAT Report Item for South Korea" in SAP S/4HANA. It reads from 3 data sources (P_KR_StRpGenTaxPyrVATGLItem, P_KR_StRpGenTaxPyrVATNonDedItm, P_KR_StRpGenTaxPyrVATTaxBoxItm) and exposes 190 fields with key fields Statryrptrunid, Statryrptgentity, Statryrptcategory, Companycode, Accountingdocument.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_KR_StRpGenTaxPyrVATGLItem | P_KR_StRpGenTaxPyrVATGLItem | union |
| P_KR_StRpGenTaxPyrVATNonDedItm | P_KR_StRpGenTaxPyrVATNonDedItm | union |
| P_KR_StRpGenTaxPyrVATTaxBoxItm | P_KR_StRpGenTaxPyrVATTaxBoxItm | from |
Parameters (8)
| Name | Type | Default |
|---|---|---|
| P_TaxIsDeferredRelevant | figen_deferred_check | |
| P_TaxIsMossRelevant | figen_moss_check | |
| P_ReportingCountry | land1 | |
| P_TaxBoxConfiguration | figen_tdt_taxbox_config | |
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_TaxReportingToDate | idkr_non_rep_key_date |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PKRGTPVATITM00 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | General Taxpayer VAT Report Item for South Korea | view |
Fields (190)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Statryrptrunid | taxbox_item | Statryrptrunid | Report Run ID |
| KEY | Statryrptgentity | taxbox_item | Statryrptgentity | Reporting Entity |
| KEY | Statryrptcategory | taxbox_item | Statryrptcategory | Report ID |
| KEY | Companycode | taxbox_item | Companycode | Receiver Company Code |
| KEY | Accountingdocument | taxbox_item | Accountingdocument | Journal Entry |
| KEY | Fiscalyear | taxbox_item | Fiscalyear | G/L Fiscal Year |
| KEY | Documentitem | Posting View Item | ||
| KEY | Reporteddate | |||
| KEY | Declarationperiodno | |||
| KEY | Sequenceid | |||
| KEY | TaxCode | taxbox_item | TaxCode | Tax Code |
| KEY | TaxBox | taxbox_item | TaxBox | Tax.Bs.Gp.No. |
| KEY | TaxBoxStructureType | taxbox_item | TaxBoxStructureType | |
| Taxexemptrevenue | ||||
| Totalrevenue | ||||
| Currency | Valuation Crcy | |||
| Nondeductiblecat | ||||
| Nondeductiblestatus | ||||
| Financialaccounttype | taxbox_item | Financialaccounttype | Fin. Account Type | |
| Isfinished | ||||
| TaxBoxStructure | taxbox_item | TaxBoxStructure | ||
| TaxBoxStructureName | taxbox_item | TaxBoxStructureName | ||
| TaxBoxName | taxbox_item | TaxBoxName | ||
| TaxBoxCondition | taxbox_item | TaxBoxCondition | ||
| TaxGroup | taxbox_item | TaxGroup | Tax Group | |
| AccountingDocumentType | taxbox_item | AccountingDocumentType | Journal Entry Type | |
| TaxGroupFreeClassification | taxbox_item | TaxGroupFreeClassification | ||
| Ledger | taxbox_item | Ledger | Ledger | |
| GLAccount | taxbox_item | GLAccount | General Ledger | |
| PostingDate | taxbox_item | PostingDate | Posting Date for GR | |
| DocumentDate | taxbox_item | DocumentDate | Journal Entry Date | |
| AccountingDocumentItem | Posting View Item | |||
| Country | taxbox_item | Country | Venue: Ctry/Reg | |
| TaxItemGroupingVersion | taxbox_item | TaxItemGroupingVersion | Tax Grping Ver. | |
| TransactionTypeDetermination | taxbox_item | TransactionTypeDetermination | Transaction Key | |
| DebitCreditCode | taxbox_item | DebitCreditCode | Single-Character Flag | |
| TaxDeclnAmountType | taxbox_item | TaxDeclnAmountType | ||
| TaxBoxStrucValidityStartDate | taxbox_item | TaxBoxStrucValidityStartDate | ||
| UnifiedTaxBoxStructureType | taxbox_item | UnifiedTaxBoxStructureType | ||
| ValidFrom | taxbox_item | ValidFrom | Vers.Valid From | |
| ValidTo | taxbox_item | ValidTo | Vers.Valid To | |
| TaxBoxStrucValidityEndDate | taxbox_item | TaxBoxStrucValidityEndDate | ||
| TaxRate | taxbox_item | TaxRate | Tax Rate | |
| TaxGroupOperation | taxbox_item | TaxGroupOperation | ||
| TaxRateValidityStartDate | taxbox_item | TaxRateValidityStartDate | Tax Rate Validity Start Date | |
| SpecialGLCode | taxbox_item | SpecialGLCode | Special G/L Ind | |
| TaxCountry | taxbox_item | TaxCountry | Tax Ctry/Reg. | |
| TaxItemGroupingAccountNumber | taxbox_item | TaxItemGroupingAccountNumber | ||
| CompanyCodeCurrency | taxbox_item | CompanyCodeCurrency | Local Currency | |
| TaxType | taxbox_item | TaxType | Tax Type | |
| TaxItem | taxbox_item | TaxItem | Posting View Item | |
| TaxItemGroup | taxbox_item | TaxItemGroup | Tax doc. item number | |
| BusinessPlace | taxbox_item | BusinessPlace | Business place | |
| TaxReportingDate | taxbox_item | TaxReportingDate | Tax Reporting Date | |
| ReportingDate | taxbox_item | ReportingDate | ||
| TaxReportingDocumentDate | taxbox_item | TaxReportingDocumentDate | ||
| TaxBaseAmountInCoCodeCrcy | taxbox_item | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |
| TaxAmountInCoCodeCrcy | taxbox_item | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |
| Customer | taxbox_item | Customer | Sold-to Party | |
| Supplier | taxbox_item | Supplier | Supplier | |
| CAReconciliationKey | taxbox_item | CAReconciliationKey | Reconcil. Key | |
| ReferenceDocumentType | taxbox_item | ReferenceDocumentType | Reference Document Type | |
| StatryrptrunidasStatryrptrunid | ||||
| KEY | Statryrptgentity | nonded_item | Statryrptgentity | Reporting Entity |
| KEY | Statryrptcategory | nonded_item | Statryrptcategory | Report ID |
| KEY | Companycode | nonded_item | Companycode | Receiver Company Code |
| KEY | Accountingdocument | nonded_item | Accountingdocument | Journal Entry |
| KEY | Fiscalyear | nonded_item | Fiscalyear | G/L Fiscal Year |
| KEY | Documentitem | nonded_item | TaxItem | Posting View Item |
| KEY | Reporteddate | nonded_item | ReportingDate | |
| KEY | Declarationperiodno | nonded_item | DeclarationPeriodNumber | |
| KEY | Sequenceid | |||
| KEY | TaxCode | Tax Code | ||
| KEY | TaxBox | Tax.Bs.Gp.No. | ||
| KEY | TaxBoxStructureType | |||
| Taxexemptrevenue | nonded_item | KR_TaxExemptRevenueInCCCrcy | ||
| Totalrevenue | nonded_item | TotalRevenueInCoCodeCrcy | ||
| Currency | nonded_item | Currency | Valuation Crcy | |
| Nondeductiblecat | nonded_item | KR_NoneDeductibleInputVATCat | ||
| Nondeductiblestatus | nonded_item | KR_NoneDeductibleInputVATSts | ||
| Financialaccounttype | nonded_item | Financialaccounttype | Fin. Account Type | |
| Isfinished | nonded_item | IsCompleted | ||
| TaxBoxStructure | ||||
| TaxBoxStructureName | ||||
| TaxBoxName | ||||
| TaxBoxCondition | ||||
| TaxGroup | Tax Group | |||
| AccountingDocumentType | Journal Entry Type | |||
| TaxGroupFreeClassification | ||||
| Ledger | Ledger | |||
| GLAccount | General Ledger | |||
| PostingDate | Posting Date for GR | |||
| DocumentDate | Journal Entry Date | |||
| AccountingDocumentItem | Posting View Item | |||
| Country | Venue: Ctry/Reg | |||
| TaxItemGroupingVersion | Tax Grping Ver. | |||
| TransactionTypeDetermination | Transaction Key | |||
| DebitCreditCode | Single-Character Flag | |||
| TaxDeclnAmountType | ||||
| TaxBoxStrucValidityStartDate | ||||
| UnifiedTaxBoxStructureType | ||||
| ValidFrom | Vers.Valid From | |||
| ValidTo | Vers.Valid To | |||
| TaxBoxStrucValidityEndDate | ||||
| TaxRate | 00000000000 | 000000 | Tax Rate | |
| TaxGroupOperation | ||||
| TaxRateValidityStartDate | Tax Rate Validity Start Date | |||
| SpecialGLCode | Special G/L Ind | |||
| TaxCountry | Tax Ctry/Reg. | |||
| TaxItemGroupingAccountNumber | ||||
| CompanyCodeCurrency | Local Currency | |||
| TaxType | Tax Type | |||
| TaxItem | Posting View Item | |||
| TaxItemGroup | Tax doc. item number | |||
| BusinessPlace | Business place | |||
| TaxReportingDate | Tax Reporting Date | |||
| ReportingDate | ||||
| TaxReportingDocumentDate | ||||
| TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |||
| TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |||
| Customer | Sold-to Party | |||
| Supplier | Supplier | |||
| CAReconciliationKey | Reconcil. Key | |||
| ReferenceDocumentType | Reference Document Type | |||
| P_TaxBoxConfiguration | ||||
| P_StatryRptgEntity | ||||
| P_StatryRptCategory | ||||
| StatryrptrunidasStatryrptrunid | ||||
| KEY | Statryrptgentity | glitem | Statryrptgentity | Reporting Entity |
| KEY | Statryrptcategory | glitem | Statryrptcategory | Report ID |
| KEY | Companycode | glitem | Companycode | Receiver Company Code |
| KEY | Accountingdocument | glitem | Accountingdocument | Journal Entry |
| KEY | Fiscalyear | glitem | Fiscalyear | G/L Fiscal Year |
| KEY | Documentitem | AccountingDocumentItem | Posting View Item | |
| KEY | Reporteddate | |||
| KEY | Declarationperiodno | |||
| KEY | Sequenceid | |||
| KEY | TaxCode | glitem | TaxCode | Tax Code |
| KEY | TaxBox | glitem | TaxBox | Tax.Bs.Gp.No. |
| KEY | TaxBoxStructureType | glitem | TaxBoxStructureType | |
| Taxexemptrevenue | ||||
| Totalrevenue | ||||
| Currency | Valuation Crcy | |||
| Nondeductiblecat | ||||
| Nondeductiblestatus | ||||
| Financialaccounttype | glitem | FinancialAccountType | Fin. Account Type | |
| Isfinished | ||||
| TaxBoxStructure | glitem | TaxBoxStructure | ||
| TaxBoxStructureName | glitem | TaxBoxStructureName | ||
| TaxBoxName | glitem | TaxBoxName | ||
| TaxBoxCondition | glitem | TaxBoxCondition | ||
| TaxGroup | glitem | TaxGroup | Tax Group | |
| AccountingDocumentType | glitem | AccountingDocumentType | Journal Entry Type | |
| TaxGroupFreeClassification | glitem | TaxGroupFreeClassification | ||
| Ledger | Ledger | |||
| GLAccount | glitem | GLAccount | General Ledger | |
| PostingDate | glitem | PostingDate | Posting Date for GR | |
| DocumentDate | glitem | DocumentDate | Journal Entry Date | |
| AccountingDocumentItem | glitem | AccountingDocumentItem | Posting View Item | |
| Country | glitem | Country | Venue: Ctry/Reg | |
| TaxItemGroupingVersion | glitem | TaxItemGroupingVersion | Tax Grping Ver. | |
| TransactionTypeDetermination | glitem | TransactionTypeDetermination | Transaction Key | |
| DebitCreditCode | glitem | DebitCreditCode | Single-Character Flag | |
| TaxDeclnAmountType | glitem | TaxDeclnAmountType | ||
| TaxBoxStrucValidityStartDate | glitem | TaxBoxStrucValidityStartDate | ||
| UnifiedTaxBoxStructureType | glitem | UnifiedTaxBoxStructureType | ||
| ValidFrom | glitem | ValidFrom | Vers.Valid From | |
| ValidTo | glitem | ValidTo | Vers.Valid To | |
| TaxBoxStrucValidityEndDate | glitem | TaxBoxStrucValidityEndDate | ||
| TaxRate | glitem | TaxRate | Tax Rate | |
| TaxGroupOperation | glitem | TaxGroupOperation | ||
| TaxRateValidityStartDate | glitem | TaxRateValidityStartDate | Tax Rate Validity Start Date | |
| SpecialGLCode | glitem | SpecialGLCode | Special G/L Ind | |
| TaxCountry | glitem | TaxCountry | Tax Ctry/Reg. | |
| TaxItemGroupingAccountNumber | glitem | TaxItemGroupingAccountNumber | ||
| CompanyCodeCurrency | glitem | CompanyCodeCurrency | Local Currency | |
| TaxType | glitem | TaxType | Tax Type | |
| TaxItem | AccountingDocumentItem | Posting View Item | ||
| TaxItemGroup | glitem | TaxItemGroup | Tax doc. item number | |
| BusinessPlace | glitem | BusinessPlace | Business place | |
| TaxReportingDate | glitem | TaxReportingDate | Tax Reporting Date | |
| ReportingDate | ||||
| TaxReportingDocumentDate | ||||
| TaxBaseAmountInCoCodeCrcy | glitem | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |
| TaxAmountInCoCodeCrcy | glitem | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |
| Customer | glitem | Customer | Sold-to Party | |
| Supplier | glitem | Supplier | Supplier | |
| CAReconciliationKey | glitem | CAReconciliationKey | Reconcil. Key | |
| ReferenceDocumentType | glitem | ReferenceDocumentType | Reference Document Type | |
| StatryRptRun |
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_KR_StRpGenTaxPyrVATItem00.
-- 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: PKRGTPVATITM00
-- Parameters: P_TaxIsDeferredRelevant : figen_deferred_check, P_TaxIsMossRelevant : figen_moss_check, P_ReportingCountry : land1, P_TaxBoxConfiguration : figen_tdt_taxbox_config, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_TaxReportingToDate : idkr_non_rep_key_date
CREATE VIEW P_KR_StRpGenTaxPyrVATItem00 AS
SELECT
taxbox_item.Statryrptrunid AS Statryrptrunid,
taxbox_item.Statryrptgentity AS Statryrptgentity,
taxbox_item.Statryrptcategory AS Statryrptcategory,
taxbox_item.Companycode AS Companycode,
taxbox_item.Accountingdocument AS Accountingdocument,
taxbox_item.Fiscalyear AS Fiscalyear,
' ' AS Documentitem,
' ' AS Reporteddate,
' ' AS Declarationperiodno,
' ' AS Sequenceid,
taxbox_item.TaxCode AS TaxCode,
taxbox_item.TaxBox AS TaxBox,
taxbox_item.TaxBoxStructureType AS TaxBoxStructureType,
cast( 0 as idkr_exemptrevenue) AS Taxexemptrevenue,
cast( 0 as idkr_totrevenue ) AS Totalrevenue,
' ' AS Currency,
' ' AS Nondeductiblecat,
' ' AS Nondeductiblestatus,
taxbox_item.Financialaccounttype AS Financialaccounttype,
' ' AS Isfinished,
taxbox_item.TaxBoxStructure AS TaxBoxStructure,
taxbox_item.TaxBoxStructureName AS TaxBoxStructureName,
taxbox_item.TaxBoxName AS TaxBoxName,
taxbox_item.TaxBoxCondition AS TaxBoxCondition,
taxbox_item.TaxGroup AS TaxGroup,
taxbox_item.AccountingDocumentType AS AccountingDocumentType,
taxbox_item.TaxGroupFreeClassification AS TaxGroupFreeClassification,
taxbox_item.Ledger AS Ledger,
taxbox_item.GLAccount AS GLAccount,
taxbox_item.PostingDate AS PostingDate,
taxbox_item.DocumentDate AS DocumentDate,
' ' AS AccountingDocumentItem,
taxbox_item.Country AS Country,
taxbox_item.TaxItemGroupingVersion AS TaxItemGroupingVersion,
taxbox_item.TransactionTypeDetermination AS TransactionTypeDetermination,
taxbox_item.DebitCreditCode AS DebitCreditCode,
taxbox_item.TaxDeclnAmountType AS TaxDeclnAmountType,
taxbox_item.TaxBoxStrucValidityStartDate AS TaxBoxStrucValidityStartDate,
taxbox_item.UnifiedTaxBoxStructureType AS UnifiedTaxBoxStructureType,
taxbox_item.ValidFrom AS ValidFrom,
taxbox_item.ValidTo AS ValidTo,
taxbox_item.TaxBoxStrucValidityEndDate AS TaxBoxStrucValidityEndDate,
taxbox_item.TaxRate AS TaxRate,
taxbox_item.TaxGroupOperation AS TaxGroupOperation,
taxbox_item.TaxRateValidityStartDate AS TaxRateValidityStartDate,
taxbox_item.SpecialGLCode AS SpecialGLCode,
taxbox_item.TaxCountry AS TaxCountry,
taxbox_item.TaxItemGroupingAccountNumber AS TaxItemGroupingAccountNumber,
taxbox_item.CompanyCodeCurrency AS CompanyCodeCurrency,
taxbox_item.TaxType AS TaxType,
taxbox_item.TaxItem AS TaxItem,
taxbox_item.TaxItemGroup AS TaxItemGroup,
taxbox_item.BusinessPlace AS BusinessPlace,
taxbox_item.TaxReportingDate AS TaxReportingDate,
taxbox_item.ReportingDate AS ReportingDate,
taxbox_item.TaxReportingDocumentDate AS TaxReportingDocumentDate,
taxbox_item.TaxBaseAmountInCoCodeCrcy AS TaxBaseAmountInCoCodeCrcy,
taxbox_item.TaxAmountInCoCodeCrcy AS TaxAmountInCoCodeCrcy,
taxbox_item.Customer AS Customer,
taxbox_item.Supplier AS Supplier,
taxbox_item.CAReconciliationKey AS CAReconciliationKey,
taxbox_item.ReferenceDocumentType AS ReferenceDocumentType,
cast(concat_with_space( concat_with_space( taxbox_item.Statryrptgentity,taxbox_item.Statryrptcategory,1),taxbox_item.Statryrptrunid,1 ) as srf_reportrun) as StatryRptRun AS StatryrptrunidasStatryrptrunid,
cast(concat_with_space( concat_with_space( nonded_item.Statryrptgentity,nonded_item.Statryrptcategory,1),nonded_item.Statryrptrunid,1 ) as srf_reportrun) as StatryRptRun AS P_TaxBoxConfiguration,
P_StatryRptgEntity :$parameters.P_StatryRptgEntity AS P_StatryRptgEntity,
P_StatryRptCategory:$parameters.P_StatryRptCategory AS P_StatryRptCategory,
cast(concat_with_space( concat_with_space( glitem.Statryrptgentity,glitem.Statryrptcategory,1),glitem.Statryrptrunid,1 ) as srf_reportrun) AS StatryRptRun
FROM P_KR_StRpGenTaxPyrVATTaxBoxItm
-- UNION with additional select branch(es): P_KR_StRpGenTaxPyrVATNonDedItm, P_KR_StRpGenTaxPyrVATGLItem
;
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