Run Process Files
This chapter explains how to run a Process file and schedule a task to run in logged-off mode.
Run a Process file
You can run a Process file according to the configurations made in CmdParameter text file.
To run Process file using Process Runner CMD,
- At the command prompt, go to the C:\ drive and type cd "<name_of_setup_folder>". For example,
cd "Process Runner CMD"
- Press Enter.
- Type "ProRCmd" "<path_of_CmdParameter.txt>" and press Enter. The Process file you have mentioned in the
CmdParameter.txtfile is run and the log is generated atC:\Process Runner CMD\CMD Documents\Other. - If Data type 3, Data type 4, and Data type 5 are used and you want to override the Excel file path entered in the
CmdParameter.txtfile, run the following command.“ProRCmd.exe” “<CmdParameter.txt file path>” <Datafile=“[.xlsx or .csv file path]"
For example,
“C:\Process Runner Cmd” “ProRCmd.exe” “C:\Process Runner Cmd\Sample\FBL1N Sample\CmdParameter.txt” Datafile=“C:\Users\testuser\Documents\New_Microsoft_Excel_Worksheet.xlsx”
-
To override the Run Type entered in the
CmdParameter.txtfile, run the following command.“ProRCmd.exe” “<CmdParameter.txt file path>” <RunType=2>
For example,
“C:\Process Runner Cmd” "ProRCmd.exe” “C:\Process Runner Cmd\Sample\FBL1N Sample\CmdParameter.txt” RunType=2
Note: The Datafile and RunType parameters will skip the existing file path entered in CmdParameter.txt and override it with the one entered in the command only for the current run. The existing file path at CmdParameter.txt will not be replaced physically with the new one; these type of parameters are used only when data file must be changed repeatedly for running a Process file.
Schedule Task to Run in Logged Off Mode
You can schedule a task to run a Process file in logged off mode. This service allows you to perform automated tasks like running a Process file at a convenient time for you or when you are out of office.
To run a Process file in offline mode,
- An auto-logon file is required to configure automatic logon to SAP Systems. Logon Shortcut provides authenticated access to sign in to SAP when scheduling and running Process file using scheduler. However, you can also run a Processs file in logged off mode by providing LogonShortcutPath parameter in the ProRSDKSettings.txt file. For information about how to Create Logon Shortcut, see the Process Runner help.
- Before proceeding towards scheduling a task, run the Process file manually using Process Runner to make sure that it works correctly. Once this is confirmed, schedule the task according to your business requirements.
- When a task is scheduled to run in Logged Off mode, make sure that the SAP GUI Security settings is disabled in Autofix Tool. For more information, see Use AutoFix Tool.