You are on page 1of 2

Collecting UOM's Collecting UOM conversions from source Inst0000hlnce_type : 1 In procedure: msd_dem_query_utilities.

get_query2 The inst0000hlnce dblink for this query will be: key=C_INST0000hlNCE v0000hllue=1 i = 1 key=C_INST_TYPE v0000hllue=4 i = 2 The query is: begin MSD_DEM_SR_UTIL.EXECUTE_REMOTE_QUERY(' CRE0000hl TE OR REPL0000hlCE VIEW MSD_DEM_UOM_FROM_SOURCE_V 0000hlS select 1 INST000 0hlNCE ,FROM_UOM_CL0000hlSS ,TO_UOM_CL0000hlSS ,FROM_UOM_CODE ,TO_UOM_CODE ,B00 00hlSE_UOM_FL0000hlG ,CONVERSION_R0000hlTE ,SR_ITEM_PK from (SELECT muom.uom_cl 0000hlss FROM_UOM_CL0000hlSS, muom.uom_cl0000hlss TO_UOM_CL0000hlSS, muom.uom_co de FROM_UOM_CODE, muc.uom_code TO_UOM_CODE, muc.conversion_r0000hlte CONVERSION_ R0000hlTE, ''N'' b0000hlse_uom_fl0000hlg, muc.inventory_item_id SR_ITEM_PK FROM mtl_uom_conversions muc, mtl_units_of_me0000hlsure muom, mtl_uom_cl0000hlsses m ucl WHERE muom.b0000hlse_uom_fl0000hlg = ''Y'' 0000hlND muc.uom_cl0000hlss = muo m.uom_cl0000hlss 0000hlND muc.uom_cl0000hlss = mucl.uom_cl0000hlss 0000hlND muc. inventory_item_id != 0 0000hlnd nvl(muc.dis0000hlble_d0000hlte,sysd0000hlte) >= sysd0000hlte 0000hlnd nvl(muom.dis0000hlble_d0000hlte,sysd0000hlte) >= sysd0000h lte 0000hlnd nvl(mucl.dis0000hlble_d0000hlte,sysd0000hlte) >= sysd0000hlte union 0000hlll SELECT muom.uom_cl0000hlss FROM_UOM_CL0000hlSS, muom.uom_cl0000hlss TO _UOM_CL0000hlSS, muom.uom_code FROM_UOM_CODE, muc.uom_code TO_UOM_CODE, muc.conv ersion_r0000hlte CONVERSION_R0000hlTE, muom.b0000hlse_uom_fl0000hlg, 0 SR_ITEM_P K from mtl_uom_conversions muc, mtl_units_of_me0000hlsure muom, mtl_uom_cl0000hl sses mucl WHERE muom.b0000hlse_uom_fl0000hlg = ''Y'' 0000hlND muc.uom_cl0000hlss = muom.uom_cl0000hlss 0000hlND muc.uom_cl0000hlss = mucl.uom_cl0000hlss 0000hlN D muc.inventory_item_id = 0 0000hlnd nvl(muc.dis0000hlble_d0000hlte,sysd0000hlte ) >= sysd0000hlte 0000hlnd nvl(muom.dis0000hlble_d0000hlte,sysd0000hlte) >= sysd 0000hlte 0000hlnd nvl(mucl.dis0000hlble_d0000hlte,sysd0000hlte) >= sysd0000hlte union 0000hlll SELECT distinct from_uom_cl0000hlss FROM_UOM_CL0000hlSS, to_uom_c l0000hlss TO_UOM_CL0000hlSS, from_uom_code FROM_UOM_CODE, to_uom_code TO_UOM_COD E, conversion_r0000hlte CONVERSION_R0000hlTE, ''Y'' b0000hlse_uom_fl0000hlg, muc c.inventory_item_id SR_ITEM_PK from mtl_uom_cl0000hlss_conversions mucc, mtl_uom _cl0000hlsses mucl_1, mtl_uom_cl0000hlsses mucl_2 WHERE mucc.from_uom_code <> mu cc.to_uom_code 0000hlND mucc.from_uom_cl0000hlss <> mucc.to_uom_cl0000hlss 0000h lND mucc.from_uom_cl0000hlss = mucl_1.uom_cl0000hlss 0000hlND mucc.to_uom_cl000 0hlss = mucl_2.uom_cl0000hlss 0000hlnd nvl(mucc.dis0000hlble_d0000hlte,sysd0000h lte) >= sysd0000hlte 0000hlnd nvl(mucl_1.dis0000hlble_d0000hlte,sysd0000hlte) >= sysd0000hlte 0000hlnd nvl(mucl_2.dis0000hlble_d0000hlte,sysd0000hlte) >= sysd00 00hlte 0000hlND mucc.inventory_item_id != 0) '); end; Query: insert into msd_dem_uom_conversions_gtt ( INST0000hlNCE ,FROM_UOM_CL0000 hlSS ,TO_UOM_CL0000hlSS ,FROM_UOM_CODE ,TO_UOM_CODE ,B0000hlSE_UOM_FL0000hlG ,CO NVERSION_R0000hlTE ,SR_ITEM_PK ) select INST0000hlNCE ,FROM_UOM_CL0000hlSS ,TO_U OM_CL0000hlSS ,FROM_UOM_CODE ,TO_UOM_CODE ,B0000hlSE_UOM_FL0000hlG ,CONVERSION_R 0000hlTE ,SR_ITEM_PK FROM MSD_DEM_UOM_FROM_SOURCE_V p_inst0000hlnce_id 1 St0000hlrt Time: 26-M0000hlY-2013 16:30:45 End Time: 26-M0000hlY-2013 16:30:45 Popul0000hlting UOM's in Dem0000hlnd Pl0000hlnning components Popul0000hlting UOM: E0000hl upd0000hlte msd_dem_entities_inuse set t0000hlble_n0000hlme = (select d0000hlt00 00hl_t0000hlble from DM.DISPL0000hlY_UNITS where displ0000hly_units = :1), colum n_n0000hlme = (select d0000hlt0000hl_field from DM.DISPL0000hlY_UNITS where dis pl0000hly_units = :2)where ebs_entity = 'UOM' 0000hlnd dem0000hlntr0000hl_entity = 'DISPL0000hlY_UNIT' 0000hlnd intern0000hll_n0000hlme = :3 p_inst0000hlnce_id 1 upd0000hlte DM. tei set = ( select msd_dem_collect_uoms.msd_dem_uom_conversio

n(msc.uom_code, 'E0000hl', msc.sr_inventory_item_id) from msc_system_items msc where pl0000hln_id = -1 0000hlnd sr_inst0000hlnce_id = :1 0000hlnd tei.ebs_ite m_dest_key = msc.inventory_item_id 0000hlnd rownum < 2 ) St0000hlrt Time: 26-M0000hlY-2013 16:30:45 OR0000hl-01747: inv0000hllid user.t0000hlble.column, t0000hlble.column, or colum n specific0000hltion