Scheduling a job in BI Publisher

Hi All,
Is there any configuration file in BI Publisher which I can use to schedule a job. if not can insert the scheduled job directly into database. I noticed that when I schedule a job it is inserted into QRTZ_JOB_DETAILS and also goes to XMLP_SCHED_JOB and XMLP_SCHED_SUBSCRIPTION
table. If I can directly update database, do I need to update the other two tables also or it is done through trigger ?
If I can update databse directly, what value is stored in the field JOB_DATA of the table 'QRTZ_JOB_DETAILS'.
I have another issue with scheduling as below:
I do not see the table 'QRTZ_JOB_LISTENERS' is populated when i schedule a job. What is the reason of this? Am I missing any configuration?
Thanks and Regards
Angshuman

Hi,
Any one can help me on this please?
Angshuman

Similar Messages

  • Scheduling a job with multiple output formats.

    Urgent!!
    Basically while scheduling a job in BI Publisher we specify an output format. It can be PDF, CSV, HTML or so… Is there a way to specify more than one output format while scheduling a job.
    Thanks in advance.
    Ashok

    you have to re-publish them.
    for a run, you can have only one output .

  • Error while scheduling the report in bi publisher

    oracle.apps.xdo.servlet.scheduler.ProcessingException: Error occurred while scheduling the job.
         at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.getDateObject(SchedulerServlet.java:2202)
         at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.scheduleJob(SchedulerServlet.java:1394)
         at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.doPost(SchedulerServlet.java:289)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:80)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Hi,
    I am newly using BI publisher . I am using 10.1.3.4.0 . I am just trying to create a report in test name. that is the first step to create a report where i am getting error. I am using default RPD paint , where all the user and Groups are defined .

  • Not able to create Report Job in BI Publisher

    Hi,
    I have been struggling to create a new Report Job under New/Published Reporting/Report Job. Whenever I click on new report job its coming up with blank blue screen but I can able to create new data models and reports under same new/Published Reporting.
    I have checked the nqschedularlog, but couldnt find what is causing to the problem, below is the nqschedular log. Please share have any ideas.
    [2012-10-03T06:02:32.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: ] [tid: a8aef810] Scheduler service stopped.
    [2012-10-03T06:02:32.000+00:00] [OracleBISchedulerComponent] [ERROR:1] [] [] [ecid: ] [tid: 4157f940] [nQSError: 46066] Operation cancelled.
    [2012-10-03T06:02:32.000+00:00] [OracleBISchedulerComponent] [ERROR:1] [] [] [ecid: ] [tid: 42392940] [nQSError: 46066] Operation cancelled.
    [2012-10-03T06:02:32.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: ] [tid: a8aef810] [68015] Scheduler service stopped.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\NumGlobalRetries not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\MinGlobalSleepSecs not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\MaxGlobalSleepSecs not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\NumRequestRetries not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\MinRequestSleepSecs not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\MaxRequestSleepSecs not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\NumDeliveryRetries not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\MinDeliverySleepSecs not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\MaxDeliverySleepSecs not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\Debug not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\KeepErrorLogFiles not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\LogMailContent not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\MaxRowsTimesColumns not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\Generate7BitPlainText not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value iBots\ForceUTF8 not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value Workflow\Server not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value Workflow\System not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value Workflow\Service not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value Mail\SmtpCaCertificateFile not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value Mail\SmtpCaCertificateDirectory not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [67004] Configuration value Mail\SmtpCipherList not set.
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] Verifying Scheduler's backend database configuration [[
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 409b7940] [16020] Metadata Database Type: Oracle 11g [[
    Data Source Name: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=cfsd-scan.corporate.ge.com)(PORT=1525)))(CONNECT_DATA=(SERVICE_NAME=rdcdwd.corporate.ge.com)))
    Data Source Type: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64b
    [2012-10-03T06:11:09.000+00:00] [OracleBISchedulerComponent] [ERROR:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 409b7940] [nQSError: 46066] Operation cancelled. [[
    PRIMARY_POOL RetrieveColumnInfo from table S_NQ_INSTANCE Exchange
    [2012-10-03T06:11:10.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [68013] Scheduler service started.
    [2012-10-03T06:11:10.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] Scheduler service started.
    [2012-10-03T06:11:10.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 17f45810] [71076] Oracle BI Scheduler cihcisdobi753:9705 has been changed to an Inactive state.
    [2012-10-03T06:11:13.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 404a9940] [43071] A connection with Cluster Controller cihcisdobi753.corporate.ge.com:9706 was established.
    [2012-10-03T06:11:13.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJRXilE3r2hD1Bp2gj0006N^000000] [tid: 404a9940] [71075] Oracle BI Scheduler cihcisdobi753:9705 has been changed to an Active state.
    [2012-10-03T06:14:31.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: ] [tid: 17f45810] Scheduler service stopped.
    [2012-10-03T06:14:31.000+00:00] [OracleBISchedulerComponent] [ERROR:1] [] [] [ecid: ] [tid: 41b05940] [nQSError: 46066] Operation cancelled.
    [2012-10-03T06:14:31.000+00:00] [OracleBISchedulerComponent] [ERROR:1] [] [] [ecid: ] [tid: 404a9940] [nQSError: 46066] Operation cancelled.
    [2012-10-03T06:14:32.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: ] [tid: 17f45810] [68015] Scheduler service stopped.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\NumGlobalRetries not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\MinGlobalSleepSecs not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\MaxGlobalSleepSecs not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\NumRequestRetries not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\MinRequestSleepSecs not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\MaxRequestSleepSecs not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\NumDeliveryRetries not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\MinDeliverySleepSecs not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\MaxDeliverySleepSecs not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\Debug not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\KeepErrorLogFiles not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\LogMailContent not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\MaxRowsTimesColumns not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\Generate7BitPlainText not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value iBots\ForceUTF8 not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value Workflow\Server not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value Workflow\System not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value Workflow\Service not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value Mail\SmtpCaCertificateFile not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value Mail\SmtpCaCertificateDirectory not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [WARNING:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [67004] Configuration value Mail\SmtpCipherList not set.
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] Verifying Scheduler's backend database configuration [[
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: 404ad940] [16020] Metadata Database Type: Oracle 11g [[
    Data Source Name: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=cfsd-scan.corporate.ge.com)(PORT=1525)))(CONNECT_DATA=(SERVICE_NAME=rdcdwd.corporate.ge.com)))
    Data Source Type: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64b
    [2012-10-03T06:15:21.000+00:00] [OracleBISchedulerComponent] [ERROR:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: 404ad940] [nQSError: 46066] Operation cancelled. [[
    PRIMARY_POOL RetrieveColumnInfo from table S_NQ_INSTANCE Exchange
    [2012-10-03T06:15:22.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [68013] Scheduler service started.
    [2012-10-03T06:15:22.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] Scheduler service started.
    [2012-10-03T06:15:22.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: a5b8f810] [71076] Oracle BI Scheduler cihcisdobi753:9705 has been changed to an Inactive state.
    [2012-10-03T06:15:42.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: 414e0940] [43071] A connection with Cluster Controller cihcisdobi753.corporate.ge.com:9706 was established.
    [2012-10-03T06:15:42.000+00:00] [OracleBISchedulerComponent] [NOTIFICATION:1] [] [] [ecid: 004mmJeYmo03r2hD1Bp2gj0006fR000000] [tid: 414e0940] [71075] Oracle BI Scheduler cihcisdobi753:9705 has been changed to an Active state.

    Hi,
    Can anyone please share your views, if u have faced similar kind of issue.
    Regards

  • How to schedule a job in another system.

    Hi,
    Now i have an ABAP program, which run in system ABC, client 001. i want to schedule a job in the program, with the function modules JOB_OPEN, JOB_SUBMIT, and JOB_CLOSE. But this job should run in ABC/002.
    How to write code?
    Who can help me on the requirement, or provide me another new solution except event trigger?
    Thanks & Best Regards,
    Johnney

    Here is the code. It works fine..
    FUNCTION Z_F_TRIGGER_REPORT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_PROG) TYPE  D010SINF-PROG
    *"     VALUE(I_VARIANT) TYPE  VARIS-VARIANT
    *"     VALUE(I_MODE) TYPE  CHAR01
    *"  EXPORTING
    *"     VALUE(E_SUBRC) TYPE  SYST-SUBRC
    *"     VALUE(E_MSG) TYPE  CHAR80
    Functio ID :  Z_F_TRIGGER_REPORT
    TITLE      :  Report Trigger Tool
    Create Date:  15.03.2004
    Author     :  Denis Vieira
    Ownership : For the exclusive use of the Procter & Gamble Company
    Description:
    The purpose of this function module is to trigger programs
    requested remotely.
    AUTHORIZATION CHECKS
    OBJECT               AUTHORITY FIELDS         ABAP FIELDS
                     |                       |
    CHANGE HISTORY                                                      *
      DATE      |  Name  | Description                       | Reference *
    29.Jun.2006 | BA4513 | Unicode conversion and upgrade    | SPK290606
                |        | to My SAP ERP                     |
    **eject.
    Check if selected program exists in the destination file
      SELECT SINGLE  SUBC
             FROM    D010SINF
             INTO    D010SINF-SUBC
             WHERE   PROG    EQ  I_PROG
             AND     R3STATE EQ  C_A.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                                               TO E_SUBRC.
        MOVE 'Report does not exist in destination system'(M01) TO E_MSG.
        EXIT.
      ENDIF.
    Check if program request is an executable program
      IF D010SINF-SUBC NE C_1.
        MOVE  C_2                                               TO E_SUBRC.
        MOVE 'Report is not an executable program'(M02)         TO E_MSG.
        EXIT.
      ENDIF.
    Check if selected variant exists in the destination file
      SELECT COUNT( * )
           FROM  VARIS
           INTO  W_COUNT
           WHERE REPORT  EQ I_PROG
           AND   VARIANT EQ I_VARIANT
           AND   DYNNR   EQ C_1000.
      IF W_COUNT EQ C_0.
        MOVE  C_2                                                TO E_SUBRC.
        MOVE 'Variant does not exist in destination system'(M03) TO E_MSG.
        EXIT.
      ENDIF.
      IF I_MODE EQ C_B.
        PERFORM 0100_BACKGROUND USING     I_PROG I_VARIANT
                                CHANGING  E_MSG  E_SUBRC.
      ELSE.
        PERFORM 0200_FOREGROUND USING     I_PROG I_VARIANT
                                CHANGING  E_MSG  E_SUBRC.
      ENDIF.
    ENDFUNCTION.
    *eject
    *&      Form  0100_background
    Executes Selected program in BackGround Mode VIA JOB
    *Block commented from here SPK290606
    *FORM 0100_BACKGROUND USING     L_PROG L_VARIANT
                        CHANGING  L_MSG  L_SUBRC.
    *Block commented till here SPK290606
    *Block added from here SPK290606
    FORM 0100_BACKGROUND USING    L_PROG    LIKE D010SINF-PROG
                                  L_VARIANT LIKE VARIS-VARIANT
                         CHANGING L_MSG     TYPE  CHAR80
                                  L_SUBRC   TYPE  SYST-SUBRC.
    *Block added till here SPK290606
      CONCATENATE C_AREA
                  C_UND
                  L_PROG
                  C_UND
                  SY-DATUM
                  C_UND
                  SY-UZEIT
                  INTO W_JOBNAME.
    Create a JOB and Get the Number for further execution
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                JOBNAME  = W_JOBNAME
           IMPORTING
                JOBCOUNT = W_JOBCOUNT.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                       TO L_SUBRC.
        MOVE 'Error opening job'(M07)   TO L_MSG.
        EXIT.
      ENDIF.
    Submit program
      SUBMIT (L_PROG)
        USING SELECTION-SET L_VARIANT
        VIA JOB W_JOBNAME NUMBER W_JOBCOUNT
        AND RETURN.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                        TO L_SUBRC.
        MOVE 'Error Submitting Job'(M06) TO L_MSG.
        EXIT.
      ENDIF.
    Closes job to start its processing
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                JOBCOUNT  = W_JOBCOUNT
                JOBNAME   = W_JOBNAME
                STRTIMMED = 'X'.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                       TO L_SUBRC.
        MOVE 'Error closing job'(M08)   TO L_MSG.
        EXIT.
      ENDIF.
      MOVE  C_0                                          TO L_SUBRC.
      MOVE 'Program Submitted in Background Mode'(M09)   TO L_MSG.
    ENDFORM.
    *eject
    *&      Form  0200_foreground
    Executes Selected program in ForeGround Mode VIA Submit
    *Block commented from here SPK290606
    *FORM 0200_FOREGROUND USING     L_PROG L_VARIANT
                        CHANGING  L_MSG  L_SUBRC.
    *Block commented till here SPK290606
    *Block added from here SPK290606
    FORM 0200_FOREGROUND USING    L_PROG    LIKE D010SINF-PROG
                                  L_VARIANT LIKE VARIS-VARIANT
                         CHANGING L_MSG     TYPE  CHAR80
                                  L_SUBRC   TYPE  SYST-SUBRC.
    *Block added till here SPK290606
      SUBMIT (L_PROG) USING SELECTION-SET L_VARIANT
             EXPORTING LIST TO MEMORY AND RETURN.
      IF SY-SUBRC EQ C_0.
        MOVE  C_0                                 TO L_SUBRC.
        MOVE 'Report submitted successfully'(M04) TO L_MSG.
      ELSE.
        MOVE  C_2                                 TO L_SUBRC.
        MOVE 'Error submitting report'(M05)       TO L_MSG.
      ENDIF.
    ENDFORM.

  • Error Code:942 While Scheduling a report in BI Publisher

    Hi All,
    I am trying to schedule one report in BI Publisher.
    After Clicking Submit Button while scheduling report,i get following error:
    Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist Error Code: 942 Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 50 WHERE SEQ_NAME = 'JOB_ID_SEQ' Query: DataModifyQuery()
    Kindly Help me in resolving this issue
    Regards
    Amrita Singh

    i know the issue,i can give quick fix, but in-order to make sure you don't get another glitch like this.
    I would recommend, you to install the scheduler in another schema or another db.
    Re-installing the scheduler schema tables will fix this.

  • Schedule Background Job :  Remove delivery Block in Sales order

    Hi Gurus,
    I have a requirement to select all sales orders as per a condition and remove delivery block at
    VA02-> Go to -> Header -> Status
    For that I have to write a program which will be run only in background and i have to schedule background job for the same.
    I have a parameter at selection - No of records
    If no of records = 500 , I have to submit 500 jobs ie one job each for each sales order for removing delivery block.
    I need to know
    1) Which function module/bapi I can use to remove delivery block at sales order header level.
        For blocked delivery the status is 'BSTK" . to remove block i need to change status to "RSTK".
    2) How to schedule a background job for my program and how to submit one job each for each sales   order.
    Regards
    Avi.

    Hi Avi,
    Would like to seek for your advice. I am facing the same scenario too which is to delete the delivery block but is deletion of the delivery block is done in the user exit MV45AFZZ. The subroutine which needs to have the extra logic of deleting the delivery block is USEREXIT_SAVE_DOCUMENT_PREPARE.
    Need your advice on how do you solve this scenario? Thanks in advance.

  • Error in Schedule Background Job for Deadline Monitoring of swu3

    While Auto Customization swu3 i am getting error message 'Output device "" not known' in 'Schedule Background Job for Deadline Monitoring'
    Please advice what could be cause of it

    the earlier problem of background job was solved by changing the  output device assigned to user wf-batch .
    regarding the transport request :
    when i was trying to execute the step : "Schedule bakgrd for missed deadlines " MANUEL it was giving me an option of SAVE AND SCHEDULE . which was creating the transport request . but when i executed it automatically it worked fine without asking a request to me ... i don't know why )-: ... probablly we can specify a different interval then the standard of three minutes and which will be transported (it's just a guess) . i have  executed it  automatically ...
    well thanks all for u r help

  • How to schedule the job to run evry Sunday at 12 P.M IST.

    Hi Experts,
    I want to schedule a job which will run evry Sunday at 12 P.M IST.
    I have written the below script.
    [code]BEGIN
      SYS.DBMS_SCHEDULER.CREATE_JOB
           job_name        => 'SERVICE_SAL_FS.SAL_MESSAGE_BUFFER_PURGE_JOB'
          ,start_date      =>  SYSTIMESTAMP
          ,repeat_interval => 'FREQ=WEEKLY; BYDAY=SUN; BYHOUR=12;BYMINUTE=0; BYSECOND=0;'
          ,end_date        =>  NULL
          ,job_class       => 'DEFAULT_JOB_CLASS'
          ,job_type        => 'STORED_PROCEDURE'
          ,job_action      => 'SERVICE_SAL_FS.SAL_MESSAGE_BUFFER_PURGE_PROC'
          ,comments        => 'Run at 12 P.M.IST every Sunday'
          ,enabled            => TRUE
    END;[/code]
    But the server in US.
    [code]SELECT sysdate from Dual;
    6/11/2013 3:58:58 AM
    --But the time in India is 02:28 PM [/code]
    How to convert the timezone to IST.
    Please help me how to schedule the job to run evry Sunday at 12 P.M IST.
    Thanks.

    Did you read DBMS_SCHEDULER docs:
      The calendaring syntax does not allow you to specify a time zone. Instead the Scheduler retrieves the time zone from the start_date argument. If jobs must follow daylight savings adjustments you must make sure that you specify a region name for the time zone of the start_date. For example specifying the start_date time zone as 'US/Eastern' in New York will make sure that daylight saving adjustments are automatically applied. If instead the time zone of the start_date is set to an absolute offset, such as '-5:00', daylight savings adjustments are not followed and your job execution will be off by an hour half of the year.
      When start_date is NULL, the Scheduler will determine the time zone for the repeat interval as follows: 
    It will check whether the session time zone is a region name. The session time zone can be set by either:
    Issuing an ALTER SESSION statement, for example:
    SQL> ALTER SESSION SET time_zone = 'Asia/Shanghai'; 
      Setting the ORA_SDTZ environment variable.
      If the session time zone is an absolute offset instead of a region name, the Scheduler will use the value of the DEFAULT_TIMEZONE Scheduler attribute. For more information, see the SET_SCHEDULER_ATTRIBUTE Procedure.
      If the DEFAULT_TIMEZONE attribute is NULL, the Scheduler will use the time zone of systimestamp when the job or window is enabled.
    SY.

  • Creating a job and scheduling a job error in OEM

    Hi, Everyone,
    I am trying to create and schedule a job thru OEM. In the the pl/sql block provide i have given my code like this
    begin
    SET SERVEROUTPUT ON;
    SPOOL C:\RFV_PROFILE_REPORT.LOG APPEND;
    SELECT TO_CHAR(SYSDATE, 'DD/MM/YY HH24:MI:SS') FROM DUAL;
    EXEC PAC_RFV_PROFILE_REPORT.CALL_ALL (200910);
    SELECT TO_CHAR(SYSDATE, 'DD/MM/YY HH24:MI:SS') FROM DUAL;
    SPOOL OFF;
    end;
    i have created the job and scheduled it but i am getting this error:
    Error # 6550
    Details ORA-06550: line 2, column 5: PL/SQL: ORA-00922: missing or invalid option ORA-06550: line 2, column 1: PL/SQL: SQL Statement ignored ORA-06550: line 3, column 7: PLS-00103: Encountered the symbol "C" when expecting one of the following: := . ( @ % ;
    could anyone pls help as this is very urgent.
    Thanks in advance

    Ah, the problem is you are confusing SQLPlus commands with PL/SQL.
    SET SERVEROUTPUT ON; -- This is a SQLPlus command, not necessary here.
    SPOOL C:\RFV_PROFILE_REPORT.LOG APPEND; -- This is a SQLPlus command, in PL/SQL to write out to a file you will need to call the UTL_FILE package to open a file for writing to. Except that the file you write to will appear on the database server, not your workstation, when the scheduled job runs.
    SELECT TO_CHAR(SYSDATE, 'DD/MM/YY HH24:MI:SS') FROM DUAL; -- In PL/SQL you need to SELECT columns INTO variables FROM tables. But in fact I guess you want to write the time to file using UTL_FILE again. However, you don't really need to do this, since scheduler will log the start time and run duration itself.
    EXEC PAC_RFV_PROFILE_REPORT.CALL_ALL (200910); -- This is the SQLPlus equivalent of the PL/SQL command:
    BEGIN
    PAC_RFV_PROFILE_REPORT.CALL_ALL (200910);
    END;
    SPOOL OFF; -- This is a SQLPlus command, not necessary here.
    So to summarise, all you really need is:
    BEGIN
    PAC_RFV_PROFILE_REPORT.CALL_ALL (200910);
    END;
    And the scheduled job will log the start time and duration in the database, which you can find here:
    SELECT * FROM USER_SCHEDULER_JOB_RUN_DETAILS

  • Scheduling background job on Logon group

    Hi All,
    We have 4  logon groups configured in SMLG, while scheduling the job  in SM36 ->Target server field i am able to see only one group and other indivdual servers not  all the Groups configured in SMLG.
    Is there any option i have to check to let all the groups configured in SLMG to diaply in  SM36 for scheduling so that i can select the Logon group. I tried giving the logon group names manually which are not listed in Target server field it's giving the error group not exist..
    Please suggest..how to make all the Groups configured in SMLG to get displayed in SM36  for scheduling jobs...
    Thanks,
    Subhash.G

    Target server field is Name of an SAP instance at which a background job should be run.  The name has the following format:  <host name>_<SAP System name>_<SAP System number>, where host name is the name of the server computer on which the instance is running, as specified in the system profile parameter SAPLOCALHOST.
    The name of each instance is specified in the system profile parameter rdisp/myname.
    Example:  hs0123_C11_55
    In programming:  As the table field EXECSERVER, shows the target instance selected by the user for running a job.  As the table field REAXSERVER, shows the SAP instance at which a job was actually run.
    Hope this is clear.
    Thank you,
    Shyam

  • Schedule background jobs which run only on Thursdays.

    Dear Friends,
    We are using ECC6.00. I have a requirement whereby a specific job (background) should be executed only on Thursdays. I searched in this forum but couldn't get anything related to my question. I tried the options present in the SM36 transactions (scheduling options).
    Is there any way of achieving my requirement.? Experts help required.
    Regards,
    M.M

    Hi Magesh,
    I am not sure if this would be the right approach. But if you are really sure that there is no way to do this using SM36 settings,
    you can schedule a job to execute daily, which would be a custom abap program.
    This program would check the day and if it is a thursday ,will schedule another job for the day(programatically).
    This can be a way around to solve this problem.
    Regards,
    Sagar

  • Schedule background job using system variant

    Dear gurus,
    We're planning to schedule background job using system variant, for example, current fiscal year and current posting period (transaction AFAB). Is it possible? So for example, for this month, "Posting Period" value will be 6, and then next month will be 7.
    Can you tell me how to do this, if I want to set up the schedule only once?
    Thanks for your help.
    Best Regards,

    done using abap

  • Schedule background job programatically

    Hi,
    I want to schedule background job programatically  .
    Also, I want to specify the scheduled start time & start date .
    Please suggest .
    Moderator message - This question has been asked and answered many times before. Please search before posting.
    Edited by: Rob Burbank on Apr 16, 2009 12:27 PM

    Hi
    Please check this link
    [http://help.sap.com/saphelp_46c/helpdata/en/fa/096ee5543b11d1898e0000e8322d00/frameset.htm]
    Thanks,
    Hari

  • Schedule background jobs at OS level.....

    Hi All,
    Scheduling Background Jobs at SAP Level is a very simple task. Is there any way to schedule background jobs at OS level? Please lemme ASAP....
    Thanks
    Rhishabh

    Hi Rhishabh,
    Actually we can not completely schedule background at OSLevel but we can trigger a background job which has alreadyscheduled by using sapevt tool syntax as follows.
    sapevt <event name> nr=<instance name> name=<host name>
    or we have tool like
    In unix you use crontab.
    We can use different job scheduling softwares like IBM TIVOLI software MAESTRO JOB SCHEDULING CONSOLE, Control M
    Regards,
    Kiran M

Maybe you are looking for