cancel
Showing results for 
Search instead for 
Did you mean: 

[only NWA] update max runtime value of a SAP Scheduled Job

Former Member
0 Kudos

Hello,

is there a opportunity to update the max runtime of a scheduled job in NWA?

I want to increase the time to more then two hours.

Can I increae the value only for one job or is it a global value (for all jobs)? 

At other websites I have read various information about that. You can change the value in Backend using TCode SM36/SM37 but currently, my system has no abap stack, only java.

So there is the NWA only.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Sriram2009
Active Contributor
0 Kudos

Hi Denis.


is there a opportunity to update the max runtime of a scheduled job in NWA?

I want to increase the time to more then two hours.

Can I increae the value only for one job or is it a global value (for all jobs)? 

There no time limitation in SAP Background work process.

Kindly refer the SAP help portal link

Background Work Processes Explained - Background Processing - SAP Library

There is time limit in Dialog workprocess. by default set 10 min(600 sec). Parameter name - rdisp/max_wprun_time

Regards

SS

Former Member
0 Kudos

Hi,

thanks for your answer.

Really no timeout? Please refer to my other question i posted in SCN:

http://scn.sap.com/message/16758988#16758988

There I developed a Job using a Timeout with "Thread.Sleep".

Using a sleeptime of 1000 seconds (16,67 minutes), there is no error.

Using a sleeptime of 2000 seconds (33,33 minutes), there is an error.

Sriram2009
Active Contributor
0 Kudos

Hi

Is it Z Custom code program? is any error or dumps? could you share the screen shot or log?

BR

SS

Former Member
0 Kudos

It is a simple custom Job written in JAVA (IDE: NetWeaver Developer Studio, deployed as EJB/EAR) using source code:


/**

* Message-Driven Bean implementation class for: HelloJob

*

*/

@MessageDriven(activationConfig = {

        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

        @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "JobDefinition=\'HelloJob\' AND ApplicationName=\'sample.com/utils~job~hellojob~ear\'") })

public class HelloJob extends MDBJobImplementation {

    /**

     * Default constructor.

     */

    public HelloJob() {

        // TODO Auto-generated constructor stub

    }

    @Override

    public void onJob(JobContext jobContext) throws Exception {

        Logger log = jobContext.getLogger();

      

        JobParameter jp = jobContext.getJobParameter("TSleep");

      

        int time = Integer.valueOf(jp.toString());

      

        log.info("Hello Job 01 exec at " + (new Date()));

      

        Thread.sleep(time * 1000);

        log.info("Hello Job 02 exec at " + (new Date()));

    }

}

Using 2000 second the following error appears:

Answers (0)