P_PT_AccountingNumberRange
PT Accounting Document NR
P_PT_AccountingNumberRange is a Composite CDS View that provides data about "PT Accounting Document NR" in SAP S/4HANA. It reads from 1 data source (I_PT_DgtlSgntrNmbrRngeAcctg) and exposes 12 fields with key fields CompanyCode, VATRegistration, PT_SeriesIdentifier, PT_SeriesTypeCode, PT_SeriesDocumentClass. It has 3 associations to related views. Part of development package GLO_FIN_IS_PT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PT_DgtlSgntrNmbrRngeAcctg | I_PT_DgtlSgntrNmbrRngeAcctg | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_NumberRangeInterval | _NumberRange | _NumberRange.NumberRangeObject = 'RF_BELEG' and _NumberRange.NumberRangeSubObject = $projection.CompanyCode and _NumberRange.NumberRangeInterval = $projection.PT_SeriesNumberRangeInterval and _NumberRange.NumberRangeToYear = $projection.PT_SeriesNumberRangeToYear |
| [0..1] | I_PT_DgtlSgntrStartAccounting | _DgtlsgntrStartAcctg | _DgtlsgntrStartAcctg.CompanyCode = $projection.CompanyCode and _DgtlsgntrStartAcctg.PT_SeriesNumberRangeInterval = $projection.PT_SeriesNumberRangeInterval and _DgtlsgntrStartAcctg.PT_SeriesNumberRangeToYear = $projection.PT_SeriesNumberRangeToYear |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | PT Accounting Document NR | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | VATRegistration | |||
| KEY | PT_SeriesIdentifier | PortugueseDgtlSignatureSeries | Series ID | |
| KEY | PT_SeriesTypeCode | |||
| KEY | PT_SeriesDocumentClass | |||
| KEY | PT_SeriesDocumentType | PT_SeriesDocumentType | SAF-T Document Type | |
| PT_SeriesBusinessProcess | ||||
| PT_SeriesNumberRangeObject | _NumberRange | NumberRangeObject | ||
| PT_SeriesNumberRangeSubObject | _NumberRange | NumberRangeSubObject | Subobject value | |
| PT_SeriesNumberRangeInterval | NumberRangeInterval | Number Range | ||
| PT_SeriesNumberRangeToYear | ToFiscalYear | To Year | ||
| PortugueseLeadingAcctgDocType | PortugueseLeadingAcctgDocType | Lead. Doc. type |
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_PT_AccountingNumberRange.
-- 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_PT_AccountingNumberRange AS
SELECT
CompanyCode,
cast( substring(_CompanyCode.VATRegistration, 3, 18) as stceg) AS VATRegistration,
PortugueseDgtlSignatureSeries AS PT_SeriesIdentifier,
'N' AS PT_SeriesTypeCode,
'SI' AS PT_SeriesDocumentClass,
PT_SeriesDocumentType,
'F' AS PT_SeriesBusinessProcess,
_NumberRange.NumberRangeObject AS PT_SeriesNumberRangeObject,
_NumberRange.NumberRangeSubObject AS PT_SeriesNumberRangeSubObject,
NumberRangeInterval AS PT_SeriesNumberRangeInterval,
ToFiscalYear AS PT_SeriesNumberRangeToYear,
PortugueseLeadingAcctgDocType
FROM I_PT_DgtlSgntrNmbrRngeAcctg
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_NumberRangeInterval AS _NumberRange ON _NumberRange.NumberRangeObject = 'RF_BELEG' AND _NumberRange.NumberRangeSubObject = CompanyCode AND _NumberRange.NumberRangeInterval = PT_SeriesNumberRangeInterval AND _NumberRange.NumberRangeToYear = PT_SeriesNumberRangeToYear -- association [0..1]
LEFT OUTER JOIN I_PT_DgtlSgntrStartAccounting AS _DgtlsgntrStartAcctg ON _DgtlsgntrStartAcctg.CompanyCode = CompanyCode AND _DgtlsgntrStartAcctg.PT_SeriesNumberRangeInterval = PT_SeriesNumberRangeInterval AND _DgtlsgntrStartAcctg.PT_SeriesNumberRangeToYear = PT_SeriesNumberRangeToYear -- 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