Scheduling jobs in different app server

Hi all,
Does anyone knows how to schedule a background job in a specific app server, by using FM JOB_SUBMIT / JOB_CLOSE?
I've analysed SAP documentation for these FMs and it says that the parameter EXTPGM_SYSTEM can be used to inform the app server in which the program will be ran. However, it seems to be for external programs and my requirement is just to set a abap report to run in a specific app server.
SAP documentation says:
EXTPGM_SYSTEM Parameter
Name of the host system on which an external program is to be run. You must supply a value for this parameter.
Note: You must specify both the name of an external program and the name of the system on which it is to be executed.
As I don't have an external program, just the abap report, I'm not sure I can use such parameter to schedule the job at the desired app server.
Please advise.
Thanks,
Rafael.

Kartik,
there is another program which people uses to read the generated files. As per the server load balancing, some output files are being created in server A, and some in server B. With this parameter, the output files would be generated only in server A.
So, Bryan, that does make sense.
So, you mean I should consider only JOB_CLOSE in order to inform target system? Should I ignore the external program parameters in JOB_OPEN?

Similar Messages

  • Wanted to run a background job in diff app server

    i wanted to run a job in diff app server...
    how can i do it.
    sap guru

    In the JOB_CLOSE funtion module,
    you have a parameter for that.. check it..

  • Background Job spool / output file in different app server

    We are working with 2 ECC app servers, A and B.
    I've defined in app server A a background job to run an abap report and this report creates and submit 4 other background jobs.
    Each of these 4 jobs is regarding an abap report which outputs a text file in the server.
    The question is, why are the jobs generating the files in different app servers randomically?
    The same file, in the 1st execution was generated in app server A, and without any change was generated in app server B, in the job 2nd execution?
    Thank you!

    Hi,
    You can specify server name whille creating a batch job , so that it gets executed to that server only.
    there is one field (in SM36 during creation or SM37 while modifying batch job) called "Exec Target " , where you can specify server name.
    Hence you can plan to run your some batch jobs on server A or B.
    Regards,
    Rupali

  • Passing data from a background job to RFC calls in different App server

    The program i am working on can be explained in the following steps:
    Step A- We use a standard program that is executed as a background job and the standard program obtains some data for a particular scenario.
    Step B - The job(standard program) during its execution creates many RFCs executed as dialog work processes on various application servers and processes data.In the RFCs various exits are executed.
    We currently write data to database(Z table) in Step A and retreive data in exits in Step B to access the information written to DB(Z table). We want to eliminate writing to database since it consumes time.
    Is there any solution apart from writing data to database and retreiving the same.
    I am not sure if we can use ABAP memory or SAP memory to access the information in the exits since they are executed on different App servers.

    We have not been able to arrive at a solution to the below, any solutions / inputs will be rewarded.

  • Error reading job logs of Apps server from Central Instance

    Dear Gurus,
    We have newly installed system with one CI ( cluster environment) and 2 application Instances.
    Systems are recently installed by other team. I am looking into support part after handover.
    We have noticed below error while reading failed background job logs from our CI. If suppose any job is failing, we can read respective job log from that application instance but it throws error while reading job log from CI to either of application instance.
    I checked /sapmnt/SID/global is shared among all 3 servers and i am successfully able to "Touch a" from applications instances.
    Even though i have given "777" permissions to all folders like  /sapmnt/SID , /sapmnt/SID/global , /sapmnt/SID/global/400JOB*
    I am not able to read job log from CI , for same failed job I can read job log from respective application instance.
    Error log :
    Error reading job log JOBLGX00080700X39290
    Message no. BT167
    Diagnosis
    The background processing system was unable to read the job log named in the message.
    This message suggests that there is a problem with the TEMSE storage system of the SAP system.  The TEMSE storage system is a repository for temporary objects, such as job logs and spool requests. Job logs are always stored in the TEMSE as operating system files.
    This error occurs if the TEMSE system is not able to find or access the file that contains the text of the job log that you requested. Possible causes for the loss or unavailability of the job log include the following:
    Someone deleted the required TEMSE file (from the operating system, not from within the SAP system).
    A CRON (or equivalent scheduler) job has deleted the TEMSE file.
    The file system in which the TEMSE stores its files is not mounted or is not accessible (NFS problem, disk failure, or similar problem).
    The TEMSE reorganize or consistency check functions were used within the SAP system and deleted the job log.
    SM21 logs :
    Error 2 for write/read access to a file. File = /usr/sap/SID/SYS/global
    BP_JOBLOG_SHOW: Failed to display jobs. Reason:
    > Error reading job log JOBLGX00080700X39290
    Strange this is I can check failed job log on one application instance frfom other application instance but not from CI.
    Kindly throw some lights where to check.
    Regards,

    Hi Shravan,
    I guess it is related to permission to /sapmnt/SID/global folder. Please ensure owner is sidadm:sapsys in all the systems viz CI, App servers etc.
    Check the mounting options are correctly set with read/write mode.
    Hope this helps.
    Regards,
    Deepak Kori

  • Schedule Jobs for different timezone

    I have a procedure which needs to be scheduled for different timezones based on one of the column in the table (ex: region).
    If region is California, it needs to be scheduled at 8:00am, if Newyork at 6:00am.
    Any ideas much appreciated!

    DUPLICATE
    oracle job scheduling for 2 different timezones

  • How to deploy a war file from a different app server to the SAP one

    Hello,
    I hve recieved a war file from Tomcat that needs to be deployed on the SAP Java App server. As far as I know the SDM only allows to deploy ear files. How can I deploy this war to the app server?

    Hi Roy,
    in order to deploy the WAR file you have to wrap an EAR around it. I had the same problem.
    You can do this using Netweaver Developer studio.
    Perform the following steps:
    - Start NWDS
    - Create a New Enterprise Application Project
    - Create a New Web Module Project (name it like your war file => e.g. your war file is called myApp.war => call your Web Module myApp)
    - Edit the application.xml of your Enterprise App if necessary (description, Displayname etc.)
    - Link your Web Archive to your application archive (right Mouse click on Application Archive and from the Context Menu choose "Add Modules" => In the list choose your Web Module)
    => You can also perform a right mouse click on your web Module and from the context menu choose "Add to EAR Project" => In the list choose your Enterprise Application!
    - Build Web Archive (right mouse click on your Web Module and from the context menu choose "Build Web Archive" => This will create a war file that has the same name as your war file! => If you do not see it try to switch to resource perspective!)
    - Build Application archive (right mouse click on Application archive => from the context menu choose "Build Application Archive")
    You are done
    The EAR file is generated and will be created in your workspace.
    Now browse to your workspace. Unpack the EAR using WinZip or any other Archiver program.
    Replace the contained war with your war and repack the ear file (You can also use tools like Total Commander to directly replace the war file in the EAR with your war without having to unpack the war). You can also import your war into NWDS and rebuild it so you won't have to replace the WAR in the EAR but as your WAR is already built I would just replace it as described!
    You can now deploy the ear file to SAP J2EE
    Hope this helps (Reward points for helpful answers are appreciated!)
    Cheers

  • Running "scheduled jobs" in an application server

    Hi, I'm working on a project where we run some middleware integration software on websphere 5. What I need to create is a component that really is a thread that polls a database table and pull out the data, format it and send it to another system if there's any data available in the table. This is relatively easy using a standalone application, but I'd like this to run inside websphere so we don't have to manage a new application, just a new component in the app server. But on the other hand, manipulating threads (for sleep, etc) is not a thing one should do in an app server. So, does anyone have an idea for an elegant solution for doing this task inside websphere?

    What about JBoss? Can you implement the "timer" from this app server? I'm doing the same type of thing, but using JBoss.
    Also, why do you say that you shouldn't manipulate threads from inside an app server?

  • Running reports in a different app server

    Hi,
    If I use rwbuilder to build a JSP, can I simply drop the JSP into another app server (i.e. Weblogic, or JBoss) and execute it?
    Or, is 9iAS required?
    Thanks,
    Duke
    [email protected]

    You still need a Report Server to format the report.
    Unlucky enough Oracle does not sell The report server as a standalone application, which is a pity. A big market is lost this way I can imagine, as nobody is going to pay a full 9iAS Enterprise Edition license just for using reports...

  • Moving Users across different App Server versions

    Hi everyone,
    I need to move users and groups from a 9iAS portal to a 10gAS system which uses 10.1.2.0.2 for OID.
    I was wondering if we can move users, groups into the new OID alongwith their passwords. I tried to search on forums but could not get a clear help. Has anyone done the same thing before, and would like to drop a hint or two on how to do it please?
    will highly appreciate.
    thanks.

    Thank you very much Grant for your help. I appreciate it.
    1. first method requires us to upgrade systems to 10g and then to 10.1.2.0.2. I am familiar with the first choice but have hesitation to take it.
    This is a painful upgrade and we just finished upgrading, adjusting and fixing applications in our portal upgrade paths from 309 to 904, 10.1.2.0.2 and then to 10.1.4.0.0. Here for OID upgrade, we won't need the third stage but even the two takes a few days. Even backup costs 5 hours for our repository. so by the time we finish this, the list of users become old/obsolete. we need to move users for the launch phase of the upgraded portal.
    2. the second method and track apparently should be fine to extract users and info. however, i haven't seen any method or procedure in the Metalink literature to keep their passwords intact. in fact, on the contrary, they suggest that the password attributes cannot be moved using ldapadd and bulkload in 10.1.2. (ref It is not possible to load orclpassword or authpassword attributes using either ldapadd or bulkload. Reference Note 401662.1 ). That leaves the choice of resetting passwords to some default pwd as one article suggests.
    But our client is reluctant to email or communicate passwords to users by any method. This is the cause of this hesitation.
    OID is still quite new to me and I am wondering if any other method (other than the ladapadd and bulkload) can be used to migrate users/groups without sacrificing the passwords.
    thank you very much.
    with kind regards,
    AMN

  • PSWATCHSRV does not auto-restart causing app server domain instability

    Current environment:
    - Solaris 10
    - Oracle 10.2.0.4
    - PS HRCS 9.0
    - PTools 8.49.19
    - Weblogic 9.2
    - Tuxedo 9.1
    We have two PIA web sites that reside on the same PIA web domain. They each interact with a different app server domain residing on csapp81. One is assigned a jolt listening port of 9060 (CS90SBX) and the other uses 9030 (CS90UNT). Recently, after patching the PTools to 8.49.19, we discovered that occasionally the PSWATCHSRV in one of the app server domains will shut down and not restart. The domain continues to run without the WATCHSRV but then erratic behavior in the PIA is observed:
    - Users attempting to access worklists are logged off
    - Reports stop posting from PSNT and PSUNX
    - Users attempting to navigate to reports already posted are logged off with "An Error Has Occurred" message
    - Some users are unable to log in and see a message in red on the signon page: bea.jolt.ServiceException
    Re-booting the app server domain will solve the problem temporarily until the PSWATCHSRV shuts down again. We have noticed that in the app server that is not affected, the PSWATCHSRV restarts one second after shutting down whereas in the affected domain it never auto-restarts. We have tried re-building the web server and app server domains but this does not affect the problem. There appears to be no difference between the two domains. In fact a couple of weeks earlier SBX was working fine and UNT was affected. Now it's the exact opposite and we have another environment (CFG) showing the same behavior.
    The proof the problem exists:
    Verified the issue by the application server log file <APPSRV_0602_SBX.LOG>, which displays that PSWATCHSRV has been shutdown and never restarted:
    PSAPPSRV.11610 (3) [06/02/09 12:48:40 GetCertificate](3) Returning context. ID=PS, Lang=ENG, UStreamId=124840_11610.3, Token=PSFT_HR/2009-06-02-05.48.40.000003/PS/ENG AAAAmwECAwQAAQAAAAACvAAAAAAAAAAsAARTaGRyAgBOZQgAOAAuADEAMBTG0ddiK9wa09fTauVpwsrNvqJDmwAAAFsABVNkYXRhT3icPcZNDkAwFEXh02oM7YS8VAkL8DMSwdzILi3O6xu4J/lygcf5IuDQ+Tcb2DlLJjaWKn9mLm5WjkREtJFa7c1odjQkBlNU+Wv5APmFCio=
    PSWATCHSRV.11609 (0) [06/02/09 12:52:38] Shutting down
    PSAPPSRV.11612 (29) [06/02/09 12:55:45 [email protected] (NETSCAPE 7.0; WINXP) ICPanel](3) (PublishSubscribe): PublicationManager::Publish(): publication a18e2838-4f31-11de-9268-83dc49eeb5cf.USER_PROFILE published in 0.0900 seconds
    My question is: Has anyone else ever seen this behavior in an 8.49.19 environment? If so, how was it resolved?
    We are now conducting UAT and the occasional disruption of having to restart the app server just so people can login to the system is not making a good impression on the customer.
    We have an open SR ticket with Support but as yet they have not been able to help us...

    Looks like Tuxedo is not doing he's job. You should double check the Tuxedo version and rolling patch installed.
    And also the configuration of AppServer, section "PSWATCHSRV", if the interval is set to 0, then it is disabled.
    Moreover, from your output it is difficult to understand what's going wrong.
    Nicolas.

  • Missing App server in GRC Analysis Engine Daemon Manager

    Hi,
    We have two app servers for our GRC AC 5.3.The Analysis Engine Daemon Manager(http://<host>:5<nn>00/sap/CCADStatus.jsp) lists only one of the app servers .If I try the URL for the Daemon manager using the URL with app1 or app2 it lists only the background job workers and web services workers for the app1 only and not the app2.I checked the entry for table VIRSA_CC_CONFIG which has entry for the first app server ('107', 0,http://app1:5<nn>00/webdynpro/dispatcher/virsa/ccappcomp/BgJobStart', 'BgJobStart URL').Do I need to add the other URL for the other app server also.If yes how.If any one has faced this issue please help me.Your help is greatly appreciated.
    Thanks,
    Max

    Since the Instance number (i.e. <nn> ) is a mandatory part of the URL so the URL for two app. server should be different. But first of all what is the necessity for keeping two different Instances (Java) for GRC AC? One is enough with proper hardware and system parameter sizing - right?
    Also, the Batch Jobs are not App server specific stuff.. so it is not correct to say that there are Jobs from only one App server and not from the other.
    regards,
    Dipanjan
    Edited by: Dipanjan Sanpui on Sep 27, 2010 2:51 PM

  • Initial workflow runs on WFE, then APP server, loses dependency?

    I'm still having issues with a WFE deployment to a farm with a WFE, an APP, and a SQL server. I'm trying to get my head around it. Workflow timer jobs run on the APP server, in accordance with Microsoft recommendations.
    User adds a list item
    When he / she submits their request, an Update workflow is kicked off -
    this part of the workflow I believe is still running on WFE because I see my printed messages in the ULS logs on the WFE
    If the request to update a list item is approved, the workflow kicks off a timer job.
    The SharePoint timer service then picks up the job on the APP server - I know this because I see my printed messages on the APP server instead of WFE.
    Submitted request passed on to a database on a different server.
    Getting the right solution has been challenging as I've been struggling to ask the right questions. I've confirmed that the SharePoint 2010 Timer Job is started on both servers with same account. I'm thinking that the wsp deploys something to the WFE,
    but not to the APP server. For #5 to happen, that something needs to live on the WFE (unless I want to change the service configuration and add Workflow Timer Jobs on both servers.)
    I'm thinking that the solution should be to manually add whatever those files are deployed via the wsp to the APP server as well.
    Scott

    Best practice states that Foundation Web runs on every server in the farm, as solutions must be built around the exception of not running Foundation Web on particular servers. You're encountering that issue, the solution wasn't built to accommodate for
    this type of architecture. There is little reason to not run Foundation Web on all servers, including performance.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • SSIS package works in Visual Studio but not as a scheduled Job.

    I have a SSIS package that takes some CSVs and Excel documents and imports the data into a database.  The CSVs and Excel document come from outside agencies so I have no control over them.  I have successfully created and ran the SSIS package in
    BIDS (Visual Studio)  However, when I try to run it as a scheduled job on the SQL server I get the following error.
    Source: Import Brazos CSV data Brazos Co CSV [1]     Description: Data conversion failed. The data conversion for column "offDescription" returned status value 4 and status text "Text was truncated or one or more characters had no
    match in the target code page."
    The column is set to ignore on truncation in the data flow source.
    Any suggestions would be appreciated. 
    Thanks
    KJ
    Kevin Joyner

    Hi Kjoyner96,
    The error usually occurs due to the data conversion between non-Unicode and Unicode characters. According to your description, the data type of the Output Columns of the Flat File Source should be DT_STR. If the source flat file uses Unicode encoding and
    contains Unicode characters, the data conversion from DT_WSTR to DT_STR will fail. So, I guess the source file in your Dev environment doesn’t have Unicode characters, while the source file on the SSIS server has Unicode characters. If this is the case, open
    the Advanced Editor for the Flat File Source, switch to the Input and Output Columns Properties tab, and change the data type of the Output columns from DT_STR to DT_WSTR. In this condition, the Data Conversion Transformation is not necessary.
    Regards,
    Mike Yin
    TechNet Community Support

  • Is it possible to run scheduled job

    Is it possible to run scheduled job (custom developed java application), for doing some periodic database operstions in portal.
    I'm using portal database (maxdb) with my portal application.I must do some periodic calculations and store them into database table.Therefore i must use scheduled job running on ortal server.
    Is it possible? If possible, how?
    Thanks.

    Hi,
    Yes it is possible with SAP NetWeaver Scheduler for Java.
    You can check below link for more information:
    http://help.sap.com/saphelp_nwce71/helpdata/en/44/03d66015ee10b3e10000000a11466f/content.htm
    http://help.sap.com/saphelp_nwce71/helpdata/en/45/45d287e620507be10000000a1553f6/content.htm
    Thanks
    Sunny

Maybe you are looking for

  • Trouble Moving Files in Dreamweaver (CS3)

    Hi, Having a real problem maneuvering some files around. At the moment I have my index.html file which links to a folder called 2009website, which contains 4 folders each with a mini site in. So for instance the index file is pointing to 2009website/

  • Material text read

    Could you please let me know how to use READ_TEXT func module for material text . We have long text in Material Basic data section , i want to read this text . I am not abaper ...could you please let me know which parameter should be passed at the ti

  • Problems With the High Availability

    Hi all, First of all, i'm sorry for my "bad" english, but i will to try to explain my problem as clairly as i can. I'm using VDI 3.1.1 ,a configuration "High Availability with bundled MySQL" with a primary server and 2 secondary servers. i'm trying t

  • Rotate in CS2 from Bridge (OS 10.3.9)

    It would be much more useful if rotating an image in Bridge would also rotate the original file - as it stands rotating in Bridge is a waste of time as this has to be repeated in Photoshop.

  • Configuration of ESR in CE

    Hi, Currently i am configuring CE 7.2 system. In the SAP documentation its mentioned that i can configure the ERS on CE by executing the step Configuration of ESR in CE from the wizard. [http://help.sap.com/saphelp_nwce72/helpdata/en/46/b3a7d01b475a6