Troubleshooting
Problem
Use automation scripting to prevent users from requesting items in PENDOBS status.
Resolving The Problem
Steps to reproduce:
1. Go to System Configuration > Platform Configuration > Automation Scripts.
2. From the "Select Action" menu, select "Script with Attribute Launch Point"
3. Enter the following:
Launch point = NOTVALIDITEM
Object = MRLINE
Attribute = ITEMNUM
4. Click on the Next button:
Script = NOTVALIDITEM
Script Language = jython
5. Click the New Row button to enter a variable:
Variable = status
Variable Type = in
Binding Type = attribute
Launch Point Attribute = ITEM.STATUS
Scroll down and click on the the Next button.
Enter the following script in the Source Code (indentation must be kept):
Click on the 'Create' button:
Click Close to close the dialog box.
Click the Launch Points tab.
Ensure that the launch Point has ACTIVE checkbox selected
Change the status of this automation script to active.
Test the scenario below:
GoTo > Self Service > Desktop Requisitions > Create Requisition:
Enter a GL Debit account or work order for Charge Information.
Click Continue button.
Click New Row button:
Enter a pending obsolete item 39882 in the item field.
Tab out.
User will be presented with an error message:
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21684618