Problem in IF condition

Hi All,
I am facing a problem in the if condition below, here the IF statement checks only the 1st condition and even if it does not satisfy it populates the error message.
    IF ( ( ( T_EBAN-BSART = 'FO'      OR
             T_EBAN-BSART = 'ZX'      OR
             T_EBAN-BSART = 'NB'  )   AND
         (   T_EBAN-KNTTP = 'Y'   ) ) AND
       ( (    AUFK-AUART = 'ZIN1' )   OR
         (    AUFK-AUART = 'ZIN2' )   OR
         (    AUFK-AUART = 'ZIN3' )   OR
         (    AUFK-AUART = 'ZIN4' ) ) ).
    IF T_EBKN-SAKTO is not initial.
*Condition 1
    IF T_EBKN-SAKTO < '3000000'.
      t_message-type     = 'E'.
      t_message-id       = 'MID'.
      t_message-number   = '028'.
      append t_message to ex_messages.
*Condition 2
    ELSEIF TEMP_SAKTO > '3900000'.
      t_message-type     = 'E'.
      t_message-id       = 'MID'.
      t_message-number   = '028'.
      append t_message to ex_messages.
    ENDIF.
    ENDIF.
    ENDIF.
Here even if the value of T_EBKN-SAKTO is greater or less than the given value the IF condion executes only for the 1st logic and not for the seceond logic.
Help and suggestions will be much appreciated.
Thanks.
Kumar

You need to pad the comparison field with zeroes:
ELSEIF TEMP_SAKTO > '0003900000'.
Rob

Similar Messages

  • Problem using a conditional suppress in a cross-tab ?

    is there a problem using a conditional suppress in a cross-tab on a row  or summarized field  in crystal XI?
    I am using the following conditional suppress on a summarized field and its rows
             If {@SortCode}=4 then true;
    Sortcode is a group sorting formula field
    the summarized field is a formula field as well.
    All of the summarized fields are suppressed although the cross- tab performs correctly on @Sortcode  and the summarized field when not using the condition        
    it seems to me to be a reporting flow issue although i've included "whileprintingrecords" and "evaluateafter" with no success.
    i have also moved the cross-tab from the report header to group header and applied a conditional suppress on the group header through section expert.
    this supresses the group i dont want but includes grand totals for each group and also varys the number of columns
    i can't filter on sortcode because one of the grand total calculations requires those records and a subreport or second cross-tab does not contain the same number of columns
    the cross-tab is necessary as a client may have columns spanning one to many pages
    thanks for your help

    Hi I have a similar problem,
    I have an clock in solution, where i have some dates with data such as, various entries for a date eg, 01/11/2010 1hr, 01/11/2010 3 hrs etc, 03/11/2010 2hrs , 05/11/2010 4.5hrs, 05/11/2010 4 hrs so i need total for each day and highlight only those days, where total is less than 4.5, including days which donu2019t have records eg 02/11/2010 & 04/11/2010, I summarise in totals using a cross tab, to get summarised output for each day as,
                Totals
    01/11/2010    4
    03/11/2010    2
    05/11/2010    8.5
    in order to get the dates which didnu2019t have records, i added a dataset from Excel spreadsheet where i just have a sequential dates for the year , and use record selection to select only those dates in range which i need to display, so the result i get
    01/11/2010    4
    02/11/2010    0
    03/11/2010    2
    04/11/2010    0
    05/11/2010    8.5
    so far so good, all using cross tab, now i want to suppress rows which have total > 4.5 so the result should be
    01/11/2010    4
    02/11/2010    0
    03/11/2010    2
    04/11/2010    0
    How can i do that?

  • "Problem evaluating a condition" at Receiver Determination

    Hi,
    I've created a complex mail to rfc interface, in which, message is being send as mail attachment  and service inbound interface has multiple operations (each for corresponding rfc).
    at Receiver Determination, rule was created with multiple conditions, in order to determine correct "Communication Component" (multiple receiver agreement and  interface determination were created to supported this "multi interfaces" scenario).
    If no receiver was found message is ignored.
    once in a while, bad non-xml messages (e.g., "asdfasdfasdfffdfdsasdf") are being send,  is this case, while PI is trying to determining the receiver (i.e., evaluate Receiver Determination conditions) exception is being thrown, message is therefor has system error status* (at sxmb_moni) and it can not be ignored (as i wanted it to be).
    how can i workaround this problematic scenario?
    Regards
    Uri
    *Error message (sxmb_moni)
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Determination
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem evaluating a condition: An exception has occurred.</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error when determining the receiver: Problem evaluating a condition: An exception has occurred. Problem evaluating a condition: An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. An exception has occurred. Problem extracting values from the Payload: Check line 2 column 1 of the XML document</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Abhishek,
    10x for your replay, but as far as i understand this is exactly the case here.
    conditions are:
    cond1: (/rfc: RFC1 ~ *)
    cond2: (/rfc: RFC2 ~ *)
    this works as expected in cases of xml messages (in case no cond is satisfied) message is ignored. but, in case of non-xml message exception is being thrown while cond is assessed.
    Regards
    Uri

  • Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred

    Hi all,
    I have a scenario MAIL TO PROXY, and i would like to receive incorrect xml files and send an answer telling this error.
    My problem is in the receiver determination, an error is produced as "Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred".
    Is there any way to solve this and send an email as an answer?

    Hi,
    Can you provide the whole error message ?
    Check out this thread : Re: Error in Receiver Determination
    Thanks,
    Pooja Pandey

  • Problems w/ race conditions when using attachmovie

    Hello,
       I'm having a strange problem w/ race conditions when using attachmovie.
    I have a class linked to a movie clip that I'm attaching to the stage.   The class is
    fired off when the movie clip is attached but also other classes are getting loaded at the same time
    while the movie clips is attached.     Even though the other classes are called after the
    movieclip is attached, they are getting loaded faster and therefor the class linked to the attached movie clip
    cannot access their functions. 
    I'm looking for a listener that will fire off an event ONLY when the attached movieclip is fully loaded but I can't
    seem to find any examples of associating a listener to a attachmovie method.
    Any ideas?
    Thanks,
    Clem C

    flash is single threaded so nothing happens simultaneously.  what do you mean by, "other classes are getting loaded at the same timewhile the movie clips is attached"

  • Problem with pricing condition table - Urgent

    Hello,
    I have created a new condition table ' 627 ' in ECC, and i want to transfer the condition table to CRM.
    I did initial download for objects "DNL_CUST_CND" , "DNL_CUST_PRC".
    how can i transfer the condition table.
    Full points will be rewarded.
    regards
    yaswanth.k

    Hi,
    You have to create the new Adapter Object in R3AC5 for the newly created conditional table 627.
    Take the standard adapter like DNL_COND_A011.
    create the new Z adapter like ZDNL_COND_A627.
    In the table/structure tab replace the A011 by A627 and do remaining settings as it is.
    now u can carry out the inital download.
    i think this will solve your problem.
    Let me know the status?

  • Problem with pricing condition type in case of proforma invoicing

    Hello All,
    the problem is related to a pricing condition type in case of proforma invoice where the details are as follows -
    Name of Condition Type - ZADC - Add 10% on Cost                                         Access seq.   Z038 Diff
                                                                                    Plus/minus    A Positive
    Cond. class -  A Discount or surcharge
    Calculat.type -  A Percentage
    Cond.category - Blank
    Manual entries      D Not possible to process manually
    Amount / Percent - Checked
    Item Condition - checked
    Scale Basis - Quantity
    Currency Conversion - Checked
    Quantity Conversion - Checked
    This condition type has been kept as statistical in the pricing procedure. Still in the proforma invoice the condition type is not getting reflected automatically , whenever I am updating with " carry out new pricing " option the condition type is getting populated.In case of other commercial invoices this very condition type is getting populated automatically without any updates.Along with this point to be noted is that the Condition type in which the actual costi is captured has been kept active.
    What more needs to be configured or what are the changes to be done to populate the condition type automatically as statistical during the time of proforma invoicing?
    Thanks & Regards
    Priyanka Mitra

    Hi,
    Kindly do the pricing analysis and check whether you have the following error such as
    Inactive condition type because of subsequent price,
    Regards,
    Ravi

  • Problems with the condition for a switch in our IntegrationProcess

    Hi,
    we're relatively new in using the XI-IntegrationBuilder and we have a small problem.
    We try to define a switch-condition to perform two different Transformations depending on a specific value of a message element.
    The condition looks like this:
    (IncomingRequest./p1:MT_XI_REQUEST/status = donormal)
    Both 'sides' of the condition are of the type (xsd:string).
    But it seems the condition is not working in the right way.
    It always uses the Transformation 'merge' (pls see image of IntegrationProcess->here the Transformation is shown as 'me').
    <a href="http://www.edwebservice.de/uploads/a1a956a10f.jpg">Image of sampleprocess</a> (this is only a testprocess to show  what we want to do)
    For testing we already run the process without the switch (making it linear), by using each transformation occurring in the switch on its own. Both tests worked well and returned the expected different values. But as mentioned above when we're using both Transformations in the switch, always the Transformation 'merge' is performed.
    It does NOT matter if the Transformation 'merge' is placed in the 'if' or in the 'otherwise' branch. It does NOT matter what value (true/false) the condition should return.
    Maybe its a basic desing-problem of our process? 
    <b>Any suggestions will be appreciated</b>
    Regards!
    Georg
    Our systemenvironment:
    Runtime
    Java version:1.5.0_01
    Java vendor:Sun Microsystems Inc.
    Version
    Service pack:15
    Release:NW04_15_REL
    Latest change:15767
    Sync time:200603080654
    ps: we already checked the OSS note 890760 for resolution. but this didn't solve the problem.

    Hi!
    @Peter:
    1) the namspaces are the same. we ckecked it already.
    2) status is an element NOT an attribute
    3) it is the same value (no blanks etc.)
    we will try to run XI with 1.4.2
    @Udo:
    We know how to use XPath a litte bit and were to customize an expression in the conditioneditor. We only thought that you could mean a 'special functionality' of XI
    Thanks for your ideas so far!
    Regards!
    Georg

  • Problem with or condition in if statement

    Dear Oracle experts,
    I have a strange problem with Oracle 10g1R1 :
    The script below should normally write the value 1, 2, 3, 4, 5, 7, 9, 10 into my table.
    But itwrites all the values from 1 to 10 into my table.
    Only if I use only one condition without the 'or' the
    if condition is successful.
    Is this a normal behaviour of the database ?
    If yes, then why ?
    Best regards,
    Daniel Wetzler
    create table messages (results varchar2(30));
    declare
    var1 number;
    begin
    for i in 1..10 loop
    dbms_output.put_line(i);
    if (i != 6) or (i != 8)
    then
    insert into messages results values (i);
    end if;
    end loop;
    commit;
    end;
    /

    You want to use AND for that condition, not OR
    SQL> begin
      2  for i in 1..10 loop
      3     if (i != 6) and (i != 8)
      4     then
      5        dbms_output.put_line(i);
      6     end if;
      7  end loop;
      8  end;
      9  /
    1
    2
    3
    4
    5
    7
    9
    10

  • Problem with multiple condition type for VAT &CST

    Hi,Gurus,
    pl. suggest  the procedure for the following problem.we configured  seperate  pricing procedures for our product material and scrap material.We have configured same condition types for VAT(ie.condition type:ZVAT) and CST(cond type:ZCST), in both pricing procedures. Now We want to maintain  seperate condition types for VAT and CST for pricing procedure for Product material and Scrap material. I have created two new condition types for scrap sales ZSCT- cst for scrap and ZSVT-vat for scrap by copying the same from existing conditions ZCST & ZVAT, and the same is included in the scrap pricing procedure. And also maintained OB40,OBCN,OVK1,OVK3,OVK4, FTXP,FV11 and VK11.
    now I am facing the following problems.
    1. while creating the Material master & customer master, in tax category sub screen all conditions i.e. conditions defined for  product material( ZCST,ZVAT) and defined for scrap material (ZSCT, ZSVT) displaying and these are compulsory fields.
    2. While creating the sale order for scrap material, system is considering the TAX classes from ZVAT/ ZCST (defined for product material) and taking the condition value from the condition type ZSVT/ ZSCT with the TAX class values of  ZVAT/ZCST.
    Now I would like to know is there any procedure  to assign the Material type and Customer  Account group to Tax category.
    Thanks & Regards
    sam

    Hello Sam,
    The Access Sequence Assigned to your New Condition types ie, ZSCT and ZSVT are same as the Previous Condition type ZVAT and ZCST.
    After Adding new condition type in the Tax category in the Masters you have to take care of the Sequence of the Condition type.
    If ZSCT and ZSVT is on the 3rd and 4th number in the masters the Condition table you are using in the access sequence should have fields  Taxclassification3-Customer and taxclassification3- material. For ZSCT
    Likewise Taxclassification4-Customer and taxclassification4- material. For ZSVT
    Please add New Condition table in the access sequence with the required Field
    And next when you are maintaining the condition record for say ZSCT you will have to maintain condition record for the condition table which has Taxclassification3-Customer and taxclassification3.
    In Document the values will be flown correctly after changing this.
    Hope I have Solved your Query.
    If any Doubt please revert.
    Regards,
    Rohit Dongre

  • PROBLEM to give condition in ADF table column and on pressing enter

    Hi,
    1st problem:
    ========
    I have 1 ADF input text ,
    <af:inputText id="testinp"
    contentStyle="width:200px"
    value="#{adfobj.input1}"
    />
    say user is trying to enter any value , immediately if user presses "ENTER KEY" inside input text only i should invoke managed bean method
    say,
    Test.java
    ======
    public void getData(){
    2) im trying to display an ADF table,
    ADFStandardsLeftMenu=in faces config this name points to "ADFStandardsLeftMenu.java" bean
    mostCommonAgencySelectedList=of type arraylist which is present inside this bean
    this list obj holds 1 "StandardURLData.java" bean object
    accreditedagencyStdSelectedList.add(new StandardURLData("test col"));
    public class StandardURLData{
    private String stdName;
    public StandardURLData(String stdName){
    this.stdName=stdName;
    <af:table value="#{ADFStandardsLeftMenu.mostCommonAgencySelectedList}"
    id="t1" width="100%" var="stdURL"
    emptyText="<html><b><font color='red'><center>No Records Found</center></font></center></b></html>"
    inlineStyle="height:500px;">
    <af:column sortable="false" headerText="STANDARD NAME" align="start" id="c1" width="220px"
    inlineStyle="font-weight:bold;">
    <af:goLink text="#{stdURL.stdName}"
    id="sub_pt_gl1"
    destination="#{stdURL.viewerLink}"/>
    </af:column>
    <af:column sortable="false" headerText="FILE NAME" align="start" id="c3" width="220px">
    <af:goLink text="#{stdURL.fileName}"
    id="sub_pt_gl3"
    destination="#{stdURL.viewerLink}"/>
    <af:outputText value="#{stdURL.fileName}"/>
    </af:column>
    </af:table>
    im able to print all the values......
    but i want to include 1 condition in go link,
    like ,
    if "fileName" value (2nd column data) is null or "" (string in StandardURLData bean)
    i should not give hyperlink in 1st column "stdName" column
    i.e.
    (text: stdname should not come in hyperlink)
    <af:goLink text="#{stdURL.stdName}"
    id="sub_pt_gl1"
    destination="#{stdURL.viewerLink}"/>
    could anyone tell me how to give these conditions in adf table.
    in managed bean even if we check it will be prob while generating cols in table
    thanks in adv
    regards,
    sandeep

    Hi,
    If u know the employees who can change the values in other boxes, then follow the below procedure,
    In PBO,
    if employees can change,  (EMP = '....')
    loop at screen.
    if screen-name = 'Name for the input field'.
    screen-input = 1 .
    modify screen.
    endloop.
    else.
    loop at screen.
    if screen-name = 'Name for the input field'.
    screen-input = 0 .
    modify screen.
    endloop.
    endif .
    If u r not still clear, Mention ur problem with example
    Regards,
    Prem Karthick

  • Problem evaluating a condition

    Hi
    I'm getting an error in the receiver determination when I'm using a context object.
    The error is "Problem extracting values from the Payload: Check line 2 column 1 of the XML document".
    This is my paylod
    "<?xml version="1.0" encoding="utf-8"?>
    <ns:MT_XML_UNF xmlns:ns="http://dddd.com/XI/dddd">
         <MESSAGE>
              <TYPE>S</TYPE>
              <BODY>x</BODY>
         </MESSAGE>
    </ns:MT_XML_UNF>
    Can somebody explain me witch one is line 2 column 1 and maybe what is the problem?
    Florin

    > "<?xml version="1.0" encoding="utf-8"?>
    > <ns:MT_XML_UNF xmlns:ns="http://dddd.com/XI/dddd">
    >      <MESSAGE>
    >           <TYPE>S</TYPE>
    >           <BODY>x</BODY>
    >      </MESSAGE>
    > </ns:MT_XML_UNF>
    Check the condition in the Receiver Dertermination...also check you paylod value and Type should match with the condition.

  • Problem creating Header Condition in BAPI_PO_CREATE1

    Hello Gurus,
       I am having problems with creating a header conditions using the BAPI BAPI_PO_CREATE1. I am filling up table such as: POCONDHEADER, POCONDHEADERX.
    It creates a PO document but the header conditions I supplied is not included.
    How do I go about this?
    Can you guys give a sample code for this?
    Need your urgent response on this matter.
    Thanks,
    Jeffrey

    Hai
    Check the following Code
    DATA: g_s_poheader    TYPE bapimepoheader,
          g_s_poheaderx   TYPE bapimepoheaderx.
    DATA: l_no_messaging       TYPE char1.  
    DATA: bednr                LIKE wvfb-bednr.
    DATA: l_t_return            LIKE bapiret2  OCCURS 0.
    DATA: l_t_poitem          STRUCTURE bapimepoitem,
          l_t_poitemx         STRUCTURE bapimepoitemx,
          l_t_poschedule      STRUCTURE bapimeposchedule,
          l_t_poschedulex     STRUCTURE bapimeposchedulx,
          l_t_poaccount       STRUCTURE bapimepoaccount,
          l_t_poaccountx      STRUCTURE bapimepoaccountx,
          l_t_pocond          STRUCTURE bapimepocond,
          l_t_pocondx         STRUCTURE bapimepocondx.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader                     = g_s_poheader
          poheaderx                    = g_s_poheaderx
          no_messaging                 = l_no_messaging  "RWI-47-20-messaging
       IMPORTING
          exppurchaseorder             = bednr
      EXPHEADER                    =
       TABLES
          return                       = l_t_return
          poitem                       = l_t_poitem
          poitemx                      = l_t_poitemx
      POADDRDELIVERY               =
          poschedule                   = l_t_poschedule
          poschedulex                  = l_t_poschedulex
          poaccount                    = l_t_poaccount
      POACCOUNTPROFITSEGMENT       =
          poaccountx                   = l_t_poaccountx
          pocond                       = l_t_pocond
          pocondx                      = l_t_pocondx.
    Thanks & regards
    Sreenivasulu P

  • Problem with tax condition in TAXINN

    Hi,
    This is related to India.
    We are using TAXINN tax procedure. We maintained the following steps:
    1.all conditions in the procedure – JMOP, JMX1, JECP,JEX1, JSEP, JHX1, JVRD assigned account keys for the required accordingly.
    2.made tax codes – V0 , V1
    3.assigned accounting keys to G/L accounts in OB40
    4.made condition record with Plant / vendor/ material combination for all above conditions.
    When I am making PO by entering all values including tax codes  I could not able to see values flowing for JEX1 (Set off condition for Ecess), JHX1(Set off condition for Sec Ecess), JVRD (VAT RM Deductible condition). When I go to Analysis Pricing and check for these conditions values are appearing for those conditions & for those combinations. But I got message “ Condition record exists, but has not been reset” . Because of this value is not flowing.
    Can any body throw light on this.
    Regards

    Hi Friends,
    I solved this problem by doing / adding following customization:
    SPRO.. Logistics genaral .. Tax on goods movement... India.. Basic settings ..Determination of excise duty.. condition based excise determation.. classify condition types
    Maintained for the following :
    TAXINN .. JHX1.. AT1 set off condition Total
    TAXINN... JEX1... Ecss set oof condition Total
    TAXINN... JVRD .. A/P RM VAT Deductible
    Then assign Tax codes to Compnay codes in
    SPRO.. Logistics genaral .. Tax on goods movement... India.. Basic settings ..Determination of excise duty.. condition based excise determation..
    Regards

  • Left Outer Join Problem for Multiple Condition

    Hi This is the code and I want to return the vlaues evens if it is not ther so my Sysntax is not right for that can you plz help me
    SELECT ap.descripcion AS Production_Description,
    conceptes.descripcion AS Concepts_Description ,
    um.Nomenclatura AS Unit_Measure ,
    -- real_daily_detail.FechaProduccion AS Production_Date ,
    period.Codigo as June,
    period.anio AS YEAR_08 ,
    rmd.Valor AS Values_Monthly,
    budgetd.Valor as Budget
    FROM sgr_area_produccion ap ,
    sgr_conceptos conceptes ,
    SGR_Unidad_Medida um ,
    SGR_Unidad_Produccion up ,
    SGR_Unidad_Area_Produccion uap ,
    SGR_Real_Mensual_Detalle rmd ,
    SGR_Periodo period ,
    SGR_Real_Mensual rm ,
    SGR_Presupuesto budget ,
    SGR_Presupuesto_Detalle budgetd
    where uap.ID_Unidad_Produccion = up.ID_Unidad_Produccion (+)
    and uap.ID_Area_Produccion = ap.ID_Area_Produccion (+)
    and rm.ID_Area_Produccion = uap.ID_Area_Produccion (+)
    and rm.ID_Unidad_Produccion = uap.ID_Unidad_Produccion (+)
    and rmd.ID_Unidad_Produccion = rm.ID_Unidad_Produccion (+)
    and rmd.ID_Area_Produccion = rm.ID_Area_Produccion (+)
    and rmd.ID_Periodo = rm.ID_Periodo (+)
    and period.ID_Periodo = rm.ID_Periodo (+)
    and conceptes.ID_Concepto = rmd.ID_Concepto (+)
    and budget.ID_Unidad_Produccion = uap.ID_Unidad_Produccion(+)
    and budget.ID_Area_Produccion = uap.ID_Area_Produccion (+)
    and budget.ID_Unidad_Produccion = budgetd.ID_Unidad_Produccion
    and budget.ID_Area_Produccion = budgetd.ID_Area_Produccion (+)
    and budget.ID_Periodo = budgetd.ID_Periodo (+)
    and period.ID_Periodo = budget.ID_Periodo (+)
    and period.Codigo = 'JUNIO-08'
    and conceptes.ID_Concepto = budgetd.ID_Concepto (+)
    and daily.ID_Area_Produccion = uap.ID_Area_Produccion (+)
    and daily.ID_Unidad_Produccion = uap.ID_Unidad_Produccion (+)
    and dailyd.ID_Unidad_Produccion = daily.ID_Unidad_Produccion(+)
    and dailyd.ID_Area_Produccion = daily.ID_Area_Produccion (+)
    and period.ID_Periodo = daily.ID_Periodo (+)
    and conceptes.ID_Concepto = dailyd.ID_Concepto (+)
    and um.ID_Unidad_Medida = conceptes .ID_Unidad_Medida (+)

    Oracle old outer join syntax had more restrictions than more recent ANSI outer join syntax. I do'nt want to emulate compiler and go through your code to spot any possible problems, even more if you cannot say also the exact error or exact problem what you get.
    And bear in mind that for outer joins THERE IS DIFFERENCE [url http://www.gplivna.eu/papers/sql_join_types.htm#p6.4]between join conditions and predicates in where clause.
    Gints Plivna
    http://www.gplivna.eu

Maybe you are looking for