Hi there!
Thank you for your suggestions, I appreciate your responses. The issue persists and I will give you some more context:
I am trying to restrict users in the MXOSLABOR group from completing a Work Order unless the Logistics checkbox (MXOSINVSAP) is checked (=1).
The condition should:
- Apply only to MXOSLABOR users.
- Block the status change to COMP if:
- Materials are added in the PLANS tab (WPITEM table).
- MXOSINVSAP, which is an attribute in the WORKORDER object, is still unchecked (
=0).
- Allow completion if Logistics has approved the materials (
MXOSINVSAP=1).
- Not affect other user groups (e.g., MXOSHEADOFENG).
When applying the following conditional expression in Conditional Expression Manager, I get the error BMXAA4176E - Attribute MXOSINVSAP does not exist, as seen on the image below (while I was logged in as MXOSHEADOFENG so I could create an Work Order to escalate to MXOSLABOR for testing purposes, while trying to APPROVE the Work Order):
:user in (select USERID from GROUPUSER where GROUPNAME='MXOSLABOR')
AND EXISTS (SELECT 1 FROM WPITEM WHERE WPITEM.WONUM = :WONUM)
AND :MXOSINVSAP=0
AND :STATUS NOT IN ('COMP', 'CLOSE')

However, MXOSINVSAP does exist in the WORKORDER table and is persistent, as confirmed by:
- Running
SELECT * FROM SYSCAT.COLUMNS WHERE TABNAME = 'WORKORDER' (DB2 confirms its presence).
- Checking Database Configuration (MXOSINVSAP is listed under WORKORDER).
I have attempted different syntaxes:
- Using uppercase (
:MXOSINVSAP=0)
- Removing object reference (
WORKORDER. prefix).
Yet, Maximo still throws an error when validating the condition.
Any insights or solutions would be greatly appreciated! Thanks!
------------------------------
Raziela Avdylaj
InfoSoft Business Solutions
------------------------------