Salesforce

Scheduled DRP

« Go Back
Article

Overview
 

The DRP Scheduled Job function facilitates automating the DRP Processing routine as opposed to triggering the DRP Processing routine manually. The scheduled Job function may be setup to process a DRP run for a specific division, in either Net Change or Full Regen mode, the same as launching the process from the standard Rootstock. 

The DRP Processing routine can be referencing large amounts of data within the Org and processing time is increased based on the number of DRP Location Replenishment Maintenance records configured. The DRP Scheduled Job function can be used to schedule DRP outside of normal operating hours to reduce latency that may be experienced whilst the DRP routine is processing.

User-added image  NOTE Setting up the DRP Scheduled Job function is technical in nature and requires System Administrator privileges.

User-added image  TIP It is recommended that the Net Change option be used to avoid potential platform performance constraints, however, both the Net Change and Full Regen modes are described in this document. Refer to the MRP / DRP Net Change article for more information on the Net Change mode.

User-added image  IMPORTANT Before executing the process for scheduling a new DRP run, any existing scheduled DRP Runs must first be deleted.


Application
 

Used to schedule the DRP Processing routine to run on a predetermined schedule as opposed to initiating a DRP Processing routine manually via the user interface.


Prerequisites

 

  • System Administrator privileges
  • Understanding of Salesforce Developer Console

  • Understanding of Salesforce Scheduled Jobs

  • Understanding of Apex Code
     

Processing

Schedule a DRP Job:

 

  • Click on the Developer Console option under the User Menu in the upper-right corner of the User Interface
  • In the Developer Console window, click on Debug then Open Execute Anonymous Window

  • In the Execute Anonymous Window (titled Enter Apex Code) - enter the example command below then click the Execute button (the example parameters in the code (bolded) need to be amended accordingly)

    • APEX Command:
      rstk.ScheduledDRP job = new rstk.ScheduledDRP(new Map<String,Object>{ 
      'divisionId' => 'a7I90000000CaRe',
      'netChangeMode' => false
      });
      System.schedule('Full Re-Gen DRP for Aus Div - 10 Past Midnight M-F', '0 10 0 ? * Mon-Fri', job);

  • Once the process is started you will receive a confirmation message

  • Close the window to exit the Developer Console.
     

User-added image  NOTE  It is suggested to copy and paste the Apex Code above when entering into the Apex Code window as the syntax must be exactly as noted
 

User-added image  NOTE  The divisionId value within the Apex Code above (bolded) is the internal record ID of the division for which you are scheduling the DRP run

 

User-added image  NOTE The System.schedule text (bolded) within the Apex Code above will be the title displayed for the process in the Scheduled Jobs list on the Salesforce Setup menu

 

User-added image  NOTE When executing the command to start the process - if a message is returned telling you that the process already exists - you must kill the existing scheduled job and start the process again


Deleting an existing DRP Scheduled Job:

 

  • Click on the Setup option under the User Menu in the upper-right corner of the User Interface
  • Browse the Setup menu to Monitor / Jobs / Scheduled Jobs

  • Click Del next to the scheduled DRP job

  • Create a new scheduled job via the process outlined in Schedule a DRP Job
     

SEE ALSO


DRP Overview
DRP Processing
DRP Location Replenishment Maintenance
Planned Location Transfer Query
Planned Location Transfer Maintenance
Planned Transfer Picklist
Transfer Request Packing Slip
MRP / DRP Net Change

Settings
Scheduled DRP
Scheduled-Distribution-Requirements-Planning

Powered by