Fetching data for a specific operating unit

Hi All,
I want to apply a check in my query wherein the query fetches data only for a specific operating unit.
Eg : If the concurrent program is run from a US responsibility then it should fetch data only for US and if it is run from Canada responsibility then it should fetch data only for Canada.
Please advice what profile option check or any other check do I need to put in my query.
I am using org_organization_definitions table in my query, will this table be of any help for the same.
I am using 11i version.
Regards,
SS

Please see if these docs help.
Oracle Applications Multiple Organizations Access Control for Custom Code [ID 420787.1]
Where To Set The "Operating Unit Mode" When Defining A Concurrent Program [ID 847094.1]
Thanks,
Hussein

Similar Messages

  • Posting to AX by specific Operating Unit

    I would like to know if anybody knows if it is possible in AX (Global Accounting Engine) to select a specific Operating Unit instead of select "All" in this field so I can post to a specific set of books by that specific operating unit.
    I have the situation where I have multiple operating units posting to the same and unique Corporate set of books and then I have a separate statutory set of books where I will post the data for specific operatin unit. Do I have to create separate corporate set of books for each operating unit so I will have one to one posting? Or can I have the option of selecting the operating unit I want to be posted to each statutory set of books?
    Thanks
    Claudia

    Please see if these docs help.
    Oracle Applications Multiple Organizations Access Control for Custom Code [ID 420787.1]
    Where To Set The "Operating Unit Mode" When Defining A Concurrent Program [ID 847094.1]
    Thanks,
    Hussein

  • How to fetch data for a struture from a cluster table

    How can I fetch data for a struture, from a cluster table, based on the name of the structure?

    Hi,
    In order to read from Cluster DB Table use the following statement:
    Syntax
    IMPORT <f1> [ TO  < g1 > ] <f2> [TO < g2 >] ...
    FROM DATABASE <dbtab>(<ar>)
    [CLIENT <cli>] ID <key>|MAJOR-ID <maid> [MINOR-ID <miid>].
    This statement reads the data objects specified in the list from a cluster in the database <dbtab>.
    You must declare <dbtab> using a TABLES statement. If you do not use the TO <gi> option, the
    data object <fi> in the database is assigned to the data object in the program with the same
    name. If you do use the option, the data object <fi> is read from the database into the field <gi>.
    For <ar>, enter the two-character area ID for the cluster in the database. The name <key>
    identifies the data in the database. Its maximum length depends on the length of the name field
    in <dbtab>.
    The CLIENT <cli> option allows you to disable the automatic client handling of a client-specific cluster database, and specify the client yourself. The addition must always come directly after the name of the database.
    For Eg:
    PROGRAM SAPMZTS3.
    TABLES INDX.
    DATA: BEGIN OF JTAB OCCURS 100,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF JTAB.
    IMPORT ITAB TO JTAB FROM DATABASE INDX(HK) ID 'Table'.
    WRITE: / 'AEDAT:', INDX-AEDAT,
    / 'USERA:', INDX-USERA,
    / 'PGMID:', INDX-PGMID.
    SKIP.
    WRITE 'JTAB:'.
    LOOP AT JTAB FROM 1 TO 5.
    WRITE: / JTAB-COL1, JTAB-COL2.
    ENDLOOP.
    Regards,
    Neha
    Edited by: Neha Shukla on Mar 12, 2009 1:35 PM

  • Error: can't fetch data for this host - too few bytes supplied by RPC

    Hi,
    In our internal Lab we have:
    One Admin, Media,Client Server (we can make backups for himself) - Solaris 10 with DDS4 tape drive (lab)
    One Windows Client (we can make backups) - Windows XP
    One Linux Client - CentOS 5.1
    When we add the linux client with the command:
    mkhost -a ob --inservice -r client -k 1024 linux
    We receive this message in the linux (host) /usr/tmp/observiced.log
    Error: can't fetch data for this host - too few bytes supplied by RPC partner (OB cached object manager)
    And in the obtool we receive (forever looping)
    Info: waiting for host to update certification status...
    Can you help us with this linux client error ? (iptables and selinux disabled!!)
    Thanks in Advance
    Serpins

    [SOLVED]
    Selinux not well removed....
    Thanks in Advance
    Serpins

  • How to fetch data for sales order costing

    Hi All,
    How to fetch data for VA03 --> Extras --> Costing having cost element details.
    Thanks
    Gaurav

    Hi Gaurao ,
    There is no such function module  to extract data  in one column   , you have to  Convert all the columns data    in one column
    for period   .
    regards
    Deepak.

  • If there is no data for a specific row, please don't show the row at all.

    Hi,
    If there is no data for a specific row, please don't show the row at all.
    how can this be done??
    Thanks in advance.

    Not clear no data for row?
    Did you try with Pivot table? that should take care of it.
    Let us know updates

  • How to fetch data for all OUs

    Hi,
    Run below query:
    select * FROM PO_headers
    Result: no data
    EXECUTE MO_GLOBAL.set_POLICY_CONTEXT('S','120');
    Run below query:
    select * FROM PO_headers
    Result:data for org_id=120
    EXECUTE MO_GLOBAL.set_POLICY_CONTEXT('A','');
    select * FROM PO_headers
    Result: no data
    So how can we fetch data from all OUs whothout using PO_HEADERS_ALL tables?
    why do we have this MO_GLOBAL.set_POLICY_CONTEXT('A','') option?

    in 11i PO_HEADERS is view with org_id policy
    in r12 PO_HEADERS is synonym with policies based on multi-org
    so for r12
    SQL> select count(*) from po_headers;
      COUNT(*)
             0
    SQL> begin
      2    mo_global.set_policy_context('S', 101);
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           110
    SQL> begin
      2    mo_global.set_policy_context('S', 82);
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           235
    SQL>
    SQL> begin
      2      mo_global.init('SQLAP');
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           345
    SQL> select unique org_id from po_headers;
        ORG_ID
            82
           101
    SQL> mo_global.set_policy_context('S',<org_id>) - single operating unit
    mo_global.init(<app_short_name>) - multi operating unit

  • Hyperion IR : Getting out of memory error while fetching data for whole year through web client (wrokspace)

    Hi,
    While fetching data though IR wen client from workspace for a year(all 12 months) I am getting error as ("Out of Memory .Advice : Close other applications or windows and try again").
    If I am trying same through IR studio it does not give any output and show me same repoting front page.
    If i am selecting periods till 8 months it is giving the required data in both IR web client and IR studio.
    Could you please suggest how can we resolve this issue.
    Thanks,
    D.N.Rana

    Issue Cause :
    Sometimes this is due to excessive data which brings the size of the BQY file up around one gigabyte uncompressed in size (for processing may take twice as actual RAM, plus the memory space space for the plugin, and the typical memory limit on a 32-bit system is 2 gigabytes).
    Solution :
    To avoid excessive BQY size exceeding memory availability:
    Ensure that your computer has at least 2Gb of free RAM before he runs IR Studio.
    Put a limit to the number of rows that can be pulled down: Right click on Request label of Query section and put a value in Return First xxx Rows (and check the check box).
    Do not pull down more than 750 MB of data (remember it may be duplicated while processing).
    Place limits or aggregations in Query section (as opposed to Result section) to limit data entering the BQY.

  • How to fetch data for the Change Request in PROCESS_EVENT

    Hi All,
    I need to write some custom logic on Save/Submit button. For this I am planning to enhance the PROCESS_EVENT method of class CL_USMD_CR_MASTER. Within this method I need to access runtime data of the change request currently being processed.
    I am going to create a post-method exit for this PROCESS_EVENT method. Is this correct?
    I have heard we have APIs in MDG which can be used to fetch data, however I do not know how to use the same.
    Can someone please help me with sample code how to fetch the runtime data of the Change Request
    Thanks in advance.
    Regards,
    Vanessa

    What MDG domain are you working on? What you are trying to do is called "reuse mode" enhancement and you do NOT want to tinker with the FPM feeder classes in this case. SCN document Configuration and Enhancement of SAP Master Data Governance contains many examples on how to achieve this.
    This is a how-to document for MDG-M reuse mode enhancement: Extend MDG-M Data Model by a New Entity Type (Reuse Option)
    This is a how-to document for MDG-C/S reuse mode enhancement: SAP How-To Guide: Extend the MDG Business Partner - Node Extension (Reuse Option)
    Keep in mind, these examples are mainly for additional "master data" fields. If you need additional fields that are not master data but are more related to the Change Request itself, you should use this how-to document: Enhancement of the User Interface Building Block for Change Requests
    Again, all of these documents can be found on the first document I referenced above. I suggest that you bookmark it.

  • Problem in fetching data for Tcode QA03

    Hi,
    I am working on a report in which i have to pick up the dates for a material i.e. when it is MIGO is done and when it is moved to unrestricted stock.
    Till now i am fetching up the data from MSEG nad MKPF where i am getting the data w.r.t. movement types(101,321).
    Now the problem is ,i had checked that when i execute Tcode QA03 there is a option of checking the log of it where i found that is shows the value that the purticular value has been moved to unretricted stcok..
    The problem is it is storing the value in table RSTXT and field name TXLINE. How can i pick up the value for it and moreover it doesnot have the movt.type mentioned in it? Should i pick the value from MSEG n MKPF or make my logic through QALS and
    RSTXT.
    Please provide me some information about it...

    Hi Firends,
    I had developed a code for it now,but the problem is i am facing right now is when try to have difference between dates and time of both mvt.types 101 and 321,there comes a problem that it is not able to calculate the diiference as the data of both present in the seperate lines of the itab. Is there anyway that it can be  calculated.
    Here is the link to the code which i had created, please tell me  where i can rectify the error  :-
    I am really facing the problem in it.. plzz check the code whether it is corect or not?
    http://docs.google.com/View?id=dngp529_4grr2ctf6
    Edited by: nav009 on Nov 6, 2009 9:43 AM

  • How to fetch data for cash voucher

    Hi,
    I came to know that there is not direct connection to database tables.
    How to get the data for cash voucher?
    Thanks in advance,

    Hi
    You can get data from BKPF table by passing document type BLART = 'SK'. 
    SK: - Cash document

  • Find the difference between two dates for the specific month and year

    Hi,
    I have two dates, start date is 30/12/2012 and end date is 04/01/2013. Using datediff I found the difference of days between two dates. But I find the no of days in January 2013. ie output is 4 instead of 6. I input month and year to find the no of days
    for that date. In this case I input Jan 2013. How can I sql this ?

    I don't understand how most of the answers provided here not analytically solving the problem with many cases possible.
    First let me understand you:
    You have 2 dates range and you want to calculate day range for specific month and year between the original date range.
    declare @for_month int = 1 --January
    declare @for_year int = 2013
    declare @StartDate date = '2012-12-20'
    declare @EndDate date = '2013-01-04'
    SELECT
    CASE
    WHEN (DATEPART(MONTH, @StartDate) = @for_month and DATEPART(MONTH, @EndDate) = @for_month) and ((DATEPART(YEAR, @StartDate) = @for_year or DATEPART(YEAR, @EndDate) = @for_year)) THEN
    DATEDIFF(DAY, @StartDate,@EndDate)
    WHEN (@StartDate < cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (@EndDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
    DATEDIFF(DAY, DATEADD(MONTH, DATEDIFF(MONTH, -1, @EndDate)-1, 0),@EndDate)
    WHEN (@EndDate > cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) and (@StartDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
    DATEDIFF(DAY, @StartDate,DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, @StartDate) + 1, 0))) + 1
    WHEN ((DATEDIFF(DAY, @StartDate, cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) >= 0) and (DATEDIFF(DAY, cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date), @EndDate) >= 0)) THEN
    DATEDIFF(DAY, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime), DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime)) + 1, 0))) + 1
    ELSE
    0
    END as [DD]
    I don't know how you calculate day range between 01/01/2013 and 04/01/2013
    is 4, it is actually is 3 but if that is the case, you can add 1 from the condition.

  • Fetching data for multiple POs one by one using BAPI..

    Hi,
    We have created a custom BAPI which gives all the details regading a
    given PO in multiple tables.
    Now in a report I have to give a range of PO numbers which should be passed to BAPI one by one and then the data that will is fetched in BAPI tables should be transferred to flat file one by one for each PO.
    How can I do this ?
    Thanks.
    Regards,
    Rajesh.

    Hi,
    1.Get all the PO Numbers into an internal Table.
    2.Loop at the Internal Table.
    3.Within the Loop,call the BAPI
    4.Pass the Value into an Internal Table got thru BAPi
    5.Call the Function Module GUI_DOWNLOAD and Pass the internal Table to that fiunctiona module.
    Reward Points if it is helpful.
    Regards,
    Sangeetha.A

  • Unable to fetch data for the second time in an ADOBE form

    Hi All,
    I am creating a PDF form and its data is based on the output parameter of an interface, when i drag and drop an object from the data view into the body page twice, only the first time the value is getting printed and from the second time it is not printing any data.
    Kindly let me know if any one have solution for the same or if i am not clear any where.
    Thanks in advance.
    Warm Regards,
    Kasi Raaman.R

    The pbm is now solved

  • FG stock on a particular date for a specific customer

    Hi all,
    I need to develop one report in which i need FG stock for a particular customer on a particular date. For ex on 5/11/11 what was the FG stock against xyz customer.
    Is there any logic available for this requirement. can you please tell me which tables i should look for?
    Thanks

    FG stock for a particular customer on a particular date.
    Is it Make to Order stock? If it is not, then you may not find the details. If it is MTO, then use t.code MB5B. Using this, you can find stock on particular date.
    Regards,

Maybe you are looking for

  • AWM 10.2.0.1 - I can not choosing Value Based hierarchy

    I have Oracle client 10.2.0.1 software with AWM 10.2.0.1 . I want to build a dimension with value-based hierarchy . In AWM I have hierarchy editor with the two radio buttons for choosing type of hierachy : Level Based hierarchy and Value Based hierar

  • Urgent : InfoCube/Dimension

    Step 1 :  In development box, the Cube was empty and did the few changes as below From Dimension1 (already have 4 characteristics) Deleted 3 characteristics from InfoCube via remodeling toolboox  - Check the scheduled conversion and it was successful

  • Mapping of tax code with juridiction code

    Hi MM Experts While releasing service entry i m geting error " Message FF718 (tax code does not exist fo jurisdiction code)" i have checked in FTXA tax code is mapped with juri code. pls tell me where is the problem. Thanks Anubhav

  • Starting Aperture leads to reboot under mountain lion

    Dear community, I have installed mountain lion on my macbook pro (2010; 2,4ghz i5; snow leopard) and now notice several problems with the data access. Starting time machine used to let the macbook reboot, now it is aperture: as soon as I click on the

  • Photoshop / Indesign Upgrade Options for Educational Version

    Will I be able to upgrade the following eduction versions to CS3 versions? - Photoshop 7.01 - InDesign 2.02 I'm purchasing a new MacBook Pro and apparently these are not supported by Leopard. What I'd like to do is install my current versions and upg