Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

I identify in a program if a system is going for a shutdown and when a syst

Former Member
0 Kudos

Dear friends,

I have created interface program , based inbound idoc value I have created customer , after some checking creating contract , contractact setup and host order creation this process running more the 2 weeks (as per our process) .

The problem is we have sap shutdown time for every week , when ever system shutdown the program exit the process, is it possible to send mail before exit the process or when the system restart the program continue the process.

How can I identify in a program if a system is going for a shutdown and when a system has come up.

How can I suspend an ABAP program and restart it on an event?

Please help me you have any idias regarding this issues.

Thanks and regards,

Jayachandran.A

3 REPLIES 3

Former Member
0 Kudos

It takes more than two weeks to process an IDOC input? Or, you have the program running continuously in background? Terrible idea, if so... Trigger the IDOC processor for each new IDOC that arrives....using a process code and a function module. You cannot possibly predict every downtime (guess you've never had a server die, a disk fail or a catastrophic power failure).... If you have something scheduled to run, or running when maintenance is to begin, your basis guys need to terminate that program, then restart after system is again operational....better yet, use the IDOC process code and function module and (rapidly and efficiently) process each new IDOC that arrives!

0 Kudos

Hi,

Thanks for your answers , My program execute every new idoc generation, but as per my process the running more then 2 weeks ( we r checking some customer details for 2 weeks ). in this case how we will restart the program or identify the system showdown .

Regards,

jayachandran.A

Clemenss
Active Contributor
0 Kudos

Hi jayachandran,

check function module TH_SERVER_LIST. If list-STATE shows something different from '01' it is probably shutting down. If you are quick, you may have the chance to send an alert message (using CL_BCS immediate feature).

Check [Soft Shutdown in SAP Application Server|http://help.sap.com/saphelp_nwce711core/helpdata/en/f7/cb8577bc244a25a994fc3f9c16ce66/frameset.htm] for more information.

Regards,

Clemens