How to Run an IP Sequence in Background

Hello:
We call a sequence (containing a FOX formula) from a command button on a workbook and it keeps timing out.  Does anyone know how we could arrange to run this in the background and still have it triggered by the workbook button?
We tried writing an exit function (ie new function type ) and then tried calling the original sequence using RSPLSSE_PLSEQ_EXECUTE but it kept short-dumping with an Uncaught Exception.  I'm guessing its not possible to call one (FOX) sequence from within another (EXIT) sequence due  conflicts in the buffer??
Any help would be appreciated!
Thanks...CM

Hi Chris,
your approach is not to bad. At first you need a variant for your planning sequence. if you have it you can run the planning sequence using the report RSPLS_PLSEQ_EXECUTE. Check if this works! Please note that you have to use a variant here. So you can not hand over variable values others than defined in the variant.
Check if this is ok for you!
If it works the next step is to create something that triggers your planning sequence for background processing. To achieve this you could write your own planning function type.
In the execute method you could call a z-function module using the option starting new task. In the mentioned z-function you can start the report RSPLS_PLSEQ_EXECUTE using the ABAP statement submit.
Please be aware that you need to design you application carefully. Otherwise you will have locking issues or the problem that the planning sequence is started and running several times by the user. So you should implement a mechanism to prevent this in your exit planning function type.
As you can see, technically it is possible to decouple the execution of a planning sequence from the application, but you need to be very careful when implementing it, e.g. because of the problems mentioned above.
But you are writing that the main reason for doing this is a performance issue. If I were you I would take a look at this first and see if I could model the application using less data, etc.
Regards
Matthias Nutt SAP Consulting Switzerland

Similar Messages

  • URGENT: How to run threads in sequence?

    Dear experts, I am new to writing threads. I would like to know how to run threads in sequence? How do I know when a thread finishes its task?
    In the following code, classes Process_A(), Process_B(), Process_C() and Process_D() are subclasses of Class Thread.
    I'd like to know if I am using the join() function correctly? My intention is to wait for the previous process to finish before running the current process.
    Could anyone kindly give me some solutions on how to run the processes in sequence?
    Thanks!!
    =============================================================
    Thread process;
    Vector process_names = new Vector();
    process_names.add("a");
    process_names.add("b");
    process_names.add("c");
    for(int i=0; i<process_names.size(); i++)
    String process_name = (String) process_names.elementAt(i);
    if(process_name.equals("a"))
    process = new Process_A();
    else if(process_name.equals("b"))
    process = new Process_B();
    else if(process_name.equals("c"))
    process = new Process_C();
    else if(process_name.equals("d"))
    process = new Process_D();
    timer = new javax.swing.Timer(1000, new ProcessListener());
    timer.start();
    // ProcessListener()
    class ProcessListener implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
    if(process!=null)
    if(process.isAlive())
    try
    process.join();
    catch(Exception ex)
    ex.printStackTrace();
    process.start();

    just look at this simple example u will get to know how to use join method
    This does exactly what u want
    class callme
    void call(String msg)
    System.out.println("["+msg);
    Try
    Thread.sleep(1000);
    catch(InterruptedException e)
    System.out.println("interrupted");
    System.out.println("]");
    class caller implements Runnable
    String msg;
    Callme target;
    Thread t;
    Public Caller(Callme targ, String s)
    target=targ;
    msg=s;
    t=new Thread(this);
    t.start();
    public void run()
    target.call9msg);
    class Synch
    public static void main(String arg[])
    Callme target=new Callme();
    Caller ob1=new Caller(target,"hello");
    Caller ob2=new Caller(target,"Synchronized");
    Caller ob3=new Caller(target,"world");
    Try
    ob1.t.join();
    ob2.t.join();
    ob3.t.join();
    catch(InterruptedException e)
    System.out.println("interrupted");
    waiting for dukes

  • How to run ABAP Function Module in Background Wchich Takes Long Time to Run

    How to run ABAP Function Module in Background FOR LONG TIME
    I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
    RSDRT_INFOCUBE_DATA_COPY.
    I used SE37 and then executed the module, I supplied  the parameters on the form which opped-up and then  program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run  it in background without interruption?
    THANKS A LOT.

    Hi,
    You can call this FM in a program and run that program in background.
    Regards,
    Raju

  • How to Run a Report automatically in Background for every night

    Hi,
    How to run a report program in Background automatically for every nigh.
    Thanks
    Ramesh

    Hi Ramesh,
    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.
    Hope this helps,
    Regards,
    Madhur
    Message was edited by: Madhur Chopra

  • How to run the basic list in background to generate secondary.

    How to run the basic list in background to generate secondary and spool for the secondary.Please note that Basic list will run in foreground.

    Problem solved.

  • How to run a Database Reorganization in Background?

    We are using a Windows Platform and we would like to run database reorganization in Background. How will we do this? Via a command? Can we do it via BRTOOLS? Can we schedule the running of Database reorganization via BRTOOLS? DB13 is out of the question so no need to indicate the solution to run the Database Reorganization in Background via DB13. Kindly advice. Thanks.

    Actually, we do know the various approaches and the Hows on implementing them, we just need the how with regards to running DB reorganization in Background.
    For instance, we will schedule the database reorganization on the evening, since there may come a time when there is nobody available at a certain schedule, we need to schedule it in background so that we could still meet the schedule without anybody, personally, checking on it. Another advantage for it is when there are very large objects that usually took lots of time to finish, we usually let it rest in weekends wherein there is a possibilty that no one is available, we could just schedule it in background without having the problems with regards to timeout in dialog sessions. Also, usually, due to location constraints, we cannot personally access the application server thus, we use remote desktop sessions so as to access the servers. Background session can prevent the risk of having failures with regards to network issues or any other factors that might affect the result of the continuity of the reorganization thus, we need way/s on how to implement it in background session.
    Do anyone have a command in running brtools (specifically for reorganization) to run in background?

  • How to run the LabVIEW exe as background process?

    Dear All,
                   I want to run my LabVIEW exe as background process, which wont show as the process in the task bar as shown in the .jpeg file.
                    I want to run it as a background services as like runs in the windows processes.
                    Please suggest me something.
    Thanks,
    Nishant

    Dear Smercurio,
               Thanks for the good one, but it still requires the windows XP or later OS, when i extract the software, it gives me this error.
               Even Fire Daemon software (same one provided by Alessio in this post) is also running the same, and we even dont have to make it Automatic to start at boot up time, it automatically creates the automatic service which also runs at boot time, so not to worry about anything.
    Thanks,
    Nishant
    Message Edited by Nishant on 12-05-2006 10:12 PM
    Message Edited by Nishant on 12-05-2006 10:16 PM
    Attachments:
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB

  • How to run an application in the background when iMac starts up?

    Hi,
    I installed TextExpander a couple of months back. It normally runs in the background and doesn't appear in my list of running applications when I cycle through them with Cmd+Tab. This is how I like it.
    Of late though, TextExpander starts up when I switch on my machine, but it now appears as an application running in the foreground; if I Cmd+Tab through my running applications, TextExpander is listed among them.
    I'd prefer if I did not see it when switching between applications.
    I've tried restarting the machine, but to no avail. Also, there is nothing in the preferences to run in the background.
    (Possibly unrelated: I don't recall doing anything in particular that might have caused this change in behaviour, but I have noticed recently that TextExpander has found an 'older version' and is asking me if I want to remove it. I don't remember updating it to a newer version, and I don't believe I have it set to auto-update.)
    Can anyone explain how I can make it run in the background? I'd be very grateful.
    Thanks and best regards,
    Ken.

    Mc128k wrote:
    To run your app as a daemon (if you are really sure it can) check the app's preferences panel, there should be sometthing like "show in dock".
    A little embarrassing, but +there is+ an option within TextExpander's preferences to "Hide TextExpander icon in Dock". Don't know how I missed it. I checked the preferences on two separate occasions! Feeling a little morto'ed.
    In any case, to confirm what I've done:
    -Within System Preferences > Accounts > Login items tab, I have selected the "hide" checkbox for TextExpander.
    -Within TextExpander's preferences, I selected the "Hide TextExpander icon in Dock" checkbox.
    TextExpander still runs, but doesn't appear in the Dock or in the list of running applications (that I can switch between with Cmd+Tab).
    Result!
    Tx for your help.

  • HOW TO RUN ABAP SERVER PROXY IN BACKGROUND?

    Hi All,
    I have a ABAP Server Proxy running in WAS 6.20. This Server Proxy runs as a foreground Process when the scenario is executed. if we run a scenario with huge load or run scenarios with continuous load, due to the fact that the server proxy runs as a foreground process, the system slows down and has some performance issues. How to handle this issue.Is there a way to run the Server Proxy as a background Job. Please do help me out.
    Regards,
    Sundararamaprasad.

    hi,
    here's an idea: encapsulate your proxy call inside an object which can be ran in background.... like an IDoc !
    Steps:
    create a zidoc in ECC and use it from PI to ECC to send data (instead of your direct abap proxy call).
    Afer that, in z_function_module which is used to intregate your zidoc, call your abap proxy.
    in WE20 (partner profile), the process mode of your idoc should be of course "Triggered by background program", and then use a job on program RBDAPP01 (with a variant limited to your zidoc) to process your idocs.
    Note:
    1. the only interest to do that compare to create a real IDoc interface is just (in my mind) to call a common proxy or to want to reuse an existing proxy without too more effort.
    2. of course your current proxy call should be asynchronous.
    I never tested it, so it's without warranty !
    Regards.
    Mickael

  • How to run ABAP Function Module in Background FOR LONG TIME?

    I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
    RSDRT_INFOCUBE_DATA_COPY.
    I used SE37 and then executed the module, I supplied  the parameters on the form which opped-up and then  program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run  it in background without interruption?
    THANKS A LOT.

    Change parameter rdisp/max_wprun_time.
    Default value for this is 600 seconds (10minutes).Change it to a time which you think you need for copying infocube data.
    May be 5 hours.
    PS:You can not run Function Module in background directly,but you can create a Z* program and call that FM from within that program and then run the program in background.
    Hope this answers your query. Best of Luck!
    Thanks and Regards
    Anindya
    Edited by: Anindya Bose on Jun 30, 2009 1:24 PM

  • In sm37, how to run job in sequence ?

    Hello,
    In sm37, how  run job1 and job2 in sequence ?  Our requirement is ,once the job1 is excuted then only job2 should be fired.
    Regards,
    Rachel

    You have to modify the Job2 & in the "after job" box you have to enter "Job1" ...
    Please refer to this for details: [http://help.sap.com/saphelp_nw70/helpdata/EN/20/2d513897110872e10000009b38f889/content.htm]
    But note that you cannot schedule job2 as "periodic" in this case.
    If you want to do so you have to use "SAP Events".
    BR,
    Suhas
    Edited by: Suhas Saha on Apr 19, 2010 11:17 AM

  • How to run AR report ALR_87012167 in background

    Hi,
    I want to run a background job to print report ALR_8712167 to paper.  This report is different than
    what I have seen usually in that you just choose 'Program -> execute in background'.  This is a
    report tree in which the report data is populated by a background job (which is setup by tran FDIB).
    Has anyone needed and succeeded in doing something like this?
    Thanks,
    Debbie

    Post Author: V361
    CA Forum: General
    I have CR XI    Randy, if I understand the question, you should be able to add a command to your report, go to database expert, and add a datasource, select command, you can put your SQL in there.   Then replace your existing database connection with the command.

  • Running copy functions in the background

    Hello,
      Does anyone know how to run copy functions in the background?  I am having an issue because you have to save after the CF are done..  How can you do this in the background?
    Thanks,

    Hi Matthew,
    You can use program UPC_PLANFUNCTION_EXECUTE to execute planning function.
    Also take a look at Function modules
    UPC_FUNCEXEC
    UPC_FUNCEXEC_COMMIT
    Hope it helps.
    Cheers
    Anurag

  • Can We Run a ABAP Program in Background

    Hi,
    How to run an ABAP Program in Background.
    Points willbe awarded.
    Regards,
    Jayasimha

    Hi,
    <b>Please see this document also
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/096ccb543b11d1898e0000e8322d00/content.htm
    Easy Job Scheduling Using BP_JOBVARIANT_SCHEDULE</b>
    To schedule a job from within a program using the express method, you need only call the BP_JOBVARIANT_SCHEDULE function module.
    The express method has the following characteristics:
    Simplified job structure: The function module schedules a job that includes only a single job step.
    The function module uses default values for most job-processing options. You cannot, for example, specify a target printer as part of the call to the function module. Instead, the job step uses the print defaults of the scheduling user.
    Only ABAP reports can be scheduled. You must use the "full-control" method to start external programs.
    The range of start-time options is restricted. Event-based scheduling is not supported.
    The function module works as follows:
    You name the report that is to be scheduled in your call to the function module.
    The function module displays a list of variants to the user. The user must select a variant for the report.
    You must ensure that the variants required by your users have already been defined.
    The user picks either "immediate start" or enters a start date and start time. Optionally, the user can also make the job restart periodically. The job is then scheduled.
    Example
    You could use the following code to let users schedule report RSTWGZS2 for checking on the status of online documentation:
    call function 'BP_JOBVARIANT_SCHEDULE'
    exporting
    title_name = 'Documentation Check' " Displayed as title of
    " of scheduling screens
    job_name = 'DocuCheck' " Name of background
    " processing job
    prog_name = 'RSTWGZS2' " Name of ABAP
    " report that is to be
    " run -- used also to
    " select variants
    exceptions
    no_such_report = 01. " PROG_NAME program
    " not found.
    call function 'BP_JOBVARIANT_OVERVIEW' " List the jobs that
    exporting " have been scheduled
    title_name = 'Documentation Check' " Displayed as title
    " of overview screen
    job_name = 'DokuCheck' " Jobs with this name
    " are listed
    prog_name = 'RSTWGZS2'
    exceptions
    no_such_job = 01.
    Regards, ABY

  • How to run a job in background programatically after 10 sec

    Hi Forum,
    Can anyone tell me How to run a job in background programatically after 10 sec..
    Thanks in advance

    Hi,
    Here is the example code
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    * Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum    " You need to give the Date for execution the Job
                sdlstrttm        = sy-uzeit    " You need to give the Time for execution the Job
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    * Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    * Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    Regards
    Sudheer

Maybe you are looking for

  • IPhone 6 will not connect to itunes on the initial setup of the phone.

    Once the sim card has been inserted, the iPhone asks to be restored from a backup on itunes and asks to be connected the the itunes account. Once connected the phone makes the connected noise and begins to charge, however the image saying "connect to

  • Kernel Panic help!!! MBP 10.5

    Hello everyone, first off let me explain my problem. My wife's computer (The macbook pro she's had since about 2007, with original 10.5 OS) was left out the other day with the lid closed so it entered sleep mode, when she turned it back on it showed

  • Export and import XI are different

    I have seen a similar message in this forum but it does not apply to my scenario. I have exhausted all avenues and SAP has not responded to my customer message so I am hoping someone has seen this error. Below is the entire dump I am receiving when I

  • SAP BI Contents

    Hello, i have a question. i am trying to find out the version of BW Content installed on our system so i went to STATUS and got this info. but i still don't know how to translate it to what we have on help.sap.com. can some one please help me? Softwa

  • What you waiting for a more stable Windows 64 bits version (aurora or beta)?

    I use Firefox nightly 64bits because it run faster than 32 bits versions and all my plugin work well with it but each time firefox 64 bits become mature and the version change to "aurora", you don't release a "aurora" 64 bits version or any more stab