Salesforce

MRP Scheduling (Automate MRP Processing)

« Go Back
Article

Overview

MRP Processing can be automated (instead of running MRP Launch manually) by creating MRP Launch Schedules that work with the Salesforce Scheduled Job functionality (Apex Class). This function is most commonly used to launch MRP outside of business hours or to ensure MRP is run as required without end-user involvement.

User-added image  NOTE

If your MRP Scheduled Job expires, follow the steps at the end of this document to delete the existing MRP Schedule and the Scheduled Apex Job, then follow the steps below to create a new schedule.

Setup

  1. From the MRP Launch process page, click on the MRP Schedules hyperlink.

  2. Click on the New Mrp Schedule button.

  3. Enter each field as noted and save.

  • Division: Rootstock Division for which the schedule applies.

  • Plan Option: All Items or Only Reorder Point Items.

  • Project: Select a specific Project or leave it blank to run against all Projects. If the Project is not specified, then MRP is run for all projects in the specified Division. If the Project is specified, then MRP is run as a Project specific run, just as it runs from the standard MRP Launch page.

  • MRP Run Sequence: Used to specify the sequence in which the Schedule will be run, in relationship to other Schedules, when multiple schedules will exist. When the job runs at the scheduled time, it will retrieve all the MRP Schedule entries where the MRP Run Sequence > 0, and then run the MRP for each of the entries in ascending order of MRP Run Sequence. A separate MRP Launch entry is created for each entry that gets executed. To review MRP processing results, use the MRP Launch History link on the standard MRP Launch input screen.

Scheduled Job (Apex Class) Setup

Once the MRP Schedule records have been created, an Apex Class is used to call the schedule. Follow the steps below to create the Apex Class Scheduled Job.

  1. From the Salesforce Setup menu enter Apex Classes in the Quick Find box

  2. Click on the Schedule Apex button.

  3. Specify a Job Name, 'Rootstock MRP Schedule', for example. If scheduling in a multi Division environment it is recommended that you add a suffix, to indicate the Division name, to the end of the Job Name, 'Rootstock MRP Schedule - Division1', for example.

  4. Specify ScheduledMrpJob as the Apex Class.

  5. Enter the desired scheduling details - Frequency, Start and End Dates, and Preferred Start Time.

  6. Click the Save button to save the schedule.

User-added image  NOTE

  • To add schedules for additional divisions, edit an existing record, select Save & Copy, modify the appropriate fields and Save.

  • Multiple MRP runs must be scheduled at least 30 minutes apart.

  • To temporarily disable an MRP schedule, set the Status to Not Scheduled.

User-added image  NOTE

An existing schedule cannot be change, it must be deleted and replaced. It is recommended that you first delete the MRP Scheduled from the MRP Launch Page, then delete the Scheduled Apex Job from the Salesforce Setup Menu, then reschedule following this document from the beginning.

 

SEE ALSO


MRP Launch
MRP Overview
MRP Application
MRP Terminology
MRP Processing Overview and Generated Output
MRP Planning Policies and Quantities
MRP Lead Times
MRP Action Message Search
MRP Net Change
MRP Mass Firm
MRP Data Sources
 

Settings
MRP Scheduling (Automate MRP Processing)
MRP-Scheduling-Automate-MRP-Processing

Powered by