Knowledge Base > Automation Engine and Target Systems > PeopleSoft > Changes in Run Controls

Changes in Run Controls

Most processes require parameters (e.g. a period) for execution. This information can be stored in Run Controls (RUN_CONTROL_RECORDS). Processes retrieve their execution parameters from the corresponding Run Control.

Usually, a Run Control is a single databaseA database is an organized collection of data including relevant data structures. record in the PeopleSoft database. It can also comprise several data records. Unique Run-Control identification is guaranteed with the two keywords OPRID (User ID) and RUN_CNTRL_ID.

Use

AE provides the function PS_MODIFY_RUNCONTROL which can be used to modify Run Controls. Modification in this case refers to an individual data record. If several data records of Run Controls need to be maintained, make an individual PS_MODIFY_RUNCONTROL call for each modification. The AE procedure differs from online maintenance in PeopleSoft.

Examples

Example 1

A user wants to process the SQR report "Employee Turnover Analysis" and therefore creates the Run Control "myRunControl". After adding the Run Control, the parameter fields required for the report are entered and stored. The relevant fields are FROM_DATE and THRU_DATE.

AE can automate this modification by retrieving the user ID from the PeopleSoft job's Login object.

PS_MODIFY_RUNCONTROL RUNCONTROLID='myRunControl',RECORDNAME='RUN_CNTL_HR',FIELDNAME='FROM_DATE',FIELDVALUE='20050306'
PS_MODIFY_RUNCONTROL RUNCONTROLID='myRunControl',RECORDNAME='RUN_CNTL_HR',FIELDNAME='THRU_DATE',FIELDVALUE='20060306'

Example 2

The following example shows a Run Control for currency conversion. In this case, fields and values are provided in list form (currency list).

In order to change currency values, a key must also be assigned when calling PS_MODIFY_RUNCONTROL

PS_MODIFY_RUNCONTROL RUNCONTROLID='myRunControl',RECORDNAME='RUN_CNTL_CC2_EO',FIELDNAME='RATE_MULT',FIELDVALUE='100',KEYNAME(1)='CURRENCY_CD',KEYVALUE(1)='EUR'

The data of the currency list is provided in level 1. Thus, indicate the number 1 in the parameters KEYNAME(1)= and KEYVALUE(1)=.

Risks and Limitations

Keep the following recommendations in mind when changing Run Controls:

 

See also:

PS_MODIFY_RUNCONTROL