Assign Server to Background Job

Hi all,
I need a help in  Background Job,
we got two servers i need to  assigning one of the server to my background job running through report using 1)JOB_OPEN 2) Submit Report and 3) JOB_CLOSE.
Thank you all in Advance,
Jagan.

You can do this easily via SM36 by filling the Exec. Target while creating the Job.. But if you would like to set the SERVER name vai your Program.... try this
after the function call JOB_OPEN & before the SUBMIT statement, update the field EXECSERVER  of the TBTCS dbTable with the server name. ( SInce it is your own Job & all you are doing is trying to force it to a server, a direct db UPDATE should not be an issue)
~Suresh

Similar Messages

  • System exception while deleting the file from app server in background job

    Hi All,
    I have a issue while the deleting the file from application server.
    I am using the statement DELETE DATASET in my program to delete the file from app server.
    I am able to delete the file from the app server when i run the program from app server.
    When i run the same report from background job i am getting the message called System exception.
    Is there any secuirity which i need to get the issue.
    Thank You,
    Taragini

    Hi All,
    I get all the authorization sto delete the file from application serever.
    Thing is i am able to run the program sucessfully in foreground but not in the background .
    It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
    Can anybody please give me suggestion
    Thanks,
    Taragini

  • Assigning Jobclass to Background Jobs

    Dear BW Gurus,
                           Regards.We got an situation : We schedule an Infopackage as Background Job  (JOB A),with default Jobclass-> C.Hence the background job runs with Jobclass>C in the Source system(SAP R/3) aswell.Now when the Endusers run programs in the Background(Source system(SAP R/3 )  (JOB B),they assign Jobclass-->A(High Priority),Hence the sytem allocates the Workprocess id (assigned to our JOB A) to the Background Job(JOB B) with High priority,and finally our Background job is still "ACTIVE",but without no WorkProcess id assigned to it !!!(For more than 30 hours!!!).This has happened earlier aswell and it would be really helpful if some one could throw light on this issue.Should we
    1) Leave the Job undisturbed (would the system allocate anyother WP to the job??)
    2) Kill the Background job ??
    Thanks
    Shiv

    Dear BW Gurus,
                           Regards.We got an situation : We schedule an Infopackage as Background Job  (JOB A),with default Jobclass-> C.Hence the background job runs with Jobclass>C in the Source system(SAP R/3) aswell.Now when the Endusers run programs in the Background(Source system(SAP R/3 )  (JOB B),they assign Jobclass-->A(High Priority),Hence the sytem allocates the Workprocess id (assigned to our JOB A) to the Background Job(JOB B) with High priority,and finally our Background job is still "ACTIVE",but without no WorkProcess id assigned to it !!!(For more than 30 hours!!!).This has happened earlier aswell and it would be really helpful if some one could throw light on this issue.Should we
    1) Leave the Job undisturbed (would the system allocate anyother WP to the job??)
    2) Kill the Background job ??
    Thanks
    Shiv

  • Difference between exec. target and executing server in background jobs

    Dear experts,
    Please let me know
    Difference between exec. target and executing server in background jobs

    Dear Joe,
    Sorry for this
    I am closing this threaf now

  • Retrieving records to presentation server after Background Job.

    Hi Friends,
    Here i am working on a data updation program.I am passing the data in an excel and after updation all the error records are populating into another Excel file whose path also i am providing in the selection scree. This error excel file i am storing in the presentation server(user workstation).
    Its working fine in foreground and creating error file in case of errors successfully.Initially i did not have a background execution option as its communicating presentation server.
    but now user wants it to run in background, so i have given a background radiobutton on selecting this it will SUBMIT the same program again as a job.
    This also working fine but as a batch job could not create the error log file in the front end.
    So now i am thnking of a logic :    I ll write the error log records in the Application server.  Then i ll check whether the file has written completely in the application server by giving some delay (in 15 seconds it will check the appl server if the dataset has been created successfully).
    Eg ;
    Code for delay setting that i would like to know from you .
    OPEN DATASET ERRLOG........
    If sy-subrc EQ 0.
    Loop.
    Put the values into an internal table.
    ENDLOOP.
    Using GUI_DOWNLOAD download the content of int table to Excel file.
    As of now i am having this logic to go further.
    Already started R&D .
    Would like to know from you how far this will be feasible and the way to set the delay to read the Error from appl server?
    If you have any other idea please let me know.
    Ask me on any clariffication on this issue.
    Thanks & Regards,
    SAM.

    Hi!
    You can't see a presentation server while your program is running in the background. It is, because in this case there is no presentation, no user-display for the results. So all GUI related functions are unreachable, downloading also.
    You might try to send the log, in email, or like a sapoffice mail.
    You might try to set up a directory on a shared file server, and put the file there into user specified directories.
    But forget downloading into presentation server.
    Regards
    Tamá

  • Restrict the background jobs to perticular server

    Hi
    I have ECC6 with 3 app servers. To balance the load i would like the users to schedule their background jobs on a perticular server only. Is it possible?
    If most of the users using sap for reports only, in this case how can i balance the load?
    UR suggestions are highly appreciable.

    Go to SM37
    Search for all released jobs.
    Select the job you want to move to other server.
    Rightclick on the job and select option "Move to different Server"
    Assign server to your job.
    Note: There must be least one BG process available on the server.
    Regards,
    Yogesh
    Edited by: Yogesh Patel on Jun 14, 2011 9:10 AM

  • Is there any FM to generate spool request for error log of a background job

    Hi,
        I am going to create a program to create deliveries and do PGI. This program will be assigned to periodic background job.Now whatever  errors are generated in program i have to send the error log to spool request.Is there any FM for generating spool request with this error log  or how can this be done? Kindly provide sample code if possible.
    Thanks.
    Nimish Dongare.

    Hi Nimish,
    How are you doing, This is Shreekant working as ABAP developer, I sow your post in sdn forum, I have a similar requirement like I am changing the delivery taking some data from a flat file which is coming from other system and do PGI. If any error occurs during this process I need to capture it and present it as a report or create log file.. whichever is easier.
    Please can u help me how did u achieved this functionality for your requirement?.. pls. can u share some details.
    If u don mind, can u give me ur email id to communicate.
    Thanks,
    Shreekant

  • Background job monitoring - alert from second failure

    Hi All,
    There is a need for configure monitoring for background jobs.
    I have been enabled background job monitoring via SE16 and background job is visible in RZ20.
    The problem is that we want to have a critical alert from second failure of certain job, not from first failure.
    Seems that I need to create a new method and assigne it to background job in RZ20?
    Is there a documentation how to create own method? or is there a another way to implement this monitor?
    Best Regards,
    Jani Mäki

    Hi,
    Do you want to monitor second failure on a day?
    Do you know the schedule of second job run?
    If yes to these questions, you can try to monitor using BPM in solution manager.
    Feel Free to revert back.
    -=-Ragu

  • Performance issues-assigning background jobs to a designated server

    Hello all, we have been having peformance issues in our production enviorment and were entertaining the idea of running all our our background jobs on a separate/designated server.  Has anyone had any experience with this and if so any insight on how you did this would be appreciated?  Thanks.

    I suppose your performance issues are then for the online users? In general, the best option should be to distribute the workload as much as possible, to avoid performance problems for online users as well as background jobs.
    I agree with Atish, this is something for Basis people. Ask them (hopefully that's not you to look at their application server settings. I know where I used to work before they had set up the system so only a certain part of the dialog processes could be occupied by background jobs. I am sure SAP has a lot of parameters that can be tweaked, possibly also with time-dependent settings?

  • Has anyone put the RAR Background Job Spool on a different server?

    We are on GRC 5.3 SP 13.
    Has anyone put the RAR Background Job Spool File Location (assigned in the Miscellaneous configuration section) on a server different than the one that the GRC Frontend/Java system is on?
    I currently have it assigned to a folder on the GRC server, but it is running out of space.  I am having a problem getting the users to delete old reports as they say they need to keep them for internal Audit controls.  They are also resisting downloading the reports (more work for them).  I have been told that we cannot easily increase the file space on the GRC server (would basically have to purchase more storage and rebuild the server).
    I was thinking about moving the folder over to our virtual storage area, were file size can be more easily expanded.  I haven't found any documentation that says the folder has to be on the GRC server, but I also haven't seen any examples of where it has been put on a different server.
    Has anyone done this, and did you run into any problems?
    Thanks.

    Hello Bob,
    I got your point. Probably there's no recommendation about this, because the recomended practise is to delete or archive the spools as suggested in note : Note 1511027 - Periodic clean up of spool files
    If you have a requirement to keep these files "online", I think the option to save them to a network drive is fine. I haven't tried it for this specific scenario. You have to take into account:
    - Specific user to connect to FileServer
    - Availability of the FileServer. If the FS is down, the RAR job will cancel.
    - Performance. I mean, write to a local disk is not the same to write to a network drive. This point is very difficult to measure,   because it depends on a lot of things like network speed, server load, etc.
    Maybe someone has already implemented it and gives you more hints.
    Cheers,
    Diego.

  • Background job output to Presentation server

    Hi,
    I am executing report as Background job.
    after job gets completed output should be in excel format in front end or presentation server.
    Regards
    Naga

    Hi,
    We cannot perform any action on the presentation server in a program that is being execcuted in background. What you can do is to write the output on to the app server, and after wards move the file on to the Pres. server using CG3Y transaction.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • How to select server in which background job should run

    Hi,
    I want to run my program as background job. I want the user to select the server, in which background job should be run, in the selection screen of my program. When it is sheduled in background the job should run in the selected server.
    How to do this?
    Regards,
    Sriram

    Hi,
    please write the code like as below.
    DATA : D_GROUP like TBTCJOB-JOBGROUP.
    use the function moulde JOB_OPEN.
      D_JOBNAME = SY-REPID.
      D_GROUP- BTCSYSREAX =  " pass the target server name Here
         CALL FUNCTION 'JOB_OPEN'
            EXPORTING
                 JOBNAME          = D_JOBNAME
                 JOBGROUP       =  D_GROUP
            IMPORTING
                 JOBCOUNT         = D_JOBNO
            EXCEPTIONS
                 CANT_CREATE_JOB  = 1
                 INVALID_JOB_DATA = 2
                 JOBNAME_MISSING  = 3
                 OTHERS           = 4.
    submit   <Program name>
                  USER SY-UNAME VIA JOB D_JOBNAME NUMBER D_JOBNO
                  USING SELECTION-SET '  var1 '   " Give varient name
                  AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
                    JOBCOUNT             = D_JOBNO
                    JOBNAME              = D_JOBNAME
                    STRTIMMED            = 'X'
               IMPORTING
                   JOB_WAS_RELEASED     = D_REL
               EXCEPTIONS
                   CANT_START_IMMEDIATE = 1
                   INVALID_STARTDATE    = 2
                   JOBNAME_MISSING      = 3
                   JOB_CLOSE_FAILED     = 4
                   JOB_NOSTEPS          = 5
                   JOB_NOTEX            = 6
                   LOCK_FAILED          = 7
                   OTHERS               = 8.
    Hope this will helps you
    Regards
    Kiran

  • Background Job Hanged but no work process assigned

    Hi,
    Background job has hanged When i see in SM37. But no work process assigned to this job. All work process are waiting status.
    What could be the reason. What is the resolution process.
    Thanks,
    Dayakar

    How did you come to a conclusion that the bg job is hangend.
    What is the status of the job. ? I guess  Job defined, but not yet eligible to run even if the start condition has been fulfilled so it should be in Scheduled status.

  • How to schedule the background job if report have Presentation server files

    Hi All,
    I have searched the forums and found , the way for the scheduling the background job if report selection screen have the presentation server file input.
    1. Using the Open data set method.
    And my client is not OK with Open dataset way, it there any other way to do this, As we are using the EXCEL file.
    Thanks and Regards,
    Bharani

    Hi,
    As said above it is generally not possible. Since your client most obviously doesn't like graphical background I would recomend storing data as till now, but show it with your own report in more userfriendly way. For example:
    - as ALV Grid
    - in excel with use of OLE either as embedded in SAP or new window (check transaction OLE for example)
    - with use of webdynpro
    BR
    Marcin Cholewczuk

  • How to create a background job in CE and assign a Web Service to it?

    Hi,
    We have a specific requirement here.
    We have an application service which perform some updates based on timestamp etc, it will be exposed as a Web Service.
    The requirement here is that a background job should invoke this Web Service everyday at Midnight.
    But here I don't know how to implement this functionality in SAP CE 7.1.
    Please reply ASAP.
    Regards,
    Manish

    Hi Manish,
    Job Scheduler is available as part of the app server,
    Create a class and extend MDBJobImplementation override the method onJob in this method trigger your webservice.
    for more details please go through this document
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10fed553-0e01-0010-9bb8-ed55659e1236
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90a95132-8785-2b10-bda5-90d82a76431e
    Regards
    Ayyapparaj

Maybe you are looking for

  • Mac Mini (late 2014) HDMI pixelated on Display

    I have just bought a Mac Mini, as it was all I could afford at this point in time. I have a Samsung 32" EH500 TV, connected it up via HDMI and the screen is very pixilated. Images are not clear, colour is all over the place. It is unbearable. WHY! Ho

  • Checked for updates and tried to download latest version of itunes but it will not install

    Please help !!! I have had itunes installed for years but allof a sudden, when I try to complete an action (create a playlist for example) I get an error message "Itunes has stopped working and must close" I searched for updates and tried to install

  • How to Know real table of Me23n,Me22n or Me21n ?

    Dear All Senior, just want to ask you all senior. what a me23n table name of the Item Level - Tab Invoice - Tax Code field name. I want to know what table name not a structure name. thanks

  • Stock transfert without purchase order

    Hello, I need to transfert stock from one plant to another plant using a delivery but without purchase stock transfert order. For that, I have created a delivery UL and goods issue without problems. Stock is well located in final plant (in transit st

  • Send mail with multiple excel attachments

    hello experts, i need to send e-mail with three excel attachments. is it possible, if so, how can i do that? early replies appreciated. regards, Murat Kaya