Background in SM37

Hi all,
I am trying to create a background job in a program using FMs JOB_OPEN,JOB_SUBMIT ....  and dont want the job to be executed immediately , but the user should go to SM37 and schedule the job for the job name created by the above program.
How do i achieve this. PLs help with your ideas.
Thanks,
Stock

stock sys,
  Scheduling Background Jobs:
1.        Background jobs are scheduled by Basis administrators using transaction SM36.
2.        To run a report in a background, a job needs to be created with a step using the report name
and a variant for selection parameters. It is recommended to create a separate variant for each
scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
company codes).
3.        While defining the step, the spool parameters needs to be specified
(Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
to find the spool request. The following parameters needs to be maintained:
a.        Time of printing: set to “Send to SAP spooler Only for now”
b.        Name – abbreviated name to identify the job output
c.        Title – free form description for the report output
d.        Authorization – a value defined by Security in user profiles to allow those users to access
this spool request (authorization object  S_SPO_ACT, value SPOAUTH).  Only users with matching
authorization value in their profiles will be able to see the output.
e.        Department – set to appropriate department/functional area name. This field can be used in
a search later.
f.        Retention period – set to “Do not delete” if the report output needs to be retained for more
than 8 days. Once the archiving/document repository solution is in place the spool requests could
be automatically moved to the archive/repository. Storage Mode parameter on the same screen
could be used to immediately send the output to archive instead of creating a spool request.
Configuring user access:
1.        To access a report output created by a background job, a user must have at
least access to SP01 (Spool requests) transaction without restriction on the user
name (however by itself it will not let the user to see all spool requests). To have
that access the user must have S_ADMI_FCD authorization object in the profile with
SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
2.        To access a particular job’s output in the spool, the user must have
S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
in the Print Specifications of the job (see p. 3.d above).
3.        Levels of access to the spool (display, print once, reprint, download, etc) are
controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
BASE access (display).
On-line reports:
1.        Exactly the same configuration can be maintained for any output produced
from R/3. If a user clicks “Parameters” button on a SAP Printer selection dialog, it
allows to specify all the parameters as described in p. 3 of
“Scheduling background jobs” section. Thus any output created by an online report
can be saved and accessed by any user authorized to access that spool request
(access restriction provided by the Authorization field of the spool request
attributes, see p. 3.d of “Scheduling background jobs” section).
Access to report’s output:
1.        A user that had proper access (see Configuring user access above) can
retrieve a job/report output through transaction SP01.
2.        The selection screen can be configured by clicking “Further selection
criteria…” button (e.g. to bring “Spool request name (suffix 2)” field or hide other
fields).
3.        The following fields can be used to search for a specific output (Note that
Created By must be blank when searching for scheduled job’s outputs)
a.        Spool request name (suffix 2) – corresponds to a spool name in p. 3.b in
“Scheduling background jobs” section above).
b.        Date created – to find an output of a job that ran within a certain date range.
c.        Title – corresponds to spool Title in p. 3.c in “Scheduling background jobs”
section above).
d.        Department - corresponds to spool Department in p. 3.e in “Scheduling
background jobs” section above).
4.        Upon entering selection criteria, the user clicks the Execute button   to
retrieve the list of matching spool requests.
5.        From the spool list the user can use several function such as view the
content of a spool request, print the spool request, view attributed of the spool
request, etc. (some functions may need special authorization, see p.3 in
Configuring user access)
a.        Click the Print button   to print the spool request with the default attributes
(usually defined with the job definition). It will print it on a printer that was
specified when a job was created.
b.        Click the “Print with changed attributed” button   to print the spool request
with the different attributes (e.g. changing the printer name).
c.        Click the “Display contents” button   to preview the spool request contents. A
Print    and Download   functions are available from the preview mode.
Don't forget to reward if useful

Similar Messages

  • Front-end functions cannot be executed in the background in SM37

    Hi ,
    I have developed a BDC program for Tcode HRUSER . The program is working fine in Frontend but when Executed in Background through SM37 gives a error -:
    "Front-end functions cannot be executed in the background".
    I am not using any function like GUI_DOWNLOAD or anything like that .
    Thanks
    Nikhil Arya.

    Hi ,
    No , the program is not taking any inputs from the user .
    when i am executing the program in background mode it is just showing the messages at the end which i am writing in the program for eg:
    "creating a user for employee 2306328".
    So , only the list of messages comes at the end .
    Thanks
    Nikhil Arya.

  • ABAP report to monitor Background Jobs (SM37)

    Hi,
    I need an ABAP report to monitor Background Jobs (SM37) which can monitor following things:
    1) All jobs which got cancelled based upon the hours field specified in the customizing table.
    2)All jobs which are active till the current date.
    Hope to receive your precious response!
    Thanks
    Mehar
    Moderator message : Spec dumping not allowed, search for available information.  Thread locked.
    Edited by: Vinod Kumar on Nov 22, 2011 3:36 PM

    Hi,
    I need an ABAP report to monitor Background Jobs (SM37) which can monitor following things:
    1) All jobs which got cancelled based upon the hours field specified in the customizing table.
    2)All jobs which are active till the current date.
    Hope to receive your precious response!
    Thanks
    Mehar
    Moderator message : Spec dumping not allowed, search for available information.  Thread locked.
    Edited by: Vinod Kumar on Nov 22, 2011 3:36 PM

  • Can we schedule BDC in Background Mode - SM37

    Hi Guru,
    Can we schedule our BDC in background - SM37 . Upload file will be on Local Sustem - C drive.
    Regards
    Durgesh
    Moderator message: background/GUI problems = FAQ, please search before posting.
    locked by: Thomas Zloch on Oct 6, 2010 2:14 PM

    GUI functions (like GUI_UPLOAD) will not work in background, they need an actual Gui active.
    There are plenty of threads on  this subject, search also in the wiki for threads/guide like [Working with files |http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles] or [Communication to Presentation Server in Background Mode|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true] or [Working with FTP Server |http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server]
    (To execute a BDC in background use report RSBDCSUB.)
    Regards,
    Raymond

  • Error messege in Background Job(SM37) -  Please enter a valid date

    Hi all,
    background job which is scheduled in sm37 is giving error for dated 01.01.2009 to 30.01.2009.
    But before 31.12.2008 it was working fine
    error messege-
    This is happening in Production and developement  client.
    While running the report it showing the error messege- Please enter a valid date
    One function module is used in the report for geting fiscal year from date.
    it is showing the following error messege for perticular date range- 01.01.2009 to 30.01.2009.
    GM_GET_FISCAL_YEAR
    Error
    Fiscal year variant V3 not defined or maintained for date 01.01.2009
    Thanks
    Susanta

    Hi,Because this datein the past

  • Background job Delay In ( sec)

    Hi Experts ,
    I submitted one job in background Via SM37 here i have one question.
    Job is still in Active but it shows  Delay ( sec ) 2,181.
                                                    Duration ( Sec) 1,999
    what it means ?
    Thnx .

    Hi
    refer the below Link:
    http://help.sap.com/saphelp_nw70/helpdata/en/1d/ab3207b610e3408fff44d6b1de15e6/content.htm

  • Background Job in COGI(REM Backflush error handling)

    Hi Everyone.
    I have one question.
    Our company use REM Backflush .
    And Our REM profile setting is next.
    - Use GI Backflush at GR posting
    - Don't use report point backflush
    - Create cumulated and individual postprocessing record
    In this circumstance, we use T-code COGI to process backflush error.
    When I execute the COGI in online, There is no problem
    <b>But, After I make a job for background in sm37, When I execute background gob for COGI, There is a problem. In real, Background gob is will executed. But COGI errors remain as before.</b>

    Hi,
    Actually you should use
    Transaction          MF47
    Program              RMSERI11, for post process record.
    For post processing , manually entry like storage location and Batch number(if batch management is enabled) is required , if the post process record is created according to this error.
    And hence it is not possible to correct all the records by background job.
    Thanks
    Thamizh

  • Charms :  Background job not scheduled (normal correction) ?

    Hi,
    I am trying to run a dry cycle for normal correction but when i go to task plan in any ticket to release a request. When i schedule this job " release a request" , i dont see any job running in background in SM37. I think job is not gettin sceduled properly.
    Please help me out

    Hi,
    All right. We need to dig this one
    I guess you schedule the import by going the the tasklist
    and you get a red flag for this activity in the calendar ? do you have any error message ?
    If the messagein the task-list is not self-explanatory you can check the SLG1 log in SOLMAN. Which error message do you get there. (select the correct time frame, the log could be big)
    My guess is that some S_RFC authorisation is still missing there
    This authorisation is outside SAP_ALL and is often the cause of this kind of issue
    Tell me the error message and we will hopefully  fix this (I had the same kind of issue when I started last year)
    best regards Xavier

  • Report in background not create spool when no data found

    Hello  ,
    I created simple rapport that should run in background. When I  execute background job (sm37) I noticed that the  spool exists only
    for when the some data is found. When data is not found for any reason I do not have spool , and I need one saying
    'records passed 0'. I am not sure what I can do about it. I saw insome programs that is possible but I cannot find how it was done.  Please advice .
    Krsto

    Hi,
    You might be checking if the Final Internal table has data in it or not (May be in END-OF-SELECTION). If you are not do have check on this and simple code a write statement like below.
    IF IT_FINAL IS NOT INITIAL.
    CREATING A SPOOL.
    ELSE.
    WRITE : / 'Records Passed are 0'.
    ENDIF.
    Let me know if you need any further help on this.
    Regards,
    SRinivas

  • How to cancel the background job?

    Hi,
        I have schedule the backgroud job.How to cancel the background the job.
    When i select the job and click on stop button, iam getting message "job is not active - cancellation not possiable".How to schedule the background job.
    Regards,
    T.suresh

    goto sm37
    SM36 Define Background Job
    SM37 Background Job Overview
    SM39 Job Analysis
    U can Moniter the background Jobs through T code SM37
    In the Simple Job Selection window enter the name of the Job and User of that Job and u can check the status of that Job like “JobName, Job CreatedBy, Status, Start date, Start time Duration(sec.) Delay (sec.).

  • Setting a report as a background

    Hi ALL
             Please give me the clear steps how to set a report to run as background with variants using sm36 and sm37 (if possible with example)
    By
    Prashanth

    You can use SM36 and use the "Job Wizard" to define a background job in simple step by step procedure
    Or
    Goto SM37 and specify a job name.
    Next specify the ABAP Program Name of the report you want to execute under Job Step.
    Then click on "Extended Job Selection" and goto the Period Tab.
    There select "Only Periodic Jobs" and then specify the frequency of execution based on Months, Weeks, Days, Hours or Minutes.
    2)you can execute the report in background in SM37 , there are two options , one is as said using f9 or you can make SY-BATCH eq 'X'.
    if x run the report or exit from the program.
    so this way you can execute the report in background and check the spool in sm37
    In order to restrict the user to run it only in background , you can as well check for SY-BATCH condition.
    The other way is try to remove "execute in foreground" option from the menu and this can be done with the function module .
    Do reward points if useful and close the thread if the doubt is cleared
    data: begin of int_exc occurs 0,
    code like sy-ucomm,
    end of int_exc.
    data wf_repid .
    initialization.
    clear int_exc.
    int_exc-code = 'ONLI'.
    append int_exc.
    int_exc-code = 'PRIN'.
    append int_exc.
    move: sy-repid to wf_repid .
    call function 'RS_SET_SELSCREEN_STATUS'
    exporting
    p_status = '%_00'
    p_program = 'wf_repid'
    tables
    p_exclude = int_exc
    Hope this helps,

  • Merge Joblogs

    I have a program A in which i call Program B in background and i can fetch Job B's joblog and is displayed in foregournd, but when i run program A in background in SM37 i can see Job A's log and not of Job B.
    How can i replace Job A's joblog by JOb A's log in SM37???

    Hi,
      I hope the below link can help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/096fb5543b11d1898e0000e8322d00/frameset.htm
    Thanks,
    Khushbu.

  • Abap Dump Syntax_Error

    Hi , Gurus,
    I am configuring the EWA, i have configured finally when i try to schdule the service data processing, it's scheduling in background,
    in SM37 if i see that job status, job is cancelling and generating the abap dump, please help me
    here the dump of SYNTAX _ERROR
    RDSVASAEW_DBMSS____________060
    Runtime Errors         SYNTAX_ERROR
    Date and Time          22.11.2008 15:52:13
    Short text
         Syntax error in program "RDSVASAEW_DBMSS____________060 ".
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLDSVAS_PROC" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         The following syntax error occurred in program "RDSVASAEW_DBMSS____________060
          " in include "RDSVASAEW_DBMSS____________060 " in
         line 47:
         "INCLUDE report "/1CAGTF/IF_LOGFUNC_000208" not found."
         The include has been created and last changed by:
         Created by: "SAP "
         Last changed by: "SAP "
    please help me how to get the reports
    Cheers

    Hi Gopal,
    This is a well known issue.
    Follow the instructions of
    [SAP Note  727998 "Complete Replacement of Service Definitions for SDCC/SDCCN"|http://service.sap.com/sap/support/notes/727998 ]
    Best regards,
    Ruediger

  • Regarding scheduling sm36

    Hi all abapers,
    Could u let me know how to schedule a abap perogram in background in SM37.
    Pleas assist me step by step.
    <b>Have ur points.</b>
    Regards,
    [email protected]

    Hi Pradeep this is the link
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm</a>
    Sourabh Verma

  • How to export "tab delimited" format via local file

    hi experts
    i executed a query (bseg-bkpf) but in background.
    in sm37 i viewed my report
    but i coudnt get this report in alv format. is there any option for get this report ( backgrond run) in alv format?

    query the data in se16n and then export to excel

Maybe you are looking for

  • How can I delete one iTunes account

    for stupid reasons I have three Apple ID's and iTunes accounts. I want to keep just one. Reason is that one of the old accounts keeps popping up when I want to update app's on my iPhone. This account does not work, it keeps asking questions about cre

  • Precalculate and Save Workbook in a client network place

    Hi gurus,    My customer wants to precalculate and save it in his network place. I'm doing the precalculation with Broadcaster and this has to send it with email. My question is if there is a way to save (automatically) the workbook in the network pl

  • Forward button not appearing in the workflow inbox

    Hi All, We have an issue where a user says that the forward button is not appearing in the workflow inbox . This is happening only for one user. Is there an way through which we can add the forward button? Regards Archana

  • ICloud registration frustration ...

    Trying to create a new iCloud account for/with my daughter and her iPod Touch. When I try to create a new account I get a message telling me an account already exists for that email. So I request the Forgot Password email to be sent. The site confirm

  • Solaris 10 U6 SPARC - DHCP Jumpstart Issues

    Got working DHCP server until U6 image has been put in place. Not sure if some thing got changed as far as 'macros' are concerned. Using DHCP for network configuration information. Reading ZFS config: done. Setting up Java. Please wait... Serial cons