Condition ChooseFromList doesn't work

Hi
On the AP Invoice Form i added to the ChooseFromList a new condition. This works with the following code fine.
SAPbouiCOM.ChooseFromListCollection cflc = parentForm.ChooseFromLists;
SAPbouiCOM.ChooseFromList cfl = cflc.Item("2");
SAPbouiCOM.Conditions conds = cfl.GetConditions();
SAPbouiCOM.Condition cond = conds.Add();
cond.Alias = "ISRBillID";
cond.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
cond.CondVal = "1234";
cfl.SetConditions(conds);
This ChoosFromList give me all BusinessPartners with ISRBillID back.
When i want all BusinessPartners with no ISRBillID, it doesn't work.
SAPbouiCOM.ChooseFromListCollection cflc = parentForm.ChooseFromLists;
SAPbouiCOM.ChooseFromList cfl = cflc.Item("2");
SAPbouiCOM.Conditions conds = cfl.GetConditions();
SAPbouiCOM.Condition cond = conds.Add();
cond.Alias = "ISRBillID";
cond.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
cond.CondVal = "";
cfl.SetConditions(conds);
Does anybody have an idea?

Ok, reworded...
How i represent following SQL-Statement to a Condition?
SELECT CardCode, CardName, ISRBillID FROM OCRD WHERE ISRBillID IS NULL

Similar Messages

  • ChooseFromLists doesn't work with service calls (FormId 60110)

    Hi,
    I use this code for every marketing document and for the activities. In all Forms it works but not in the service calls. What is going wrong?
    best regards
    Horst
    If ev.FormType = 60110 And ev.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
                         If ev.ItemUID = "14" Then
                    If ev.InnerEvent And ev.BeforeAction = True Then
                        BubbleEvent = False
                        oForm = SBO_Application.Forms.Item(FormUID)
                        oCFL = oForm.ChooseFromLists.Item("2")
                        oCFL.SetConditions(Nothing)
                        oCons = New SAPbouiCOM.Conditions
                        oCons = oCFL.GetConditions()
                        If 0 = oCons.Count Then
                            oCon = oCons.Add()
                            oCon.Alias = "SlpCode"
                            oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                            oCon.CondVal = oSales
                            oCFL.SetConditions(oCons)
                        End If
                        BubbleEvent = True
                    End If
                End If
            End If

    Hello,
    Service call is a special type of form (Different from marketing documents) That's the reason why it is not working.
    It will not work
    To do:
    1. Create an editbox , connect to the OSCL.cUSTOMER Fields, and define your CFL over it.
    2. Hide the original item "14"
    Regards,
    J

  • Display-condition="first" doesn't work

    Hi,
    I'm trying to use the 'display-condition' attribute of the xdofo:inline-total element to get some boiler plate to appear on the first page only, and some other boiler-plate to appear on all subsequent pages (display-condition="first" and display-condition="exceptfirst") as detailed on page 2-78 of the 5.6.3 user guide.
    (This is not something that can appear in the header/footer, so we can't use 'different first page').
    If I don't specify a display condition then my boiler plate is displayed (although only if I add this as a string within the element, and the variable is not displayed correctly). But if I add the display-condition="first" then the element is not displayed at all.
    I've tried this with the 5.6.2 desktop previewer and with 5.6.3 within Oracle Applications. The results are pretty much the same.
    I guess I have two questions:
    1.) Is this the right way to do what I'm trying to do? (We need 'Assessment Information to be shown at the head of a table on page 1, and 'Assessment Information Continued' to be shown at the top of the table on all subsequent pages, and as this is a batch print job, we need the pageing to restart for each new main group)
    2.) If this is the right way to do it, can anyone help me get it working?
    I can post a small example xml and rtf if it helps.
    Thanks for any suggestions,
    Ben

    To test this further I created a new rtf template and xml file which make the problem quite clear I think.
    I've created 5 new items in the template.
    Each one of them uses a different printing condition as specified in the user guide, from which I quote:
    • first - the contents appear only on the first page
    • last - the contents appear only on the last page
    • exceptfirst - contents appear on all pages except first
    • exceptlast - contents appear on all pages except last
    • everytime- (default) contents appear on every page
    When you preview the report, what happens is that:
    • first prints on every page except the last
    • last is never printed
    • exceptfirst prints on every page except the last
    • except last is never printed
    • everytime prints on every page except the last
    None of these behaves as descibed in the manual, and nothing is ever printed on the last page.
    Anyone got any ideas? Someone must be using this functionality succesfully...
    Thanks,
    Ben

  • Conditional formatting doesn't work with scatter chart

    Hi,
    I am working on OBIEE 11g(11.1.1.7.0) and trying to create scatter chart with conditional formatting. But this is giving issue and conditions are not getting applied.
    suppose I have take columns "product numer","product","office","product type","Revenue" & "Actual unit price"
    I created the scatter chart using above columns and applied below conditions.
    if revenue is equal to/ is in 1080 then color is yellow
    if revenue is less than 1080 then color is blue
    if revenue is greater than 1080 then color is red.
    After applying all the condition, 1st condition is not getting applied. All the charts are showing blue and red color only.
    Anyone have any idea about this issue?
    Thanks
    Krishna

    looks like it is bug in 11.1.1.6.2 which is not fixed in 11.1.1.7.0
    Bug 14286482
    I tried it locally with 11.1.1.7.0 on dimension column the condition filter is applying but not on measures !
    thanks,
    Saichand

  • CommandButton with conditional-rendered doesn't work???

    Hi,
    My problem:
    I just would like to show the Submit-Button (commandButton) after I change the value of the "selectOneMenu ". So for that I set the boolean variable for the rednerer to true. After that the Submit-Button is shown. But when I click on that Submit-Button, the action is not invoked?
    But when I remove the "rendered="#{bean.rendered}" attribute from the commandButton, the action is invoke!
    What do I wrong?
    Would be great if someone could help me!
    <h:form id="choose2">
      <h:panelGrid columns="2" rowClasses="panelChooseRow" columnClasses="panelChooseCol">
        <h:outputText value="#{msgs.beanUserName}" />
        <h:panelGroup>
          <h:selectOneMenu id="userMenu" value="#{bean.userName}" onchange="submit()" required="true">  
             <f:selectItems id="userItems" binding="#{bean.userItems}" />
          </h:selectOneMenu>
          <h:message for="userMenu" errorClass="errMsg" />
        </h:panelGroup>
        <h:outputText value="" rendered="#{bean.rendered}"/>
        <h:commandButton id="send" value="#{msgs.beanSave}" action="#{bean.actionModify}" rendered="#{bean.rendered}"/>
      </h:panelGrid>
    </h:form>
    Bean-Code:
      public void setUserName( String newValue )
        _userName = newValue;
        _bRendered = true;
    public String actionModify()
        System.out.println("actionModify");
        return null;
      public boolean isRendered()
        return _bRendered;
      }

    Hi,
    well, I don't see what could be wrong in your code, but I have an example working.
    So I will just post my code and you can compare.
    Some code snipped off my JSF Site:
    <h:commandButton id="upload"  rendered="#{uploadFileBean.check}" onclick="submit()" action="#{uploadFileBean.upload}" value="#{messages.upload}" styleClass="bgTextBright" tabindex="4"/>
    <h:commandButton id="correct" rendered="#{not uploadFileBean.check}" onclick="submit()" action="#{uploadFileBean.correct}" value="#{messages.correct}" styleClass="bgTextBright" tabindex="4"/>Here the code in my uploadFileBean:
    private boolean check;
        public boolean isCheck()
            return check;
        public void setCheck(boolean b)
            this.check = b;
    public String upload()
            String retVal = Constants.UPLOAD_OK;
            return retVal;
    public String correct()
            String retVal = Constants.CORRECT_OK;
            return retVal;
        }There is only one commandButton shown (depending on my check property) and if I press it, the associated action method is called.
    Did you have a look, if you call the right method? Meaning, does the method exist in the given bean? Do you have your bean declared in the faces-config.xml?
    As I can tell you, the posted code works fine, so hope this could help you.

  • Fighting with BI Publisher: Condition doesn't work

    Hi all,
    I hope someone an help me, because I am fighting with BI Publisher since 3 days.
    I have a template with a table (it's a kind of matrix) where the columns are VL1, VL2, VL3. The rows are Count with value '1', Count with value '2'. The BI Publisher works with Siebel.
    The idea is:
    - for each Campaign on the Campaign Applet:
    - if the value under VL1 is '1' on the Contact Applet (all contacts for the campaign are shown on the applet below the Campaign Applet):
    - count all the records on the Contact Applet where the conditon is met (VL1=1)
    The result is set on the cell of the pair (VL1 / Count with Value '1') of the table in my .rtf template.
    So, I created the table but by counting the application counts all records no matter if it equals '1' or not.
    On the cell of the Pair (VL1 / Count with Value '1') I added this condition for the text CountVL1 on the cell:
    <?if:ScoreL1='1'?>
    <?count(Contactid)?>
    <?end if?>
    it doesn't work out.
    Is there something wrong? could anybody help me please? :-(
    Best Regards

    Hi Tim,
    thanks for the answer.
    - What do you mean by 'it doesnt work'? If ScoreL1 is equal to 1 then count(Contactid) does not return a value?
    it returns a value, but it returns the number of all records and not the number of only the records where the condition is met (ScoreL1 = 1).
    - 1. For both ScoreL1 and Contactid you need to check if the values are accessible from the table cell the condition is in. By that I mean that if the processor is laying out a table with data from one part of the data tree and you suddenly say get me ScoreL1 and its somewhere else. It may not be able to fetch the value. To check, just remove the if and see if the values are returned
    For the variables ScoreL1 and ContactId the values were fetched. But I guess it doesn't give as result the correct data.
    ScoreL1 is a Text. In the Applet ScoreL1 can have the values 1, 2, 3, or 4.
    I replaced the condition with number(Contactid) but it gives me only Java errors and the HTML Side is not shown:
    <?if:ScoreL1='1'?>
    <?count(Contactid)?>
    <?end if?>
    was that what you meant?
    regards

  • BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition

    Hi, All
    I'm trying to create a sales order using BAPI_SALESORDER_CREATEFROMDAT2.
    It doesn't work to create a heder condition.(HB00)
    After BAPI, I check KONV data, HB00 data is broken.
    KONV-STUNR and KONV-ZAEHK is blank.
    but item condtion data is OK. no problem.
    I don't know why.
    my code is below.
    If you have any idea, please let me know.
    IW_LOGIC_SWITCH-PRICING = 'G'
    CLEAR IW_CONDITIONS.
    IW_CONDITIONS-ITM_NUMBER = '000000'.
    IW_CONDITIONS-COND_COUNT = '01'.
    IW_CONDITIONS-COND_TYPE  = 'HB00'.
    IW_CONDITIONS-COND_VALUE = W_VALUE.
    IW_CONDITIONS-CURRENCY   = W_WAERK.
    IW_CONDITIONS-CONDCOINHD = '01'.
    APPEND IW_CONDITIONS TO IT_CONDITIONS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
        ORDER_HEADER_IN               = IW_HEADER
        LOGIC_SWITCH                  = IW_LOGIC_SWITCH
      IMPORTING
        SALESDOCUMENT                 = W_SALEDOC
      TABLES
        RETURN                        = IT_RETURN
        ORDER_ITEMS_IN                = IT_ITEMS
        ORDER_PARTNERS                = IT_PARTNERS
        ORDER_SCHEDULES_IN            = IT_SCHEDULES
        ORDER_CONDITIONS_IN           = IT_CONDITIONS
        ORDER_TEXT                    = IT_TEXT
        EXTENSIONIN                   = IT_EXTENSIONIN
        PARTNERADDRESSES              = IT_PARTNERADDRESSES.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Rie.

    check the following link
    Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).
    L_ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    L_ORDER_PARTNERS-PARTN_NUMB =
    RECORD-KUNNR_1.
    APPEND L_ORDER_PARTNERS TO
    LI_ORDER_PARTNERS.
    L_ORDER_PARTNERS-PARTN_ROLE = 'WE'.
    L_ORDER_PARTNERS-PARTN_NUMB =
    RECORD-KUNNR_2.
    APPEND L_ORDER_PARTNERS TO
    LI_ORDER_PARTNERS.
    * Build order header
    CLEAR: L_ORDER_HEADER_INX,
    L_ORDER_HEADER_IN.
    * Update flag
    L_ORDER_HEADER_INX-UPDATEFLAG = 'I'.
    * Sales document type
    L_ORDER_HEADER_IN-DOC_TYPE =
    RECORD-AUART.
    L_ORDER_HEADER_INX-DOC_TYPE = 'X'.
    * Sales organization
    L_ORDER_HEADER_IN-SALES_ORG = RECORD-VKORG.
    L_ORDER_HEADER_INX-SALES_ORG = 'X'.
    * Distribution channel
    L_ORDER_HEADER_IN-DISTR_CHAN = RECORD-VTWEG.
    L_ORDER_HEADER_INX-DISTR_CHAN = 'X'.
    * Division
    L_ORDER_HEADER_IN-DIVISION = RECORD-SPART.
    L_ORDER_HEADER_INX-DIVISION = 'X'.
    * Sales Office
    L_ORDER_HEADER_IN-SALES_OFF = RECORD-VKBUR.
    L_ORDER_HEADER_INX-SALES_OFF = 'X'.
    * Sales Group
    L_ORDER_HEADER_IN-SALES_GRP = RECORD-VKGRP.
    L_ORDER_HEADER_INX-SALES_GRP = 'X'.
    * Purchase order
    L_ORDER_HEADER_IN-PURCH_NO_C = RECORD-BSTNK.
    L_ORDER_HEADER_INX-PURCH_NO_C = 'X'.
    * Purchase order Date
    L_ORDER_HEADER_IN-PURCH_DATE =
    RECORD-BSTDK.
    L_ORDER_HEADER_INX-PURCH_DATE = 'X'.
    * Payment Terms
    L_ORDER_HEADER_IN-PMNTTRMS = RECORD-ZTERM.
    L_ORDER_HEADER_INX-PMNTTRMS = 'X'.
    * Incoterm1
    L_ORDER_HEADER_IN-INCOTERMS1 = RECORD-INCO1.
    L_ORDER_HEADER_INX-INCOTERMS1 = 'X'.
    * Incoterm2
    L_ORDER_HEADER_IN-INCOTERMS2 = RECORD-INCO2.
    L_ORDER_HEADER_INX-INCOTERMS2 = 'X'.
    * Customer Group
    L_ORDER_HEADER_IN-CUSGROUP = RECORD-KDGRP.
    L_ORDER_HEADER_INX-CUSGROUP = 'X'.
    ENDIF.
    * Build order item(s)
    CLEAR: L_ORDER_ITEMS_INX, L_ORDER_ITEMS_IN.
    L_ORDER_ITEMS_IN-ITM_NUMBER = INO.
    L_ORDER_ITEMS_INX-ITM_NUMBER = INO.
    L_ORDER_ITEMS_IN-MATERIAL = RECORD-MABNR.
    L_ORDER_ITEMS_INX-MATERIAL = 'X'.
    L_ORDER_ITEMS_IN-PLANT = RECORD-WERKS.
    L_ORDER_ITEMS_INX-PLANT = 'X'.
    L_ORDER_ITEMS_IN-SALES_UNIT = RECORD-VRKME.
    L_ORDER_ITEMS_INX-SALES_UNIT = 'X'.
    L_ORDER_ITEMS_IN-WBS_ELEM = RECORD-PS_POSID.
    L_ORDER_ITEMS_INX-WBS_ELEM = 'X'.
    APPEND L_ORDER_ITEMS_IN TO LI_ORDER_ITEMS_IN.
    L_ORDER_ITEMS_INX-UPDATEFLAG = 'I'.
    APPEND L_ORDER_ITEMS_INX TO
    LI_ORDER_ITEMS_INX.
    * Build Schedule lines... Order Quantity
    CLEAR: L_ORDER_SCHEDULES_IN,
    L_ORDER_SCHEDULES_INX.
    L_ORDER_SCHEDULES_IN-ITM_NUMBER = INO.
    L_ORDER_SCHEDULES_INX-ITM_NUMBER = INO.
    L_ORDER_SCHEDULES_IN-REQ_QTY = RECORD-KWMENG.
    L_ORDER_SCHEDULES_INX-REQ_QTY = 'X'.
    L_ORDER_SCHEDULES_INX-UPDATEFLAG = 'X'.
    APPEND L_ORDER_SCHEDULES_IN TO
    LI_ORDER_SCHEDULES_IN.
    APPEND L_ORDER_SCHEDULES_INX TO
    LI_ORDER_SCHEDULES_INX.
    * Build Conditions
    CLEAR: L_ORDER_CONDITIONS_IN,
    L_ORDER_CONDITIONS_INX.
    L_ORDER_CONDITIONS_IN-ITM_NUMBER = INO.
    L_ORDER_CONDITIONS_IN-COND_COUNT = '01'.
    L_ORDER_CONDITIONS_IN-COND_TYPE =
    RECORD-KSCHL_1.
    L_ORDER_CONDITIONS_IN-COND_VALUE =
    RECORD-KBETR_1.
    IF RECORD-KSCHL_1 = 'PR00'.
    L_ORDER_CONDITIONS_IN-COND_VALUE =
    L_ORDER_CONDITIONS_IN-COND_VALUE
    / 10.
    ENDIF.
    L_ORDER_CONDITIONS_INX-ITM_NUMBER = INO.
    L_ORDER_CONDITIONS_INX-COND_COUNT = '01'.
    L_ORDER_CONDITIONS_INX-COND_TYPE =
    RECORD-KSCHL_1.
    L_ORDER_CONDITIONS_INX-UPDATEFLAG = 'X'.
    L_ORDER_CONDITIONS_INX-COND_VALUE = 'X'.
    APPEND L_ORDER_CONDITIONS_IN TO
    LI_ORDER_CONDITIONS_IN.
    APPEND L_ORDER_CONDITIONS_INX TO
    LI_ORDER_CONDITIONS_INX.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
    EXPORTING
    ORDER_HEADER_IN =L_ORDER_HEADER_IN
    ORDER_HEADER_INX = L_ORDER_HEADER_INX
    IMPORTING
    SALESDOCUMENT = L_VBELN
    TABLES
    RETURN = LI_RETURN
    ORDER_ITEMS_IN =
    LI_ORDER_ITEMS_IN
    ORDER_ITEMS_INX =
    LI_ORDER_ITEMS_INX
    ORDER_PARTNERS =
    LI_ORDER_PARTNERS
    ORDER_SCHEDULES_IN =
    LI_ORDER_SCHEDULES_IN
    ORDER_SCHEDULES_INX =
    LI_ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_IN =
    LI_ORDER_CONDITIONS_IN
    ORDER_CONDITIONS_INX =
    LI_ORDER_CONDITIONS_INX
    END-OF-SELECTION

  • Condition doesn't work after transport to QAS system.

    Hi all:
          the condition doesn't work after the workflow transported to QAS system.  the workflow designed has a constraint that only the creation of the document of Type M4 can trigger the workflow, but creation of Type M5 document can also trigger the workflow, could you please tell me the possible reason?
    Thank you very much

    Hi,
    Once Try checking as pavan suggested whether the Customizing requested is transported.
    To Maintain Workflow start conditions you can also maintain through SWB_COND and ensure its transported.
    Regards
    Narin

  • Multiple conditions in Query doesn't work

    Hi all,
    I've made a query pointing on a Multiprovider wich 's made of two main dimension ( multiple infoproviders ) :
    contract and pricing and on the other hand  Sales and Revenues.
    In my Query, one condition's concerned by a contract & pricing key figures ( Number of pricing condition > 0 ), and another one is about a Minimum Turnover Sales & Revenues key Figures restriction( by a prompt ).
    This doesn't match, Some rows are missing, and while a condition is active , the other one can't be..
    If any one meet this kind of problem before ?
    Thanks and sorry for my bad english..

    Hi,
    I already try to create another key figure wich made like this :
    Number of condition * Turnover
    and made a condition on this result.
    But the main problem is  if the contract doesn't have Turnover, it will not shown the rows with condition ..( the condition is on the single value 'number of document ) and if I put anotehr condition with number of condition > 0, it still doesn't work..
    thanks for help.

  • BRF plus doesn't work on Conditions and calculations

    Hello,
    When you create an additional filter or condition on the business rule, it doesn't work on the ad hoc query. What is wrong with it?

    You should save your conditions, close the window, open it again and it should work properly.

  • If statement doesn't work in JPanel

    Hi everybody.
    I'd like somebody tell me the reason why the "if" statement doesn't work in a Jpanel but works in a Japplet. I'm including the fragments of code that are relevant to the question.
    Thanks in advance.
    public class Applet_INVEN extends JApplet {
    jTabbedPane jTabbedPane1 = new JTabbedPane();
    Panel_1 p_1 = new Panel_1();
    JLabel jLabel1 = new JLabel();
    JTextField jTextField1 = new JTextField();
    JButton jButton1 = new JButton();
    void jButton1_actionPerformed(ActionEvent e) {
    if (jTextField1.getText() != "0") //------Executes when the condition is true
    jLabel1.setText("bingo");
    public class Panel_1 extends JPanel {//------INSIDE a JPANEL
    JTextField jTextField1 = new JTextField();
    JTextField jTextField2 = new JTextField();
    JTextField jTextField3 = new JTextField();
    JButton jButton1 = new JButton();
    void jButton1_actionPerformed(ActionEvent e) {
    jTextField2.setText(jTextField1.getText()); //----Ever executes, of course!
    if(jTextField1.getText() != "0") //----Never executes, even when
    jTextField3.setText("ojo"); //----the condition is true!

    You shouldn't use the != operator to test equality of Objects. Use Object.equals() instead.
    if (jTextField1.getText() != "0")
    should be
    if ( ! jTextField1.getText().equals("0"))
    or better:
    if ( ! "0".equals(jTextField1.getText())) <-- avoids null pointer exception.

  • View works in Solaris in 1 minute but doesn't work in WIn2003

    We have a view is badly written. Other than the non-searchable conditions like '%*%'. What else is wrong:
    CREATE OR REPLACE FUNCTION anycon_p(neid NUMBER, joinaid VARCHAR2, sdf NUMBER, nodetype NUMBER ) RETURN N
    UMBER IS
    fromid NUMBER :=0;
    BEGIN
    if (nodeType=302 or nodetype = 303 )then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid) and (tp.tp_sdf = sdf) and (tp.crs_emlkey is not null);
    elsif (nodeType=307)then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid)and (tp.tp_sdf <= sdf)
    and (tp.tp_sdf+2 >= sdf)and(tp.crs_emlkey is not null);
    elsif (nodeType=308)then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid) and (tp.tp_sdf <= sdf)
    and (tp.tp_sdf+11 >= sdf)and(tp.crs_emlkey is not null);
    end if;
    RETURN fromid;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURN 0;
    END;
    CREATE OR REPLACE VIEW JS_QUERY_FAC_AVAIL_VW AS
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND (tp.TP_DV_NODETYPE='300')
    AND (tp.TP_TPTYPE ='DGR')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR tp.CRS_EMLKEY is null)
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND ((tp.TP_DV_NODETYPE='302' AND tp.tp_tptype='DGR'
    AND((tp.tp_rawpst NOT LIKE '%UAS%') OR(tp.tp_joinaid NOT LIKE 'EPMX24%')))
    OR(tp.TP_DV_NODETYPE='303' AND((tp.tp_rawpst NOT LIKE '%UAS%') OR
    (NOT EXISTS ( select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_sdf = tp.tp_sdf)
    and (tp1.tp_dv_nodetype = '302')
    and (tp1.tp_rawpst not like '%UAS') )))))
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS ( select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf = tp.tp_sdf)
    and (tp1.crs_emlkey is not null) ) ) )
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND tp.TP_DV_NODETYPE IN ('307')
    AND (tp.tp_aid not like '%-P-%')
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS (select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf <= tp.tp_sdf)
    and (tp1.tp_sdf >= tp.tp_sdf-2)
    and (tp1.crs_emlkey is not null) ) ) )
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid, c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND tp.TP_DV_NODETYPE = '308'
    AND (tp.tp_aid not like '%-P-%')
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS (select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.ne_id)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf <= tp.tp_sdf)
    and (tp1.tp_sdf >= tp.tp_sdf-11)
    and (tp1.crs_emlkey is not null) ) ) )
    WITH READ ONLY;

    If you think anybody's going to be able to point out flaws in that code you're mistaken. Well, maybe somebody with time on their hands will go through it but I doubt it.
    But given your subject the real point of enquiry ought to be, what is the difference between your Solaris set up and your Windows environment? And what do you mean by
    doesn't work in WIn2003please describe observed behaviour, including error messages if appropriate.
    Cheers, APC

  • My new iPhone 4 doesn't work at all

    You are definitely not alone with your issues. I'm on my second iPhone 4 unit, and am still having the same problems. I've had proximity sensor insanity, battery draining after 8 hours of stand-by (NO USE, just sleeping) to the point that my phone goes into a coma and has to be plugged in to be revived, the grip of death dropping calls....
    But the single most irritating and infuriating problem is the signal strength/reception fluctuation. I share a house with two iPhone 3Gs users, and I had an original silverback iphone until July 2010. They all work fantastically well with no issues when I'm at home (where I am just about 24/7, since I work from home). *_My new iPhone 4 doesn't work at all.*_. Signal strength is all over the place. I did a test where I sat watching the bars showing signal strength for five minutes. In that time, I saw it switch from E (edge?) with full bars to 3G with full bars to 3G with 1 bar to 2 bars to 4 bars to 1 bar to "Searching." Then back to 3G, with degradation of bars from 3 to none, then E network appears again, this time with full strength. This all with the phone sitting on a table, not being touched by human hands.
    It seems that my iPhone is constantly switching actual physical networks, and as a result signal strength is all over the place from one 30 second period of time to the next. This drains the battery like crazy, and means that all incoming calls go to voicemail--usually without my phone ever ringing.
    The 3G phones in my house work great. The 1st G iPhone I have had since the week it came out worked great (though its battery doesn't hold much of a charge anymore, after three years). On my new IP4, games are awesome. The videos and photos are amazingly clear and high quality, and editing on the phone is out of sight. iPhone Apps rule. MobileMe syncs my contacts quickly and easy. The only thing I love more than the iP4 features is my iPad--it rocks.
    Everything works on my IP4 at home BUT THE ACTUAL TELEPHONE FUNCTIONS. This is unacceptable. In late August, after two weeks in which I had 4 minutes of phone use, the nice folks at the Apple store switched me to a new phone, no questions asked. The phone worked so much better, I could send texts and place calls most of the time (this was now the first part of September)...except that now that I was using my IP4 to make phone calls, I started having a problem with the proximity sensor during those calls. I'd be talking and my cheek would mute the phone, turn on speaker, open contacts and edit info (with gobbledygook), and of course, hang up on people.
    So around Sept. 18 I was told by Apple phone support to update to iOS 4.2, restore as new, and do two complete power up and drain down cycles. This would fix the proximity sensor and any other issues.
    Well, I would love to see if iOS 4.2 actually did fix the PS, but I can't get the signal strength to stabilize long enough to have an actual phone conversation. I'm back to watching the signal strength go up and down at random (with me touching/holding it carefully to avoid grip of death, and also when I leave phone on the table with screen lock off --no touching). It is back to switching between E network and 3G and varying strengths of wi-fi from my home network. This eats up battery from 100% to low enough to turn off in under 10 hours of standby (usually 6-7). Essentially, my IP4 is back to being unusable as a phone.
    So I did another long, involved call to Apple tech support on 9/18. They tell me that I have to turn off wi-fi, turn off 3G, turn off push/fetch and notifications, shut all apps (no multi-tasking) and do everything but switch my phone to airplane mode--and see if the battery holds up for 24 hours in standby. If that didn't work, I should restore from new, but not load any contacts or network or data or anything--just leave it as it would be out of the box new.
    As a test, I turned everything off as advised: 3G, wi-fi, push, etc. Now my battery life is back to normal, where I can have the IP4 on stand-by for up to two full days before needing a recharge. Fabulous. BUT IT'S NOT A SMART PHONE if I have to turn off 3G, turn off wireless, and not use email push and so forth.
    I'm so frustrated I could scream. I'm quickly coming to the conclusion that there is a significant flaw in the new iPhone. Or perhaps it is just an issue for iPhone 4 users in areas where the signal strength is marginal, or where there are two types of overlapping network coverage (E and 3G in my case). I know that the networks themselves are in good condition--though I'm in a semi-rural area, the state capital is 4 miles away, and I know they have a new tower and good coverage for the politicians and power brokers around town. The phone coverage area I live in has Edge network in the south part of the network area and 3G in the north part, which is the state capital. I'm right in between. Could this be the problem? AT&T says no, it's Apple's fault.
    Message was edited by: HighSierra

    So what to do besides complain? Troubleshoot?
    I just wonder if all of us who have had chronic signal strength and "Searching for network" issues that totally drain the battery might have something in common, despite being all over the world? I'm using wi-fi 95% of the time, and live in a semi-rural area with overlapping networks run by same carrier. Apple folks hinted that maybe in my area the network usage is nearing capacity (resulting in getting kicked off of 3G and down to E as new calls are placed that strain capacity). They also hinted there could be interference from mountains or other objects. But here's the thing--3G phones work fine, and my IP4 works fine when I'm away from home, usually in the capital city on strong 3G network. (When I say "works fine I mean the signal is good and calls go through, I haven't tested battery drain away from home yet).
    I have to conclude that the problem is the IP4 itself--something about the hardware or the software (namely, the way it connects to the phone network) is horribly wrong. Other folks who live in urban areas or with strong networks that (likely) aren't over-utilized don't seem to have this issue. After reading through these pages, it also seems the wi-fi may be a major culprit in draining the battery and in varying signal strength (this is from Apple phone support, which said that varying signal strength and the constant pinging off the home wi-fi is creating a "power struggle" and keeping the phone constantly looking for the best connection option). Mind you, 3G iphones on the same home network have no problems whatsoever.
    So while I'm not a technical expert, it seems like the problem HAS to lie in the differences in the way the IP4 connects to the cellular and/or wi-fi network. And since the connection/signal strength problem was "resolved" on my replacement phone, but then "broken" again by the software update of iOS 4.2, I'm leaning toward this being a software issue. I've offered to help Apple troubleshoot, and I'm trying to be patient--because the IP4 is a work of art and I've never had an issue with an Apple product before. But all they want me to do is restore, restore, reload, restore, and then drive 1 hour to the nearest Apple store (in Reno, NV) and get a new phone...and start the whole process over again. I don't have time for this, I need my phone back.
    I'm this close to trading in my beautiful but flawed IP4 for a 3G. Maybe I should just get a new battery for my original iPhone from 2007?
    I understand that Apple can't test for every possible variable of use all over the world, but they don't even seem to acknowledge that they have a problem with the IP4 that will not be resolved by replacing it with a new unit. They want me to believe it's a fluke, or it's just me...but I've been combing these threads and see a lot of people reporting the same issues I am--battery drain and wildly fluctuating signal strength issues, wi-fi problems, and dropped calls. Can't someone get on this? Because otherwise Apple is going to have to admit that their IP4 is not a good solution for people who live in areas of less than perfect signal strength or use wifi or whatever demonic combo I have in my home/work setting.
    Or people will have to do what I have done--if you who want the cool IP4 non-phone features, you will have to dumb down your IP4 in order to have it be even moderately useful as *a phone.* For $599 I expected better.
    My (temporary) workaround?
    To spare the battery:
    *Turn off wi-fi (which *****, because now I have to burn minutes when I'm at work using the email, downloads, safari, etc--and it's E network, so it's SLLOOOOOOOW)
    *turn off push and fetch, have mail get new messages manually
    *turn off data roaming
    To keep the signal somewhat stable (making it easier to complete calls and spare battery)
    *Turn off 3G (this leaves me on E network--fabulous, I had that with my 3 year old iPhone)
    *grip IP4 between two fingers placed at the top of the phone, away from death zone. Tough for us lefty phone users.
    *pray the free bumper will a) come soon and b) help. I'm not optimistic.
    To keep proximity sensor from going nuts and dropping calls, muting, turning on speaker etc:
    *use headset or bluetooth (unless you are also having one of the known bluetooth issues!)
    *keep phone pressed to one ear and don't move it a millimeter. Don't shift sides, don't hold phone with your shoulder, just keep it to one ear and talk fast).
    I'm about out of patience. I understand that lots of folks have and love their IP4s. I'd love to be one of those people. I'm open to suggestions and have spent many hours on phone with tech support, restoring my phone, reloading data and apps--there has to be a better way.
    Sorry for the thread-jacking, but someone from Apple has got to be following these threads--help us!
    null

  • Su doesn't work anymore but sudo works

    Hi all,
    I normally use my standard user account but when I'm installing with macports I routinely "su" into root to do things.
    Today I went on my machine and noticed that "su" wouldn't work. Before anyone decides to tell me that I don't need to use "su", I realize that but I use it for my own purposes.
    From the system log I am seeing this each time "su" fails:
    su[1376]: pam_authenticate: Permission denied
    What is interesting is that doing a "sudo su" works, and I'm able to do all of my admin duties that way.
    I have a feeling something messed up my bash profile but not totally sure. Has anyone else run into this issue?

    Hi all,
    Thanks for the help on this issue.
    I'll clarify: I'm using this install as a server and this is why I have 2 admin accounts on it. The original account is my own; the one I created when I first installed OS X. I then enabled System Admin (root) so that is the other admin account. After installing MacPorts I have been running the system as a multi-user webserver. I occasionally log in as root to do maintenance and upgrades. I have found that it's easier to use the SysAdmin account in certain situations because of permissions issues and ease of installing upgrades.
    I'll often log in under my username and then su to root. Recently (yesterday) I noticed that "su" didn't work anymore when I used my normal username.
    There are sometimes that I will log onto the machine as System Admin and usually via the terminal (console) I can log in as any of the other accounts by doing
    su <username>
    this also doesn't work anymore. I get the error:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    I have two servers set up this way. One works the way it should, the other one has this problem. The only difference I can see is in roots bash profile but I'm not sure why they are different on each machine.
    Also when logged in as System Admin, I should be able to turn off "allow user to administer computer" on my regular account but it's grayed out. On the other similarly configured machine, under the same conditions, I can. I'm not sure why I can do it on one and not the other.
    I've tried turning off enable root via Directory Utility but that didn't fix the issue.

  • Date object doesn't work in query filters

    I'm trying to create a universe object called Next Biweekly Pay End Date.  Some background: there is an end date for our biweekly payrolls every 14 days, and the logic behind the object is basically that if there was a biweekly pay end date 7 days ago, the next one is 7 days from today (that is, sysdate + 7), etc.</p>
    I have it working so that it displays the correct date when used in a WebI report.  However, when I use it in a query filter in a WebI report (like, Pay End Date = Next Biweekly Pay End Date), I don't get an error, but I also don't get any data.  Somehow my object doesn't work in a query filter.  The purpose of the object is for use in query filters, so I need to get this to work.</p>
    My best guess about why it doesn't work in a query filter is due to some issue with the data type.  Pay End Date has a data type of date in the universe.  I gave Next Biweekly Pay End Date a data type of date also, but the query filter still doesn't work; I get "no data to fetch."</p>
    We're using XI 3.1.6 and Oracle 10.  Any ideas about how to get this to work?</p>
    If it helps, here is the definition of Next Biweekly Pay End Date.  The logic is that it takes today's date, subtracts Oct. 31, 2009 (a biweekly pay end date), divides by 14, and looks at the remainder.  If the remainder is 0, then today is a pay end date and the next one is 14 days from now.  If the remainder is 1, yesterday was a pay end date and the next one is 13 days from now, etc.</p>
    case</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 0 then (sysdate + 14)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 1 then (sysdate + 13)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 2 then (sysdate + 12)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 3 then (sysdate + 11)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 4 then (sysdate + 10)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 5 then (sysdate + 9)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 6 then (sysdate + 8)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 7 then (sysdate + 7)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 8 then (sysdate + 6)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 9 then (sysdate + 5)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 10 then (sysdate + 4)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 11 then (sysdate + 3)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 12 then (sysdate + 2)</p>
      when mod((trunc(sysdate)) - (to_date('31/10/2009')),14) = 13 then (sysdate + 1)</p>
    end

    Thanks for the suggestions.
    I did some more testing, and there seems to be something more complicated going on.  I ran the following code in SQL*Plus:
    SELECT distinct M_PYDW1.PYSTATUS.DW_OWNER,
    case
    when to_date(sysdate, 'dd/mm/yyyy hh24:mi:ss') >= to_date('01/01/2010','dd/mm/yyyy hh24:mi:ss') then To_Date((sysdate - 2),'dd/mm/yyyy')
    else to_date(sysdate +2, 'dd/mm/yyyy')
    end
    FROM M_PYDW1.PYSTATUS
    The condition should be true, because the sysdate (today is Jan. 20) is greater than 1/1/2010, so I should get a result of sysdate - 2 (Jan. 18).  But the result I get is Jan. 22 (sysdate +2).  It seems that the comparison is failing even though I'm formatting both sysdate and 1/1/2010 as dates with a timestamp.  What could cause that?
    One more mystery: when I run the same code as above in a WebI report (using custom SQL), I get the error ORA-1830, date format picture ends before converting entire input string.

Maybe you are looking for

  • Excel type error while using in SSIS 2005

    Hi I am trying to dump the data into excel from OLEDB source. However, I want to load it into excel 2007 (.XLSX type) there it is giving below error while creating excel connection manager (destination)  (it is working fine for .XLS type but i want t

  • DRQ: Different default warehouse for Sales,Purchase and Production Process

    Hi Experts, In my recent Implementation Project I realised that there should be provision of capturing and using different default warehouse for Sales,Purchase and Production. For example in manufacturing company 1. Default ware house for Purchase pr

  • ADAPTER.JAVA_EXCEPTION  - java.lang.Exception: no valid message format obje

    Hi experts, we have a problem when we call a web service PI (release 7.01 , SP 10), from legacy system : the PI system return this message : ADAPTER.JAVA_EXCEPTION ; - java.lang.Exception: no valid message format object found For to test this scenari

  • ACE Load Balancing algorithm

    Team, I was reading Designing Content Switching Solutions last night. I came across a page that suggested Round Robin for HTTP connections, Least Conns for FTP connections, dst Hash for caching connections and so on. Could someone please provide info

  • Sharing garageband files

    Awile back, a poster was asking about sharing GB files and noted that these files (30mb+/-) were too large for email. Just saw this on an apple seminar site: "Metheny also takes advantage of Apple Internet services like .Mac to work with band members