How to retrive only data related to specific business group efficiently?

We have sql queries which were written for an instance assuming that there will be only one Business Group. Now, we want to reuse those queries for another instance which is based on multi business groups.
I understand, using fnd_profile.value('PER_BUSINESS_GROUP_ID') this, we can join with BG ID in correspondingthe tables. I found below tables which are used in my query.
ota_delegate_bookings
ota_events_tl
ota_activity_versions
ota_activity_versions_tl
ota_activity_versions
ota_category_usages
ota_offerings
per_person_types
ota_booking_status_types
hr_locations
per_all_assignments_f
per_all_people_f
per_org_structure_elements
hr_all_organization_units
Now my question is, do we need to join this BG id for all these tables using the value from above profile?
For example, employees difined in system are specific to one BG. Even though when we use/join with person_id in per_all_people_f, we will get unique record. So still is there any need to join with this BG id ?
My concern is, in my query there are many places where I need to add this extra BG id condition, this may reduce performance of the query. I am not sure whether I have to change if id's are being used in the query.
It would be very helpful, if any one can share the best practices(technically) when working with multiple BG, LE, OU's etc..
Best Regards,
Venkat.Y

Its difficult to summirize all that is needed for multi-org -
Check below -
https://forums.oracle.com/forums/search.jspa?threadID=&q=multiple+AND+BG&objID=f113&dateRange=all&userID=&numResults=15&rankBy=10001
Can Multiple Business Groups Be Associated with a Single Opearating Unit? [ID 732664.1]
FAQ - Multiple Organizations Architechure (Multi-Org) [ID 165042.1]
Cheers,
Vignesh

Similar Messages

  • How to show only date in BO webi 3.1 text box

    how to show only date in BO webi 3.1 text box for e.g:-
    01/01/2005  (no time only date)

    hi,
    just check by which format your date is coming
    just create a one variable and check =UserResponse("Transaction Date From (mm/dd/yy)")
    if your output is in format of("mm/dd/yyyy hh:mm:ss a")
    then some format we have to write in todate syntax
    then your final formula for date would be
    =FormatDate(ToDate(UserResponse("Transaction Date From (mm/dd/yy)");"mm/dd/yyyy hh:mm:ss A");"dd/mm/yyyy")

  • How to retrive the data from a sqlite file(.db3) in windows phone 8.1(runtime)

    hey guys
    i installed the sqlite and sqlite-net as requested in other answers i found, changed to x86, and add the .db3 file in my project.
    but the problem is how to retrive the data that already in the file( i am not creating any table or data in the app, just read)
    all the answer i found is to create a table first and then read the table, i tried to skip the step of creating a table, and read from the table directly, but failed with " no such table", by the way, i set the property of the .db3 file as "content",
    "copy if newer"
    can anyone please help? i appreciate that !

    Hello,
    From your description, you want to read data from available sqlite file. When you add the sqlite file into your project, you need to change the sqlite file build action to content. After deploying to device, the sqlite file is located in installation folder,
    you need to copy that file into storage folder before reading data. Please try the following code snippets.
    private async void Button_Click_9(object sender, RoutedEventArgs e)
    //check if file exists in storage folder, and then copy to local storage
    bool flag = await FileExistsAsync("Data.db3");
    if (!flag)
    var folder = await Package.Current.InstalledLocation.GetFileAsync("Data.db3");
    await folder.CopyAsync(Windows.Storage.ApplicationData.Current.LocalFolder);
    // open sqlite and read data
    public async Task<bool> FileExistsAsync(string fileName)
    try
    await Windows.Storage.ApplicationData.Current.LocalFolder.GetFileAsync(fileName);
    return true;
    catch (FileNotFoundException)
    return false;
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • How to get customer no relating to a Business partner No

    How to get customer no relating to a Business partner No . Is that Customer unique ?

    hi arshad,
    based on business partner u can get customer number. both tables having some uniqe field...based on that uniqe field u can identify business partner no.......
    if it is usefull review the points

  • How to retrive the data from structure

    Hi Guru's,
                 I have an doubt in how to retrieve the data from the standard structure or view .i want to retrieve the data from std structure name is (IOOPCOMP) in that structure i want to fetch the field DENMNG ,MENGE,EINHEIT how do i write select query to  print the value . if any one can have any example structure related program give me its very helpful for me.
    with regards,
    sen

    Hello Senthil
    The solution for your problem is trivial. Checking the Where-Used-List for structure IOOPCOMP (on release 4.6c) there is neither a function module nor a class using this structure (or fields of it).
    However, the structure is used in the following list of programs:
    PPIO_ENTRY
    PPIOA000
    PPIOB000
    PPIOC000
    PPIOD000
    PPIOE000
    PPIOF000
    PPIOG000
    PPIOH000
    PPIOI000
    PPIOK000
    PPIOM000
    PPIOO000
    PPIOQ000
    PPIOR000
    PPIOS000
    PPIOT000
    PPIOW000
    PPKALKFI
    PPPIA000
    PPPID000
    PPPIG000
    PPPIH000
    PPPII000
    PPPIK000
    PPPIM000
    PPPIO000
    PPPIQ000
    PPPIR000
    PPPIT000
    PPPIW000
    RCCLORD
    SAPDBIOC
    SAPLCOWORK240
    SELECT_OPERATION
    If you know judging from your business context which program is the right one you are half-way on the home stretch.
    Regards
      Uwe

  • How to get 2 Dates of a specific day From a Pay period

    Hi
    I have a date range (Pay period). now from the start date i Need to find out both Dates of a specific day of that Pay period.
    For Example If i know the date range is
    01/06/2007 to  01/19/2007
    Then I need to know what are the dates for both Saturdays.
    Here it should be 01.06.2007 and 01.13.2007.
    Please help. I always award points. Thanks
    Message was edited by:
            Anwarul Kabir

    Hi,
    Please try this.
    PARAMETERS: P_START LIKE SY-DATUM,
                P_END   LIKE SY-DATUM.
    DATA: DAYS    TYPE I,
          WEEKDAY LIKE DTRESR-WEEKDAY.
    DAYS = P_END - P_START.
    DO DAYS TIMES.
      CALL FUNCTION 'DATE_TO_DAY'
        EXPORTING
          DATE    = P_START
        IMPORTING
          WEEKDAY = WEEKDAY.
      IF WEEKDAY = 'Sat.'.
        WRITE: / P_START.
      ENDIF.
      P_START = P_START + 1.
    ENDDO.
    Regards,
    Ferry Lianto

  • Root disk craches how to retrive the data from ZFS file systems.

    Hi Friends,
    The solaris 10 OS (root disk) is crached.i have configered execpt root disk to all disks for ZFS file systems.We using to application.Now any possble to retrive the data.
    Server model - V880
    Pls help me.
    Advance thanks.

    If the OS wasn't on ZFS, then just rebuild the server, hook up the drives and run 'zpool import'. It should find the pool on the disks and offer it up to be imported.
    Darren

  • How do I authenticate users in a specific AD group with Cisco ISE

    I have ISE up and running authenticating properly.  But right now it will authenticate and allow ANY account in Active Directory.  I want to allow access to only users in a specific group in Active Directory.  I have added the group under Administration>Identity Management>External Identity Sources>Active Directory>Groups.  But, I have not been able to find a way to link membership in that group to the Authentication Policy rules.

    Thanks for the reply.
    I'm not getting AD as an option (see below).  Any idea why that might be?

  • How to convert a Date to a specific locale?

    Hi,
    A locale specific date is read from the swing JTextField, and now the as the user changes the value of the JTextField changes with respect to the JTextField entered.
    I m using -
    String zInputTxt = t1.getText();
    Date zInputDate = new Date();
    try{
    zInputDate = new SimpleDateFormat("dd/MM/yyyy").parse(zInputTxt);
    }catch(Exception eParse){eParse.printStackTrace();}     
    t2.setText(Driver.z18n.getFormattedDateString(zInputDate, DateFormat.SHORT));
    but the problem is that if the locale is japanese or any other language then parsing is going wrong and the t2 JTextField is showing different Date.
    I know since I am using the SimpleDateFormat pattern as fixed so it will parse with that only, but can any body tell me how to can I parse Japanese and English with the code.
    Thanks

    We can do it by
    JTextField t1,t2;
    String strText = t1.getText();
    Date dat = DateFormat.parse(strText);
    but I am getting error when i inserted in the the DocumentListener
    class zDocumentListener implements DocumentListener
    Date dt = new Date();
    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy", Driver.z18n.clientLocale);
    Date zInputDate;
    public void insertUpdate(DocumentEvent e) {
    = DateFormat.parse(zInputTxt);
    updateFields(e, "");
    public void removeUpdate(DocumentEvent e) {
    updateFields(e, "");
    public void changedUpdate(DocumentEvent e) {
    //Plain text components don't fire these events.
    public void updateFields(DocumentEvent e, String action) {
    Document doc = (Document)e.getDocument();
    int changeLength = e.getLength();
    String zInputTxt = t1.getText();
    zInputDate = DateFormat.parse(zInputTxt);
    The error is coming at zInputDate = DateFormat.parse(zInputTxt); as non-static method parse cannot be referenced froma static content.
    what is the wrong I am doing, and what should i be doing.
    thanks

  • How to create a Date field with specific date limitations

    Hello, im new to creating forms in Acrobat.
    My question is, how do i create a date field and at the same time have a restriction on which dates to put.
    ie; i want the date field to only enter dates from Jan 01 2015 - Dec 31 2015.
    Thanks for your help.

    Thanks!
    I tried and it worked.
    but what are these numbers after the 2015?
    var minDate = new Date(2015, 0, 1, 0, 0, 0, 0); 
    var maxDate = new Date(2015, 11, 31, 23, 59, 59, 999); 

  • Help! How to retrive the date and time from MySQL 'datetime' type

    In my MySQL database, I have stored a data type 'DATETIME' as 20070412093012 which is interpreted as 2007-04-12 09:30:12, How to using Java method to retrive it from data base???
    like resultSet.getDate('datetime')????or what is the method?

    Have a look at the API documentation for ResultSet. Which of the methods documented there do you think might be what you need? If you can't tell which is the right one, then post your candidates here and ask a question about them.

  • How to count ONLY fields with a specific value

    I modified the code below from the API reference to count combobox fields with a value of "MT" so I could total the number of a specific choice the form user input.
    var count = 0;
    for (var i=0; i<this.numFields; i++)
    var fname = this.getNthFieldName(i);
    if ( this.getField(fname).type == "combobox" && this.getField(fname).value == "MT" ) count++;
    this.getField("mTurb").value = count.value;
    Here's the problem: I tried to use a similar script, modified only slightly from this form, in another total field to tally a different choice made with comboboxes and the script continues to tally the first choice. An example of one of the modified versions of the script is below.
    var gcount = 0;
    for (var i=0; i<this.numFields; i++)
    var gname = this.getNthFieldName(i);
    if ( this.getField(gname).type == "combobox" && this.getField(gname).value == "MT" ) gcount++;
    this.getField("gPack").value = gcount.value;
    I suspect I'm just missing something painfully obvious to seasoned scripters, but I can't seem to figure it out and I need this script to be able to count the number of 9 different options in the comboboxes.

    OK, you can use a script like the following as the custom calculate script for the text fields that perform the counts:
    // Custom calculate script for text field
    (function () {
        // Declare and initialize variables
        var fn, s = "MT", count = 0;
        // Loop through the combo boxes
        for (var i = 1; i < 25; i++) {
            // Determine the current field name
            fn = "M" + util.printf("%02d", i));
            // See if the field value matches
            if (getField(fn).valueAsString === s) count++
        // Set this field value to the count
        event.value = count;
    Change the value of the "s" variable to match the item that you want to count. The first and last lines prevent the unnecessary creatio of global variables, which is good. It also makes it easy to transfer to a more general document-level routine, which would be event better, something like:
    // Custom calculate script for text field
    function getCBCount(s) {
        var fn, count = 0;
        // Loop through the combo boxes
        for (var i = 1; i < 25; i++) {
            // Determine the current field name
            fn = "M" + util.printf("%02d", i));
            // See if the field value matches
            if (getField(fn).valueAsString === s) count++
        // Set this field value to the count
        event.value = count;
    You would then call this function from the individual text boxes with the following custom calculate script:
    getCBCount("MT");
    and replace "MT" with the vlaue you want to count.

  • How to retrive table data in form

    Hi all,
    I want to retrive whole table data in forms , just by passing table name.either through a prcedure or function. is it possible to do this?
    Thanks in advance

    Hello,
    Pls give us the information about the version of database and forms you are using.
    it is possible to do so,provided you are aware of maximum no of columns(i.e no of tables which you use) and there datatypes before hand and also you have to use visible property extensively to show and hide the columns
    Regards
    Mohan Partha

  • How to retrive archived data from ECC table

    Hi,
    I need extract the data from archived ECC tables to BW.
    How can I know that which tables the archived data has been stored in ECC ?
    Thanks for your help in advance.
    Raj.

    Hi Sreenivas,
    I know the t-code SARA using we can pull the data. Please let me know by the steps how to pull the archived data in to the data source.
    Do I need to create any generic data source or we can pull the data into existing data source.
    Please let me know by steps or if you have any document link?
    Thanks,
    Raj.

  • With out using submit button how to retrive the data

              at in the combo box if I selects one name automatically that person details to
              be retrive from the database and placed at in the other text boxes.
              

              Hi,
              You can do it in two ways:
              1. You can implement this in having java script function for that radiobutton
              on select and then make a call to server, submitting the form data to fetch the
              same from database. But in this case, the page will be refreshed.
              2. you can have a javascript function and using the same you can open a new window
              and then make a call to servlet to fetch the data and to submit to the text field
              in the form.
              Regards
              Srinivas.K
              "chiru" <[email protected]> wrote:
              >
              >at in the combo box if I selects one name automatically that person details
              >to
              >be retrive from the database and placed at in the other text boxes.
              

Maybe you are looking for

  • I want to upgrade the hard drive in my MacBook Pro

    I bought one of the first MacBook Pros that only came with a 100gb drive. I want to buy at least a 250gb drive for it. The problem is that I would like to maintain what I already have on the existing drive. I am getting Leopard on Monday so I'm not s

  • Recover from hotbackup without archivelog-for help

    Because user error, three tables are deleted on may 1,2007. so, I restore db datafiles from tape, which is hot backup on apri 21,2007. Copy the datafiles to other os,and recover. But, the archivelog required is lost.as follows: $ sqlplus "/ as sysdba

  • Need to update sequence value in two table

    Hi guys Please help me in the below query I will need to insert a row in two different table table1 col1 col2 table2 column1 column2 the col1 in table1 will be assigned a sequence.nextval i need to assign the same value in table2 column 1. can i do i

  • Synchronous does not work

    Hi, Export, I have a SOAP<--->XI proxy synchronous scenario. it is not working after we upgrade PI7.0 to PI 7.1. I can see soap message is coming over in monitoring. And I can see it does everything that is written in proxy. But it just does not send

  • Flex Hero (: release that dared to pretend that it was real :)

    I have installed the Hero sdk 4.5.0.19786 (from 03/Feb) and yet in Flash Builder 4 (not the Buritto but straight 4) there are no style options when working with the Form control and as such, all I get is side labels and I need the vertical ones. Plea