Showing posts with label Asset. Show all posts
Showing posts with label Asset. Show all posts

Thursday, 8 August 2024

Asset Deletion Query Sql | IBM Maximo

To delete asset totally from system including all related tables in Maximo System.

Single Asset Delete Query Example:

delete from AMCREWTOOL where ASSETNUM='WAP-0071';
delete from AMCREWWOTL  where ASSETNUM='WAP-0071';
delete from AREASAFFECTED where AFFECTEDASSETNUM='WAP-0071';
delete from ASSET  where ANCESTOR='WAP-0071';
delete from ASSET  where ASSETNUM='WAP-0071';
delete from ASSET  where PARENT='WAP-0071';
delete from ASSET where PLUSTALIAS='WAP-0071';
delete from ASSETANCESTOR  where ANCESTOR='WAP-0071';
delete from ASSETANCESTOR  where ASSETNUM='WAP-0071';
delete from ASSETAUDIT  where ASSETNUM='WAP-0071';
delete from ASSETCALIBRATION  where ASSETNUM='WAP-0071';
delete from ASSETFEASPECHIST  where ASSETNUM='WAP-0071';
delete from ASSETFEATURE  where ASSETNUM='WAP-0071';
delete from ASSETFEATUREHIST  where ASSETNUM='WAP-0071';
delete from ASSETFEATURESPEC  where ASSETNUM='WAP-0071';
delete from ASSETHIERARCHY  where ASSETNUM='WAP-0071';
delete from ASSETHIERARCHY  where PARENT='WAP-0071';
delete from ASSETHISTORY  where ASSETNUM='WAP-0071';
delete from ASSETLOCCOMM  where ASSETNUM='WAP-0071';
delete from ASSETLOCRELATION  where SOURCEASSETNUM='WAP-0071';
delete from ASSETLOCRELATION  where TARGETASSETNUM='WAP-0071';
delete from ASSETLOCRELHIST  where SOURCEASSETNUM='WAP-0071';
delete from ASSETLOCRELHIST  where TARGETASSETNUM='WAP-0071';
delete from ASSETLOCUSERCUST  where ASSETNUM='WAP-0071';
delete from ASSETMETER  where ASSETNUM='WAP-0071';
delete from ASSETMNTSKD  where ASSETNUM='WAP-0071';
delete from ASSETOPSKD  where ASSETNUM='WAP-0071';
delete from ASSETSPEC  where ASSETNUM='WAP-0071';
delete from ASSETSPECHIST  where ASSETNUM='WAP-0071';
delete from ASSETSTATUS  where ASSETNUM='WAP-0071';
delete from ASSETTOPOCACHE  where SOURCEASSETNUM='WAP-0071';
delete from ASSETTOPOCACHE  where TARGETASSETNUM='WAP-0071';
delete from ASSETTRANS  where ASSETNUM='WAP-0071';
delete from ASSETTRANS  where FROMPARENT='WAP-0071';
delete from ASSETTRANS  where TOPARENT='WAP-0071';
delete from ASSETWORKZONE  where ASSETNUM='WAP-0071';
delete from AUTOATTRUPDATE where ASSET='WAP-0071';
delete from CI  where ASSETNUM='WAP-0071';
delete from COLLECTDETAILS  where ASSETNUM='WAP-0071';

Tuesday, 15 June 2021

Inventory Issued Year to Date (YTD) and Reset Annually | Maximo

 

This Year to Date (YTD) attribute in Inventory application shows us the count of issuance of the item during the whole year. 

It's one of the task of Store Manager; to reset it and roll the counter one year down. 

Maximo gives us 3 counters, Last year , 2 Years ago and 3 years ago as depicts in the right image.


There is an option is the Select Action menu as below:


Sunday, 9 December 2018

Part 1. Create Meters and Attach Them to Assets in Maximo Using Rest API || IBM Maximo

We will start with create meters using rest API.

1. The first step is to create a new object structure MX-METERS and attach METERS object to it .


2. Create a new html file and copy and paste a code to it.

<html>
<body>
<form name="input" action="http://mxhost:9080/maxrest/rest/os/MX-METERS?_lid=wilson&_lpwd=wilson" method="POST">
    METERNAME                <input name="METERNAME" value="VIBRATION1" type="text"> <p/>
    DESCRIPTION                <input name="DESCRIPTION" value="Temperature" type="text"> <p/>
    METERTYPE          <input name="METERTYPE" value="CHARACTERISTIC" type="text"> <p/>
    DOMAINID               <input name="DOMAINID" value="HLM" type="text"> <p/>
    <input type="submit" value="Submit">
</form>
</body>

Tuesday, 30 August 2016

Restrict default behaviour, Auto-Population of Asset Field everytime I select Location | IBM Maximo

use a simple Automation script to restrict this behavior because sometime work orders are opened against Location only.


A small Attibute automation script (ALP):
Business object:  WORKORDER
Attribute: LOCATION
Variable: vASSETNUM bind with ASSETNUM of object WORKORDER

copy and paste below mentioned code:
if  vASSETNUM is not None:
        vASSETNUM=None