I_PublicSectorRevenueType
Revenue Type
I_PublicSectorRevenueType (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_PublicSectorRevenueType is a Basic CDS View that provides data about "Revenue Type" in SAP S/4HANA. It reads from 1 data source (tfmca_revtype) and exposes 20 fields with key field PublicSectorRevenueType. It has 7 associations to related views.
SAP Help Documentation
| Category | CDS Views for Taxpayer Identification and Returns Processing |
|---|
Purpose
This CDS view is designed to provide a structured representation of revenue types within the public sector, incorporating various associations and attributes related to contract accounts, transactions, period codes, document types, and workflow tasks. It serves as a foundational data model for customizing and managing revenue-related information in public sector applications. This CDS view provides the data to answer the following business questions: What are the different revenue types defined for the public sector? How are revenue types associated with contract account categories and transactions? What are the start and end period codes associated with each revenue type? Are public sector contracts included in the revenue type configuration? What document types are linked to specific revenue types? What workflow task definitions and types are associated with revenue types? Is form-based tax applicable to specific revenue types? Is a joint tax return possible for certain revenue types? What is the form bundle number range for public sector revenue types? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization.
Structure
Important Fields Important fields in this view include the following: Field Name Label PublicSectorRevenueType Revenue Type ContractAccountCategory Contract Acct Categ. CAMainTransaction Main Transaction CASubTransaction Subtransaction CAStartPeriodCode From Period Key CAEndPeriodCode To Period Key PubSecContractsAreIncluded Include All COs DocumentType Document Type WorkflowTaskDefinition Workflow definition WrkflwScenVers Version WorkflowTaskType Type BPIdentificationType Identification Type TaxIsFormBased Form-Based JointTaxReturnIsPossible Joint Tax Return PubSecFormBundleNumberRange Number Range
This CDS view is designed to provide a structured representation of revenue types within the public sector, incorporating various associations and attributes related to contract accounts, transactions, period codes, document types, and workflow tasks. It serves as a foundational data model for customizing and managing revenue-related information in public sector applications. This CDS view provides the data to answer the following business questions: What are the different revenue types defined for the public sector? How are revenue types associated with contract account categories and transactions? What are the start and end period codes associated with each revenue type? Are public sector contracts included in the revenue type configuration? What document types are linked to specific revenue types? What workflow task definitions and types are associated with revenue types? Is form-based tax applicable to specific revenue types? Is a joint tax return possible for certain revenue types? What is the form bundle number range for public sector revenue types? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization.
Structure
Important Fields Important fields in this view include the following: Field Name Label PublicSectorRevenueType Revenue Type ContractAccountCategory Contract Acct Categ. CAMainTransaction Main Transaction CASubTransaction Subtransaction CAStartPeriodCode From Period Key CAEndPeriodCode To Period Key PubSecContractsAreIncluded Include All COs DocumentType Document Type WorkflowTaskDefinition Workflow definition WrkflwScenVers Version WorkflowTaskType Type BPIdentificationType Identification Type TaxIsFormBased Form-Based JointTaxReturnIsPossible Joint Tax Return PubSecFormBundleNumberRange Number Range
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | IS-PS-CA |
| Capabilities | Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view is designed to provide a structured representation of revenue types within the public sector, incorporating various associations and attributes related to contract accounts, transactions, period codes, document types, and workflow tasks. It serves as a foundational data model for customizing and managing revenue-related information in public sector applications. </p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What are the different revenue types defined for the public sector?</p></li> <li><p>How are revenue types associated with contract account categories and transactions?</p></li> <li><p>What are the start and end period codes associated with each revenue type?</p></li> <li><p>Are public sector contracts included in the revenue type configuration?</p></li> <li><p>What document types are linked to specific revenue types?</p></li> <li><p>What workflow task definitions and types are associated with revenue types?</p></li> <li><p>Is form-based tax applicable to specific revenue types?</p></li> <li><p>Is a joint tax return possible for certain revenue types?</p></li> <li><p>What is the form bundle number range for public sector revenue types?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tfmca_revtype | PublicSectorRevenueType | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_PubSecRevenueTypeText | _PubSecRevenueTypeText | $projection.PublicSectorRevenueType = _PubSecRevenueTypeText.PublicSectorRevenueType |
| [0..1] | I_ContractAccountCategory | _ContractAccountCategory | $projection.ContractAccountCategory = _ContractAccountCategory.ContractAccountCategory and _ContractAccountCategory.CAApplicationArea = 'P' |
| [0..1] | I_CAMainTransaction | _CAMainTransaction | $projection.CAMainTransaction = _CAMainTransaction.CAMainTransaction and _CAMainTransaction.CAApplicationArea = 'P' |
| [0..1] | I_CASubTransaction | _CASubTransaction | $projection.CASubTransaction = _CASubTransaction.CASubTransaction and $projection.CAMainTransaction = _CASubTransaction.CAMainTransaction and _CASubTransaction.CAApplicationArea = 'P' |
| [0..1] | I_CAPeriodCode | _CAStartPeriodCode | $projection.CAStartPeriodCode = _CAStartPeriodCode.CAPeriodCode |
| [0..1] | I_CAPeriodCode | _CAEndPeriodCode | $projection.CAEndPeriodCode = _CAEndPeriodCode.CAPeriodCode |
| [0..1] | I_CAInvcgDocumentType | _DocumentType | $projection.DocumentType = _DocumentType.CAInvcgDocumentType and _DocumentType.CAApplicationArea = 'P' and _DocumentType.NameNumberRangeObject = 'FKKINVBILL' |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Revenue Type | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AbapCatalog.sqlViewName | IPSREVENUETYPE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.representativeKey | PublicSectorRevenueType | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PublicSectorRevenueType | tfmca_revtype | abtyp | Revenue Type |
| ContractAccountCategory | tfmca_revtype | vktyp | Contract Account Category | |
| CAMainTransaction | tfmca_revtype | hvorg | Main Transaction for Line Item | |
| CASubTransaction | tfmca_revtype | tvorg | Subtransaction for Document Item | |
| CAEndPeriodCode | tfmca_revtype | toper | Upper Period Key | |
| PubSecContractsAreIncluded | tfmca_revtype | xadja | Include All Contract Objects in Adjustments | |
| DocumentType | tfmca_revtype | doctype | TSW Document type | |
| WorkflowTaskDefinition | tfmca_revtype | wfd_id | Number of workflow definition | |
| WrkflwScenVers | tfmca_revtype | version | XML Vers. | |
| WorkflowTaskType | tfmca_revtype | exetyp | Workflow Type | |
| BPIdentificationType | tfmca_revtype | bp_id_type | Identification Type | |
| TaxIsFormBased | tfmca_revtype | fbtax | Indicator for Form-Based Tax | |
| JointTaxReturnIsPossible | tfmca_revtype | xjointf | Joint Tax Return Possible for Marriage Partners | |
| PubSecFormBundleNumberRange | tfmca_revtype | fbnur | Number Range for Form Bundle/Tax Return | |
| _PubSecRevenueTypeText | _PubSecRevenueTypeText | |||
| _ContractAccountCategory | _ContractAccountCategory | |||
| _CAMainTransaction | _CAMainTransaction | |||
| _CASubTransaction | _CASubTransaction | |||
| _CAEndPeriodCode | _CAEndPeriodCode | |||
| _DocumentType | _DocumentType |
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_PublicSectorRevenueType.
-- 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 I_PublicSectorRevenueType AS
SELECT
PublicSectorRevenueType.abtyp AS PublicSectorRevenueType,
PublicSectorRevenueType.vktyp AS ContractAccountCategory,
PublicSectorRevenueType.hvorg AS CAMainTransaction,
PublicSectorRevenueType.tvorg AS CASubTransaction,
PublicSectorRevenueType.toper AS CAEndPeriodCode,
PublicSectorRevenueType.xadja AS PubSecContractsAreIncluded,
PublicSectorRevenueType.doctype AS DocumentType,
PublicSectorRevenueType.wfd_id AS WorkflowTaskDefinition,
PublicSectorRevenueType.version AS WrkflwScenVers,
PublicSectorRevenueType.exetyp AS WorkflowTaskType,
PublicSectorRevenueType.bp_id_type AS BPIdentificationType,
PublicSectorRevenueType.fbtax AS TaxIsFormBased,
PublicSectorRevenueType.xjointf AS JointTaxReturnIsPossible,
PublicSectorRevenueType.fbnur AS PubSecFormBundleNumberRange
FROM tfmca_revtype AS PublicSectorRevenueType
LEFT OUTER JOIN I_PubSecRevenueTypeText AS _PubSecRevenueTypeText ON PublicSectorRevenueType = _PubSecRevenueTypeText.PublicSectorRevenueType -- association [0..*]
LEFT OUTER JOIN I_ContractAccountCategory AS _ContractAccountCategory ON ContractAccountCategory = _ContractAccountCategory.ContractAccountCategory AND _ContractAccountCategory.CAApplicationArea = 'P' -- association [0..1]
LEFT OUTER JOIN I_CAMainTransaction AS _CAMainTransaction ON CAMainTransaction = _CAMainTransaction.CAMainTransaction AND _CAMainTransaction.CAApplicationArea = 'P' -- association [0..1]
LEFT OUTER JOIN I_CASubTransaction AS _CASubTransaction ON CASubTransaction = _CASubTransaction.CASubTransaction AND CAMainTransaction = _CASubTransaction.CAMainTransaction AND _CASubTransaction.CAApplicationArea = 'P' -- association [0..1]
LEFT OUTER JOIN I_CAPeriodCode AS _CAStartPeriodCode ON CAStartPeriodCode = _CAStartPeriodCode.CAPeriodCode -- association [0..1]
LEFT OUTER JOIN I_CAPeriodCode AS _CAEndPeriodCode ON CAEndPeriodCode = _CAEndPeriodCode.CAPeriodCode -- association [0..1]
LEFT OUTER JOIN I_CAInvcgDocumentType AS _DocumentType ON DocumentType = _DocumentType.CAInvcgDocumentType AND _DocumentType.CAApplicationArea = 'P' AND _DocumentType.NameNumberRangeObject = 'FKKINVBILL' -- 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