How to get organization id as input in oracle alerts

Hi,
How to get organization id as input in oracle alerts
Following is the my sql script
SELECT
poh.segment1
,pv.vendor_name
,poh.end_date
,flv.description
,flv.tag
INTO
&po_num
,&vendor_name
,&end_date
,&to_mail
,&cc_mail
FROM
po_headers_all poh
,po_vendors pv
,hr_locations hrl
,org_organization_definitions ood
,fnd_lookup_values_vl flv
WHERE
poh.vendor_id = pv.vendor_id
and poh.type_lookup_code in ('CONTRACT','BLANKET')
and poh.attribute2 = 'Contracts, Services'
and hrl.ship_to_location_id = poh.ship_to_location_id
and hrl.inventory_organization_id = ood.organization_id
and ood.organization_code = flv.lookup_code
and flv.lookup_type='NGHA_EAM_ORG_EMAIL'
and flv.lookup_code = 'RCE'
and to_char(poh.end_date, 'dd-mm-yyyy') = to_char(sysdate+180, 'dd-mm-yyyy')
Here i did organization code as hard code , but i want here organization code dynamically.
Hanimi.

Can you not use the function FND_PROFILE.VALUE ('ORG_ID') or something similar ?
See ML Doc 289563.1 (Unable To Use More Than 16 Functions Calls In Alert Definition) as an example.
HTH
Srini

Similar Messages

  • How to get Workflow code/wtf file from Oracle Customization Form

    Hi All,
    I am new to this forum. Can some one please help me how to get this wft file from customized oracle PO form ?
    Thanks,

    Pl post details of OS, database and EBS versions.
    What is "this wft" file ? WFT files are txt files of workflow definitions that can be downloaded from the database (or uploaded to the database) using WFLOAD utility.
    HOW TO DOWNLOAD WORKFLOW FILE .wft          [Document 578248.1]
    How To Update and Move Workflow From One Instance to Another?          [Document 398460.1]
    HTH
    Srini

  • How to get values of all input text of a form?

    Hi,
    I would like to know how to get all input text value of a form?
    I try this:
            List values = new ArrayList(); 
            values = getBindings().getAttributeBindings(); 
            for (Iterator iterator = values.iterator(); iterator.hasNext();) {
                Object o = iterator.next();
                if (o != null) { 
                    if (o instanceof FacesCtrlAttrsBinding) { 
                        System.out.println("Trace iterator=" + ((FacesCtrlAttrsBinding)o).getName());
    src
    In my jspx, I use panelTabbed component which is in af:form
    With this code, I get all bindings name.
    So I change the [structure |http://h.imagehost.org/0922/jdev.png] putting af:form in each item of my af:panelTabbed without succes.
    The code trace all bindings again, and I just want to get the input text of the form (like *$_POST*, or *$_GET* in php)
    How to do that?
    Thanks for your help.

    Hi,
    I try this:
    private UIComponent getUIComponent(String name) { 
          FacesContext facesCtx = FacesContext.getCurrentInstance(); 
          return facesCtx.getViewRoot().findComponent(name) ; 
    src
    I post the structure again.
    I try:
    // f1 id of af:form
    UIComponent test =  getUIComponent("f1");
    test is not null
    // pfl1 id of af:panelFormLayout
    UIComponent test =  getUIComponent("pfl1");
    but here test is null
    I try
    // f1 id of af:form
    // pt1 id of af:pageTemplate
    // pt2 id of af:panelTabbed
    // sdi1 id of af:showDetailItem
    // ps1 id of af:panelSplitter
    // pgl32 id of af:panelGroupLayout
    // pfl1 id of af:panelFormLayout
    UIComponent test =  getUIComponent("f1:pt1:pt2:sdi1:ps1:pgl32:pfl1");but I have this:
    Error 500--Internal Server Error
    javax.servlet.ServletException: java.lang.IllegalArgumentException: f1So I add
    private static final char SEPARATOR_CHAR = ':';But I have the same error.
    getUIComponent returns null with pt2,sdi1, ps1, pgl32, pfl1 and not null with f1, pt1.
    I don't know why...
    How can I get children (af:inputText) of pfl1 ?
    Thanks

  • How to get the path of input type="file" tag

    -- im using <input type="file"> tag to get an input file from a local host, it returns only the filename but not the complete path of the filename,,,
    -- i need to know on how to get the compelete path /directory of the filename using <input type="file"> tag , or is there any other way to get an input file from a local host aside from <input type="file"> tag?
    thanks

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
    When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
    i need to know on how to get the compelete path /directory of the filename
    using <input type="file"> tag You can't. Its a security thing.
    is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
    You could always go into activex components, but thats different again.
    Cheers,
    evnafets

  • How to get rid of freeform input layer

    Hey。Somehow i have started getting a gray layer for drawing letters every time i have a text input field。i dont know how to get rid of it permanently。also i can no longer hold down a letter to get a capital letter and the autocorrect doesnt work。help!justin

    how annoying is it to go to a seperate screen set and then click a midi region just to edit it?
    You haven't grasped the concept of screensets.
    In the "old" way of working, in your arrange, you double-click on a region, which opens that region in an editor. You may have to move the editor position/size etc. You make your edits, and then close the window.
    The screenset way of doing this is simpler and quicker. In your arrange, you select your region (one click, rather than a double click). You then hit a key command, lets' say "2" to switch to your editor screenset, which has the eitor or combination of editors you use, in link mode. As soon as you hit your 2 key, the editors will be recalled at the precise locations you specified, showing you the contents of your selected region.
    When you are finished editing, just hit "1" to go back to your main arrange window.
    Once you get used to this, you'll find it's a lot quicker and more efficient than all that rsi double clicking and window closing...

  • Need help using split, how to get the number of inputs?

    I am trying to write a program in which a user inputs several numbers, then the output is how many numbers were input. I am thinking that the best way to do this is to use split, however I am pretty new and can't get it quite down. Thanks

    Sorry, I guess I didnt explain it correctly. The input would be something like this-
    90 87 76 23 99
    Here is what I have-
    import java.util.*;
    public class Scores {
      public static void main(String args[]) {
              int score;
              System.out.println("Input UNC Basketball scores, each separated by a space.");
              Scanner keyboard = new Scanner(System.in);
       int count = args[0].trim().split(?\\s?).length;
    }The int count line was given to me by someone, however I dont know how to get there. Thanks

  • How to get Organization Hierarical Information??

    Hi Group,
    I have a requirement to send the emails to all the <b>Users & Business Partners</b> , under a particular <b>Postion</b>.
    The requirement is like this:
    I have in my "Z" table, the hard coded values ( for the <b>Positions</b> to which the mails have to be sent eg., position is like "<b>Asst Manager</b>" or "<b>Agent</b>" or something else. ).
    In the position, I have to pick up the <b>Users and Business Partners</b>.
    So my query is how to get the values from the <b>Position</b>. I have already explored on a table "<b>HRP1001</b>" on this, but, it was not very helpful in solving my issue.
    So please put in your valuable inputs for this thread.
    thanks in advance.
    Regards,
    Amit.

    HI Amit,
    Call FM RH_STRUC_GET
    with  ACT_OTYPE    =  O
           ACT_WEGID     = 'DISPO_BP'
           ACT_OBJID       = central partner of your org unit ( ex: ID wil be of type -
                                              O  50000459, Take 50000459 as OBJID)
    and result tables of this FM will give u all the Business Partners under the whole Org Structure.
    Let me know if it wont work
    Siva
    <b>Reward points if it works!!!</b>

  • How to get Chinese and Japanese input in X11?

    I have tried a few things like building UIM, Canna, and Anthy, but nothing seems to work. For one thing, I seem able to compile and install the Canna library, but when I run ./configure for UIM, it can't find Canna.
    Can somebody walk me through getting Chinese and Japanese input in X11?

    It would probably be good to ask this in the Unix forum:
    http://discussions.apple.com/forum.jspa?forumID=735
    What apps are you trying to use?
    For what it's worth, it recently came up on the Chinese-Mac mailing list:
    http://groups.google.com/group/chinesemac/browse_thread/thread/19d00bd8cc3b1d88

  • How to get support for research work from oracle?

    sir
    i want to undergo a research from a univ at my city on db security and cryptography.i may require some document and psudo code of certain algorithim.how to get those from oracle?
    regards

    Find a contact within Oracle to help get you introduced to the Product Manager(s) for the area of interest. Ways to find that contact:
    - Oracle Sales (ask your/university sales rep for an intro)
    - relevant Oracle Forums (watch for responses from Oracle employees)
    - Oracle Wiki
    - Oracle Open World where you can meet lots of employees
    - User group meetings

  • How to get the Newly added fileds from Oracle to BW

    Hi ,
    We have created the view in the DB side and extracted the data to BW side. After that in the DB side they have added new filed. I want to extract the data for that filed also. But that filed is not displaying in the data source itself. We have deleted the sources system assignment to that particular info source and generated the data source in the source system side, and then also I an unable to get the newly added filed in the data source. We are extracting the data from the ORACLE data base. Please let me know the steps how to get the newly added filed in the data source.
    Thanks,
    Visu

    Hi Yadav,
    yes i have alreday created the info objects in the BW side. In the Oracle DB i can see the fileds in the data sources. Newly added filed is not displaying where as previous all fileds are displaying in the oracle DBside.
    Thanks,
    Visu

  • How to get messages from IBM MQ in Oracle.

    Hi ,
    Can you please help me how to get messages from one IBM MQ to another IBM MQ in Oracle.
    My requirement is Our upstream is putting messages from their IBM MQ to our IBM MQ
    then we have to extract data from the message and load into Oracle database tables
    how to implement this  in oracle.
    Is there any other way to implement this without writing any ORACLE PL/SQL programming.
    Please help me.
    Thanks.

    You might want to use Oracle AQ: Integrating Oracle database applications with WebSphere MQ applications You will need to write some PL/SQL to Dequeue from Oracle AQ and convert the queue payload into insert statements.
    If you need help wityh AQ, there is a separate forum: Advanced Queueing

  • How to get XML tag attribute vaue in Oracle

    Hi,
    I have XML file which have order tag
    <submitOrderRes>:Application Exception: SOS</submitOrderRes>.
    From this xml file i want to display only the tag value , which is 'Application Exception: SOS'.
    how to get this tag value by select SQL
    any help is appreciate
    TY

    I don't know your query
    Here is the example
    SQL> l
      1  select
      2  extractvalue(xmltype(dbms_xmlgen.getxml('select * from emp where rownum=1'))
      3  ,'/ROWSET/ROW/ENAME') col_value
      4* from dual
    SQL> /
    COL_VALUE
    SMITHSS

  • How to get exact match when working with Oracle Text?

    Hi,
    I'm running Oracle9i Database R2.
    I would like to know how do I get exact match when working with Oracle Text.
    DROP TABLE T_TEST_1;
    CREATE TABLE T_TEST_1 (text VARCHAR2(30));
    INSERT INTO T_TEST_1 VALUES('Management');
    INSERT INTO T_TEST_1 VALUES('Busines Management Practice');
    INSERT INTO T_TEST_1 VALUES('Human Resource Management');
    COMMIT;
    DROP INDEX T_TEST_1;
    CREATE INDEX T_TEST_1_IDX ON T_TEST_1(text) INDEXTYPE IS CTXSYS.CONTEXT;
    SELECT * FROM T_TEST_1 WHERE CONTAINS(text, 'Management')>0;
    The above query will return 3 rows. How do I make Oracle Text to return me only the first row - which is exact match because sometimes my users need to look for exact match term.
    Please advise.
    Regards,
    Jap.

    But I would like to utilize the Oracle Text index. Don't know your db version, but if you slightly redefine your index you can achieve this (at least on my 11g instance) :
    SQL> create table t_test_1 (text varchar2(30))
      2  /
    Table created.
    SQL> insert into t_test_1 values ('Management')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Busines Management Practice')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Human Resource Management')
      2  /
    1 row created.
    SQL>
    SQL> create index t_test_1_idx on t_test_1(text) indextype is ctxsys.context filter by text
      2  /
    Index created.
    SQL> set autotrace on explain
    SQL>
    SQL> select text, score (1)
      2    from t_test_1
      3   where contains (text, 'Management and sdata(text="Management")', 1) > 0
      4  /
    TEXT                             SCORE(1)
    Management                              3
    Execution Plan
    Plan hash value: 4163886076
    | Id  | Operation                   | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |              |     1 |    29 |     4   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| T_TEST_1     |     1 |    29 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | T_TEST_1_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("TEXT",'Management and
                  sdata(text="Management")',1)>0)
    Note
       - dynamic sampling used for this statementJust read that you indeed mentioned your db version in your first post.
    Not sure though if above method is already available in 9i ...
    Message was edited by:
    michaels

  • How to get the available profile names in oracle database

    How we can get the available profile names in oracle 11g

    Hi;
    It isnt to check from dictionary ?
    select * from dictionary where table_name like '%PROFILE%'
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • How to get and parse xml input parameter?

    Hi,
    If one transaction input parameter is xml string, like as below.
    <a>
    <b>
        <c>1</c>
        <d>2</d>
    </b>
    <b>
        <c>3</c>
        <d>4</d>
    </b>   
    </a>
    If I would like to get each element (maybe by repeater action), how to do that?
    Thanks!

    Hi,
    You must convert the string into xml with necessary action block. (XML Functions --> String to XML Parser)
    Then you must put a repeater after converter action and you must set Xpath expression for repeater (configuration) like below:
    String_To_XML_Parser_0.Output{/ARef/BRef}
    after repeater you can use values like below:
    Repeater.Output{/BRef/c}
    Repeater.Output{/BRef/d}
    Regards.

Maybe you are looking for