How to create a variable for key figure (value will be entered by the user

I want to create one query, where the user has to entered a max value when the query is started, so that only the query rows will be listed, where the key figure value (integer) of the row is smaller than the max value given.
How can i define that variable which has to start at the begin of the query; and also the restricted key figure iin consideration of the KF variable.
Thanks for helping
Ar.

Hi Arnaud,
            Go to Conditions-> Right click -> New Condition -> Edit -> NEw -> Selct the KEy figures from the dropdown( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
Save & Execute, you will find it in your selction criteria.
Regards
Sunil

Similar Messages

  • How to creat test variable for required year value.

    Hi All,
    I have one report in that report description i want to display year value(zvar_year).
    Ex : report description like "&zvar_year& report" in runtime it can show "2011 report".
    when i run this report from feb to dec i have to show current year value, when i run this report on jan it have to show previous year value
    For this i used diff type of test variable as fallowed bellow
    1) test variable using replacement path with info object :
    variable type:test
    char:zyear
    process type:replacement path
    replacement variable with:infoobject
    replace with :key
             (or)
    iam trying bellow variable method but iam unable to see in variable list its charectaristic value variable
    variable type:test
    char:zyear
    process type:replacement path
    replacement variable with:variable  "this is customer exit variable built on zyear unable to see in variable list
    replace with :key
    2)test variable using customer exit:
    variable type:test
    process type:customer exit
    *Problem:* when i used &zvar_year& in the description its showing  "&zvar_year&" only not "2011" value.
    please let me know how to get the values into test variable
    Thanks in advance
    Edited by: RJANAR on May 18, 2011 7:17 AM
    Edited by: RJANAR on May 18, 2011 7:23 AM

    Hi,
    For that you need to modify your customer exit as shown below
    Data : zyear(4), zmonth(2).
    zmonth = sy-datum+4(2).
    if zmonth = '01'
    zyear = sy-datum(4).
    Zyear = Zyear -1.
    elseif
    zyear = sy-datum(4).
    endif.
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    L_S_RANGE-LOW = zyear.
    APPEND L_S_RANGE TO E_T_RANGE
    Hope this helps you. Thanks.
    Regards,
    Raj

  • How to write conversion routine for key figure?

    Our customer has this requirment:
    we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this:  00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time,  BW system will report a error that say it is not acceptable time.  If we want to define a integer, but we need display it like hhmmss format.  We know we can write conversion routine for char.  but I don't how to write conversion routine for key figure.   Please give me any hint if any other solutions?
    Edited by: SY DONG on Dec 2, 2010 3:36 AM

    If you want to do in Transformation Layer :
    You can use routine ...break up the seconds into minute hour and seconds
    you will have to handle few cases in this:
    let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
    DATA: lv_seconds type i,
               lv_hrs  type  i,
              lv_sec type i,
              lv_min type i.
    lv_hrs = lv_seconds / 3600
    if lv_hrs >= 1.
    lv_min = (lv_hrs - trunc(lv_hrs))*60
    here again handle seconds if min >60.
    else.
    lv_hrs = '00'.
    lv_min = lv_hrs*60
    It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
    Regards,
    RK

  • How to create Presentation variable for columns and to use it in Narrative?

    Hi All,
    Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
    Thanks in Advance
    Thenmozhi

    Hi Satya,
    I just want to create a table that should horizontally display the values like below:
         SUID Tag # :123456               Year Mfg: 2007                                                                                     
         Description: computer corporation FA ID#: 4576
         Model Number: 4569 hESC: #ert
         Serial Number: 78945 Flags: c
    Department: Hematology
    User: thenmozhi
    Database: OLAP
    I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
    Then the first value for example 123456     and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
         SUID Tag # :678901               Year Mfg: 2008                                                                                     
         Description: Computer Manufacturing FA ID#: 4577
         Model Number: 4570 hESC: #eth
         Serial Number: 78946 Flags: G
    Department: Hematology
    User: Rehman
    Database: OLAP
    Thanks
    Thenmozhi

  • How to create a non-cumulative key figure & How to make a info cube as so

    Hi Experts,
    How to create a non-cumulative key figure & How to make an info cube as non-cumulative cube?
    Can any one kindly provide me the steps we need to performe?
    Thanks in Advance,
    Raj

    Hi Azael,
        In the How to Papers, you will find a Guide on how to take a Sanpshot view of the Stocks(How To Handle Inventory Management Scenarios in BW). Basically if you implement the Guide, you will have another cube called ICSNAP1, which will contain stock quantities /values at the end of each month. You will therefore have to take stock at the end of the last month from that cube and add up the relevant receipts and issues to arrive at the current Stock or Stock as on a particular date.
    Hope this helps!
    Regards
    Sriram

  • Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update

    Hello Experts,
    I am getting the below warning while I am installing the business content for Purchasing Cube 0PUR_C04 update Rules
    "Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update rules"
    And the business content activation is terminated.
    Can you please let me know how i could resolve.
    Thanks
    Padma

    Hi Amrit,
    Nice to know Toons suggestions have helped you to resolve your issue.
    There is one bug waiting to explode soon although.
    Check this out after your last insert
    INSERT INTO mth_equipment_shifts_d(equipment_fk_key,availability_date,shift_workday_fk_key,from_date,To_Date,line_num,availability_flag,entity_type,creation_date,last_update_date,creation_system_id,
    last_update_system_id) (
    SELECT b.entity_pk_key entity_pk_key,a.shift_date shift_date,a.shift_workday_pk_key shift_workday_fk_key,Trunc(a.shift_date) from_date,Trunc(a.shift_date) To_Date,1 line_num,'Y',
    b.entity_type entity_type,SYSDATE,SYSDATE,-1,-99999
    --INTO l_site_id,l_entity_pk_key,l_entity_name,l_entity_type,l_production_entity,
    --l_shift_workday_pk_key,l1_shift_date,l_from_date,l_to_date
    FROM mth_workday_shifts_d a ,
    SELECT plant_fk_key site_id, entity_pk_key, entity_name, entity_type, production_entity production_entity
    FROM mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, 'Site', production_site production_entity
    FROM mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, resource_name entity_name, 'Resource', production_resource production_entity
    FROM mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, 'Equipment', production_equipment production_entity
    FROM mth.mth_equipments_d
    )b
    WHERE b.site_id = a.plant_fk_key
    AND a.plant_fk_key=l_plant_fk_key
    AND shift_date>=l_start_date
    AND shift_date<=l_end_date
    AND UPPER(a.shift_type)='BOTH'
    AND a.FROM_DATE IS NULL
    AND a .To_Date IS NULL
    --AND a.line_num=NULL
    AND a.shift_num IS NULL
    There is no COMMIT
    You may want to check that out.
    Cheers!!!
    Bhushan

  • Create variable for key figures

    Hi all,
    I have a query with a couple of key figures, f.e. Net Revenue, Net Sales and Volume.
    Now, I want my end users to have the option to <b>select</b> which <b>key figures</b> they want <b>to see</b>. How to do this?
    All good ideas will be appreciated.
    Thanks in advance,
    Ralph

    Hi,
    You can put your key figures in a structure. A "key Figures" row will automatically appear in your navigation block. If you right clik and select filter value (in BEX) or just click on the filter icon (in 0ANALYZER BW3.5) you will be able to select the key figures to display.
    This should help the user to display and hide the relevant key figures according to their scope of analysis.
    Hope it helps (if so, please assign some points)
    Gili

  • Formula Variables for Key Figure Rolling Averages 3/6 months

    Dear BEx guru! I need dynamic (user selectable range from select options) 3, 6 month averages for Sales, Inventory  Key Figures. I used variable offset alone and I am not getting the results.
    Mar/06 = 120 EACH, Apr/06 = 150 EACH and May/06 = 180 EACH, Jun/06 = 90 EACH, July/06 = 240
    User Calendar Month select options = Mar/06 to May/06
    Mar/06 (Avg) = (120150180)/3 = 150 EACH
    Apr/06 (Avg) = (15018090)/3 = 140 EACH
    May/06 (Avg) = (18090240)/3 = 170 EACH
    PLEASE SEND ME YOUR KIND RESPONSES! I APPRECIATE YOUR HELP!! write to [email protected]

    Hi,
    You may have to use the customer exit.  I am not sure whether there is any sap_exit variable available to provide such a calculation.
    Regards
    Sundar

  • Dynamic Description for Key figure values

    Hi Experts,
    I got a requirement for change the description in  query analyzer.
                  Month    200901                                         200902                            200903
                     qty        value   Past PRICE                qty    value    future price  qty    value    future price
    Material      10         50          5                              7       70           10          7       77           11        
    My requirement is price heading  we need to show current date to previous months header is Past price  and current date to future months we need to Future price.
    Already I tried with two restricted key figures with current montthless than one key figure and currentmonthgreater than one keyfigure. When I using in query both key figure displayed in both sides.
    I want to show past price heading for Less than current month  and future price heading for greater than current month.
    Please let me know any possibilities to show the description dynamically.
    Thanks,
    Chandra

    Hi,
    Here I'm giving sample code this will give the Date and Date-1 and Date-2 based on your Input date ZCDAY.Create 'ZT_DAY' 'ZT_DAY1'  and  'ZT_DAY2'  Text varaibles and use the code.
    In the same way change the code for your requirement.
    TO get the Date (TEXT VAR) based on ZCDAY Input variable***********
        WHEN 'ZT_DAY' .
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
            IF sy-subrc = 0.
              CLEAR: l_s_range.
              l_s_range-low+0(2) = loc_var_range-low+6(2).
              l_s_range-low+2(1) = '.'.
              l_s_range-low+3(2) = loc_var_range-low+4(2).
              l_s_range-low+5(1) ='.'.
              l_s_range-low+6(4) = loc_var_range-low+0(4).
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
            ENDIF.
          ENDLOOP.
    TO get the Date-1(TEXT VAR) based on ZCDAY Input variable***********
        WHEN 'ZT_DAY1' .
        DATA: ZT_DT1 TYPE SY-DATUM,
              ZT_DT2 TYPE SY-DATUM,
              ZT_SDT TYPE SY-DATUM,
              ZT_YR(4) TYPE N,
              ZT_DY(2) TYPE N,
              ZT_MT(2) TYPE N,
              ZE_TT(2) TYPE N.
              ZT_SDT = SY-DATUM.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
            IF sy-subrc = 0.
              CLEAR: l_s_range.
              ZT_DY = loc_var_range-low+6(2).
              ZT_MT = loc_var_range-low+4(2).
              ZT_YR = loc_var_range-low+0(4).
          CONCATENATE ZT_YR ZT_MT ZT_DY INTO ZT_DT1.  "YYYYMMDD
          CALL FUNCTION 'DATE_CREATE_2'
            EXPORTING
             i_datum_ein                   = ZT_DT1
             I_KZ_INCL_AUS                 = '1'
             I_KZ_INCL_EIN                 = '0'
             I_KZ_ULT_AUS                  = 'X'
             I_KZ_ULT_EIN                  = 'X'
             I_STGMETH                     = '0'
             I_SZBMETH                     = '0'
             I_TAGE                        =  0
           IMPORTING
             E_DATUM_AUS                   = ZT_DT2.
              l_s_range-low+0(2) = ZT_DT2+6(2).
              l_s_range-low+2(1) = '.'.
              l_s_range-low+3(2) = ZT_DT2+4(2).
              l_s_range-low+5(1) ='.'.
              l_s_range-low+6(4) = ZT_DT2+0(4).
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
            ENDIF.
          ENDLOOP.
    ***TO get the Date-2 based on ZCDAY Input variable***********
        WHEN 'ZT_DAY2' .
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
            IF sy-subrc = 0.
              CLEAR: l_s_range.
              ZT_DY = loc_var_range-low+6(2).
              ZT_MT = loc_var_range-low+4(2).
              ZT_YR = loc_var_range-low+0(4).
          CONCATENATE ZT_YR ZT_MT ZT_DY INTO ZT_DT1.  "YYYYMMDD
          CALL FUNCTION 'DATE_CREATE_2'
            EXPORTING
             i_datum_ein                   = ZT_DT1
             I_KZ_INCL_AUS                 = '2'
             I_KZ_INCL_EIN                 = '0'
             I_KZ_ULT_AUS                  = 'X'
             I_KZ_ULT_EIN                  = 'X'
             I_STGMETH                     = '0'
             I_SZBMETH                     = '0'
             I_TAGE                        =  0
           IMPORTING
             E_DATUM_AUS                   = ZT_DT2.
              l_s_range-low+0(2) = ZT_DT2+6(2).
              l_s_range-low+2(1) = '.'.
              l_s_range-low+3(2) = ZT_DT2+4(2).
              l_s_range-low+5(1) ='.'.
              l_s_range-low+6(4) = ZT_DT2+0(4).
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
            ENDIF.
          ENDLOOP.
    Thanks
    Reddy

  • How to do a Count for Key Figure?

    Hi,
    I have a KF which gives me results in %. For each of these results, I need to compare if the result value is less than 80% or greater than 120%. If it lies b/w 80% -120% then I need to display a count '1' & '0' otherwise.
    Could you suggest how do I go about doing this?
    Thanks in advance!

    Create a CKF on the KF and use boolean to get 1 & 0.
    (KF<80 OR KF>100)0 +(KF >=80 AND KF<=100)1
    This should do it
    Hope it helps.
    Bhargava
    Message was edited by:
            Kumar Bhargava
    Message was edited by:
            Kumar Bhargava

  • How to create an XSD for file adaptor which will ignore the records that are not required.

    Hi All,
       I have a requirement, the Fixed Length file contains
    30013742387462382938742      82347023984623087   
    30037348237  983743  9837423098  98347 
    10108472398   98034702398409238 9838472398   09823409238
    300163527 387462398746 38746293874693746324763
    101037642873643 37438724683746837648 873648736
    200138743986493874398
    2002738469837246
    10003784629837469283746937463987469387
    I need to select only the records that startswith 3001 and 3003 which are of different types and ignore the remaining records like 1010,2001,2002,1000.
    Can any one help me on this.

    You can make use of "conditionValue" or "startsWith" attributes while designing you native XSD.
    Check this example - Native Format Builder Wizard - 11g Release 1 (11.1.1.6.3) for better understanding.

  • How to create a documentation for Badi?

    Hi All,
    how to create a documentation for Badi?
    This step is requested in the OSS note, but not explained how to perform it...
    Thanks and regards,
    Alex.

    Hi All,
    solved. created in SE18
    I noticed, that it is also possible to create such documentation in SE61 *** well,
    Document Class  Implementation Guide chapter (SIMG)
    Chapter   SIMG
    Also the translation of documentation could be done in such way:
    SE63--->Translation--->ABAP OBjects--->Transport object:
    R3TR DSYS SIMGbadi_name_goes_here
    Regards,
    Alex

  • How To Create Style Guides for Web Pages

    I need to create style guides for websites. I will be provided with the assets (images and required measurements). It will be my job to create style guides using In Design.
    I have never used In Design, but I am a member of Lynda and Total Training online. Neither seem to address simple style guides for websites. Both seem to address designing from scratch for print and newsletter creation.
    Any links to tutorials? This seems straight-forward, but because I have never done it, I would appreciate direction.
    Thanks!

    I received a sample of what I'll be working on. Attached is one screenshot (blurred areas to conceal confidential info).
    Overall, I will be given web page images (as seen below and as an original sized attachment) like screenshots.
    I will be given measurements.
    I will create a web style guide with text and the placement of images, and pinpoint where the objects are placed on the pages in pixels.  e.g. Hero section - 80 pixels, padding - 40 pixels, etc. You can see this below in the (tiny, or see the larger attachment) text on the sides of the web page image.
    The original designer also added some type of padding. You can see it below in blue at the bottom of the page. Is this the norm? How is that done?
    Big Question: There are no pixels in InDesign. Are points equivalent, or should I set this (pixel notations) part up in Photoshop?
    I hope this provides more details for you to help me, and I know this is a lot to ask. Thanks in advance!

  • How to create selection variable on a Key Figure

    Dear Experts,
    I have a key figure 'No of Days' in the BEx Query. I need a selection variable which when the users provide the input, should give me the report output where the rows shows only those whose No of days are less or equal to the input value.
    I am able to create such a selection out of a Characteristics field but I am unable to create one from a key figure.
    Kindly note that we are not using the BW Portal. We are running this report in the webi from a Universe created from the BE Query.I know that it is possible to ceate such a scenario in Webi, but we want the selection coming from the BEx Query for better report performance.
    Thanks,
    Sai

    Hi Experts,
    Thanks for the suggestions. I cannot use the 'Condition' since this BEx query is being called from a Webi report. MDX will not recogonize the condition.
    I was able to create a Variable and use it in the calculated key figurare. The problem is , I am getting 1 where the condition is met and 0 when the condition is not met. But I want to see only the results where the condition is met. How to to avoid the rows where the result is not met.
    Am I getting this because there are actually 3 other key figures along in the query in addition to  the key figuare ' No of days'.
    Should I add some condition to the other key figuares also.
    Kindly confirm and help.
    Thanks,
    Sai

  • How to assign a Customer exit variable to Key figure

    Hi,
    I have created a Customer Exit variable to findout no. of days in the month. 
    But I dont know how to assign that variable to a Keyfigure value.  Can you please let me know how to assign it.
    Regards
    Sankar

    Hi Sankar,
    From what I could understand, you want to display the output of that key figure for some no. of days of a month (calculated in your customer exit variable)...right ???
    If that is the case then you can create a structure in columns. Create a new selection...include your key figure and that customer exit variable in it.
    That shall serve the purpose.
    Regards
    Shalabh Jain
    Edited by: Shalabh Jain on Dec 15, 2008 1:46 PM

Maybe you are looking for

  • SOME Windows machines can't browse for Mac printers

    I have a Mac mini with an HP 5940 attached to it. I also have three Windows machines hanging around: my laptop, my wife's laptop, and my wife's desktop. My laptop and my wife's desktop are running XP Pro SP2. My wife's laptop is running XP Media Cent

  • Flash file missing from page/layout difficulties

    Aloha, I'm working on posting a new site and have a few problems that are holding me back! First, when tested online via DW, the flash movie I have in center of page plays (and is placed) perfectly. After uploading the page http://reefcheckhawaii.org

  • Iphoto combined pictures into a single event

    Iphoto took it upon itself to combine all my pictures before a certain date into one event. After that date and before another date, the thumbnails are missing. After that second date, everything is fine. I have trashed the plist, restored from a bac

  • CS 6 Generic File Info - not keeping checkboxes

    I have a Generic Panel, that has been working fine since CS3, but in CS6 the checkbox values are not retained when a file is reopened.  Well that's not strictly true and the value "True" seems to be stored, but it no longer checks the box. The code I

  • Problems about How to Merge the Masthead and the Tool Area?

    I have been struggling for many weeks  about how to add  the ToolArea into the Masthead. Can someone please help me? I followed with the tutorial :[How to Merge the Masthead and the Tool Area|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/libr