Condition based on Input value by parameter

Hi experts,
I  am looking for a solution in crystal reports  in conjustion to BI . I m using Bex query directly for this report rathing creating an universe.
I am trying to create a RKF based on parameter value by user's input.
For example : - user input a date FROM-TO and than I am filtering minimum and maximum value . Based on these 2 values I have to restrict a KF Sales amount.
Whenever I try to do like this in formula I get this error. Can someone help me in that please ?
if  ({ZCRETA_ZZCRETA_Q_001_TEST.[ZCALMTH]} <= {@Min}) then {ZCRETA_ZZCRETA_Q_001_TEST.[Measures]-[D6T7LZ8YG3KSRHCE821ZX1WVY]}
I also tried while do as well but did not work.Bascially I am trying to do something like this
If Calmonth <= Min ( already filtered by me from parameter's value ) than display sales amount.
As per this logic I should be able to see all the sales amount wherver Calmonth is less than of equal to minimum value of Calmonth.
Thanks in Advance,

Hi, your statement is looking at a formula, not a parameter
f ({ZCRETA_ZZCRETA_Q_001_TEST.ZCALMTH} <= {@Min}) then {ZCRETA_ZZCRETA_Q_001_TEST.Measures-D6T7LZ8YG3KSRHCE821ZX1WVY}
If it was a parameter it should look like this
if ({ZCRETA_ZZCRETA_Q_001_TEST.ZCALMTH} <= {?Min}) then {ZCRETA_ZZCRETA_Q_001_TEST.Measures-D6T7LZ8YG3KSRHCE821ZX1WVY}
you may also need to add the else.

Similar Messages

  • Fetch records from Database based on Input value

    Hi Experts,
    In my mobile application, I have designed one input field with F4 help or input assist. I need to fetch records from database based on that input and need to display records in table.
    My question is:
    How to fetch the records from database/back end based on the input value and display them as table format as we are doing in SAP ABAP?
    Here, I need to fetch the records based on input value available in the UI screen and pass that value to gateway, fetch the records from database and need to bind with table in SAPUI5.
    Kindly share the whole process flow with sample code for this requirement. Hope I have explained the requirement in detail.
    Thanks In Advance..
    Regards,
    Arindam Samanta.

    Hi,
    Try something like this.
    In this, I am passing From date, To date, RelGrp, RelStr, Uname as input. Then I am storing those values in variables and passing this data in Odata request.
    OData.read({ requestUri: "http://xxxx:8000/sap/opu/odata/sap/Z188_PO_SRV/pos?$filter=Docdate le datetime'"
                    + todateformat+"T00:00:00' and Docdate ge datetime'"
                    + fromdateformat+"T00:00:00' and RelGrp eq '"
                    + relcode +"'and RelStr eq '"
                    + relstg +"'and Uname eq '"
                    + username+ "' "},
      function (data) {
    console.log(data);
    When we are giving correct inputs it will goes to Success function and get the data from back end.
    In console we can see the data.
    Hope this will helps to you.
    Thanks&Regards
    Sridevi

  • Activate or deactivate a condition based on Input Variable

    Hi,
    Is it possible to Activate/De activate a condition based on Input variable, if yes can any one tell me how this could be done...

    Hi... Is there any other round about way other than using a User exit????
    Basically this is what I am looking for
    Quest to User: Y/N
    if "Y" then Activate the condition and suppress the records based on the condition
    If "N" then do not activate the condition and publish all the records...
    Any thoughts....

  • Dynamic table rows created based on input value

    I've been searching the forum for either a tutorial or input
    on how to create a table where the number of rows are based on a
    user input value. I can't seem to find anything on this.
    Here's what I'm trying to do. I have site where people are
    charged based on the number of items they register. So if they want
    to register 2 items. They would input the number 2 for quanity and
    I would display a dynamic table with 2 rows. The user will input
    their data for the 2 items and I insert this into an
    itemsRegistered table. If they entered 4 I would give them 4 rows
    for input. I am using dreamweaver with PHP and MySql database. Can
    anyone point me in the right direction. Any help would be
    appreciated!

    Not exactly. The items are all the same but have a different
    registration number (like a serial number). So if the user wants to
    register 2 items. They would input the number 2 on the form. Then 2
    rows would appear on the table, one for each registration number.
    When they finish entering the data it would be inserted into the
    database as 2 records.
    So for example if item 1 has registration number 10000 and
    item 2 has registration number 11000. The registration numbers are
    unique. The table would look like this :
    CustomerID (links to customer table)
    RegistrationID (Unique in this table)
    ItemColor
    ItemShape
    I don't know if I've explained this well but thanks for even
    attempting to answer this! I really appreciate it!

  • Passing the column name on Where condition based on input parameter

    Hi,
    I am using Oracle10g. Following are my table schema.
    Table Name : Codes
    Columns( ID, Level0, Level1,Level2)
    View Name : SampleView
    I have a scenario : A parameter will be passed to my view from C# application. I need to cut the last 4 places of the parameter and need to check 4 conditions as follows :
    1. IF last 4 places of parameter contains the value as "AMPD" then pass level0 column on where condition.
    Sample code : A123XPAMPD
    Expeted Result: Select * from Codes where Level0 ='A123XPAMPD'
    2. IF last 4 places of parameter contains the value as "Alpha numeric" then pass level1 column on where condition.
    Sample code : A123XPAA00
    Expeted Result: Select * from Codes where Level1 ='A123XPAA00'
    3. IF last 4 places of parameter contains the value as 0000 then pass level1 column on where condition.
    Sample code : A123XP0000
    Expeted Result: Select * from Codes where Level1 ='A123XP0000'
    4. IF last 4 places of parameter contains the value as (cannot be all 0's) and cannot contain "Alphabets" then pass level2 column on where condition.
    Sample code : A123XP1001
    Expeted Result: Select * from Codes where Level2 ='A123XP1001'
    Could any one please help me on writing this logic inside the view.
    Thanks in advance.

    Do you want to make sure that at least one alphabet and one number is there?
    select case
         when regexp_like('1111','^[a-zA-Z]+$') -"This says - Only alphabets, not even space
              THEN 'Alphabets'
         when regexp_like('1111','^[a-zA-Z0-9]*$') --"This says - Only alpha-numeric, not even space
          and regexp_like('1111','[a-zA-Z]') --"To make sure atleast one alphabet is there
          and regexp_like('1111','[0-9]') --"To make sure atleast one number is there
              THEN 'AlphaNumeric'
           else 'NULL' --"This is a string. Not actual NULL
          end
    from dual;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Multiple Conclusion based on input values

    Hello,
    I think I have a similar request to this one: https://forums.oracle.com/message/9208952#9208952
    Basically I have a requirement to return a list of required documents someone must upload based on their application. The plan is to invoke the Determinations Server via the web service interface to get a list of the Documents (these would be URLs)  required based on some fields. I'm not quite sure how to approach the rules and web service call so that I would get a list of documents back. I want to complete it in Excel and would like the URL as the conclusion with the attributes as the entry fields.
    e.g. write rules like:
    the value of field1
    the value of field2
    document requiring upload
    X
    Y
    http://mysite.com/mydocument1.pdf
    X
    Z
    X
    Y
    http://mysite.com/mydocument2.pdf
    and when I invoke the determinations service with values X and Y the response would be something like:
    <typ:attribute id="document_to_upload" type="string" inferred="true">
         <typ:boolean-val>http://mysite.com/mydocument1.pdf</typ:boolean-val>
    </typ:attribute>
    <typ:attribute id="document_to_upload" type="string" inferred="true">
         <typ:boolean-val>http://mysite.com/mydocument2.pdf</typ:boolean-val>
    </typ:attribute>
    Can I do like above and how do I structure the rules and webservice calls to get a list of documents back? Or do I have to write a table of rules for each type of document and request an outcome/conclusion for each one to get the URL as the conclusion? Does one of the example projects that comes with the installation cover (or go close) a scenario like this?
    Thanks,
    Ross

    Thanks @ChaseVoid and @PaulFowler
    I have written up my rules and I have tested them in the debugger, all working as expected. Now I'm trying to get them via the web service and I can't seem to get the value back, only the instance. My request is as below:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://oracle.com/determinations/server/11.0/rulebase/assess/types">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:assess-request>
             <typ:config>
             <typ:show-properties>true</typ:show-properties>
             </typ:config>
             <typ:global-instance>
                <typ:attribute id="bin_code">
                <typ:text-val>CHNY</typ:text-val>
       </typ:attribute>
       <typ:entity id="the_supplementary_documents" inferred="true">
                   <typ:instance id="x">
                    <typ:attribute id="supplementary_documents" outcome-style="value-only" />
                   </typ:instance>
                </typ:entity>
              </typ:global-instance>
          </typ:assess-request>
       </soapenv:Body>
    </soapenv:Envelope>
    The code given as an attribute input should return two supplementary documents and one informational document, which it looks like it finds but I'm not getting the value out of the instance. The response is below:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n="http://www.w3.org/2005/09/ws-i18n" xmlns:typ="http://oracle.com/determinations/server/11.0/rulebase/assess/types">
       <SOAP-ENV:Header>
          <i18n:international>
             <i18n:locale>en_GB</i18n:locale>
             <i18n:tz>GMT-0500</i18n:tz>
          </i18n:international>
       </SOAP-ENV:Header>
       <SOAP-ENV:Body>
          <typ:assess-response>
             <typ:global-instance>
                <typ:attribute id="bin_code" type="text">
                   <typ:text-val>CHNY</typ:text-val>
                </typ:attribute>
                <typ:entity id="the_supplementary_documents" inferred="true">
                   <typ:instance id="0x74d5b205a0612b60"></typ:instance>
                   <typ:instance id="0x9163835e55979771"></typ:instance>
                </typ:entity>
                <typ:entity id="the_informational_documents" inferred="true">
                   <typ:instance id="0xc8730b5ed088cbce"></typ:instance>
                </typ:entity>
             </typ:global-instance>
          </typ:assess-response>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I'm sure it's a matter of passing a new element or adding an attribute to an element there but I can't work out which one. Any ideas?
    Thanks

  • Activate or deactivate a condition based on Input Variable - Bex

    Hi,
    Is it possible to Activate/De activate a conditiion based on an Input Variable in Bex Analyzer? If yes, can some one let me know how this could be done

    Hi... Is there any other round about way other than using a User exit????
    Basically this is what I am looking for
    Quest to User: Y/N
    if "Y" then Activate the condition and suppress the records based on the condition
    If "N" then do not activate the condition and publish all the records...
    Any thoughts....

  • Changing field text color and fill based on input value.

    I am trying to create a field that can be red, yellow or green.  In the end, what I need is a box that can be made red, yellow or green by the form user.  My strategy is to use a validation script to change the field and text color based on the field input.  So if you type "red", the text and field turn red, essentially making a red box.  The field is named "GoalColor".
    Am I headed in the right direction to get make this dynamic colored box?
    This script works but you must type "red" into the field(including quotation marks).  Any ideas on why the word red alone isn't triggering it? 
    var vcolor = this.getField("GoalColor").value;
    if (vcolor == "red") {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    I have also tried - works if you type 'red'
    var vcolor = this.getField("GoalColor").value;
    if (vcolor == 'red') {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    and  - does not work
    var vcolor = this.getField("GoalColor").value;
    if ( vcolor == red ) {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    Thanks!

    And you don't need to add the quotation marks in the text field. In fact, doing it will cause the script not to identify the word.

  • Pricing condition based on a $ value

    Hello,
    We have a uniqure requirement in the Pricing for a Sales Order.
    We have a sales price condition PBXX maintained and it populates automatically during sales Order creation.
    Now what we want is if the total of all the conditions is less then 5000$ at the header level then the system should populate another condition with a $ value on it.
    So basically we want another condition (with a fix $$ amount that we will maintain) to come up in the sales order when the header value of that order is less then 5000$.
    Any Ideas?
    Thanks
    SAP Fan....

    hey friend ,
    i read again what you wrote,
    lets make it simple :
    A) you have 1 header condition that works in he sales order  : PBXX - maintain a value in vk12 .
    B) create another header condition :  Z005 - and maintain a value in vk12 .
      ( its possible to maintain a value for header conditions )
    C)  now you want to activate the second condition (Z005 )  if the sum of all the conditions
         is greater than 5000 ,
    2 options :
      1. hard coded - go to transaction VOFM-REQUIRMENTS-create  new formula :
          and add the next lines to the routine :
           FORM "XYZ" ( the name is generated by the system ) :
          check 1 = 2.
          if komp-netwer > 50000
          check 1 = 1.
          end if .
    2.  by " value scale " -  define Z005 condition as a value scale.
    go to transaction vs01 and define the following  intervals :
    0 - 5000  USD                   
    5000 - 9999,9999      USD
    go to transaction vk12 and assign your surchage :
        0 - 5000                      -
    > assign value 0
        5000 - 9999,9999         -
    > assign the value you want to be activate
    hope i made my self clear .
    BR
    ASA

  • Populate a another value based on input value using abap webdynpro

    Dear All,
    I am new to WDA.I have a requirement to calculate priciple amount based on the user requested amount.Here requested amount is input field and principle amount is defined as text view.
    Now let's say user entered requested amount as 12000,dynamically priciple amount has to be generated by calculating requiredamount/120(number of months).Pls help!
    Thanks,
    Reddy.

    Thanks ,I am able to do it before watching u r answer.I searched in forum and I was able to it.
    Now i have one more question.Now I want to retrict the user not to enter any amount beyong eligible amount.Eligible amount is the field which I am getting from database table and displaying in a text view and the eligible amount is different for different users.I know this validation also has to be handled in ONENTER event.But I am not sure how to show the alert?
    I have to code in ONENTER event handler like
    if lv_requiredamount>lv_eligibleamount
    what need to be done to show some alert are popup.
    Please help.
    Thanks,
    Reddy.

  • Restricting key figure based on - INPUT value or value in TRANSACTION data

    Hi fellow BWers, hope you can help with this report requirement.
    Manual input variable : 0CALMONTH.
    <b>Is it possible to restrict a key figure (0amount) like this on-the-fly: </b>
    If 0calmonth in input variable > 0calmonth in transaction data
       then restrict 0amount with 0calmonth from input variable
    else restrict 0amount with 0calmonth from transaction data
    It's a must-have requirement to do it 'on the fly', not in the ETL.
    Thanks very much,
    AG

    Thanks a lot, I get the idea
    In order to get the 0calmonth from the transaction data, i need to :
    1. display the lowest granularity in the rows (so that calmonth is unique)
    2. then use formula variable with replacement path on the infoobject 0CALMONTH to get the value from transaction data?
    Is this correct?
    If yes...since the user does not want the lowest granularity in the report, he wants result pr. profit center, this will happen if I take 'No display' on the characteristics :
    Profit center A ||  20
    Profit center A ||  30
    Profit center A ||  10
    Profit center B ||  15
    <b>Question</b> How do I get the total pr. profit center, despite having all the other characteristics (hidden) in the row?
    Thanks
    AG

  • Condition based records sent to proxy

    Hi all,
    My interface is a File(FCC)-Proxy in PI7.0. I get 100s of records from the source and there are fields ID and LOC.
    Fields which has ID=2 and LOC=US or UK, only those particular records should be sent to the proxy. Please help.
    Thanks,
    Chaitanya

    hi chaitanya,
       "Condition based records sent to proxy"  
       Based on condition you sent records, in interface determination we have condition option there you define the condition .Based on payloda values we send it.
    1)   left operand : ID = Right operand : 2
    2) Left Oreand :LOC  = Right Operand : US OR(Insert Group We select Operation OR)
         Left Oreand :LOC  = Right Operand : UK
      regards,
    ganesh.n

  • Numbers SUMIF with condition based on another cell?

    This works great!
    =SUMIF(Food Log :: Date,"=March 20, 2008",Food Log :: Calories)
    But I want the condition to be based on a cell value:
    =SUMIF(Food Log :: Date,"=A2",Food Log :: Calories)
    Is there a way to use the SUMIF function with a condition based on the value of a cell?

    Chris,
    Try this formula: (Forgive the made up values in the example)
    =SUMIF(Food Log :: Date, A2,Food Log :: Calories)
    pw

  • Writing in to multiple sheets in Excel file based on input condition

    Hi All Experts,
    i need to write in to multiple sheets in one Excel file output.
    is it possible with UTL_FILE ? or Any options there in Oracle to do this ?
    Can anyone please suggest me on this.
    Thanks,
    Ravi

    I have seen all of them they are all just simple SQL pulls from database in to Excel file..No, definitely not
    My requirement is i need to write in to one single Excel file with MULTIPLE sheets based on input condition-> [xml_spreadsheet|http://matzberger.de/oracle/spreadsheet-en.html]
    so for each parameter need to write into separate sheet in one Excel File..-> [xml_spreadsheet|http://matzberger.de/oracle/spreadsheet-en.html]
    I hope you understand my problem atleast now...I think I understood your problem at first sight.
    If you simply want to throw 2 queries at the package and get back an Excel file with 2 worksheets you just have to look at the first page of the [tutorial |http://matzberger.de/oracle/spreadsheet-tut-en.html]. Half way down the page there's an example.
    If you want a special formatting then you can do this too, it's described step by step.
    Regards
    Marcus

  • Text Entry Box--Advanced Actions--Conditional Statement--Double quotes in literal input value

    Hello forums,
    I'm new to the forums (and Captivate in general), but I'm having a real problem carrying out a tutorial design and I think you may be my only hope.  Let me explain what I want to do and the difficulty that I'm having:
    I'm an instruction librarian at a university, and I'm designing an interactive tutorial for English 100 students to complete in order to become familiar with how to search the library catalog.  What I've done is taken a screenshot of the catalog search page, made it the background of a slide in Captivate (vers. 6), and placed a text entry box over the search bar in the screenshot.  The idea is for the students to conduct a simulated search by choosing one of three suggested search string formulations, and depending on the search string they enter, the tutorial will jump to a slide featuring a screenshot of what the actual search results would look like.  The idea is to emphasize the use of keywords over full-sentence phrases, and the use of double quotation marks to enclose multi-word search terms.
    So I've set the action for the TEB to "Execute Advanced Actions" and then created some IF/THEN statements in the "Advanced Actions" pop-up window (with action type set to 'conditional'). The script is such that if the student enters the first search option (how does sleep affect college students) in the TEB, the tutorial jumps to 1 slide, if they enter the second option (college students AND sleep), featuring a Boolean operator (AND), the tutorial jumps to a 2nd slide, and if they enter the third option ("college students" AND sleep) with the double quotes around "college students" and the Boolean operator, the tutorial should jump to a 3rd slide.  This action script works fine for the first two input options, but I can't make it work for the third search option.
    I think that it has something to do with the fact that the third input option features double quote marks, and this seems to throw off the script (I tried a quote-less input value for the third IF/THEN just to make sure that it would work jumping to the 3rd slide and it did), and I'm wondering if anyone has any suggestions as to how I can get around this issue.  Again, I need it to work so that if the student enters "college students" AND sleep, with the quote marks and the Boolean operator, the tutorial will jump to a slide showing the search results if those search terms were used in a real search of the catalog.
    I'd be extremely grateful for any help that anyone here can give me, we've been trying to make our online tutorials more engaging and interactive (and therefore more interesting), and I think this would be a great way to teach students about using quotes in their catalog searches.
    Thank you for your time and consideration.
    Andrew Wilk
    College Library
    UW-Madison

    The tutorial is for a "how to use catalog searching" instruction in an undergraduate library session.  We use boolean operators (AND, OR, NOT) to combine search terms, ex. to search for books about the sleeping habits of college students, I would enter "college students AND sleep."  Because "college students" is a multi-word phrase to describe one concept, I need to put quotation marks around the phrase to prevent the catalog from searching for the individual words separately, so the most correct search becomes ["college students" AND sleep] with quotation marks around only "college students," a user-typed "AND," and the word "sleep" (no q-marks).
    A colleague of mine worked out a pretty cool (if complicated) solution that I'll share if anyone is interested.  Since the q-marks where the problem, we've set it up so that the TEB validates the response for the search string with q-marks around "college students." If they enter it correctly, the tutorial jumps to the corresponding slide. The attempt # is set to 1, and if the user fails to enter the validated phrase (they misspell or use one of the other response options) then the TEB is set to run an Advanced Actions Script in which the other two options are scripted in IF/THEN statements that cause, when the term is entered correctly, the tutorial to jump to their corresponding slides. We've created another tab of IF/THEN statements that say that if the response is NOT equal to one of these response options, then the slide restarts (technically the slide "jumps" back to itself and starts over) and the user gets another chance to start the cycle over again.
    I know this is confusing (I had a really hard time explaining it in words), so if anyone is interested I could make a Jing video when I have some time.
    Thank you for all your suggestions

Maybe you are looking for

  • Ideas for a car stereo/gps/Bluetooth for a 2006 honda accord

    I need some ideas on how to get Bluetooth in my 2006 honda accord. I've been looking at car systems with gps and Bluetooth but it seems too expensive. I've also been looking at a Bluetooth device to install in the car. I just don't know how to instal

  • Using ipod to transfer music to itunes

    Need Help! My computer crashed and I lost my itunes library, Yeah i know i am an idiot b/c i did not save my music files. Now i am getting a new computer and i was wondering if it was possible to use my ipod (which has all my songs) as a way to impor

  • Problem with decimal point in Korea and Japan

    Hi all, I have one problem with decimal points. I need to change in my out put cuurency values as per japan or korea standards. Please help me is there any function module for this one. program using alv grid display. i use write statement but it is

  • How to display a description and make validations

    Hello colleagues... As most of you I'm coming from a Forms background and I'm triying to understand some techniques. But my question is If have a simple PL/SQL block to display a descripction and make some validations, How can I do the same task usin

  • PLEASE I JUST NEED TO CONFIGURE TO OPEN PORT 22

    Very sorry for the redundant post. I am in a desperate situation where the RAID on my NAS has been lost and I need remote tech analysis ASAP. Can anyone out there please help me configure so that Port 22 is open??? I have a Thecus N5200 and an brand