Background job not executing... pls help

I want to schedule and execute a batch job with the start date and time with another program.
In program1 im doing the below.
job_open
   getting job_count
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      no_dialog              = abap_true
    IMPORTING
      out_parameters         = ls_params
      valid                  = lv_valid
    EXCEPTIONS
      archive_info_not_found = 1
      invalid_print_params   = 2
      invalid_archive_params = 3
      OTHERS                 = 4.
  SUBMIT (c_test)                 VIA JOB  lv_jobname
                                  NUMBER  lv_jobcount
                               TO  SAP-SPOOL WITHOUT SPOOL DYNPRO
                                   SPOOL  PARAMETERS ls_params
                                   AND RETURN.
  CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
      JOBCOUNT             = lv_jobcount
      JOBNAME              = lv_jobname
      LASTSTRTDT           = p_sdate
      LASTSTRTTM           = p_stime
     targetserver         = lv_targetserver
    EXCEPTIONS
      CANT_START_IMMEDIATE = 1
      INVALID_STARTDATE    = 2
      JOBNAME_MISSING      = 3
      JOB_CLOSE_FAILED     = 4
      JOB_NOSTEPS          = 5
      JOB_NOTEX            = 6
      LOCK_FAILED          = 7
      INVALID_TARGET       = 8
      OTHERS               = 9.
  IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
in the job_closei gave start date and time, but the job is getting scheduled but not to released/cancelled status.
I want the job to happen at that given time and date,
is there anything im missing,
pls help

Rajan,
In the same documentation it says : Note:  if a user does not have the authorization to release a job, then the job is scheduled with the status planned.
Now after i run this program , and check SM37, the status is scheduled. so this tells not an authorization issue.
Also i can go and schedule on a given time from SM36.
Now after reading that i also passed the parameter JOB_WAS_RELEASED importing  it is geting blank value.
but documentation says,  it shud be X if Job is released.
any idea pls....
Niraja

Similar Messages

  • Background Job not Printing TOs immediately

    Hello experts,
    I am having an issue with printing Transfer Orders created by background job, the output requests are sent to the output controller with status '-' . It works when I manually create the TOs or if I run the RLAUTA10 program with my userID in SE38 .
    I have set the background job user default print parameters in SU3 to print immediately.
    Also in the Job step, I have set up the print parameters  to 'print immediately'
    I have assigned printer for sorce storage type & set the indicator to use the source sto type in OMLV, The printer seems to be determined correctly, I've checked the Spool request name & printer in the spool controller, only issue seems to be the print not being triggered immediately.
    Not sure, if there is some other setting that I have to make to be able to print the TOs created by the background job immediately.
    Any help would be appreciated.
    Thanks
    Kris T

    whether the printer which you assigned is configured in SAP (network printer)? or LOCL?
    printing may not happen if LOCL(background job)
    Thanks

  • I have deployed one application containing youtube video but it is not working pls help

    I have deployed one application containing youtube video but it is not working pls help Application is build using struts2 and is deployed in oracle cloud, login page works fine but the success page is not displayed please help

    Hello,
    A wild guess, given the lack of details:
    I wonder whether it would violate the http://en.wikipedia.org/wiki/Same-origin_policy ?
    This is part of the security infrastructure.
    "Stealing" content to insert it anywhere else might also violate copyrights?
    Technically, does it at least work "on premises" onto WLS 10.3.6?
    Regards
    Patrick.

  • My ipod touch 4 camera icon has disappeared and even does not open in any applications.. have restored it and its running on 4.3.5 not jailbroken pls help??

    my ipod touch 4 camera icon has disappeared and even does not open in any applications.. have restored it and its running on 4.3.5 not jailbroken pls help??
    it does not even appear in the search bar

    Is the Camera turned on in Restrictions?  Go to Settings>General>Restrictions.

  • Trigger a background job after executing tcode MMPV

    Hi All,
    I would like to trigger a background job after executing tcode MMPV. In MMPV, after closing a particular period and entering
    new period, the transaction will be saved. After saving, the background job should be triggered. How to do it?
    Regards,
    Vinod

    Depending what system you are on your best bet would be to create an enhancement point inside a form, that is called after the save has been performed, and raise an event within that form.
    Events can be used to trigger background jobs are maintained in transaction SM62.
    Cheers.

  • HT4623 I AM FACING PROBLEM AFTER UPDATING (7.0.4) MY PHONE MODEL 5C,AFTER THIS UPDATE SOME TIMES I CANT MAKE CALLS & SOME TIMES WHEN ANY BODY ELSE WANTS TO CALL ME BACK THE MESSAGE COME THAT THE USER IS NOT REACHABLE.PLS HELP

    I AM FACING PROBLEM AFTER UPDATING (7.0.4) MY PHONE MODEL 5C,AFTER THIS UPDATE SOME TIMES I CANT MAKE CALLS & SOME TIMES WHEN ANY BODY ELSE WANTS TO CALL ME BACK THE MESSAGE COME THAT THE USER IS NOT REACHABLE.PLS HELP

    I am facing the same issue! I bought 5c few days back
    and everything was fine till I updated the software 7.0.4!
    Whenever am connected to wifi am unable to make a call and if someone tries
    Calling me they get the message that my number is not
    Reachable! When I go back to 3G the calls work perfectly!!
    Please help me out since I use wifi more than my network.
    Appreciate any advise on this

  • Hi, I have installed some app to my I pad 1, It worked few days, but from tomorrow I can open any apps like calculator, Facebook ect. when touch it only vibrate does not come. pls help me

    Hi, I have installed some app to my I pad 1, It worked few days, but from lastday I can open any apps like calculator, Facebook ect. when touch it only vibrate does not come. pls help me

    It is ok now, I installed new app, then is ok

  • Why my apps are not transferring from PC to iPhone 5? When I connected to PC the icon shows when I select apps it show 'will install' but it never show on iPhone, I re installed iTunes, deleted all apps and downloaded again but its not working pls help.

    Why my apps are not transferring from PC to iPhone 5? When I connected to PC the icon shows when I select apps it show 'will install' but it never show on iPhone, I re installed iTunes, deleted all apps and downloaded again but its not working pls help.

    Next time an app update gets stuck try a reset. Press and hold both the home and power buttons for10-15 seconds till the Apple logo appears. Then release both buttons. Wait till your iPad starts on it's own. Try now. Also YouTube is still available. If you can't find it the the app store go to the bottom of the app store page and tap purchased. All your deleted apps will be listed and you can reinstall YouTube from there.

  • Iphone4 not charging, pls. help!

    iphone4 not charging, pls. help!

    I'm also having a problem with charging.  I tried to download photos to my computer (which didn't work) and now it wont charge on any charger.  My husbands phone connects to same computer and will charge on all chargers. I have tried the reset described above but it said to connect to a charger (it was plugged in).
    Please help!!! I have less than 20% charge left.  Had the exact same problem a couple of months ago with my original phone which was under warrantee.  This one is not!

  • CALL Transaction in background not working pls help URGENT

    hi i have writtin a bdc program which uses CALL TRSANCTION everything is working in foreground.
    if i schedule the program in background the call transaction does not work. any idea why?????????
    pls help its urgent

    hi
    good
    have you checked in the debug mode, if you have checked in the debug mode check wheather it is giving any error before data is displaying in the screen, if any error is displaying as a message than check that error why it is coming there.
    If no error is coming than check your flow of the bdc screen in the debug mode , there must be some prob, so that it is not working in the background.
    thanks
    mrutyun^

  • Job scheduled in background but not executed

    Dear Expert, above is section of code through which i am scheduling a program to run in background.  through this a job is created and is schedule(it show schedule using sm37) but it's not executed (generate output ).
    Edited by: shekharamit on Jul 14, 2010 1:09 PM

    See what is the status now it is showing ,
    if it is canceeled see why it got cancelled?it can be because of job closed or like.
    it can aslo be like there are more jobs in queue , so giver it as high priority .
    Try withthis
    Rajendra

  • Background job not run properly

    Hi,
    When an infopackage is triggred through process chain in BI a background job will be exeuted at R/3 to fetch data from R/3.
    But the bakground job did not execute properly hat is it did not fetch any data but ot finished.
    But when the infopackage is executed manually the background job fetches the data from R/3.
    Why the job is not fetching data when triggered through process chain.
    Please help me to sole this issue.
    Regards,
    Indhu

    Hi Induja,
    In your case, you will have to debug the background job that is activated through BI. Check if proper data is coming from BI.
    You can only debug a background job if it is created under your user id. Thus, to debug the job you first have to own it and then debug by selecting it and either typing 'JDBG' in the command field or through menus available on the top.
    Job overview transaction code - SM37.
    Hopefully the issue is in Development/Test/Quality system and not in Production.
    Hope that helps!.
    Regards,
    Saba

  • Background job not updating data for some steps of program

    We have created a custom program and submitting the standard program RPRCCC_READ_KR1025
    which is used for conversion of AMEX credit card files.
    Since this program can update data for 1 company id at a time,we have created a background job
    for that program with 10 steps and 10 variants of data related to 10 different company codes.
    when this job is executed it is not updating data for all the 10 files , sometimes it updates 5,7,etc...
    If we execute the other files which didnt update in job manually they are getting updated.
    All the files executed with that program can be seen in PRTA transaction.
    Regards,
    Gautham.
    Edit: Solved.
    Since the standard program updates the database every time with commit work
    there should be some time until the next database update,so we can use wait command
    after the submit statement which will do the trick.
    Edited by: Gautham Vangaveti on Aug 5, 2010 7:20 PM

    Hi,
    I mean B(Sub Assembly)
    Item Rollup Flag
    A No
    --B                       Yes
    ---B1 No
    ---B2 No
    ---B3 No
    --C                      Yes
    In this case when we run cost rollup by giving item A, Oracle will consider below structure.
    A
    --C
    Regards,
    Sarvottam.

  • Background job not deleted

    Hi Experts,
    i want delete the   "SM:SELFDIAGNOSIS" background job on solution manager system .
    and i have deleted,  go to next date and then delete the released job but after one day again its showing in released.
    so how i can delete it properly .
    Regards
    jai kr.

    Shiv,
    First check the frequency of this job from SM37
    Go to  SM37 -> give your job name ->and select all the options like
    delete  the entries in start date and end date fileds. then execute.
    If you find  job in Released state  ,simply go to  menu Job -> click on release to schedule.
    Now this job will in Schedule and won't run untill you release it.
    Deleting the jobs is not good idea ,simply you can suspend it.
    Regards,
    Srinivas Chapa.

  • Background job not generating spool

    Hi all,
          I am calling a report from another report. The called report will display the final output list.
    Here, the called report will be executed in background.
    here the job is completing but the spool is not generated.

    Hi,
    It seems that the final internal table which has the output data is empty & hence write statements are not executed ( assuming all the write statements are inside a loop).
    Place one write statement outside loop like
    write :/ 'Following is the result :'.
    & check whether spool is generated. If yes, then the problem is of empty internal table.
    You can select the job in SM37 & type JDBG in command prompt to debug a background job.
    Debug & check the issue.
    Best regards,
    Prashant

Maybe you are looking for

  • ITunes Match on my iPhone shows songs that are not in iTunes on my Mac and PC.

    Yes, I know that deleting songs from iTunes does not necessarily mean they are deleted from iTunes Match, too. Not checking the box when deleting songs is definitely not why this is occurring, so hear me out. My Mac hosts my main iTunes library. What

  • Kt6 Delta no longer boots

    My Kt6 Delta LSR no longer boots. The fans are whirring, the D-Bracket leds are frozen on 4 red lights indicating CPU damaged or installed improperly. I built the box and, after a few initial problems it ran fine for several days. Then one morning I

  • Win 8.1. Get ads that I can't get rid of when trying to go to another site.

    Win 8.1. When I try to go to a site, keep getting ads and warnings that I need to update programs, can't delete them. How do I keep these from coming up?

  • Urgent help needed as is duty free purchase cannot find my library

    I purchased 16Gb Touch and downloaded on wi fi ITunes account 64 songs last night - today Apple told me to update to latest version which I did and then said there was a a problem with Ipod and to restore which I did reluctantly - I now have no music

  • BPM error on syncronous service call

    Hi All, I am working on a  file to SOAP to file scenario using BPM. I am calling a web service syncronously in BPM. I have followed my scenario referring below two links: /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit Both way