IF CONDITION IN BEx

Hi bw guru's
    i need to write the IF condition in BEx reporting..
IF PAID AMOUNT = 0 THEN DISPLAY THE RATED AMOUNT
i need to write the above condition in reporting level can any one help me out on this ...
thanks and regards
Uma reddy

There is a correction to Mangas Formula :
(PAID AMOUNT = 0)*(RATED AMOUNT)
This is a Boolean Logic which says that if this condition PAID AMOUNT = 0 is true (= 1) then display RATED AMOUNT

Similar Messages

  • Options in Assignment of Condition in BEX Query Designer

    Hi Experts,
      I am trying to define a condition in BEX Query Designer.
    I defined my condition and bit confused with Characterstic Assignment
    What Happens if is select 9What is the difference)
    1) All Characterstic in the Drilldown Independtly
    2)Most Detailed  Characterstic Along the Rows
    3)Most Detailed Characterstic Along Columns and
    4)Individual Chars and Chars.Combinations
    Thanks

    hi,
    chk the link
    Query creation
    http://help.sap.com/saphelp_nw70/helpdata/EN/f1/0a5625e09411d2acb90000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/d21c1f46076bb2e10000000a1553f6/content.htm
    Ramesh

  • Date condition in BEx is getting converted as String prompt in Crystal

    Hi,
    The Date condition in BEx is getting converted as String prompt in Crystal Reports.
    User is not getting the flexibility to select date using Calendar option because of string type
    Please advice
    Thanks,
    Vishal

    Post your question BEX and B1 and classic SAP data source issues to the Integration Kit forum

  • Conditions In BEX Query Designer

    Hi Users,
    I have a scenario to be implemented in my queries.
    Scenario 1 -
    I have a Characteristic field F1.
    I have to create a coloum C1 in report display result which populates the below condition:
    If F1 = '12345' then C1 = YES
    ELSE it should be blank.
    Scenario 2:
    I have two date fields D1 and D2 with their corresponding KPI fields DV1 and DV2.
    DV1 is for D1 and DV2 is for D2.
    First D1 is compared with D2 and whichever is latest date then its corresponding field should be populated and other should not.
    Example if D1 is 01.04.2014 and D2 is 22.04.2014 and If DV1 is 100 and DV2 is 200
    Then only DV2 should be populated and DV1 should be empty.
    Can anyone please suggest?
    Regards
    Syed

    Two things to note before we move to solutions.
    You need to convert all the dates(D1 and D2)and characteristic (F1) fields into Keyfigure with the help of formula variable with replacement path which are to be used in if else condition for comparison.
    You cannot populate string (YES) at Bex lsevel so instead of that you may use number if that suits your requirement.
    Now once you have converted the same then write the condition as below:
    Scenario 1 -
    I have a Characteristic field F1.
    I have to create a coloum C1 in report display result which populates the below condition:
    If F1 = '12345' then C1 = YES
    ELSE it should be blank.
    (FV1==12345)*1+(FV1<>12345)*0
    For Scenario 2:
    (D1>D2)*DV1+(D1<D2)*DV2
    For converting the char into kfs refer the below document:
    Convert a Characteristic into a Key Figure (BEx)
    Hope this helps.
    Regards,
    AL

  • Usage of formulas in conditions in BEx Query Designer

    Hi guys,
    does anybody of you guys know, if it's possible to use the results of formulas in conditions? I tried it, but the result of the query was "No applicable data found", but there are data for the selection.
    When I'm defining the condition with the key figure (no restricted or calculated key figure), then the query can be executed.
    In my case, I like to define a condition based on a formula result. The value should only be displayed, when the result is greater than 30.
    Any ideas or are there any bugy in the BEx Query Designer?
    Thanks a lot + best regards,
    Clemens

    Hi Clemens,
    I have created a condition in my own system based on formula and it works perfectly fine. Please check following points in your condition change mode,
    1) Condition is marked as Active.
    2) In the block "Evaluate condition below for" you will have to select "All characteristics in drilldown Independently". If you have selected combination of characteristics then you will have to maintain proper sequence otherwise your condition will not work.
    3) In the next block when you set the condition, click on new, in the first block select your Formula from dropdown and set the proper operator in your case you will have to select "Greater than" in the next column set the value of key figure and just trasnfer it.
    Now you are ready to use the condition.
    Regards,
    Durgesh.

  • Multiple Conditions in BEx 3.5 Query

    Hello All,
      I am using BEx 3.5 and I have two single line conditions in my query.  One is set to "All Characteristics in the Drilldown Independently" and the other is set to "Single Characteristics or Comginations of Characteristics".  Each Condition works when only one is active.  When both are active, the one set to "All Characteristics in the Drilldown Independently" does not work. It has a check in front of it indicating that it is active, but it does not work properly.  Is it possible to have two conditions active at the same time when one is set to "All ....." and the other is set to "Single....".
    Any help would be appreciated!!
    Thanks!
    Tina

    HI Tina,
    2 conditions at same time can't work on one characteristic in 2 different way. this is something like finding 1 red apple or 2 green apple in a pack up 4 apples say. which is not possible either you have 1st search for 1 and then for 2 or 1st 2 and then for 1.
    when both the conditions are active i think the condition  "Single Characteristics or Comginations of Characteristics" was after the condition "All Characteristics in the Drilldown Independently" in the designer and thats why its overwriting the other. you may decide logically which condition should be applied 1st and then from that out come, if the other condition is applicable then if it works for the desired out put. else you can make both the condition of same type either All char or single char.
    i think you should put the condition "all char" for both and it should work.
    you can also decide one primary condition and apply that one only and the other condition you can achieve using a RKF.
    hope this helps.

  • Exception condition "NOT_SUPPORTED_BY_GUI" - BEX Query on Virtual infocube

    Hi,
    I receive the error message "Runtime error Exception condition "NOT_SUPPORTED_BY_GUI" raised" wheneverI try to run a BEX query built on a virtual infocube. Does anybody have idea, how could it be resolved ? 
    Any additional GUI component shuold be installed or some settings is missing ?
    Thanks, Attila

    Hi,
    Since Virtual Infocube tries to fetch data directly from the source system, your GUI was n't getting connected.
    Goto your Cube and look for any options available to make it integrates with your GUI.
    Hope you may get some idea on the issue...........
    Regards,
    Suman

  • How to create a formula based condition in bex query designer

    hi all,
    i have scenario in query designer where i need to calculate Key performance indexes based on characters and key figures iam using.for example the condition is like:
    "if call received is less than call projection then give call received else null"
    how and where to define the condition and i need to name the condition to display it seperatly.please help me in this issue.
    regards
    Vamshi D Krishna

    hi you have to break down your conditions and then code for them.
    for e.ge.
    if actual == 0
      vart = 0.
    else if actual-target ==0
              vart = 0.001
           else
             vart = actual -target
           endif
    endif
    now we start with first condition use operators from boolean catagory
    (Actual != 0)*(other amount)
    this solves first if condition... if actual  = 0 value actual != 0 will be zero we got our desired value.
    if other case then we have give else condition.
    (Actual != 0)*(((actual - target) == 0 )*0.001+((actual-target)!=0)*(actual-target))
    in the second half we have coded the else part.
    in the same way you can proceed for your logic

  • How to write a condition in BEX Query Designer

    Hi
    How can i write a condition in Query Designer
    Scenario
    An employee can purchase any no of policies in a day or month.each policy will have start date and expiry date.
    My requirment
    Count all the policies(valid) by employee on a ranges basis exception reporting
    (0-10;10-20;20-30;30-40) and then able to drill down by policy start date and expiry date.
    As per the requirment is to show policies which are not yet expired (active) i need to write a condition that will count only policies whose Expiry date is > Current calender day
    As Policy Expiry Date is a char i am converting it to KF using fourmala variable so that i can write a condition on it using current cal day formula variable sap exit
    But i char assigment of a condition i find 4 option
    How can i achieve this
    Thanks

    Hi Aurun,
    Thanks for the help,Really appreciated
    As this is my first enhancement using ABAP & CMOD
    What type of key (either Access or developer ) do i require to perform the following  enhancement......so that i can raise request with basis team
    I shall be great ful if u can asnwer below question
    First, you need to create a variable for expiry date with processing type as customer exit, and then give the necessary info.
    In details tab, unchk ready for input as we wont be taking the value from the prompt.
    Now go to CMOD transaction.
    Open the correcsponding project which has the exit code
    (How can i identify the project which has exit code)
    and go to ZXRSRU001 module inside taht.
    Go to the module where u write the exit.
    (How to locate the required module)
    Then, under i step 1, write the code:
    IF I_STEP = 1.
    CASE V_NAME  (What is 'V_NAME',Is it my variable technical name)
    WHEN 'X' " X is the variable u created for the exit
    l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.
    END CASE.

  • How to create conditions in BEx

    Hi,
    Please tell me if my query condition on a KF looks like this how can i achieve this?
    Key Figure: 1.Forcast Accuracy
                2.Actual
                3.abserr
    Formula for Forecast Accuracy: If Actual>0,then do 1-abserr/actual,
                  else 0.
    if i create calculated KF or restricted keyfigure how can i write if else conditions...
    Thanks in Advance,
    Vijaya

    Hi,
      Check this out.....
    (Actual>0)*(1-(abserr/actual))+0
    Instead, if you don't go for CKF, in the columns of the query if you have columns for Forcast Accuracy, Actual and abserr
    you can do like the below
    Column1 : Forcast Accuracy
    Column2 : Actual
    Column3 : abserr
    Column4 : 1-nodiv(abserr/actual)(to be hidden)(new formula)
    Column5 : (Actual>0)*(Column4)+0    (New formula)
    Hope this helps you.....

  • Operator Prompt on Conditions in BEx

    Hi all,
    Is it possible to create prmopts on the opertaor itself for a condition on a KF? What I am looking for is:
    I have a Key Figure KF1. Now I want to create a condition on it with a variable. But I don't want to specify the operator beforehand rather allow the user to select the Operator while running the query. Let me know if this is possible.
    Thanks in advance,
    Andy Kroos.

    Hello,
    Thanks for your reply. There is a variable box as you are saying. But that does not allow me to create a prompt on the operator itself. I have to specify the operator & on the specified operator I can use the formula variable to get an input from the user for the KF.
    SO say I have created condition on KF1 with operator "equal to" I can create a variable to get the input from the user. But that would only be for KF1 "equal to" user input. I want to have the operator to be selected by the user. So that he has the list of operators & from that he can select. e.g KF1 "less than" or KF1 "between"..
    hope I could clarify.
    Thanks,
    Andy Kroos

  • Condition (Defintion) in BEX Query Designer

    Hi Experts,
      I am trying to define a condition in BEX Query Designer.
    I defined my condition and bit confused with Characterstic Assignment
    What Happens if is select 9What is the difference)
    1) All Characterstic in the Drilldown Independtly
    2)Most Detailed  Characterstic Along the Rows
    3)Most Detailed Characterstic Along Columns and
    4)Individual Chars and Chars.Combinations
    Thanks

    Hi,
    <b>● All Characteristics in the Drilldown Independently</b>
    This setting allows you to apply a condition in a general way. Depending on which characteristics you use in the drilldown, you obtain different results.
    Note that the characteristics that are already used in an active condition for characteristic combinations are not included.
    This option is optimized for ranked list conditions, but can also be used for threshold value conditions with relative values.
    <b>●Most Detailed Characteristic Along the Rows or Columns</b>
    This option is optimized for threshold value conditions. The condition is applied to the most detailed characteristic of the rows or columns.
    Note that this function is not supported when executing the query in the BEx Analyzer. For more information, see Restrictions in the BEx Analyzer.
    <b>● Single Characteristics and Characteristic Combinations</b>
    This setting allows you to evaluate the condition for characteristics or characteristic combinations defined for specific drilldowns only. You can select any characteristic (of the characteristics used in the query in rows, columns, or in the free characteristics) or a characteristic combination.
    ○       If you only want to evaluate the condition when a certain characteristic is present in the drilldown, select this characteristic.
    ○       If you want to evaluate the condition for characteristic combinations, select multiple characteristics.
    Source:
    help.sap.com
    For more information and examples please check the following link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/73/702e39074dc93de10000000a114084/frameset.htm
    Hope it helps.

  • Bex Formula with Condition - Creation

    Hello All,
    We need to create a formula, and the condistions are provided below.
    if (A > B) and
    if (C > (A - B)) then X = (A - B) * D
    else
    X = C * D
    else
    X = 0
    In Excel the formula is defined as,
    X = IF(A>B,IF(C>(A-B),(A-B)D,CD),0)
    Can someone provide the Bex solution for this?
    Kind regards,
    Edited by: Jith136 on Oct 6, 2011 1:44 PM

    HI ,
    You cannot use if condition in bex query designer.. instead try the same with Boolean operator in three new formulas ...
    formula1  (A > B .and. C > (A - B) ) (A - B) * D
    Formula2 (A<=B .and. c<(a-b))  C * D
    formula3  formula1+formula2...
    when you are creating formula on right pane you can see boolean operator use them to meet your requirement .. I don't have access to my server rit now so i am not able to check the same , if you feel to change operator accordingly. 
    Thanks
    BVR
    Edited by: binu v. rajan on Oct 6, 2011 6:00 PM

  • To Filter Blank Records In Bex

    Hello,
    We are developing a DashBoard On Bi Aging report. Data is matching with BI aging report, so no data issue.
    In Bi Query we have used Suppress Zero Records but In Dashboard all material are passed i.e Suppress Zero records is not working while data fetch to DashBoard
    For Eg: in Bi report with "Suppress Zero" records we have 500 records
    and Bi report without "Suppress Zero" records we have 3000 records.
    So It has decreased the performance of Dashboard as we need handle large numbers of records in Dashboard.
    how can we filter blank record in Bi report?

    Hi,
    Either you want to hide single kfg which contains zero records or for all kfg's?
    Have you checked data in RSRT after Suppress Zero Records ?
    and one more thing suppress result rows applied in Bex won't work in dashboard clearly mentioned in below doc:
    http://www.mastering-sap-and-businessobjects.com/sap-businessobjects-bi-4-service-pack-05-support-for-bex-query-elements…
    Try with conditions in Bex query itself and check either expectyed data is coming or not as suggested by Yasemin.
    if not in Dashboard itself try as below :
    Re: Ignore blank rows inbetween in Xcelsius
    Thanks.

  • Condition does not show expected data

    Hi specialists,
    I obviously have got an understandig-problem with conditions in BEx-Analyzer Report.
    Let's say I've got the CompanyCode, Year (characteristics) and "Quantitity" (Keyfigure) in my Report. I want to use a condition for only showing those rows where the quantity is < 10.
    But the report shows me only those rows where the result-rows are < 10 .
    The result-row and the detailed rows (for that result-row) are visible in the report.
    Example:
    without (aktive) condition:
    CompCode  Year  Quantity
    DE    2005    8
            2006    12
            result   20
    FR    2005   4
            2007   3
            result  7
    with aktive condition:
    FR    2005   4
            2007   3
            result  7
    Wanted Result (show only quantities < 10):
    DE    2005    8
            result   20
    FR    2005   4
            2007   3
            result  7
    My question is not about the result line (I've seen that there're lots of questions and answers about unexpected result lines in this forum).

    >
    Sreeman wrote:
    > Please ensure that you have defined the condition this way
    >
    > Key Figure :   Quantity
    > Operator :    less than
    > Value  : 10
    That's my setting.
    Otherwise even the unexpected result wouldn't make sense, would it?
    > Characteristics , you can select Company Code
    Want to use that condition for every navigation, independant from a concrete characteristic.
    So I choose "all characteristics independently"
    Edit:
    It seems as if the condition would first evaluate against the result-row.
    --If the test is successfull, then it is evalutated against the detailed keyfigures of this result-row.
    --If the test fails, then the detailed rows aren't evaluated anymore.
    But I need the detailed rows to be evaluated independantly from the result-rows.
    Hiding/Disabeling the result-rows doesn't help - even worse - it throws an error.
    Edited by: Marco Simon on Apr 3, 2008 5:54 PM

Maybe you are looking for