Skip to Content
avatar image
Former Member

Schedule a Job

Hi,

I have followed the following bloghttps://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1515">blog> and inside the run method I have written a code which accesses user data and calls a Remote FM using JCA.

The same code works when I execute in Abstract portal component.

I have scheduled the job but the FM I wanted to call is not getting triggered at all.

Can some one give me some idea of where should I look to solve this problem.

Regards,

Nagaraju Donikena

Message was edited by:

Nagaraju Donikena

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 09, 2007 at 05:20 AM

    Hi

    Did you select any system ID in <b>CM Systems</b> property while scheduling the job?

    If not, trty with this option.

    Regards,

    Yoga

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      You will want to have a look at the Logging" target="_blank">http://help.sap.com/saphelp_nw04s/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm">Logging and Tracing API.

      To get started, you'll want to have a static variable in your scheduler task:

      static Location _loc = Location.getLocation(<classname>.class);
      

      and then you can make calls in individual methods like this:

      _loc.debugT("It's running!");
      

      In order for this method to work, you'll have to make sure that the location for the class in question is set to output for the "Debug" level.

      So if your Java class is "com.acme.example.MyClass", then you'll want to create a new location in Visual Administrator's Log Configurator with the same name (or any "parent" of this name, like "com.acme") and then make sure the severity is set to "Debug" to see the messages.

      Also, there used to be an issue with scheduler tasks where it was necessary to browse down through the entire configuration tree in the KM config iView and click on your task to get the KM runtime to load the task. This was in older versions.

      Do you see any errors in your logs?

  • avatar image
    Former Member
    Oct 12, 2007 at 10:25 AM

    You have to provide the key for the schedular as well... which is not mentioned in the blog. The key is provided in the application in the java file. In java file you can find the text /insert key here/ please replace this with the any value.

    Thanks,

    Anish

    Add comment
    10|10000 characters needed characters exceeded