P_CN_TaxInputInvc
Incoming VAT Invoice
P_CN_TaxInputInvc is a Basic CDS View that provides data about "Incoming VAT Invoice" in SAP S/4HANA. It reads from 1 data source (txi_hdr) and exposes 67 fields with key field CN_TaxInvcUUID. It has 1 association to related views. Part of development package GLO_FIN_TAX_INVC_MGMT_COMM_CN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| txi_hdr | hdr | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | P_CN_TaxInputInvoiceItem | _InvoiceItem | $projection.CN_TaxInvcUUID = _InvoiceItem.CN_TaxInvcUUID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PCNTXIIPT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.representativeKey | CN_TaxInvcUUID | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (67)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CN_TaxInvcUUID | txi_hdr | invc_uuid | Invoice UUID |
| CN_TaxInvcCode | txi_hdr | invc_code | VAT Invoice Code | |
| CN_TaxInvcNmbr | txi_hdr | invc_nmbr | VAT Invoice No. | |
| CN_TaxSellerRegnNmbr | txi_hdr | seller_tax_reg_nmbr | Unfd Socl Crdt Code | |
| CN_TaxBuyerRegnNmbr | txi_hdr | buyer_tax_reg_nmbr | Unfd Socl Crdt Code | |
| CN_TaxInvcType | txi_hdr | invc_type | VAT Invoice Type | |
| CN_TaxInvcDate | txi_hdr | invc_iss_date | VAT Invoice Date | |
| CN_TaxInvoiceIssueDateTime | txi_hdr | invc_iss_dtetme | ||
| CN_TaxInvcCrcy | txi_hdr | invc_crcy_code | Currency | |
| CN_TaxInvcNetAmtInInvcCrcy | txi_hdr | net_amount | Tax-Exclusive Amount | |
| CN_TaxInvcTaxAmtInInvcCrcy | txi_hdr | tax_amount | VAT Amount Type | |
| CN_TaxInvcDeductAmtInInvcCrcy | txi_hdr | deduct_tax_amount | Deduct. Tax Amount | |
| CN_TaxEntityID | txi_hdr | cntax_entity_id | Tax Entity | |
| CN_TaxInvcDiscNetAmtInInvcCrcy | txi_hdr | disc_net_amount | Net Amount | |
| CN_TaxInvcDiscTaxAmtInInvcCrcy | txi_hdr | disc_tax_amount | Tax Amount | |
| CN_TaxInvcIsElectronic | txi_hdr | is_elec_flag | E-invoice | |
| TaxRate | txi_hdr | tax_rate | WithholdingRate | |
| IsDeleted | txi_hdr | mark_as_delete | Transf. Item Deleted | |
| CN_TaxInvoiceUsage | txi_hdr | usage | Usage | |
| CN_TaxInvoiceDataSource | txi_hdr | data_source | Data Source | |
| CN_TaxInvoiceExpenseReportNmbr | txi_hdr | expnrpt_nmbr | ExpnRpt Nmbr | |
| CompanyCode | txi_hdr | company_code | Company Code | |
| CN_TaxInvcGldnTxSystSts | txi_hdr | invc_gts_status | GT Status | |
| CN_TaxInvcGldnTxSystStsSyncTme | txi_hdr | invc_gts_sync_time | Sync. Time with GT | |
| CN_TaxInvcInptProcgSts | txi_hdr | input_invc_proc_status | Processing Status | |
| CN_TaxInvcDeductionType | txi_hdr | invc_deduct_type | Deduction Type | |
| FiscalYear | txi_hdr | invc_fiscal_year | Fiscal Year | |
| CN_TaxSellerName | txi_hdr | seller_name | Seller Name | |
| CN_TaxInvcComment | txi_hdr | comments | User Notes | |
| TaxCategory | txi_hdr | input_vat_cat | Input VAT Category | |
| CN_TaxDeclnTime | txi_hdr | invc_decln_time | Declaration Time | |
| CN_TaxDeclnYear | txi_hdr | invc_decln_year | Year | |
| CN_TaxDeclnMonth | txi_hdr | invc_decln_month | Month | |
| TaxInvoiceBuyerAddressPhone | txi_hdr | buyer_addr_tel | Customer Address | |
| TaxInvoiceBuyerBankAccount | txi_hdr | buyer_bank | Customer Bank | |
| TaxInvoiceSellerAddressPhone | txi_hdr | seller_addr_tel | Customer Address | |
| TaxInvoiceSellerBankAccount | txi_hdr | seller_bank | Customer Bank | |
| TaxInvoiceIsTaxRebate | txi_hdr | is_tax_rebate | Process Tax Rebate | |
| TaxInvoiceDeclarationTypeCode | txi_hdr | decln_type | Declaration Type | |
| IsPostedOnAccount | txi_hdr | invc_posted_indicator | Invoice Posted | |
| CN_InvoicePostingPeriod | txi_hdr | invc_postg_period | ||
| CN_InvoicePostingType | txi_hdr | invc_postg_type | ||
| CN_InvoiceLatestPostingDate | txi_hdr | invc_postg_date | ||
| CN_GoldenTaxSystemResultString | txi_hdr | invc_gts_result | ||
| CN_GoldenTaxSystemRiskLevel | txi_hdr | invc_gts_risk_level | ||
| CN_InvoiceSpecificElement | txi_hdr | invc_gts_spcfc_elmnts | ||
| CN_BlueInvoiceNumber | txi_hdr | invc_blue_nmbr | ||
| CN_TaxInvoiceVehicleType | txi_hdr | vehicle_type | Vehicle Type | |
| CN_TaxInvoiceVehFactoryModel | txi_hdr | veh_factory_model | Veh. Factory Model | |
| CN_TaxInvoiceVehicleProdnPlace | txi_hdr | veh_prodn_place | Veh. Prodn Place | |
| CN_TaxInvoiceVehicleCertNumber | txi_hdr | veh_cert_nmbr | Veh. Certfn Number | |
| CN_TaxInvoiceVehImportCertNmbr | txi_hdr | veh_imprtcert_nmbr | Imprt Certfn Nmbr | |
| CN_TaxInvoiceVehicleInspNumber | txi_hdr | veh_insp_nmbr | Veh. Inspection Nmbr | |
| CN_TaxInvoiceVehicleEngineNmbr | txi_hdr | veh_engine_nmbr | Veh. Engine Nmbr | |
| CN_TaxInvoiceVehicleNumber | txi_hdr | vehicle_nmbr | Vehicle Number | |
| CN_TaxInvcVehTotAmtInInvcCrcy | txi_hdr | veh_total_amount | Vehicle Total Amount | |
| CN_TaxInvoiceVehTxnRecordNmbr | txi_hdr | veh_txn_recd_nmbr | Veh. Taxation Nmbr | |
| CN_TaxInvoiceVehicleTonnage | txi_hdr | veh_tonnage | Vehicle Tonnage | |
| CN_TaxInvoiceVehPassengerLimit | txi_hdr | veh_pssengr_limit | Veh. Pssngr Limit | |
| PurchasingOrganization | txi_hdr | purchase_org | Purchasing Org. | |
| PurchasingGroup | txi_hdr | purchase_grp | Purch. Group | |
| Supplier | txi_hdr | supplier | Supplier | |
| CreatedByUser | txi_hdr | create_user | User Name | |
| CreationUTCDateTime | txi_hdr | create_time | Time | |
| LastChangedByUser | txi_hdr | change_user | User Name | |
| LastChangeDateTime | txi_hdr | change_time | Time Stamp | |
| _InvoiceItem | _InvoiceItem |
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_CN_TaxInputInvc.
-- 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.
CREATE VIEW P_CN_TaxInputInvc AS
SELECT
hdr.invc_uuid AS CN_TaxInvcUUID,
hdr.invc_code AS CN_TaxInvcCode,
hdr.invc_nmbr AS CN_TaxInvcNmbr,
hdr.seller_tax_reg_nmbr AS CN_TaxSellerRegnNmbr,
hdr.buyer_tax_reg_nmbr AS CN_TaxBuyerRegnNmbr,
hdr.invc_type AS CN_TaxInvcType,
hdr.invc_iss_date AS CN_TaxInvcDate,
hdr.invc_iss_dtetme AS CN_TaxInvoiceIssueDateTime,
hdr.invc_crcy_code AS CN_TaxInvcCrcy,
hdr.net_amount AS CN_TaxInvcNetAmtInInvcCrcy,
hdr.tax_amount AS CN_TaxInvcTaxAmtInInvcCrcy,
hdr.deduct_tax_amount AS CN_TaxInvcDeductAmtInInvcCrcy,
hdr.cntax_entity_id AS CN_TaxEntityID,
hdr.disc_net_amount AS CN_TaxInvcDiscNetAmtInInvcCrcy,
hdr.disc_tax_amount AS CN_TaxInvcDiscTaxAmtInInvcCrcy,
hdr.is_elec_flag AS CN_TaxInvcIsElectronic,
hdr.tax_rate AS TaxRate,
hdr.mark_as_delete AS IsDeleted,
hdr.usage AS CN_TaxInvoiceUsage,
hdr.data_source AS CN_TaxInvoiceDataSource,
hdr.expnrpt_nmbr AS CN_TaxInvoiceExpenseReportNmbr,
hdr.company_code AS CompanyCode,
hdr.invc_gts_status AS CN_TaxInvcGldnTxSystSts,
hdr.invc_gts_sync_time AS CN_TaxInvcGldnTxSystStsSyncTme,
hdr.input_invc_proc_status AS CN_TaxInvcInptProcgSts,
hdr.invc_deduct_type AS CN_TaxInvcDeductionType,
hdr.invc_fiscal_year AS FiscalYear,
hdr.seller_name AS CN_TaxSellerName,
hdr.comments AS CN_TaxInvcComment,
hdr.input_vat_cat AS TaxCategory,
hdr.invc_decln_time AS CN_TaxDeclnTime,
hdr.invc_decln_year AS CN_TaxDeclnYear,
hdr.invc_decln_month AS CN_TaxDeclnMonth,
hdr.buyer_addr_tel AS TaxInvoiceBuyerAddressPhone,
hdr.buyer_bank AS TaxInvoiceBuyerBankAccount,
hdr.seller_addr_tel AS TaxInvoiceSellerAddressPhone,
hdr.seller_bank AS TaxInvoiceSellerBankAccount,
hdr.is_tax_rebate AS TaxInvoiceIsTaxRebate,
hdr.decln_type AS TaxInvoiceDeclarationTypeCode,
hdr.invc_posted_indicator AS IsPostedOnAccount,
hdr.invc_postg_period AS CN_InvoicePostingPeriod,
hdr.invc_postg_type AS CN_InvoicePostingType,
hdr.invc_postg_date AS CN_InvoiceLatestPostingDate,
hdr.invc_gts_result AS CN_GoldenTaxSystemResultString,
hdr.invc_gts_risk_level AS CN_GoldenTaxSystemRiskLevel,
hdr.invc_gts_spcfc_elmnts AS CN_InvoiceSpecificElement,
hdr.invc_blue_nmbr AS CN_BlueInvoiceNumber,
hdr.vehicle_type AS CN_TaxInvoiceVehicleType,
hdr.veh_factory_model AS CN_TaxInvoiceVehFactoryModel,
hdr.veh_prodn_place AS CN_TaxInvoiceVehicleProdnPlace,
hdr.veh_cert_nmbr AS CN_TaxInvoiceVehicleCertNumber,
hdr.veh_imprtcert_nmbr AS CN_TaxInvoiceVehImportCertNmbr,
hdr.veh_insp_nmbr AS CN_TaxInvoiceVehicleInspNumber,
hdr.veh_engine_nmbr AS CN_TaxInvoiceVehicleEngineNmbr,
hdr.vehicle_nmbr AS CN_TaxInvoiceVehicleNumber,
hdr.veh_total_amount AS CN_TaxInvcVehTotAmtInInvcCrcy,
hdr.veh_txn_recd_nmbr AS CN_TaxInvoiceVehTxnRecordNmbr,
hdr.veh_tonnage AS CN_TaxInvoiceVehicleTonnage,
hdr.veh_pssengr_limit AS CN_TaxInvoiceVehPassengerLimit,
hdr.purchase_org AS PurchasingOrganization,
hdr.purchase_grp AS PurchasingGroup,
hdr.supplier AS Supplier,
hdr.create_user AS CreatedByUser,
hdr.create_time AS CreationUTCDateTime,
hdr.change_user AS LastChangedByUser,
hdr.change_time AS LastChangeDateTime
FROM txi_hdr AS hdr
LEFT OUTER JOIN P_CN_TaxInputInvoiceItem AS _InvoiceItem ON CN_TaxInvcUUID = _InvoiceItem.CN_TaxInvcUUID -- association [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