UPO_INT_V_ALLOC_DATA
UOM Alloc Data for a Run Id
UPO_INT_V_ALLOC_DATA is a CDS View that provides data about "UOM Alloc Data for a Run Id" in SAP S/4HANA. It reads from 18 data sources and exposes 42 fields.
Data Sources (18)
| Source | Alias | Join Type |
|---|---|---|
| gho_disposition | dispo | inner |
| upot_int_nobj | dnLabel | left_outer |
| gho_allocres_h | header_res | from |
| gho_iflot_ext | iflot | inner |
| gho_allocres_i | item_res | inner |
| upot_int_nobj | mpLabel | left_outer |
| gho_allocres_i | ReceiptMeter | left_outer |
| gho_allocres_i | theo | left_outer |
| gho_allocres_i | theo_g | left_outer |
| gho_uom_rule_h | uom_hrule | inner |
| gho_uom_rule_i | uom_irule | inner |
| upots_udm_vcqc | vcqc | inner |
| upoc_udm_vtqt_mp | vtqt | left_outer |
| upot_int_nobj | wcLabel | left_outer |
| upot_int_nobj | wlLabel | left_outer |
| gho_iflot_ext | wlwc | inner |
| upot_int_nobj | xwcLabel | left_outer |
| upot_int_nobj | xwlLabel | left_outer |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ALLOC_RUN_ID | gho_alloc_run_id |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | UPOS_ALLOC_DATA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | UOM Alloc Data for a Run Id | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| alloc_run_id | gho_allocres_i | alloc_run_id | Allocation Run ID | |
| wcdvlh_no | gho_allocres_i | wcdvlh_no | Document No. | |
| netid | gho_allocres_h | netid | Production Flow NW | |
| medium | gho_allocres_h | medium | Medium ID | |
| dest_node_id | gho_allocres_i | dest_node_id | Node ID | |
| origin_mp_no | upot_int_nobj | converted_label | Oil & Gas ID | |
| well_floc | gho_iflot_ext | gho_wc_ref_id | Well Reference | |
| wl_no | upot_int_nobj | converted_label | Oil & Gas ID | |
| wc_no | upot_int_nobj | converted_label | Oil & Gas ID | |
| dn_no | upot_int_nobj | converted_label | Oil & Gas ID | |
| eff_from_dt | ||||
| eff_to_dt | ||||
| prod_date | ||||
| prod_tstmp | ||||
| dimension | gho_uom_rule_i | dimension | Quantity | |
| frequency | gho_allocres_h | frequency | Reporting Frequency | |
| material | gho_allocres_i | material | Vehicle Model | |
| matnr | gho_allocres_i | matnr | Vehicle Model | |
| qty_type | gho_allocres_i | qty_type | Quantity Type | |
| qty_category | gho_allocres_i | qty_category | UoM Category | |
| prd_hrs | gho_allocres_i | prd_hrs | Prod. hours | |
| vol_type | upoc_udm_vtqt_mp | vol_type | Volume Type | |
| vol_cat | upots_udm_vcqc | vol_cat | Volume Cat Cd | |
| CONV_GRP | gho_uom_rule_h | conv_grp | Conv. Grp. | |
| theo_act_ind | gho_allocres_i | theo_act_ind | Theo Actual Ind | |
| unit | gho_allocres_i | unit | UoM | |
| std_vol | gho_allocres_i | volume | Waste volume | |
| theo_unit | gho_allocres_i | unit | UoM | |
| theo_val | gho_allocres_i | volume | Waste volume | |
| theo_g_vol | gho_allocres_i | volume | Waste volume | |
| glg_vol | gho_allocres_i | volume | Waste volume | |
| theo_g_ind | gho_allocres_i | theo_act_ind | Theo Actual Ind | |
| TKT_NO | gho_allocres_i | tkt_no | Ticket Number | |
| TKT_TIMESTAMP | gho_allocres_i | tkt_timestamp | Ticket timestp | |
| trnsp_no | gho_allocres_i | trnsp_no | Transporter nbr | |
| trnsp_ref_no | gho_allocres_i | trnsp_ref_no | Trsprt.Ref. | |
| INVT_DT | gho_allocres_i | invt_dt | Inventory date | |
| xref_wl_no | upot_int_nobj | tplnr | Functional loc. | |
| xref_wc_no | upot_int_nobj | tplnr | Functional loc. | |
| ORIG_NO | gho_allocres_i | orig_no | WCDVl. nr. | |
| ORIG_DOC_YEAR | gho_allocres_i | orig_doc_year | Fiscal Year | |
| gho_pn_tz | gho_iflot_ext | gho_pn_tz | Network Timezone |
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 UPO_INT_V_ALLOC_DATA.
-- 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_ALLOC_DATA
-- Parameters: P_ALLOC_RUN_ID : gho_alloc_run_id
CREATE VIEW UPO_INT_V_ALLOC_DATA AS
SELECT
item_res.alloc_run_id AS alloc_run_id,
item_res.wcdvlh_no AS wcdvlh_no,
header_res.netid AS netid,
header_res.medium AS medium,
item_res.dest_node_id AS dest_node_id,
mpLabel.converted_label AS origin_mp_no,
wlwc.gho_wc_ref_id AS well_floc,
wlLabel.converted_label AS wl_no,
wcLabel.converted_label AS wc_no,
dnLabel.converted_label AS dn_no,
tstmp_to_dats(item_res.eff_from_dt,iflot.gho_pn_tz,$session.client,'NULL') AS eff_from_dt,
tstmp_to_dats(item_res.eff_to_dt,iflot.gho_pn_tz,$session.client,'NULL') AS eff_to_dt,
tstmp_to_dats(dats_tims_to_tstmp(header_res.prod_date,header_res.prod_time,'UTC',$session.client,'NULL'),iflot.gho_pn_tz,$session.client,'NULL') AS prod_date,
dats_tims_to_tstmp(header_res.prod_date,header_res.prod_time,'UTC',$session.client,'NULL') AS prod_tstmp,
uom_irule.dimension AS dimension,
header_res.frequency AS frequency,
item_res.material AS material,
item_res.matnr AS matnr,
item_res.qty_type AS qty_type,
item_res.qty_category AS qty_category,
item_res.prd_hrs AS prd_hrs,
vtqt.vol_type AS vol_type,
vcqc.vol_cat AS vol_cat,
uom_hrule.conv_grp AS CONV_GRP,
item_res.theo_act_ind AS theo_act_ind,
item_res.unit AS unit,
item_res.volume AS std_vol,
theo.unit AS theo_unit,
theo.volume AS theo_val,
theo_g.volume AS theo_g_vol,
ReceiptMeter.volume AS glg_vol,
ReceiptMeter.theo_act_ind AS theo_g_ind,
item_res.tkt_no AS TKT_NO,
item_res.tkt_timestamp AS TKT_TIMESTAMP,
item_res.trnsp_no AS trnsp_no,
item_res.trnsp_ref_no AS trnsp_ref_no,
item_res.invt_dt AS INVT_DT,
xwlLabel.tplnr AS xref_wl_no,
xwcLabel.tplnr AS xref_wc_no,
item_res.orig_no AS ORIG_NO,
item_res.orig_doc_year AS ORIG_DOC_YEAR,
iflot.gho_pn_tz AS gho_pn_tz
FROM gho_allocres_h AS header_res
INNER JOIN gho_allocres_i AS item_res ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN gho_allocres_i AS theo ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN gho_allocres_i AS theo_g ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN gho_allocres_i AS ReceiptMeter ON /* join condition not captured in parsed metadata */
INNER JOIN gho_uom_rule_h AS uom_hrule ON /* join condition not captured in parsed metadata */
INNER JOIN gho_iflot_ext AS iflot ON /* join condition not captured in parsed metadata */
INNER JOIN gho_disposition AS dispo ON /* join condition not captured in parsed metadata */
INNER JOIN upots_udm_vcqc AS vcqc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upoc_udm_vtqt_mp AS vtqt ON /* join condition not captured in parsed metadata */
INNER JOIN gho_uom_rule_i AS uom_irule ON /* join condition not captured in parsed metadata */
INNER JOIN gho_iflot_ext AS wlwc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS mpLabel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS wlLabel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS wcLabel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS dnLabel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS xwlLabel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS xwcLabel 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