Monday, 24 December 2012

PeopleSoft - App Engine - Pending Process Error

Recently while running a custom made Application Engine process we faced the following error:

"A pending process was found for the current Operator id, Run Control id, and Application Engine Program.  This process either is running now or has abended.  Please restart the pending process if it has abended, and allow it to run to completion, before submitting a new process request."

To resolve the issue run the following query:

delete from ps_aeruncontrol where oprid like 'OPRID_RUNNING_THAT_PROCESS'

Warning: This query might mess up the data of processes that are already running so please proceed with caution.

Tuesday, 18 December 2012

PeopleSoft - How to disable plus/minus button on a scroll in PeopleCode?

Use the following code:

&Level0_Row = GetLevel0()(1);
&VAR = &Level0_Row.GetRowset(Scroll.*Your Scroll Name or the main record of the scroll comes here*);

&VAR.InsertEnabled = False;
&VAR.DeleteEnabled = False;