SELECT
  RTRIM([ITEMNMBR]) AS itemnmbr,
  RTRIM([ITEMDESC]) AS itemdesc,
  RTRIM([ITMSHNAM]) AS itmshnam,
  RTRIM([ITMCLSCD]) AS itmclscd,
  RTRIM([UOMSCHDL]) AS uomschdl,
  [CURRCOST] AS currcost,
  [STNDCOST] AS stndcost,
  [NOTEINDX] AS noteindx,
  [ITEMTYPE] AS itemtype,
  RTRIM([ITMGEDSC]) AS itmgedsc,
  [ITEMSHWT] AS itemshwt,
  [DECPLQTY] AS decplqty,
  [DECPLCUR] AS decplcur,
  RTRIM([ITMTSHID]) AS itmtshid,
  [TAXOPTNS] AS taxoptns,
  [IVIVINDX] AS ivivindx,
  [IVIVOFIX] AS ivivofix,
  [IVCOGSIX] AS ivcogsix,
  [IVSLSIDX] AS ivslsidx,
  [IVSLDSIX] AS ivsldsix,
  [IVSLRNIX] AS ivslrnix,
  [IVINUSIX] AS ivinusix,
  [IVINSVIX] AS ivinsvix,
  [IVDMGIDX] AS ivdmgidx,
  [IVVARIDX] AS ivvaridx,
  [DPSHPIDX] AS dpshpidx,
  [PURPVIDX] AS purpvidx,
  [UPPVIDX] AS uppvidx,
  [IVRETIDX] AS ivretidx,
  [ASMVRIDX] AS asmvridx,
  [ITMTRKOP] AS itmtrkop,
  RTRIM([LOTTYPE]) AS lottype,
  [KPERHIST] AS kperhist,
  [KPTRXHST] AS kptrxhst,
  [KPCALHST] AS kpcalhst,
  [KPDSTHST] AS kpdsthst,
  [ALWBKORD] AS alwbkord,
  [VCTNMTHD] AS vctnmthd,
  RTRIM([ALTITEM1]) AS altitem1,
  RTRIM([ALTITEM2]) AS altitem2,
  RTRIM([USCATVLS_1]) AS uscatvls_1,
  RTRIM([USCATVLS_2]) AS uscatvls_2,
  RTRIM([USCATVLS_3]) AS uscatvls_3,
  RTRIM([USCATVLS_4]) AS uscatvls_4,
  RTRIM([USCATVLS_5]) AS uscatvls_5,
  RTRIM([USCATVLS_6]) AS uscatvls_6,
  [MSTRCDTY] AS mstrcdty,
  [MODIFDT] AS modifdt,
  [CREATDDT] AS creatddt,
  [WRNTYDYS] AS wrntydys,
  RTRIM([PRCLEVEL]) AS prclevel,
  RTRIM([LOCNCODE]) AS locncode,
  [PINFLIDX] AS pinflidx,
  [PURMCIDX] AS purmcidx,
  [IVINFIDX] AS ivinfidx,
  [INVMCIDX] AS invmcidx,
  [CGSINFLX] AS cgsinflx,
  [CGSMCIDX] AS cgsmcidx,
  RTRIM([ITEMCODE]) AS itemcode,
  RTRIM([TCC]) AS tcc,
  RTRIM([PriceGroup]) AS pricegroup,
  [PRICMTHD] AS pricmthd,
  RTRIM([PRCHSUOM]) AS prchsuom,
  RTRIM([SELNGUOM]) AS selnguom,
  [KTACCTSR] AS ktacctsr,
  RTRIM([LASTGENSN]) AS lastgensn,
  [ABCCODE] AS abccode,
  [Revalue_Inventory] AS revalue_inventory,
  [Tolerance_Percentage] AS tolerance_percentage,
  RTRIM([Purchase_Item_Tax_Schedu]) AS purchase_item_tax_schedu,
  [Purchase_Tax_Options] AS purchase_tax_options,
  [ITMPLNNNGTYP] AS itmplnnngtyp,
  [STTSTCLVLPRCNTG] AS sttstclvlprcntg,
  RTRIM([CNTRYORGN]) AS cntryorgn,
  [INACTIVE] AS inactive,
  [MINSHELF1] AS minshelf1,
  [MINSHELF2] AS minshelf2,
  [INCLUDEINDP] AS includeindp,
  [LOTEXPWARN] AS lotexpwarn,
  [LOTEXPWARNDAYS] AS lotexpwarndays,
  RTRIM([LASTGENLOT]) AS lastgenlot,
  [Lot_Split_Quantity] AS lot_split_quantity,
  [UseQtyOverageTolerance] AS useqtyoveragetolerance,
  [UseQtyShortageTolerance] AS useqtyshortagetolerance,
  [QtyOverTolerancePercent] AS qtyovertolerancepercent,
  [QtyShortTolerancePercent] AS qtyshorttolerancepercent,
  [IVSCRVIX] AS ivscrvix,
  [DEX_ROW_TS] AS dex_row_ts,
  [DEX_ROW_ID] AS dex_row_id
FROM [GPSERVER].[CHG].[dbo].[IV00101]
