cancel
Showing results for 
Search instead for 
Did you mean: 

Windows SAP Start/Stop Scripting

Former Member
0 Kudos

Hi all,

We are working in SAP Start/Stop Scripts in Windows + SQL Platform.

We need some help from your side.We run the command to stop SAP & then SAP is stopped.If SAP is not stopped,next service stop command should not run.

How can i write in Script & also from which command for SAP Stop. I can get the RC.

Please help me on this ?

Thanks,

Richa

Edited by: Richa Saran on Sep 14, 2011 9:18 AM

Edited by: Richa Saran on Sep 14, 2011 9:18 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

naveen_kumar1
Active Participant
0 Kudos

Hi,

Please check this SAP note.

936273 sapstartsrv for all platforms

809477 startsap/stopsap for SAP WebAs 640, 700, 701, 710

I hope this helps

Regards,

Naveen.

Former Member
0 Kudos

what is the problem with startsap all and stopsap all commands?

Former Member
0 Kudos

I run the command sapcontrol -nr %erppno% -prot PIPE -function StopWait 60 10.

SAP Stopped in MMC .

My Next Command is stop SAP Services {NET STOP %servicename% (SAPSID_NO)}

I want to write the command in Script that NET STOP command will be detect or check that SAP Instance is stopped & then run Service stop command.

Please help me on this topic.