Maximo Open Forum

 View Only
  • 1.  Maximo MOC Deferral

    Posted 04-05-2022 10:35
    Has anyone create a script that if an MOC/Deferral is Approved that the schedule date from the MOC would populated to the Originating Work Order?
    #Customizations

    ------------------------------
    Kenneth long
    tpc group
    ------------------------------


  • 2.  RE: Maximo MOC Deferral

    Posted 04-06-2022 15:24
    would this be close

    if vSTATUS == 'APPR':

       from psdi.mbo import Mbo

    from psdi.mbo import MboConstants

    woSet=mbo.getMboSet("WORKORDER")

    wo=woSet.setWhere("WONUM = vORIGREC")

    wo.setValue("SCHEDSTART",vSSTART)

    wo.setValue("SCHEDFINISH",vSCOMP)



    ------------------------------
    Kenneth long
    tpc group
    ------------------------------