UPOV_ALLOC_RESULTS_WC

DDL: UPO_INT_V_ALLOC_RESULTS_WC SQL: UPOS_ALCRSLT_WC Type: view

Allocation Result details per WC

UPOV_ALLOC_RESULTS_WC is a CDS View that provides data about "Allocation Result details per WC" in SAP S/4HANA. It reads from 9 data sources and exposes 17 fields.

Data Sources (9)

SourceAliasJoin Type
upot_int_nobj dn left_outer
gho_allocres_h header inner
gho_iflot_ext iflot inner
gho_allocres_i item inner
t006 unit_dimension inner
gho_uom_rule_h uom_hrule inner
upot_int_nobj wc left_outer
upot_int_nobj wl left_outer
gho_iflot_ext wlwc inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName UPOS_ALCRSLT_WC view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Allocation Result details per WC view

Fields (17)

KeyFieldSource TableSource FieldDescription
alloc_run_id gho_allocres_h alloc_run_id Allocation Run ID
created_by gho_allocres_h created_by Version Created By
created_tst gho_allocres_h created_tst Req Created Time
dest_node_id gho_allocres_i dest_node_id Node ID
eff_from_dt
eff_to_dt
wl_no
wc_no
dn_no
prod_date
material gho_allocres_i material Vehicle Model
matnr gho_allocres_i matnr Vehicle Model
prd_hrs gho_allocres_i prd_hrs Prod. hours
days_prod gho_allocres_i days_prod Days produced
invt_dt
conv_grp gho_uom_rule_h conv_grp Conv. Grp.
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 UPOV_ALLOC_RESULTS_WC.
-- 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_ALCRSLT_WC

CREATE VIEW UPOV_ALLOC_RESULTS_WC AS
SELECT
  header.alloc_run_id AS alloc_run_id,
  header.created_by AS created_by,
  header.created_tst AS created_tst,
  item.dest_node_id AS dest_node_id,
  cast(tstmp_to_dats(item.eff_from_dt,iflot.gho_pn_tz,$session.client,'NULL') as oiu_eff_from_dt) AS eff_from_dt,
  cast(tstmp_to_dats(item.eff_to_dt,iflot.gho_pn_tz,$session.client,'NULL') as oiu_eff_to_dt) AS eff_to_dt,
  cast(wl.converted_label as oiu_wl_no) AS wl_no,
  cast(wc.converted_label as oiu_wc_no) AS wc_no,
  cast(dn.converted_label as oiu_dn_no) AS dn_no,
  cast(tstmp_to_dats(dats_tims_to_tstmp(header.prod_date,header.prod_time,'UTC',$session.client,'NULL'),iflot.gho_pn_tz,$session.client,'NULL') as gho_start_date_alloc) AS prod_date,
  item.material AS material,
  item.matnr AS matnr,
  item.prd_hrs AS prd_hrs,
  item.days_prod AS days_prod,
  cast(tstmp_to_dats(dats_tims_to_tstmp(header.prod_date,header.prod_time,'UTC',$session.client,'NULL'),iflot.gho_pn_tz,$session.client,'NULL') as gho_start_date_alloc) AS invt_dt,
  uom_hrule.conv_grp AS conv_grp,
  iflot.gho_pn_tz AS gho_pn_tz
INNER JOIN gho_allocres_h AS header ON /* join condition not captured in parsed metadata */
INNER JOIN gho_allocres_i AS item ON /* join condition not captured in parsed metadata */
INNER JOIN t006 AS unit_dimension 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_iflot_ext AS wlwc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS wl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS wc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_int_nobj AS dn ON /* join condition not captured in parsed metadata */
;