Running programms in parallel

How can u run 2 programs in parallel such that ..FOR EXAMPLE a report program 1 has a statement 'WRITE 'A'.
report prog 2 has statement WRITE 'B'. NOW when my 1st prog calls 2nd prog then it should immediately return to 1st prog and the 2 programs should run in parallel such that th eoutput is:
A
B
WHAT IS THE CODE ?

You have to use SUBMIT with additions EXPORTING LIST TO MEMORY and AND RETURN statements.
Below example can help you understand.
Report1:
DATA: i_list TYPE TABLE OF  abaplist.
WRITE:/ 'A'.
SUBMIT report2 EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = i_list
  EXCEPTIONS
    not_found  = 1
    OTHERS     = 2.
CALL FUNCTION 'WRITE_LIST'
  EXPORTING
    write_only = 'X'
  TABLES
    listobject = i_list
  EXCEPTIONS
    empty_list = 1
    OTHERS     = 2.
Report2:
WRITE:/'B'.

Similar Messages

  • Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?

    Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?? Thanks, Jörg

    Hi Jorg ,
    Are you trying to reduce the file size with the "Reduced size PDF" in the save as other option.
    Give it a try if you haven't done it prior.
    Open that PDF>File>Save as Other>Reduced size PDF.
    If possible ,please share the snapshot of the error message with us so that we can have a look in order to assist you further.
    Regards
    Sukrit Dhingra

  • Is InfoPackage Group is the only way to run the InfoPackages Parallel???

    Hello BW Experts,
    If we want to divide a huge full upload InfoPackage with certain selection ranges in each InfoPackage, do we have to run them one by one according to our selcetions or can we run them parallel to each other??
    If we run these IPs parallel, is InfoPackage group is the only way or is there any other option and if yes, which one is better??
    plz help..!!
    Thanks & regards,
    Sapster.
    (assure points)

    Hi,
    Please do not assure us of your points...points are integral to SDN and everyone knows about them.
    In your previous posts, you have been advised that InfoPackage groups are obsolete and that you should proceed with process chains. Have you read those replies?
    Step-by-Step procedure to create an InfoPackage Group & a Scenario!!
    InfoPackage is one option. The better, more widely used and recommended option is using Process Chains.
    Hope this helps...

  • Import new java classes into a running programm

    Hello, i have a small Java problem, i hope somebody knows an answer ...
    I try to write a Java Programm, this programm starts and load a new class, this class is not defined inside the running programm, but the running programm should use the new class.
    example:
    // a class file in a directory somewhere at my harddisk
    public void class X
    void doSomething()
    //Print "Hello world"
    start programm A
    Programm A does something, but doesn�t "know" class X, class X is not compiled with program A
    after some seconds, A should load class X.
    if (M == N) "import class X"
    // At this moment, Programm A knows class X
    X NewObjektX = new X();
    NewObjektX.doSometing();
    Thats my problem :)
    I am sorry about my bad english, but its sadly not my first language.

    Hello :)
    Thx for an answer, i tried your solution, but i get another problem.
    The type to create an object ist unknown.
    i?ll post my exmaple code :
    This class is not compiled with the main programm, only the class file is inside the directory of the main program.
    public class SimpleClass
         int Information = 0;
         void printOnScreen()
             System.out.println("Varibale of the class:"
               + this.Information);   
    This is the main programm:
    public class Main {
         public static void main(String[] args)
              try
                Class newClass = Class.forName("SimpleClass");
                Object instance = newClass.newInstance(); 
                  System.out.println(instance.getClass());
                  // At this point no errors, the tpye of instance is
                     "SimpleClass"
                  // This line occurs an error, the type "SimpleClass" is
                  // unknown.
                SimpleClass newClassInstance = (SimpleClass) instance;
              catch (ClassNotFoundException e)
                System.out.println("Can?t open Class");
                System.err.println(e.getMessage());
              catch (InstantiationException e)
               System.out.println("Error1");
               System.err.println(e.getMessage());
              catch (IllegalAccessException e)
                 System.out.println("Error2");
               System.err.println(e.getMessage());
          } // public static void main(String[] args)
    } // public class MainI tried another solution with inheritance, i programmed a superclass, and choose the superclass as the type (the Superclass was compiled with the main programm).
    The SimpleClass extends Superclass.
    // works fine, but i dont want this type of solution :)
    Superclass newClassInstance = (Superclass) instance;
    How cann i solve the "unknown type" problem ?
    SimpleClass newClassInstance = (SimpleClass) instance;

  • We are running 3 batches parallel(a.ksh,b.ksh,c.ksh parallel ) .if a.ksh will complete then d.ksh will start('d' start when 'a' will terminate successfully) and we have to handle error for all jobs ( if some job got aborted during runtime) ?

    we are running 3 batches parallel(a.ksh,b.ksh,c.ksh parallel ) .if a.ksh will complete then d.ksh will start('d' start when 'a' will terminate successfully) and we have to handle error for all jobs ( if some job got aborted during runtime) ?

    Moderator Action:
    You already asked this question, two days earlier.
    https://forums.oracle.com/thread/2585158
    Stay with your original post.   Deliberate multiple posting is the same as spamming the forums.
    This new post is locked.

  • How to run a VI parallel to another?

    Hi, I am a newbie in LabView and I want to know how to run a VI
    parallel to another one. I have a SubVI in my program and every time
    this SubVI is running the program can't react for example for pressing
    a button. I have to wait until the SubVI is finished. How can I solve
    this problem?
    Thank you
    Marco

    Your question is very general, so it's hard to give a precise answer, but I would guess that the subVI and your button are found in the same loop, right?
    In LV, there is one very important principle - a "piece of code" will only execute when all the wires leading to it have delivered their data.
    If my assumption is correct, what is happening, most likely, is that your subVI takes time to run and the loop will not go to the next iteration until all the code in the current iteration has finished running. That's why you will see that the button was pressed, but nothing happens, because it wasn't read yet, and won't be read until the next iteration.
    Making code run parallel in LV is very easy - just place in the diagram so that there is no connection between the two different parts of code. If you place 2 unconnected loops, they will both run in parallel. This is probably the simplest solution to your problem, but you will need some way to synchronize the loops (like when do you run the subVI?). It's customary to have one loop which will be dedicated only to user interface, and you can add as many other loops as necessary. If this doesn't help you, I suggest you post your code (File>>Save with Options>>Development Distribution), so we can provide a specific answer.
    To learn more, I suggest you read the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide.
    Try to take over the world!

  • Can i run css on parallels?????

    my computer is dieing and its old and just baag. i was looking into buying a macbook nothing else thats the best i can afford and i need a notebook for skool. i know that you can run windows on parallels i love windows for its independicy but i want a mac for its features and its style. i was wondering if i could run counter strike source on it or other games like basic windows games. and if i can i want to be shure that its not gonna be crappy peformance if anyone has css on there computer what is the FPS rate and is there steam problems???

    "is there a program or a way i can run it "
    http://www.apple.com/macosx/bootcamp/
    Please search the discussions before posting. Questions regarding running Windows games on Macs has been asked and answered many times in the past and can save you time in the future.

  • Need to Run something like Parallels

    Seems like I am starting to need an upgraded computer, seems more and more software will only work with intel chips. Bummer, I have a nice Dual Processor G4 that has enough guts, just can't keep up with the software upgrades anymore without having an intel.
    Is there software I can install to run windows as well as OSX? I tried to install a Parallels, but guess what, only intel.
    Dangit!

    Most of the emulators mentioned want a lot of RAM. Another less common emulator was SoftWindows by Insignia Solutions. I don't think it made it past Win98 emulation.
    Note: Microsoft bought Virtual PC from the original developer, basically euthanized it, and then stuck the name on a PC product. Sort of like buying, then burying a dog to get a collar you liked. Anyway, make sure you are buying the Virtual PC that is a Mac application.

  • Running subVI in parallel with itself using producer-consumer pattern

    I'm using the procuder-consumer pattern to create what I call threads in response to various events much like in Producer Consumer with Event Structure and Queues
    I have several physical instruments, and would like to run the exact
    same test in parallel on each of the instruments.  I have a subVI
    that takes as inputs a VISA resource and a few control references among
    other things and then performs the desired experiment.  I have a
    separate consumer loop for each physical instrument, with this subVI
    inside each consumer loop.
    My test VI worked great; each consumer loop was a simple while loop
    incrementing a numeric indicator (not using my real subVI above). 
    However, my real program can only run one consumer loop at a time much
    to my dismay.  Reworking my simple test VI to use a subVI to
    increment the indicator rather than just explicitly coding everything
    resulted in the same problem: only a single consumer loop ran at a time
    (and as I stopped the running loop, another would get a chance to
    begin). The subVI in this case was extremely
    simple taking only a ref to the indicator and a ref to a boolean to
    stop, and incrementing the indicator in a while-loop.
    Is there a way around this?  Now that I've spent the time making a
    nice subVI to do the entire experiment on on the physical instrument, I
    thought it would be fairly trivial to extend this to control multiple
    instruments performing the same experiment in parallel.  It seems
    only one instance of a given subVI may run at one time.  Is this
    true?  If it is indeed true, what other options do I have?  I
    have little desire to recode my subVI to manually handle multiple
    physical instruments; this would also result in a loss of functionality
    as all parallel experiments would run more or less in lock step without
    much more complexity.
    Thank you.

    You need to make your subvi reentrant.  Then it can run several instances at any time with each instance occupying its own unique memory space.  Click on File - VI Properties - Execution, and check the reentry execution checkbox.  Then save the vi.
    - tbob
    Inventor of the WORM Global

  • Does windows and mac run continuously using parallel, or is there some way to stop xp from running if you are not using it?

    I would like to run a few windows programs but I dont want the mac side to suffer when i am not using the windows os.  Is there some way to shutdown the windows part when you are not using?

    If you are running MS Windows in Parallels or Fusion or any other virtualization  software  you can shut it down while the machine is operating and still run OS X. There is no trick, you shut down MS Windows just like you would with any other MS Windows machine. That is one of the main advantages of virtualizaiton software, the ability to run both environments simultaneously if you want. If you don't want to run Windows then simply don't start the virtualizaiton software or if it's already running quit it like you do any app on a Mac.

  • Does anyone have a 3D connection 3d mouse running on the parallels side for CAD software

    I am trying to install a 3Dconnexion Space Navigator on the windows side.  I am Parallels and Windows 7 Home Premium.  The 3D Mounse works fine on the MAc side, but I have some CAD packages that will run windows only.

    Very Frustration!!!  As a teacher, I am forced to use ppt for my presentation so that I can markup the slides during a screen recording and post that on my website.  All my products are Apple and it would be much easier, to say the least, if Apple would come up with a simple markup tool to use with keynote or at least adjust keynote so that I can use my Bamboo pad during a keynote presentation.  Usually they are on the cutting edge of technology so it baffles the mind that they have not addressed this issue especially with the endless applications in education.  

  • How to Run programmes in SD!!!!

    Hello Everyone,
    Could anyone plz let me know the t-code and step by step procedure to run the programmes.I am working on new pricing condition and has to make sure it is perfectly configured. Greatly appreciate your help.
    Thanks.
    Mohammed.

    Hi Mohammed,
    what i could make out from your previous reply was that you are trying to pick a best condition type of the available lot. you can use condition exclusion group function to pick the best price i.e. highest price or lowest discount of the available condition types.
    the only to check if it is working fine is to do some unit testing at the sales order level and check if all the pricing elements are running fine.
    regards
    -Sai

  • Running quicken on parallels vs boot camp

    I am having to reinstall all of my programs as my hard drive failed.  I'm curious whether to re download parallels to run my quicken for windows or should I use boot camp and instal there?   I don't really know much about boot camp.  Any experience and recommendations?

    If Quicken is the only Windows app you'll be running then I would go with Parallels. Realize ypu need to reboot the Mac to get into Windows and then reboot to get back the Mac OS X when you use Boot Camp. For one or two apps it's not worth it.

  • MBP Display Parameters for Running Soloris in Parallels

    I just got Solaris installed through Parallels. Thing is, Soloris doesn't recognize any of the video parameters through Parallels. I have to go in there and put them in manually. Currently, the res is stuck at 1600x1200 which is too big for my display.
    I've tried the following with no success:
    1. login as root run: kdmconfig
    2. choose: Xsun server
    3. Select: Change Video Device/Monitor
    4. Then start selecting the type of monitor.
    : XF86-VESA Unknown Vendor Unknown Board
    : Notebook LCD XGA 48 kHz (800x600 @56Hz and 1024x768 Interlaced)
    : 15 inch
    : 1024x768 - 65536 colors @ 60Hz
    Any success stories or suggestions?

    Parallels support is at http://forums.parallels.com/. As for Solaris I guess you need to find their support site.
    These forums only provide user-to-user technical support for Apple products.

  • How to run query in parallel  to improve performance

    I am using ALDSP2.5, My data tables are split to 12 ways, based on hash of a particular column name. I have a query to get a piece of data I am looking for. However, this data is split across the 12 tables. So, even though my query is the same, I need to run it on 12 tables instead of 1. I want to run all 12 queries in parallel instead of one by one, collapse the datasets returned and return it back to the caller. How can I do this in ALDSP ?
    To be specific, I will call below operation to get data:
    declare function ds:SOA_1MIN_POOL_METRIC() as element(tgt:SOA_1MIN_POOL_METRIC_00)*
    src0:SOA_1MIN_POOL_METRIC(),
    src1:SOA_1MIN_POOL_METRIC(),
    src2:SOA_1MIN_POOL_METRIC(),
    src3:SOA_1MIN_POOL_METRIC(),
    src4:SOA_1MIN_POOL_METRIC(),
    src5:SOA_1MIN_POOL_METRIC(),
    src6:SOA_1MIN_POOL_METRIC(),
    src7:SOA_1MIN_POOL_METRIC(),
    src8:SOA_1MIN_POOL_METRIC(),
    src9:SOA_1MIN_POOL_METRIC(),
    src10:SOA_1MIN_POOL_METRIC(),
    src11:SOA_1MIN_POOL_METRIC()
    This method acts as a proxy, it aggregates data from 12 data tables
    src0:SOA_1MIN_POOL_METRIC() get data from SOA_1MIN_POOL_METRIC_00 table
    src1:SOA_1MIN_POOL_METRIC() get data from SOA_1MIN_POOL_METRIC_01 table and so on.
    The data source of each table is different (src0, src1 etc), how can I run these queries in parallel to improve performance?

    Thanks Mike.
    The async function works, from the log, I could see the queries are executed in parallel.
    but the behavior is confused, with same input, sometimes it gives me right result, some times(especially when there are few other applications running in the machine) it throws below exception:
    java.lang.IllegalStateException
         at weblogic.xml.query.iterators.BasicMaterializedTokenStream.deRegister(BasicMaterializedTokenStream.java:256)
         at weblogic.xml.query.iterators.BasicMaterializedTokenStream$MatStreamIterator.close(BasicMaterializedTokenStream.java:436)
         at weblogic.xml.query.runtime.core.RTVariable.close(RTVariable.java:54)
         at weblogic.xml.query.runtime.core.RTVariableSync.close(RTVariableSync.java:74)
         at weblogic.xml.query.iterators.FirstOrderIterator.close(FirstOrderIterator.java:173)
         at weblogic.xml.query.iterators.FirstOrderIterator.close(FirstOrderIterator.java:173)
         at weblogic.xml.query.iterators.FirstOrderIterator.close(FirstOrderIterator.java:173)
         at weblogic.xml.query.iterators.FirstOrderIterator.close(FirstOrderIterator.java:173)
         at weblogic.xml.query.runtime.core.IfThenElse.close(IfThenElse.java:99)
         at weblogic.xml.query.runtime.core.CountMapIterator.close(CountMapIterator.java:222)
         at weblogic.xml.query.runtime.core.LetIterator.close(LetIterator.java:140)
         at weblogic.xml.query.runtime.constructor.SuperElementConstructor.prepClose(SuperElementConstructor.java:183)
         at weblogic.xml.query.runtime.constructor.PartMatElemConstructor.close(PartMatElemConstructor.java:251)
         at weblogic.xml.query.runtime.querycide.QueryAssassin.close(QueryAssassin.java:65)
         at weblogic.xml.query.iterators.FirstOrderIterator.close(FirstOrderIterator.java:173)
         at weblogic.xml.query.runtime.core.QueryIterator.close(QueryIterator.java:146)
         at com.bea.ld.server.QueryInvocation.getResult(QueryInvocation.java:462)
         at com.bea.ld.EJBRequestHandler.executeFunction(EJBRequestHandler.java:346)
         at com.bea.ld.ServerBean.executeFunction(ServerBean.java:108)
         at com.bea.ld.Server_ydm4ie_EOImpl.executeFunction(Server_ydm4ie_EOImpl.java:262)
         at com.bea.dsp.dsmediator.client.XmlDataServiceBase.invokeFunction(XmlDataServiceBase.java:312)
         at com.bea.dsp.dsmediator.client.XmlDataServiceBase.invoke(XmlDataServiceBase.java:231)
         at com.ebay.rds.dao.SOAMetricDAO.getMetricAggNumber(SOAMetricDAO.java:502)
         at com.ebay.rds.impl.NexusImpl.getMetricAggNumber(NexusImpl.java:199)
         at com.ebay.rds.impl.NexusImpl.getMetricAggNumber(NexusImpl.java:174)
         at RDSWS.getMetricAggNumber(RDSWS.jws:240)
         at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:371)
    below is my code example, first I get data from all the 12 queries, each query is enclosed with fn-bea:async function, finally, I do a group by aggregation based on the whole data set, is it possible that the exception is due to some threads are not returned data yet, but the aggregation has started?
    the metircName, serviceName, opname, and $soaDbRequest are simply passed from operation parameters.
    let $METRIC_RESULT :=
            fn-bea:async(
                for $SOA_METRIC in ns20:getMetrics($metricName,$serviceName,$opName,"")
                for $SOA_POOL_METRIC in src0:SOA_1MIN_POOL_METRIC()
                where
                $SOA_POOL_METRIC/SOA_METRIC_ID eq fn-bea:fence($SOA_METRIC/SOA_METRIC_ID)
                and $SOA_POOL_METRIC/CAL_CUBE_ID  ge fn-bea:fence($soaDbRequest/ns16:StartTime)  
                and $SOA_POOL_METRIC/CAL_CUBE_ID lt fn-bea:fence($soaDbRequest/ns16:EndTime )
                and ( $SOA_POOL_METRIC/SOA_SERVICE_ID eq fn-bea:fence($soaDbRequest/ns16:ServiceID)
                   or (0 eq fn-bea:fence($soaDbRequest/ns16:ServiceID)))
                and ( $SOA_POOL_METRIC/POOL_ID eq fn-bea:fence($soaDbRequest/ns16:PoolID)
                   or (0 eq fn-bea:fence($soaDbRequest/ns16:PoolID)))
                and ( $SOA_POOL_METRIC/SOA_USE_CASE_ID eq fn-bea:fence($soaDbRequest/ns16:UseCaseID)
                   or (0 eq fn-bea:fence($soaDbRequest/ns16:UseCaseID)))
                and ( $SOA_POOL_METRIC/ROLE_TYPE eq fn-bea:fence($soaDbRequest/ns16:RoleID)
                   or (-1 eq fn-bea:fence($soaDbRequest/ns16:RoleID)))
                return
                $SOA_POOL_METRIC
               fn-bea:async(for $SOA_METRIC in ns20:getMetrics($metricName,$serviceName,$opName,"")
                for $SOA_POOL_METRIC in src1:SOA_1MIN_POOL_METRIC()
                where
                $SOA_POOL_METRIC/SOA_METRIC_ID eq fn-bea:fence($SOA_METRIC/SOA_METRIC_ID)
                and $SOA_POOL_METRIC/CAL_CUBE_ID  ge fn-bea:fence($soaDbRequest/ns16:StartTime)  
                and $SOA_POOL_METRIC/CAL_CUBE_ID lt fn-bea:fence($soaDbRequest/ns16:EndTime )
                and ( $SOA_POOL_METRIC/SOA_SERVICE_ID eq fn-bea:fence($soaDbRequest/ns16:ServiceID)
                   or (0 eq fn-bea:fence($soaDbRequest/ns16:ServiceID)))
                and ( $SOA_POOL_METRIC/POOL_ID eq fn-bea:fence($soaDbRequest/ns16:PoolID)
                   or (0 eq fn-bea:fence($soaDbRequest/ns16:PoolID)))
                and ( $SOA_POOL_METRIC/SOA_USE_CASE_ID eq fn-bea:fence($soaDbRequest/ns16:UseCaseID)
                   or (0 eq fn-bea:fence($soaDbRequest/ns16:UseCaseID)))
                and ( $SOA_POOL_METRIC/ROLE_TYPE eq fn-bea:fence($soaDbRequest/ns16:RoleID)
                   or (-1 eq fn-bea:fence($soaDbRequest/ns16:RoleID)))
                return
                $SOA_POOL_METRIC
             ... //12 similar queries
            for $Metric_data in $METRIC_RESULT    
            group $Metric_data as $Metric_data_Group        
            by   $Metric_data/ROLE_TYPE as $role_type_id  
            return
            <ns0:RawMetric>
                <ns0:endTime?></ns0:endTime>
                <ns0:target?>{$role_type_id}</ns0:target>
    <ns0:value0>{fn:sum($Metric_data_Group/METRIC_COMPONENT_VALUE0)}</ns0:value0>
    <ns0:value1>{fn:sum($Metric_data_Group/METRIC_COMPONENT_VALUE1)}</ns0:value1>
    <ns0:value2>{fn:sum($Metric_data_Group/METRIC_COMPONENT_VALUE2)}</ns0:value2>
    <ns0:value3>{fn:sum($Metric_data_Group/METRIC_COMPONENT_VALUE3)}</ns0:value3>
    </ns0:RawMetric>
    could you tell me why the result is unstable? thanks!

Maybe you are looking for

  • The back button is there but never works. It didn't open in a new tab or window but the back button isn't functioning. I just downloaded Firefox 5.

    Actually, all my details are in that looong question I asked. ; ) I am ready to go back to 3.6 or whatever version I had because 4 and 5 have had these issues. I tried 4 before but now that I have 5 and the same issue, I remember that I saw this befo

  • SQL DEVELOPER QUIT UNEXPECTEDLY

    Hi Folks, I recently downloaded all the packages of Oracle Instant Client 11.2 from Oracle and installed them on MAC PRO OSX 10.6, I had an error as "Status : Failure -Test failed: no ocijdbc11 in java.library.path" every time I use TNS and this has

  • Flex 2 Beta 3 Flex Component Explorer

    Is there some valid or explainable reason that every time I click on a component in the explore I am being asked to restart my computer?

  • Creating temporary tables

    Hi All , I am new to oracle and i need to find out how can i create a temporary table in Oracle ? in MS SQL it's "select * into #tbl1 from tblABC" how can i do that in PL/SQL appreciate ur advise tks & rdgs

  • Possible in a decode

    So I am trying to use a decode statement with my query to do the following: If col_A is eqaul to the values 12, 13, and 117 output then output 'TEST' for column_B, else output 'Prod' when col_A is equal to 5 and 'Reg' when col_A is equal to 6 as data