How to find the id of the org for a cost center

I want to find org id for a cost centre that is segment1.segment2.segment4.segment6(le.div.acctclass.other-516.203897.343.8978) of gl_code_combinations table database. When I connect a responsibility in applications, I know org id as a profile value. But how to find it in a database for this cost center?

Sylvie
So, you may need to check safety rules also then. You can follow this approach. Just borrowed this function from apps which will tell you whether or not the value is allowed for this responsibility and this request.

function is_valid_on_security_rules (p_value_set_id in number,
p_flex_value in varchar2) return varchar2 as

cursor rule_csr is
Select rl.include_exclude_indicator, flex_value_low, flex_value_high
of r, rl, fnd_flex_value_rule_usages u fnd_flex_value_rule_lines fnd_flex_value_rules_vl
where are.flex_value_rule_id = rl.flex_value_rule_id
and r.flex_value_rule_id = u.flex_value_rule_id
and r.flex_value_set_id = p_value_set_id
and you.application_id = fnd_global.resp_appl_id
and you.responsibility_id = fnd_global.resp_id;
- and u.application_id = 200
- and u.responsibility_id = 22918;

Start

for rule_rec loop rule_csr

If rule_rec.include_exclude_indicator = 'I' and - rules
(p_flex_value< rule_rec.flex_value_low="">
p_flex_value > rule_rec.flex_value_high) then

return to 'F';
end if;

If rule_rec.include_exclude_indicator = 'E' and - Exclude rules
p_flex_value > = rule_rec.flex_value_low and
p_flex_value<= rule_rec.flex_value_high="">

return to 'F';
end if;
end loop;
return 't';

exception when others then
return to 'F';
end;

1. create this function in the database
2 initialize apps
3 edit the sql code to add more when the conditions as and try.

SELECT d.organization_id org_id, e.flex_value cost_center
Fnd_segment_attribute_values a, fnd_id_flex_segments b, gl_sets_of_books c, hr_operating_units d, fnd_flex_values e
WHERE a.id_flex_code = ' GL #
AND a.segment_attribute_type = 'FA_COST_CTR. '
AND b.flex_value_set_id = 1002590
AND a.id_flex_code = b.id_flex_code
AND a.attribute_value = 'Y '.
AND a.application_id = b.application_id
AND a.id_flex_num = b.id_flex_num
AND b.id_flex_num = c.chart_of_accounts_id
AND c.set_of_books_id = d.set_of_books_id
AND b.flex_value_set_id = e.flex_value_set_id
AND e.flex_value = '010'
and d.organization_id = fnd_profile.value ('ORG_ID')
and c.set_of_books_Id = fnd_profile.value ('GL_SET_OF_BKS_ID')
and is_valid_on_security_rules (1002590, '010') = 't';

Thank you
Claire

Tags: Oracle Applications

Similar Questions

  • How to find the password for my Motorola Wireless?

    How to find the password for my Motorola Wireless?

    How to connect another computer to the Motorola Wireless?

    ... and now my computer won't connect to the wireless...

    Now would be a good time to use the instructions of the Setup Guide quick Motorola SBG940.

    ... I think I'll call my cable provider then!

    It may be better to talk to someone on the phone instead of trying to communicate via typed messages repeated as some of the information in the previous messages typed always seem to be lost in translation.
  • How to find the password for the embedded weblogic Server

    How to find the password for the server weblogic shipped from jdeveloper please?

    User, please tell us our jdev version!

    You can't find. Once he lost you can set a new one. For this you can either remove server embedded weblogic (delete the DefaultDomain file in the folder system11.1.1.x.x.x.x.) either you go to the system11.1.1x.xx.x/DefaultDomain/servers/DefaultServer/security folder and open the file boot.properties and delete the encrypted user name and password values and enter the new values for them in normal character. Save the file and restart the integrated server. Connection with the new username and password and it should work.

    The new user name and password are encrypted automatically.

    Timo

  • How to find the password for wifi connection?

    I'm trying to connect my iphone to my internet TV. On my phone, it asks me a password to connect to my network TV (different from the wifi network that I connected my TV) and I have no idea how to find the password.

    Hello Pam,.

    Welcome to the community of Sony.

    What is the model # of the TV?

    You can locate the model # of the TV from this link.

    The password has been entered in the iPhone is the WPA password.

    See the following article in the knowledge base to use the Wi - Fi Direct feature with your iPhone.

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/34416

    Please mark it as "acceptable Solution" If you find this information useful.

    Kind regards

    Colby

  • Pavilion dv6-7025tx: how to find the driver for my hardware

    Operating system: Microsoft Windows 7 (64-bit)
    Product name: HP Pavilion dv6 - 7025tx Entertainment PC
    Product number: B3J88PA #AB5
    Motherboard: Hewlett-Packard 181st
    Chipset: Intel HM77 (Panther Point)
    BIOS: 29/05/2014 worm. F.2BS

    I installed an SSD and a clean Windows 7. I started to download the drivers from the site when I found that there are too many drivers for the same hardware, for example under network, there are 9 drivers of Intel, Broadcom, Ralink, Realtek, and Atheros.

    How can I find the driver for my PC?

    This says it all. Each device has a unique ID of the signature or of the device:

    http://dellwindowsreinstallationguide.com/downloading-drivers-checking-hardware-ids-and-downloading-and-installing-dell-system-drivers-in-the-correct-order/checking-hardware-ids-in-the-device-manager/

    If you find the device ID and google it you can find what it is. My own laptop, I have an Intel Dual Band AC 7260 wireless card and this is the device ID:

    PCI\VEN_8086 & DEV_08B2 & SUBSYS_C2708086

    So find a string like that for each device and it will tell you the manufacturer and chipset of each device and let not find you the driver to install. If you find several drivers for the device even look at dates of issue of the drivers and only install the most recent.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • HP OFFICEJET 7310: LOST INSTALL CD FOR OFFICEJET 7310 ALL-IN-ONE PRINTER - ANYONE KNOW HOW TO FIND THE DRIVER FOR IT?

    ANYONE ABLE TO WALK THROUGH WHERE TO FIND THE DRIVER FOR PRINTER HP OFFICEJET 7310?  I LOST INSTALLATION CD YEARS.

    Hello:

    You can download the driver from the link below...

    This download includes the HP Photosmart and Officejet Software Suite (advanced imagery and product functionality) and driver.

    File name: AIO_CDB_Net_Full_Win_WW_140_408 - 5.exe

  • How to find the drivers for the Lexmark 6250 printer

    Help

    bought a new pc can not find a driver for my printer Lexmark 6250, was having the web all afternoon, someone help with this?

    You can find the Lexmark support Web site on the Lexmark drivers.

    Lexmark Web site:
    http://support.Lexmark.com/index?page=product&linkSelected=Node0

  • How to find the SID for DB Oracle 11g

    Someone installed a new database of Oracle 11 g on my machine. Now I'm opening "SQL Developer" and it asks username, password and sid. I don't know what is the SID for my case. How I know that?

    2827706 wrote:

    The guy is not available.

    I checked the list of services in my machine. There is no service windows in my system named OracleService

    You mention that you are using Windows, but if you are and that you have installed the oracle database software and NO service like OracleService , then you do not have a database. But then, why the hell you you ask about this? If you do not want the database software, why don't you just go ahead and uninstall it? And how is it, someone can come and something on your server and have no idea about it?

    Aman...

  • How to find the reason for the high use of the processor - shared server process?

    Hello

    I have a Linux server with instance and an oracle 11.2.0.3. The database is configured for shared server. I do not know the application using the database, but they have performance problems. When I check the server I see, that ora_s001 use a processor Core with 90 to 100%. Is there a way to know the reason for the high CPU load? I'm not very adept at finding bottlenecks or bad sql statements. What I found ist, that some users have very high logical_io and the same users have much cpu_usage.

    What can I do next? Thanks for the tips.

    You must Server multi-user shared for this number of sessions. The main objective os using MTS is reducing the memory usage on the server for the UGA and PGA of sessions.

    About the CPU usage, you must session which uses this server shared at the time, with process $ v and v$ session to trace. From there, check the SQL_ID running and then get his stats. This is probably one or two SQLs with large number of I/o logic. This happens most of the time due to incorrect cardinality estimates and/or bad statistics on the subject which causes suboptimal plans to generate.

  • How to find the cumaltive for a distinct element in the same column

    Hello

    I wrote the following code,

    Select msid, nvl(starttime,0) starttime, sessionvolume, sum (sessionvolume) on sum1 (order by starttime LINES UNBOUNDED PRECEDING)
    of aaa_bill;

    I have many MSID and I want to calculate the cumaltive for each of them, but my code calculate the MSID cumaltive regardless, sample output like below

    Sum1 msid Starttime Sessionvolume
    20110809162804-9734-9734 84A8E46E8BD1
    20110809162804 45 9779 84A8E46E8BD1
    84A8E46E8BD1 20110809162804 2813 12592
    84A8E46E8BD1 20110809162804 21111 33703
    20110809162804 13253 46956 84A8E46E8BD1
    20110809162804 5919 52875 84A8E46E8BD1
    5C4CA98EABF3 20110809204555 6149 59024
    20110809204555 6739 65763 5C4CA98EABF3
    5C4CA98EABF3 20110809204555 2001 67764
    5C4CA98EAC00 20110809225314 1080 68844
    5C4CA98EAC00 20110809225314 6188 75032

    any help please,.

    Maybe

    select msid,
           nvl(starttime,0) starttime,
           sessionvolume,
           sum(sessionvolume) over(partition by msid order by starttime) sum1
      from aaa_bill
    

    Concerning

    Etbin

  • I need to know how to find the download for windows XP Service Pack 3 to put on my computer

    I have a dell laptop inspiron 1000 with windows xp service pack 2 installed and I can't find a download for windows xp service pack 3 other than the iso image on microsoft.com, I have in the past found service pack 3, my laptop, will not let me use windows update can anyone please let me know how I can fix this so I can update my computer by windowsupdate or another method Thank you.

    Patrick,

    Please see the thread below for a possible solution:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/cant-download-SP3/a71b55ee-10d4-410C-8b0b-a2114f7d8b94 >>

    UTC/GMT is 20:30 on Sunday, August 19, 2012

  • I really don't like this windows 8. I struggle to find something and it shows me where anything on the pc. How to find the place for no pop ups?

    I can't find anything on this thing. I have pd a lot of money for nothing.  I have to buy Microsoft wordperfect and so on.  I can not even find where to stop the pop ups.  I want to print an email and I need to print the entire page.  I liked my xp, it's simple and easy to use.  I really need help with this thing

    Wednesday, May 22, 2013 11:15:55 + 0000, rosienelson wrote:

    I can't find anything on this thing. I have pd a lot of money for nothing.  I have to buy Microsoft wordperfect and so on.

    WordPerfect is not a Microsoft product. It is the processor
    provided by Corel (and in my opinion, WordPerfect is the best word
    available processor).

    Microsoft Word processor is called Word.

    Windows 8, or any other version of Windows has never included
    Word, Excel, PowerPoint, Access, or any other important application
    software. These programs must be purchased, either by themselves, or as
    part of Microsoft Office. Nor has it ever included WordPerfect.

    If your old computer running an earlier version of Windows, came
    with one or more of them, it was because the seller who sold it
    delivered as part of the package he has sold, not because that
    version of Windows came with it. Suppliers of some, but not all, do the
    even with computers of Windows 8 (but if they do, it is very likely that)
    a trial version).

    I can not even find where to stop the pop ups.  I want to print an email and I need to print the entire page.

    How do you print an e-mail message depends on which e-mail program you use
    or if read you e-mail with your browser. It has almost nothing
    to see which version of Windows you are using; you have the choice between the
    several different e-mail program out there (third as programs
    Although Microsoft programs), just as you have always done. We are all
    different people and which e-mail program (or any other type of)
    program) we prefer depends on us, what we love and how we work.

    And a remaining issue: whenever you move to a new version of almost
    any piece of software, an operating system or anything else,
    It takes time and some effort to learn what's new on this subject and
    How to use it effectively. If your view is ' I can't find anything on.
    This thing. "I have pd a lot of money for nothing," you have not clearly
    spent the time and made the effort.

    Ken Blake

  • How to find the password for AOL in AOL files?

    My AOL software "remembers" sign - on password.  How can I change

    what I don't remember?

    Hi BillLoftin,

    You will need to contact the support of the Aol software for more information.

    http://help.AOL.com/help/microsites/microsite.do

  • How to find the password for the administrator account (forgot it and don't know the trick)

    I recently got a new labtop and there was already an admin account and a guest won't be able to access admin one I used the prompt, its my labtop but the person known not more because it is a gift, so is it every way possible to clear all the stuff off this or just be able to access the administrator account

    The laptop has the option to restore to day? Some come with a disk partition to do that, while others came with BONES and CD drivers (or the ability to create).

    If it came from someone else, it's always a good idea to wipe it and start over anyway; not sure what this person was in, or what are the sites he visits. Would not be a good day for you if the black helicopters landed in your front yard to cause something that accesses the internet of this laptop without realizing you it :-(

    SC Tom

  • How to find the URL for my wireless network so I can connect my new DVD Blueray player wireless to my network?

    I am running Windows Vista Home Premium with IE 9.

    Hello

    DVD Blueray Player detects the wireless network?

    Check out the following link.

    Add a device or computer to a network

Maybe you are looking for

  • How to connect to a windows OS to IOS and run a windows program?

    Hi all I would like to know if possible to run a windows program (i.e. DIR or WINVER) on a machine windows on the network via a computer of IOS command line is connected to the same network. Basically, I have 2 computers in a network, a MAC OS and th

  • Sharing on a wireless network

    Hope this is right forum thr. Ive has set up a router to a pc and a laptop to share bandwidth network. Works ok but can share the printer connected to the PC?If so, how can I get the laptop to find the printer?

  • Satellite A100-153 infrared configure or disable

    Hello everyone this is my first post here.I want to know how I can configure the ir port so that I can use it with other programs as the media player.Also I have a problem with listening, the remote control of my amp seems to share some codes with th

  • Error on screen eprinter registry

    Ive had many problems with my printer First of all, I can't register online in the center of eprint.  I get a code error invalid whenever I'm trying to save it.  He told me that I had either already registered the device or that someone else has regi

  • Software HP Photosmart C5180 doesn't install properly

    MY HP Photosmart C5180 would not install properly, HP Photosmart C5180 won't copy to save on PC. He says that the software is not installed, I have tried several times to reinstall the disc supplied software but no luck. It won't let me print from th