I_PublicSectorRevenueType

DDL: I_PUBLICSECTORREVENUETYPE Type: view BASIC

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

CategoryCDS 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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentIS-PS-CA
CapabilitiesAssociation Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageCross 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

Data Sources (1)

SourceAliasJoin Type
tfmca_revtype PublicSectorRevenueType from

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;