cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling a Script Run

Former Member
0 Kudos

Hi All - I was wondering if anybody knows if I can schedule an SAP script to kick-start on a specified schedule, say every Monday morning at 6 a.m. I was thinking Windows Task Scheduling through a .bat file but if there is a better way I would prefer that. Also I am not sure if this can start up SAP and does the password have to be fed in readable text. My script needs SAP and then calls Excel to save and send the files through Outlook.

Thanks for any insight.

Umur

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Anything that you can run via console can be scheduled using Cron. It was originally for UNIX, but there are many implementation of it for Windows: http://cronw.sourceforge.net/ or do a little search.

Answers (1)

Answers (1)

Former Member
0 Kudos

I use the Windows Task Scheduler to run scripts I save as vbs.

Yes, you can make the script start SAP and login. Yes, you have to write your (ID and) password in the script.

For scripts saved in a shared location you can encode the password using "Windows Script Encoder" (free to download).

It would be probably better to schedule something in SAP itself, but I don't know how to do it.