Maximo Open Forum

 View Only
  • 1.  Search for assets used as tools

    Posted 25 days ago

    We are looking for a where clause to find all assets that have been used as a tool on a workorder. My first thought is:

    assetnum in (select asset from TOOLTRANS where assetnum is not null)

    But the assets returned do not have anything in their "View Tool Usage" (at least none that were spot checked).


    #Administration

    ------------------------------
    Jason Johnson
    RSI
    ------------------------------


  • 2.  RE: Search for assets used as tools

    Posted 24 days ago

    You wrote that you were thinking of using the following WHERE clause:

    assetnum in (select asset from TOOLTRANS where assetnum is not null)

    I assume you meant to say:

    assetnum in (select assetNum from TOOLTRANS where assetnum is not null)

    Anyways, the problem is that it should be:

    assetnum in (select RotAssetNum from TOOLTRANS where assetnum is not null)

    The AssetNum in the ToolTrans is the Asset being charged, which normally defaults to the AssetNum on the WO being charged.  The RotAssetNum represents the Asset that was used.



    ------------------------------
    Julio Hernandez
    Ergonare, Inc.
    ------------------------------



  • 3.  RE: Search for assets used as tools

    Posted 24 days ago

    You are correct, sorry about the oversight. And your where clause did the trick, thank you so much!



    ------------------------------
    Jason Johnson
    RSI
    ------------------------------