Hi Venkatrao
I'm glad that Steven was able to give you your answer. However, I'm interested in the business case and why the PO revision number is insufficient to meet the requirement. I say this because if you revise a PO the revision number is incremented by 1, whereas for a duplicate the revision number starts at 0. So, let's agree that this actually has nothing to do with duplication.
Is the use case actually "If a PO is revised, set the XYZ to 1 on the PO from which it is being revised" In other words, PO 12345 Rev=0 status=APPR XYZ=0 from which a revision is generated. That resulting revision PO 12345 Rev=1 status=PNDREV XYZ=1 and the original PO 12345 Rev=0 status=APPR XYZ=0 or is it revision PO 12345 Rev=1 status=PNDREV XYZ=0 and the original PO 12345 Rev=0 status=APPR XYZ=1
On approving the revision, the result will be:
PO 12345 Rev = 0 status=REVISED XYZ=1
PO 12345 Rev = 1 status=REVISED XYZ=0
So, extending that by revising again:
PO 12345 Rev = 0 status=REVISED XYZ=2
PO 12345 Rev = 1 status=REVISED XYZ=1
PO 12345 Rev = 2 status=APPR XYZ=0
Then, extending that by revising again:
PO 12345 Rev = 0 status=REVISED XYZ=3
PO 12345 Rev = 1 status=REVISED XYZ=2
PO 12345 Rev = 2 status=REVISED XYZ=1
PO 12345 Rev = 3 status=APPR XYZ=0
Let's reflect back on what you said was the requirement "If PO is revised then increment the custom field(xyz) value to 1." What tiny bit is missing in this communication is if this XYZ field increment is to be done on the revision=0 PO or for each PO revision?? What is the intended value of the XYZ field to the business when there is the existing revision number?
------------------------------
Regards,
Craig Kokay
ISW
Maximo Practice Manager
eMail:
ckokay@isw.net.auPhone: +61-411-682-040
#IBMChampion2022
------------------------------