UPOV_GET_ALLOCATION_BASIS
Get Allocation Basis details
UPOV_GET_ALLOCATION_BASIS is a CDS View that provides data about "Get Allocation Basis details" in SAP S/4HANA. It reads from 2 data sources (gho_nwrule_h, gho_nwrule_h) and exposes 5 fields with key field tplnr.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| gho_nwrule_h | nwrule | inner |
| gho_nwrule_h | nwrule | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | UPOS_GET_ALBASIS | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| EndUserText.label | Get Allocation Basis details | view |
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 UPOV_GET_ALLOCATION_BASIS.
-- 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: UPOS_GET_ALBASIS
CREATE VIEW UPOV_GET_ALLOCATION_BASIS AS
SELECT
upo_novd.tplnr AS tplnr,
upo_novd.effective_to AS effective_to,
case when nwrule.alloc_basis = '01' then 'V' when nwrule.alloc_basis = '02' then 'E' when nwrule.alloc_basis = '04' then 'D' else '' end as al_basis_cd AS alloc_basis04thenDelseendasal_basis_cd
INNER JOIN gho_nwrule_h AS nwrule ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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