Skip to Content
author's profile photo Former Member
Former Member

Job Scheduled but not relesed and finish automatically

Hi

I m submitting a report as an background job so wat happened is it goes in schedule mode and does not start immediately even i waited for an hour or so, But it does not get started

i manually have to go to SM37 and relese the job immediately then only it starts ...

Wat shd i do to start it automatically as i submit the job

i hv tried job_close FM also and pass startimmed = 'X'

but still does not work so i commented it

Pls Help me on this.......

Regerds

Rajan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2008 at 05:05 AM

    Hi rajan mehta

    JOB_OPEN

    JOB_SUBMIT

    JOB_CLOSE

    SDLSTRTDT & SDLSTRTTM

    to pass the required start date and time (respectively) of your background job.

    these are the function modules used to shedule in programmatically.

    Regards

    Deva

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Deva

      
      CALL FUNCTION 'JOB_OPEN_ADK'
          EXPORTING
            JOBNAME  = TBTCO-JOBNAME
            JOBGROUP = 'F110'
          IMPORTING
            JOBCOUNT = JOBCOUNT
          EXCEPTIONS
            OTHERS   = 1.
        IF SY-SUBRC = 1.
          MESSAGE S250.
          SET SCREEN 0.
          LEAVE SCREEN.
        ENDIF.
      
      
      SUBMIT SAPF110S AND RETURN
                        USER SY-UNAME
                        VIA  JOB JOBNAME NUMBER JOBCOUNT
                        WITH PARLAUFD = F110V-LAUFD
                        WITH PARLAUFI = F110V-LAUFI
                        WITH PARXVORL = XVORL.
      
      CALL FUNCTION 'JOB_CLOSE_ADK'
            EXPORTING
              JOBNAME      = TBTCO-JOBNAME
              JOBCOUNT     = JOBCOUNT
              STRTIMMED    = F110V-XSTRF
              TARGETSYSTEM = F110V-BHOST
            EXCEPTIONS
              OTHERS       = 1.
      

      I have done this its a standard report that i am submitting and useing the above FM but still its get schedule only i hv to start it manually from sm37....

      Thnxs & Regards

      Rajan

  • Posted on Aug 29, 2008 at 05:07 AM

    show your code for responsible for Job. how you are submitting the job.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 07:03 AM

    i hv use the other FM

    regards

    rajan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.