Best Practices for Task Scheduling

This topic describes the best practices to ensure successful run of scheduled tasks. The Windows Task Scheduler automatically launches Process Runner and runs the file at the scheduled time.

  • Ensure that you have a valid Process Runner license for the user/computer: On the client computer where Process Runner is installed and is to be used for scheduled run of process files, make sure to have right licensing for Process Runner on that computer.
  • Manual run of the Process Files on the computer before scheduling them:Before proceeding, run each process file manually to ensure it works correctly. When confirmed, configure the schedule to run as per your business requirements.
  • Set appropriate logon shortcut on the file scheduled for run: An autologon file is required to configure automatic logon in SAP Systems. Logon Shortcut enters the login credentials to logon to SAP.When scheduling and executing the process file using scheduler, always make sure that the process file is saved with a valid Logon Shortcut. The process file will always use this logon shortcut for execution.
  • Ensure that you have the correct Excel file path reference in Process File: It is a good reference to make sure you are working on the correct file from local or network folder. Put the entire path of the Excel file when using the file. Ensure that the Excel file is existing at the file path being passed.
  • Presence of Desktop folder to run Process Runner in Log Off Mode: When a task is scheduled to run in Logged Off Mode, please make sure that  folder named Desktop is present; else, create the folder manually at the mentioned path.
    • For 64-bit system: C: \WINDOWS\SysWOW64\config\systemprofile\Desktop
    • For 32-bit system:C: \WINDOWS\Sys32\config\systemprofile\Desktop
  • Disable SAP GUI Security prompt and enable SAP GUI for logged off mode
    • To disable all SAP GUI security prompt
      • To configure the behavior of the security module so that users do not get any security prompts, use the following registry values under the registry key.

        [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPGUI Front\SAP Frontend Server\Security]

        "DefaultAction"=0

        "SecurityLevel"=0

      • At User level:

        [HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\SAP\SAPGUI Front\SAP Frontend Server\Security]

        "DefaultAction"=0

        "SecurityLevel"=0

    • To run in  logged off mode the Process files that use the Launch SAP GUI option
      • Use the following registry values under the registry key.

        [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPGUI]

        "StartSaplogon"=0

      • At User level:

        [HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\SAP\SAPGUI]

        "StartSaplogon"=0

The above registry values are of DWORD type.

For more information about the scheduling functionality, see Scheduler.