How to check two conditions while loading to target

Hi All,
I am New to ODI could you please help me in solving this issue.
Actually I scenario is
I am loading from DB2/As400 to oracle
I have so many itemsno's in source table, and I have to check
if count(itemno)>1 and uom='CS' then UOM_flag = 'N' else 'Y'

Hi,
Welcome to ODI world! lol
At the column UOM_flag mapping use a "case when" structure (I'm assuming you Work/Stage area is at Oracle)
I believe will be something like:
Case when count(itemno) > 1 then 'N'
else 'Y'
end
ODI will define, automatically, all necessary columns as group by expression...
Does it help you?
Message was edited by:
Cezar_Santos

Similar Messages

  • How to check the Conditional transition while submit the jsp as screenflo

    Hi All,
    I want to know that how to check the conditional transition, which result is used to decide the next Activity while submit the JSP as Screen Flows
    Edited by bpmvasu at 03/27/2007 11:14 PM

    Hi,
    Unlike BPM Object Presentations where the 'selectedButton' is automatically assigned to the predefined screenflow 'result' variable, when using JSP Persentations you need to do the mapping yourself (I don't think there is a way around this).
    Assuming you're using a JSP Presentation with a Fuego Object Interactive Call, click the 'Advanced' button at the bottom of the Main Task dialog.
    Select the 'showOut' argument set, add a new argument mapping. Select 'result' from the Screenflow's instance variables and map it to 'parameters["paramName"]'. Where paramName is the name of the HTML submit input element in your JSP.
    Hope this helps,
    Tim

  • Select data by checking two conditions

    Dear every one,
    how to fetch data from database by checking two condition...
    the task , it should check whether both are present , if present "it should break out of loop",if not, then check atleast for atleast one available..
    eg:
    if i give a,b etc applies to above
    PreparedStatement pStmt = con.prepareStatement("select eid from lang where language like ?  ");
    for ( i = 0; i < s3.length; i++)
               if(i < s3.length - 1)
               a=a + s3[i] + ",";
               else
                                 a = a + s3[i]  ;
                           pStmt.setString(1, "%" + a + "%");thanks in advance

    Hi Benny,
    You can use the programme RQMELL10 or RQMELL11.
    Why do want a develop a new report. You can use qm10 or qm11. As far my understanding goes you want the cost to be included in the report. Cn you explain in details why you wan this report.
    we are also a using z- report for qm10, where we select a notification to do the modification the task.
    Regards,
    Satyajit

  • How to check 2 condition types (kschl)

    Hi,
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp kschl EQ 'JEC1' OR
                                                  KSCHL EQ 'JMO1'.
    how to write this above stmt? I have to check 2 condition types with a single read stmt?
    regards,
    Star Shankar

    I guess Kishan wants to refer as:
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
    if <b>i_komv-</b>kschl EQ 'JEC1' OR
    <b>i_komv-</b>KSCHL EQ 'JMO1'.
    ....<code>
    endif.
    As KSCHL is part of internal table I_KOMV.
    or
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
    check i_komv-kschl EQ 'JEC1' OR i_komv-KSCHL EQ 'JMO1'.
    ....<code>
    Kishan,
    Correct me if i am wrong.
    Regards
    Eswar

  • How to combine two conditions :  Exists and Item not null ?

    Hello !
    I have a flash chart region that I would like to display only if two conditions are both true.
    The first condition is this one :
    Exists (SQL query returns at least one row) :
    select 1
    from    observatoire.fiche aa, observatoire.activite_faite bb
    where   aa.fiche_id = bb.fiche_id
    and     bb.fiche_id = aa.fiche_id
    AND     bb.activites_id = TO_NUMBER(:P23_ACTIVITES_ID)
    AND     TRUNC(aa.date_activite, 'YYYY') = TRUNC(TO_DATE(:P23_ANNEE, 'YYYY'), 'YYYY')And the second condition would be :
    Item not null :
    P23_ACTIVITES_IDHow to combine these two conditions into one display condition ?
    Thank you .
    Christian

    Hello,
    The issue is that you're doing -
    TO_NUMBER(:P23_ACTIVITES_ID)When you leave the Null return value blank like that, you'll typically see '%null%' used in session state (i.e. it's not actually null). Obviously '%null%' can't be converted to a number, hence the error you're seeing.
    A simple solution would be to make your null return value -1 or some other value that is guaranteed not to be a valid id (and alternative is to convert the %null% to a real null via an App/Page process etc (if you search this forum you'll find a few examples on how to do that). Another alternative is to use a DECODE to detect the '%null%' etc.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • How to put two conditions (rendered) in a panelGrid

    I have two conditions to renderize a panelGrid, how I declare that? I tried to put two rendered but it didn't work. I tried a lot of things, nothing worked.
    Here is one of the codes I tried:
    <h:panelGrid styleClass="boxForm" columns="1"
    rendered = "#{!DHCPMainBean.newParameterDhcp} "
    rendered = "#{DHCPMainBean.newGroup}">

    Your code throwed the following error:
    javax.servlet.ServletException: ServletException in '/network/dhcpMain.jsp': java.lang.String
    I tried another forms like this:
    <h:panelGrid styleClass="boxForm" columns="1"
    rendered= "#{!DHCPMainBean.newParameterDhcp && DHCPMainBean.newGroup} ">throwed this error:
    javax.servlet.ServletException: ServletException in '/network/dhcpMain.jsp': /network/dhcpMain.jsp(135,46) The entity name must immediately follow the '&' in the entity reference.
    I tried this other:
    <h:panelGrid styleClass="boxForm" columns="1"
    rendered=
    "#{!DHCPMainBean.newParameterDhcp&DHCPMainBean.newGroup;}">But, it didn't work either:
    javax.servlet.ServletException: ServletException in '/network/dhcpMain.jsp': /network/dhcpMain.jsp(136,57) The entity "DHCPMainBean.newGroup" was referenced, but not declared.

  • How to set two Conditions Simultaneously in set where clause

    Hi,
    I have a messgechoice item , and i need to fire messagechoice VO with two conditions.
    For Eg:-- we have three Items ProjectContractor& Work Order on a custom Page , now i need work order list should populate on lelection of project & contractor both, so i have apply a fire partial event on contractor where i i get the parameter values as follows:--
    CO Code
    if("OrderNoself".equals(event))
    String value21 = (String)pageContext.getParameter("ProjectName");
    System.out.println("The Selected Project Name for self Contractor is "+value21);
    String value22 = (String)pageContext.getParameter("ContractorName");
    System.out.println("The SelectedContractor Name for ContractorName is "+value22);
    Serializable [] params11 = {value21,value22} ;
    am.invokeMethod("initWorkOrderNumberself",params11);
    AM Code
    public void initWorkOrderNumberself(String ProjectName,String ContractorName");
    getDprWorkOrderpopVO1().setWhereClause("PROJECT_NAME = " + "'"+ProjectName+"'");
    getDprWorkOrderpopVO1().setWhereClause("CONTRACTOR_NAME = " + "'"+ContractorName+"'");
    getDprWorkOrderpopVO1().executeQuery();
    Now when i run my form then Work order list only populateon set conditions ofContractor NAme only.
    Please suggest....

    Hi Tarun,
    Thanx for ur reply,
    i have used below mwntioned code provided by you but still i m getting error...
    public void initWorkOrderNumber(String ProjectName,String ContractorName)
    //getDprWorkOrderpopVO1().setWhereClause("CONTRACTOR_NAME = " + "'"+ContractorName+"'");
    //getDprWorkOrderpopVO1().executeQuery();
    getDprWorkOrderpopVO1().setWhereClause("PROJECT_NAME =:1 AND CONTRACTOR_NAME=:2");
    getDprWorkOrderpopVO1().setWhereClauseParams(null);
    getDprWorkOrderpopVO1().setWhereClauseParam(1,ProjectName);
    getDprWorkOrderpopVO1().setWhereClauseParam(2,ContractorName);
    getDprWorkOrderpopVO1().executeQuery();
    ERROR:---
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select * from omaxe_work_order_headers
    where work_order_number is not null) QRSLT WHERE (PROJECT_NAME =:1 AND CONTRACTOR_NAME=:2)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:985)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:210)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
         at omaxe.oracle.apps.xxopa.boqmain.webui.OmaxeDPRCO.processFormRequest(OmaxeDPRCO.java:107)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01006: bind variable does not exist
    Regards
    Saurabh

  • How to check two internal table fields

    Hi all,
    I need to check two internal table fields are equal or not means which statement i can use.
    Not internal table ,table contents i need to check i.e
    it1-pernr = it2-pernr.
    like this
    if i put loop it'll check one table field for one loop.
    if i put two loop means some fields reflecting 2 in it1 then it'll pring 4 times like that.i want to print whatever in internal table only .
    pernr(0001) two times there in it1 means
    it1-pernr = it2-pernr then
    it's printing
    0001
    0001
    0001
    0001
    like this but actually in it1 only two records.
    Anybody know solution.tell me.
    Thanks
    Regards,
    Nandha

    Hi,
    code for your view
    data : begin of it1 occurs 0,
           z_pernr like pa9012-pernr,
           z_fac_c like pa9012-zz_fac_c,
           end of it1.
    data : it2 like Zsc1 occurs 0 with header line,
    It1 data
    pernr   FAC C
    0001   5555
    0001   5555
    0002   4444
    0003   3333
    0006   8888
    It2 data
    pernr   FAC C
    0001   5555
    0001   5555
    0005   6666
    0003   3333
    output(My code)
    loop at it2 .
    loop at it1 where pernr = it2-pernr.
      write:/01 it1-1pernr,
            10 it1-z_fac_c.
    endloop.
    endloop.
    out put i need.
    0001   5555
    0001   5555
    0002   4444
    0003   3333
    Thanks,
    Nandha

  • Pls help   how to check the condition in java server faces.....???

    Hi All
    I have strucked with code pls help....
    How can i check the codition in java server faces.....?
    like in my Application when user provides the in put like some state name in the next page i have to display some url for that state .......if he provide some other state name it will be different url .....pls help me how can i do that,,,,,,???
    thanks in advance..

    There are certainly ways to do that. E.g. using the rendered attribute, using conditional statements in EL, using a specialized getter for that (lazily loaded if necessary), etcetera. But your functional requirement is unclear, so I can't go in detail with that.
    In the future, please try to write normal English sentences. Don't write like SMS talk and save the periods and commas. The more effort you put in your question, the more chance you will be taken for serious and the more effort others will post in their answers.
    Also, in the future, JSF related questions should be posted in the JSF forum.
    Edited by: BalusC on 12-aug-2008 7:47

  • How to create spinning wheel while loading

    I am making a screen grab tutorial that I do in a Mac
    program. Outputs a .mov. I convert to a .flv with Flash Vid
    Converter. Open Flash - link to it, create the .swf with a
    controller. All I want is to in preference:
    1. create a typical simple spinning wheel of dots while the
    file is loading like on every youtube video.
    2. at the end of my file it goes to black. How do I stop on
    last frame.The .mov stops on last frame.
    3. use a custom skin controller that is rectangular and
    doesn't have rounded right/left bottom edges
    I can live without #3 and just use the ugly stock one.
    Can anyone point me to how to add the wheel at the beginning?
    I tried Adobe, Lynda.com and Google.

    Hi Suresh
    We can achive this by 2 ways.
    One way you can check the standard example "HTMLB_samples".
    In the example HTMLB_samples i can explain what is happeing taking the example of page a) breadcrumb.htm and b) breadcrumbSample.htm.
    Here when we click the link in the left(Samplelist.htm) page, the page Defaultright.htm will be rendered.
    The defaultright.htm is calling breadcrumb.htm and load.htm.
    The breadcrumb.htm in turn is calling the page breadcrumpSample.htm(Before it is calling the load.htm page is shown in mean time). For this to happen below code is kept in breadcrumb.htm page.
    <htmlb:form method = "post"
                      action = "breadcrumbSample.htm"
                      target = "coding" >
    This is how the loading icon is comming.
    Other Way of doing is.
    From the first page navigate it to a intermediate page which has the loading icon. From this intermediate page you can navigate it to the Second page which you want it.
    Thanks
    Vijay.M

  • How to apply two conditions in Suppress in Section Expert

    Hi,
    I need your help in applying to conditions in the Details section for the suppress in the Section Expert. My Report looks like:
    Details A: {@SUM -DR}   {@SUM -CR}   {@SUM -Balance} {@TT-CLASS}
    Details B: {Deal_No}   {Image_No}   {Amount}   {@Comments}  
    Currently, I am applying a condition to suppress both Details A and Details B in the section expert:
    {@TT-CLASS}="OB"
    Now while running the report, I got some duplicated deals ex:
    123   1   1000   Reversal
    123   1   1000   Reversal
    124   2   2000   Approved
    So I applied a condition in the section expert for the details A and B which is:
    ({Deal_No} = next({Deal_No} ) and {Image_No} =next( {Image_No} ) )
    or 
    {@TT-CLASS}="OB"
    And it is still giving me the duplicated deals when I am running the report. So can you please help.
    Thanks

    Duplicates are usually caused by an incorrect Join.
    What is the datasource of the report - tables/views, stored procedures, sql query?
    If you're reporting against tables/views, see if checking the 'select distinct records' option under the 'Database' menu helps.
    -Abhilash

  • How to check two fields are matching in a validator?

    I have a "Password" field and a "Conform password" field. I like to check whether these two fields are matching in the password_validate(FacesContext context, UIComponent component, Object value) method. How to do that?
    Thanks.

    The actual problem is you can't get the value of one
    component into the next component's validator
    method.I do not find this to be true. For example, in the blog that I gave the URL to, you can see this code
    public void endCalendar_validate(FacesContext context, UIComponent component, Object value) {
    Date endDate = (Date)value;
    Date startDate = startCalendar.getSelectedDate();
    Here the validator for the endCalendar component is getting the value from a different component, the startCalendar component.

  • How to check two IPs in the same subnetwork?

    It seems java.net package doesn't provide this mothod.
    thx.

    I'm not sure I understand what your asking for. You want to determine if to ip addresses are in the same subnet?
    If so, you need to know the netmask-configuration for the two addresses. Then compare the bits in the two ip-addresses in all positions where the netmask has bit its bit set.
    In many cases netmask is set to 255.255.255.0, so you can compare the leading three parts of the two ip addresses. However, this simple check will give false results when the netmask is not 255.255.255.0.

  • How to check Java Version while showing applet in browser?

    Hello All,
    We have an application which has client and server mechanism.
    Our application can be accessed by any internet browser on any machine of the network but there is only one server in the network.
    One of the functionality in the application is described below.
    We do have one link in our application webpage. When user clicks on that link, the request goes to the server component which is running on different machine. Now server process the request and in responce we do show some images in applet window at the customer webpage.
    Now problem is, when the client machine browser has some lower version of Java, we are not able to show the image but only shows a blank page.
    What we want to do is to show some specific warning message when we find that the Java version at client machine is lower than required.
    Can anybody please let me know how can I achieve this?
    Thanks in Advance,
    Jenish

    Sun's latest versioning solution for applets and JWS apps. is [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html]. I also offer the [Java Version Checker Applet|http://pscode.org/jre.html] as an alternate way of ensuring a minimum major version of the JRE.

  • How to put Two condition at once

    Dear all
    I am combining two file here for the calculation, but the proble is that i have given a condition when colulm 4 of file-1 and column -2 of file are same then make calculation,, 
    But i want put a condition when column 4 of file -1 is identical with column 2 of file-2, and column 3 of file-1 is identical with colum -3 of file2 then make calculation,
    here i ahve attache my programme and files
    Thanks and regards
    Prince
    Attachments:
    test fiel-1.txt ‏99 KB
    test-2.txt ‏2 KB
    test.vi ‏29 KB

    Simply use an "AND" node:
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

Maybe you are looking for