Tuesday 15 September 2020

Automation for Restriction on Increasing PO Quantity for the PO Revision but Allow the Quantity Decrease || IBM Maximo

Recently we had a requirement of Increasing the PO quantity on the PO revision but allow the quantity increase. So, We used the automation script getPreviousValue() and getCurrentValue() functions in order to resolve this requirement.

Create Database Error Message on Database Config Application.

Object :         POLINE

Attribute:      ORDERQTY

Events:          Validate

Type:             Attribute Type Launch Point

Body:

status=mbo.getString("POREV.STATUS")

qty=mbo.getMboValue("ORDERQTY")

#Get Previous Value

previousQTY = qty.getPreviousValue().asFloat()

#Get Modified Value

currQTY= qty.getCurrentValue().asFloat()

if status != "APPR":

    if currQTY > previousQTY:

        errorgroup = "po"

        errorkey = "revqty"





Umar Adil


No comments:

Post a Comment