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.

Setup

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

  2. Click on the 'Name' column to edit an existing schedule, or create a new schedule by clicking on the New Mrp Schedule button.

  3. Edit (or Enter) each field as required 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 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. Navigate to SetupBuild > Develop > Apex Classes

  2. Click on the Schedule Apex button.

  3. Specify 'Rootstock MRP Schedule' as the Job Name - if scheduling in a multi Division environment - add the Division name to the end of the Job Name i.e. Rootstock MRP Schedule - Division1.

  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.

  • If a schedule needs to be changed, it should be deleted and replaced, to prevent issues with the existing scheduled apex job.

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