Run the main program simultaneous child concurrent program

Hello

I am trying to execute the concurrent program of child of the main competitor program as below, could you suggest me on below.

Database: 10 g

Main_Concurrent_Program
=================

1) will update the intermediate table XXID_PO_ITM = 1,2,3,4,5 Batch_id
This staging table has 1000 rows, so each 200 lines will be updated with one of the above batch_id
This logic works.

Child_Concurrent_Program
================
(2) above program main competitor has to call under Child_Concurrent_Program.
This Child_Concurrent_Program will be setting batch_id (based on above batch_id)

So, this Child_Concurrent_Program is expected to launch with batch_id = 1
Simillarly, Child_Concurrent_Program should start with batch_id = 2
Child_Concurrent_Program should start with batch_id = 3
Child_Concurrent_Program should start with batch_id = 4
Child_Concurrent_Program should start with batch_id = 5



Could you give me some suggestions on this?

Thank you.

Check with FND_SUBMIT to submit a simultaneous work with dependencies of the child. Keep in mind that once you call the API... it creates its own thread and and becomes a standalone process. Control is no longer maintained in the calling package.

procedure submit_interface_data(p_schedule_date in date,p_mm_header_id in number,p_req_id out number)
is
  v_user_id            number;
  v_application_id     number;
  v_responsibility_id  number;
begin
            select user_id
            into   v_user_id
            from   fnd_user
            where  user_name = 'USER123';

            select application_id,
                   responsibility_id
            into   v_application_id,
                   v_responsibility_id
            from   fnd_responsibility_tl
            where  responsibility_name = 'General Warehouse';

  fnd_global.apps_initialize(v_user_id,v_responsibility_id,v_application_id);
  p_req_id := fnd_request.submit_request ( application => 'XYZ',
                       program     => 'MOVE_CONC_SHORT_NAME',
                       description => null,
                       start_time  => p_schedule_date,
                       sub_request => false,
                 argument1   => p_mm_header_id);

  commit;
exception
 when others
   then
     spl_log_pub.write_exception(transaction_id   => null,
                                 transaction_type => null,
                                 error_message    => '' ||
                                 'sqlcode: ' || sqlcode ||
                                 'sqlerrm: ' || sqlerrm);
end submit_interface_data;

Published by: sreese on May 18, 2012 15:16

Tags: Oracle Applications

Similar Questions

  • A generated within a loop in a subvi output data can be transferred to the main program for each iteration of the loop?

    Hi LV users,.

    I have a very basic question, I have not succeeded to asnwer using basic considerations.

    I made a sub - vi that performs a scan of current-voltage using a unit of measurement-source Keithley and a loop FOR.

    The subvi outputs 2 tables with my data (essentially an array of voltage and the corresponding current table). I also defined a Terminal at the exit of a group of these 2 tables in order to plot a graph XY - output. Specifically, I indexed this cluster to update after each iteration of the loop FOR, in my sub - vi (the indicator is placed outside the loop, of course).

    My problem is that I want my main program to display the XY-graph in real time, with an update after each iteration of the loop FOR which is in my sub - vi.

    I have a problem because my sub - vi output terminals are available for the main program concluded as soon as the sub - vi has completed its own execution (which is what we expect of sub - vi to do).

    How can I use a sub - vi (because it's handy) and get in the main program in the course of its performance data that are generated from the loops of sub - vi?

    Thanks in advance for your help,

    Yoyo87

    Elements of the queue in the Subvi them put your main VI where you want to display the data and the.

    It is similar to the architecture of producer/consumer. There are examples of it in LabVIEW. The examples work with 2 parallel loops, in your case a loop (the producer) will be in the Subvi.

  • HOW TO PASS THE HEX OF THE MAIN PROGRAM VI ENUM, SUB VI ENUM VALUE

    HOW TO PASS THE HEX OF THE MAIN PROGRAM VI ENUM, SUB VI ENUM VALUE.

    HOW THEN IT WILL CHOOSE CORRECT ON SUB VI HEXAGONAL ENUM VALUES.

    Enum values are strings, you must first convert the hexadecimal value to a hexadecimal value chain represtation.

    Then that convert from the enum.

  • Subvi in the main program output data

    Hello

    I'm trying to export data from sub - VI for the main program in real time. But I found the value may be filed only when the Subvi is finished.

    I'm doing some research and I think that using the queue is the best, but the global variable. You can all give me some tip on queue using to transfer data from sub - VI for the main program in real time?

    Thank you!

    No problem.

  • Issue linking subroutines VI by the main program

    Sir/Madam,

    I've done some subprogrammes VI of "Keithley 2400', but I'm having the problem by connecting them together with the main program.» In fact the subprogrammes of created VI do not display any button to activate when I connect the 'action.vi' file in the 'read.vi' file (attached).

    Please give suggestions.

    Concerning

    Yachika Manglik


  • Windows 2003 Server keeps stopping every hour on and saying that he must run the Setup program to create a domain controller.

    WINDOWS 2003 SERVER STANDARD EDITION

    HELLO TECH TECHNICAL SUPPORT ENGINEERS.

    WE HAVE WINDOWS SMALL BUSINESS SERVER 2003 STANDARD EDITION,

    WE HAVE EVEN INSTALLED AND CONFIGURED IN A WORKING GROUP, WE DO NOT WANT TO CREATE A DOMAIN CONTROLLER,

    BUT OUR SERVER IS BLOCKING DOWN IN ANY ONE HOUR AND SAY TO RUN THE SETUP PROGRAM TO CREATE THE DOMAIN CONTROLLER.

    PLEASE SUGGEST, AS WE DO NOT WANT TO CREATE DOMAIN

    CONCERNING

    DECCAN TEAM

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • Tutorial: how to stop a loop 'while' Subvi, which within the main program loop 'while '.

    Hi ppl,

    I searched through the forum on the topic above, but still don't know how to do this. Maybe one of you can post the solution of this important issue.

    I have attached a very simple program: I've done a few while loop as a main program and Subvi as a post-secondary program. Inside the Subvi also manages some while loop. All I want to do is to push the stop button in the main program that will stop the while loop in the second channel; to create a kind of judgment of reference in the main program which influence only the stop button on the Subvi. During this time the loop of the main program will still work.

    Thank you.

    I modified the code that you have joined. check.

  • shortcut for deskjet 8600 pro has disappeared. Re-run the installation program does not help. How can I get that back?

    When I bought and installed my Pro Deskjet 8600 in last July, a wonderful control program has been installed. However, the shortcut on the desktop for this program has disappeared, and I can't. Re-run the installation program does not help. How can I get that back. All I have now is an older version of the HP Solution Center, which does not have the features that I got into the habit of.

    Hello

    Uninstall the software by following programs > HP > HP Officejet Pro 8600 > Uninstall.

    Then download and install the latest version of the software below, it is a more recent software and should solve the problem you are experiencing:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=bi-108858-3&cc=us&DLC=en&LC=en&OS=4131&product=4323659&sw_lang=

    Shlomi

  • I need to run the accounting program MYOB 9 on my new laptop HP 64 bit with Vista Home OS.

    I need to run the accounting program MYOB 9 on my new laptop HP 64 bit with Vista Home OS.  Is there a download that allows me to run from MYOB and emulate windows XP?

    You must upgrade to Windows 7 Professional to run Windows XP Mode

    http://www.Microsoft.com/Windows/Virtual-PC/default.aspx

    You can try to see if it will run in Vista compatibility mode:

    http://Windows.Microsoft.com/en-us/Windows-Vista/make-older-programs-run-in-this-version-of-Windows

  • Flash Builder on Mac Lion 10.7.5 4.6: cannot run the Setup program: certificate revoked

    Hello

    You are aware that FB 4.6 is not install more OS x 10.7.5 and maybe OS X in general?

    Because I really need design view last FB does not offer, I just downloaded 4.6 FB for OS X from Adobe: Adobe - Adobe Flash Builder 4: for Macintosh: Flash Builder 4.6 - Mac OS: thanks

    My real OS X is 10.7.5, Lion.

    Launch of the install.app, it appears an error window:

    Please be aware that I know that this message comes from Gatekeeper, see for example: OS X: on Gatekeeper

    The fact is that this problem is not solvable, apparently.

    The problem is with the application signing certificate, as you can see issuing the command:

    bash - 3.2 # spctl - has Install.app

    Install.app: CSSMERR_TP_CERT_REVOKED

    So, here we have a certificate of _revoked_, not a certificate/developer unknown or app unsigned.

    Indeed, unfortunately the problem persists even disabling Gatekeeper:

    bash - 3.2 # spctl - status

    co-pays disabled

    since apparently a revoked certificate is not an error that can be ignored or circumvented somehow.

    As far as I KNOW, the idea behind this is: Apple actually provide no verification quality on applications (they are not "approved by") but may possibly (if there are "problems") block a via the recall mechanism. Because of this, the _revoked? _ check cannot be bypassed/disabled. I'll try as soon as POSSIBLE an upgrade of the OS to see if with the Mountain Lion (10.8) I can possibly force execution Install.app, but chances appear to be rare so far.

    So, Adobe, can you help me please?

    Maybe sign with a certificate valid for this installer...

    FB4.6 is essential because it is the last version with DV. I had to install FB46 on Windows to keep working, but it's no doubt slow me down as everything is on Mac.

    ARO

    a pro developer.

    Hello all, good news: after updating to 10.8.5, Mountain Lion I was able to run the Setup program and all went well.

    Mountain lion allows the user force execution through the command open context menu (CTRL-click) and it works, just as simple as that.

    So my advice is: If you want to install or reinstall Flash Builder 4.6 on a Mac with Lion installed, updated to Mountain Lion or better to avoid problems.

    Apple introduced some (not all) Gatekeeper 10.7.3 and following features, but apparently you need a full-fledged 10.8 to also have what you need to work around a revoked certificate error.

    Since usually OS X has auto update active, if you run Lion you find with 10.7.5 and do not install FB46. If you manage to somehow hold 10.7.2 I guess you should be able to install FB46, sincerely I don't check it out. In any case, it is simpler and safer to move to 10.8.x.

    Good bye

  • How to get the return values by a button on the main program.

    Hello

    I have a main program that has an Authenticate button. Click to authenticate open for auth form that has the USERNAME and PASSWORD FIELDS.
    If the input fields are true then enable editing of jtable in main program...

    Basically something like this:
    main program
    Authenticate.addActionListener (new ActionListener()
    {
    public void actionPerformed (ActionEvent ae)
    {
    Au UpdateAuth = new UpdateAuth(); / / Opens the form that has the username and pass for authentication
    ua.setVisible (true);

    need code for activation of table here
    if(s=="mactus")
    {
    enable editing of the table
    }
    table.repaint ();
    }

    });


    form opened for auth... (class UpdateAuth)

    private String SigninMouseClicked (java.awt.event.MouseEvent evt) {}
    String aname = Aname.getText ();
    String apass = Apassword.getText ();
    If (aname. Equals("") & & apass.equals(""))
    {
    JOptionPane.showMessageDialog (null, "enter the login name or password", "Error", JOptionPane.ERROR_MESSAGE);
    }
    If (!) (Aname.Equals("")) & & apass.equals("")))
    {
    If (aname. Equals("harshil") & & apass.equals ("harshil123"))
    {
    String s = "mactus"; If the user name and password is success enable editing in table in the main program
    return s;

    }
    else if (! aname.equals ("mactus") & &! apass.equals ("mactus123"))
    {
    Aname.setText("");
    Apassword.setText("");
    }
    }
    Returns a null value.
    }

    String.Equals (String)

    String.equalsIgnoreCase (String)

  • How to set the display in order to run the installation program

    Hello

    Could you please explain how to set the Display variable I connect via the VNC client directly to windows X Linux (Gnome)
    in order to run the installer to install R12 EBS?


    I guess that since the connection is by VNC client, so I just need to open a terminal window and start the Installation...



    Thanks and greetings
    MZ

    Srini Chavali wrote:
    The DISPLAY variable must be set to the IP address of the client.

    Not necessarily - it is meaningless to set the DISPLAY of different client IP addresses if you want to run the installation program (or any GUI) on the server of different customers.

    Thank you
    Hussein

  • help on how to compile and run the awt programs

    any1 can tell how to compile and run the awt programs

    Published by: 863765 on July 18, 2011 03:29

    The same way you compile and run any other Java program.

  • dbms_scheduler.create_job and create_program to run the shell program

    dbms_scheduler.create_job and create_program to run the shell UNIX of PL/SQL program

    I guess that the problem could be a shell program. "send_file_susin.sh", I did run the CFT program which is to transfer files. While I tried to this problem, I heard that I should use dbms_scheduler.create_program and create_job to execute the shell command. Therefore,.

    I've done
    () dbms_scheduler.create_program
    program name = > "SEND_FILE_SUSIN"
    program_type = > "EXECUTABLE."
    program_action = > ' / fsoracle/app/oracle/inst2/if_cft/send_file_susin.sh',
    number_of_arguments = > 0,
    enabled = > TRUE,
    Comments = > 'Test '.
    );
    commit;
    in a package, then I run the package.
    program and job

    DBMS_SCHEDULER exec. () CREATE_JOB
    job_name = > 'run_sh1 ',.
    program name = > "send_file_susin"
    start_date = > sysdate + 1/2880.
    repeat_interval = > null,
    End_date = > null,
    job_class = > 'DEFAULT_JOB_CLASS ',.
    enabled = > true
    )

    When I ran, I would check there program and job send_file_susin in the sched.programs and sched.job classes. The job will run about 30 seconds later.
    After 30 seconds, I saw the work was done, but I couldn't see the log of the CFT program. This means that the file have not been transferred...

    I don't know what is wrong with it... Please, someone that solve?
    Thank you very much in advance.

    Hello

    You don't have to create a program first, put directly in the work should work as well.

    Your pl/sql code is correct, then you should check out a few things with the shell script

    -is set + rx
    -is the first line #! / bin/sh
    -should I use the full path to the executable files for example/usr/bin/ftp
    -It defines the variables

    If that all seems well, consider adding lines of logging to your shell script to debug what goes wrong.

    See this post for more tips

    Guide to the external work on with dbms_scheduler 10g for example scripts, batch files

    Any other questions about the Scheduler, you can use the forum Planner here

    Planner

    Hope this helps,
    Ravi.

  • Impossible to run the main.jnlp file by using java web start

    Hi all

    I try to install sas enterprise minor. When I try to run the main.jnlp file downloaded on the sas site, nothing happens. Could someone help me on this?

    I put the path C:\Program Files\Java\jre6\bin

    Thank you

    I am able to run it now after clearing java cache

Maybe you are looking for

  • I just find a folder named "Corrupted files" in my HD. Can I delete it?

    I just noticed this DamagedFiles folder in my hard drive; all files are aliases, and they are all dated October 4, 2014. I guess they are the result of an accident or doesn't have the OS installation. But two years ago, so I wonder if it is safe to d

  • Re: Satellite A205-S5000 - restore to out of box

    I have a Satellite A205-S5000 & I want to restore it to out of box. I can see the "Toshiba System Volume" when I try to create a restore point, but I can't my machine to go to do the restore. Any advice will be greatly appreciated.Thanks Dave1958

  • formula node

    I send it a zone indicator shows full decimal form but receive and whole. I changed the data types of the double room on long extended float etc, with no result. Y at - it something I am doing wrong?

  • loaded Windows 7 and now my online games continue to be disconnected___

    loaded Windows 7 and now my games online keep get disconnected. they remain connected for only a minute. I've updated all the drivers and windows.

  • Windows Update died I tried many Solutions still dead

    Windows Update died I tried many Solutions still dead After the October update of microsoft updates no longer works, so I ran the ms fixit (who died) told me to run a tool that can help with this, and then he proceeded to offer me a useless CAB file: