Variable input in Webi Report

Hello Experts,
I have a requirement to create a Webi report which has 3 key figure columns.
While executing report It should ask for input variable fiscal year/period.
Now 1st key figure colum should show Amount for the fiscal year/period I entered as an input variable.
2nd column should show Amount for previous YTD for the fiscal year I entered.
For Ex. if I enter 04.2009 it should show amount for 01.2009 - 04.2009 and if I enter 04.2008 then it should show amount for 01.2008-04.2008.(based on the variable input I provide)
3rd column should provide the Amount <= ficsal period I enter as an input.
Can anyone guide how would I achieve this?
Regards,
Nirav Shah

Hi Nirav,
what is the granularity of the time dimension of your data in your report? Generally you make sure that you fetch all required in your report and then use formulas (applying the if operator on the time field of your data and the value returned from your prompt) to calculate the desired key figures.
Regards,
Stratos

Similar Messages

  • Importing a text file with variable values into web reporting

    Hello,
    I'm looking for a possibility to import values from a text file into a variable selection in Web reporting.
    With BEx reporting in Excel this is possible, by clicking on the multiple selection button in the variable popup screen, and subsequently selecting the "Import from Text file" button.
    However, this function seems not to be available for web-reporting...
    It would be great if someone could help me out with this!
    Thanks & regards,
    Arvid

    Hi,
    we could resolve this issue, so i thought it may also be helpful for others:
    In our example we used a file with numbers for materials. This file is stored somewhere in a directory, to which SAP BI must have authorization to read.
    The file looks something like this:
    4711
    4712
    4713
    4714
    The file is named "import.txt" and lays in directory "/usr/sap/EC6/files/bi/"
    *&  Include           ZXRSRU01
    * global variables
    Data: intern_range LIKE LINE OF i_t_var_range,
          l_s_range    TYPE rsr_s_rangesid,
          line(100)    TYPE c,
          p_file(128)  TYPE c,
          length_rangelow  type i,
          tmp_rangelow     like l_s_range-low.
    * internal tables for selection-transfer from transaction
    * Data: BEGIN OF it_file occurs 0,
    *        it_p_file(128) TYPE c,
    *      END of it_file.
    IF i_step = 1.
    ** variables can be changed or set before pop-up appears
      CASE i_vnam.
    * take material from external file to selection-list
         WHEN 'ZSD_UPMA'.
    ** call of transaction, with which the path can be set
    *CALL TRANSACTION 'ZBW_VARIABLE' using it_file
    *MODE 'A'      " call should be visible, so that variable can be set
    *UPDATE 'S'.   " first transaction, then processing
    ** Der Pfad, der in dem Selektionsbild eingegeben wird, wird an die Variable übergeben
    ** Der Set-Parameter ist in Report ZSD_SELECT_VARIABLE
    *  get parameter id 'VAR' field p_file.
    p_file = '/usr/sap/EC6/files/bi/import.txt'.
    * further handling of variable in BI
          OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
          IF sy-subrc = 0.
            READ DATASET p_file INTO line.
            WHILE sy-subrc = 0.
              IF line(2) <> '//'.
                l_s_range-sign = 'I'.
                l_s_range-opt  = 'EQ'.
                l_s_range-low  = line.
    * fill with leading Zeros
    * in variable tmp_rangelow the value from l_s_range-low is taken
        tmp_rangelow    = l_s_range-low.
    * read the length
        length_rangelow = strlen( tmp_rangelow ).
    * in our case: material has 18 characters
        while length_rangelow lt 18.
          CONCATENATE '0' tmp_rangelow INTO tmp_rangelow.
          length_rangelow = length_rangelow + 1.
        endwhile.
    * initialize l_s_range-low
        clear l_s_range-low.
    * set with filled values
        l_s_range-low = tmp_rangelow.
    * transfer to structure
                APPEND l_s_range TO e_t_range.
              ENDIF.
              READ DATASET p_file INTO line.
            ENDWHILE.
          ENDIF.
          CLOSE DATASET p_file.
        ENDCASE.
    ELSEIF i_step = 2.
    ** in step 2 all variable values from pop-up input can be processed or
    ** User Exit variables can be derived
    * UserExit Ende.
    ENDIF.
    Hope i could help!
    Best regards,
    Tobias

  • Display variable values in Web report

    Hi Bw Mates,,,
    I am trying to display the variable values in Web Report.
    I put one text Item in Template and checked the Variable Display and entered the variable name in List.
    still I cannot see the variable values in the report.
    Thanks for your help.
    RSB

    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="GENERATE_CAPTION" value="BORDER"/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
             <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
             <param name="ELEMENT_NAME_1" value="Z_CP_018"/>
             ITEM:            TEXTELEMENTS_1
    </object>
    as the other poster mentioned the variable name has to be in upper case.
    if only_values = 'X' you will just get the value other wise
    you will get something like below.
    variable description = variable value
    Regards
    Raja
    Reward the helpful answers and close the thread once its answered.
    sorry for the delay in answering, it was weekend for us

  • Input Variable in BO Webi Report

    Hi,
    We have BW-Query and have defined BO Webi-Report using Universe on this query.
    When we execute BW-Query direct in BW, we can see all plants from
    master data table in the input Variable (Input help/F4).
    When we execute BO-Report in BO, it shows only plants in the input variable, for which there are transaction data
    in InfoCube. I expect here to see all plants from the master data table (like BW Query).
    Is it normal? Or is there some other issue?
    Thanks

    Hi,
    as the webi report will contain only transactional data anyway (webi MDX statement will ask for non empty records), this is the normal behavior what you are experiencing.
    What settings do you have on the infoObject, on which you have the variable set?:
    -Query Def Filter Value Selection
    -Query Execution Filter Val. Selection
    There you should be able to choose between "Only Values in InfoProvider" and "master data".
    Best regards

  • How to transport the BW query's variable to BO  webi report

    Hi all
    I'd like to know how to transport the BW query's variable to BO 's webi . today ,I created a sap customer varible in my bw system to get the max calmonth in the active table.The varible in the BW side run's well ,but I use this query to build a new univers ,and created a new webi report base on this univers ,but the question is the webi report can't get the varible's value I wann to know how to transport the bw varible value to BO webi report
    Thanks and regards,
    Peter .zhu

    I have changed my variaable in my bw query ,I found if you use SAP default variable it is ok in BO side . So I get a guidline by SAP default variable ,I changed my customer variable in variables edite ,don't use 'ready for input' .And then the variable can be useful in BO side .
    Edited by: peter zhu on Jun 16, 2008 11:43 AM

  • How to include text lable in Variable selection screen (Web Reporting)

    Hi Experts,
    I have created one query and in Web Report-->variable selection screen I have one Date field for that field I have to display a label stating that user to input date in the format YYYY.MM(like a text label).Actually I have created 10 to 12 report . I need u r suggestion such that a single change will reflect my requirement in all the reports and I have created all the reports for same multiprovider.
    Thanks in Advance
    Yours,
    Bala

    Bala,
    Prompts can originate from one of two places:  either via Designer and using the @prompt functionality or while creating the report building a prompt in the Query Filters panel.  If the prompt was built using the @prompt method, and all 10-12 reports are using that particular @prompt, then one change via Designer will cause all reports to reflect the new verbiage.  If you built the 10-12 reports using the prompt in the second scenario, then each individual report needs to be opened, modified and then saved.  If you must use the latter method, then you can open the first report, modify the prompt verbiage, then highlight the new verbiage with your mouse and hit Control-C (which copies that text to the Clipboard of your Windows system).  Then go to the second report, locate the verbiage that needs to be changed, delete it, then Control-V (which pastes), and voila, some keyboarding strokes are saved....
    Thanks,
    John

  • Multiple BPS variables in Bex web report

    Hi Guys,
    I am trying to have a Bex report use the BPS variables in the web interface. I have managed to do so with 1 variable, but we have a number of variables.
    I have created the code below to get the result. however this doesn't seem to work.
    Can anyone help me with this issue.
    Gert van de Vreede
    <iframe
    id ="Z_WA_BPS_GRSALPR001"
    src="/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=Z_WA_BPS_GRSALPR001"
    style="width:1200;height:300">>
    </iframe>
    <script language="JavaScript" type="text/javascript">
    function varValueConvert(dispValue){
    /* Expected formatting of variable selector: Text(Key) or Key
    If there are more than one (...) expression the first is taken.
    var keySection = dispValue.match(/\(.*?\)/);
    if (keySection){
    var keyValue = keySection[0].replace(/\(|\)/g,"");
    alert(dispValue + ' : ' + keySection + " : " +keyValue);
    return keyValue;
    } else {
    alert(dispValue);
    return dispValue;
    var frame = document.getElementById( 'Z_WA_BPS_GRSALPR001' );
    var url = '/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=';
    var queryVar1 = '&VAR_NAME_1=0SALESORG&VAR_VALUE_EXT_1=';
    var queryVar2 = '&VAR_NAME_2=ZZHOUSE&VAR_VALUE_EXT_2=';
    var queryVar3 = '&VAR_NAME_3=ZZBRAND&VAR_VALUE_EXT_3=';
    var queryVar4 = '&VAR_NAME_4=ZZLINE&VAR_VALUE_EXT_4=';
    var queryVar5 = '&VAR_NAME_5=ZCOREC&VAR_VALUE_EXT_5=';
    var queryVar6 = '&VAR_NAME_6=ZSUBCAT&VAR_VALUE_EXT_6=';
    var queryVar7 = '&VAR_NAME_7=ZZMARCAT&VAR_VALUE_EXT_7=';
    var queryVar8 = '&VAR_NAME_8=0VERSION&VAR_VALUE_EXT_8=';
    var appl = 'Z_WA_BPS_GRSALPR001';
    var bpsVarvl1 = '<%=descr(salesorg_var/value)%>';
    var bpsVarvl2 = '<%=descr(House_var/value)%>';
    var bpsVarvl3 = '<%=descr(Brand_var/value)%>';
    var bpsVarvl4 = '<%=descr(Line_var/value)%>';
    var bpsVarvl5 = '<%=descr(Core_cat_var/value)%>';
    var bpsVarvl6 = '<%=descr(Sub_cat_var/value)%>';
    var bpsVarvl7 = '<%=descr(marcat_var/value)%>';
    var bpsVarvl8 = '<%=descr(VarvlSel7/value)%>';
    bpsVarvl1 = varValueConvert(bpsVarvl1);
    bpsVarvl2 = varValueConvert(bpsVarvl2);
    bpsVarvl3 = varValueConvert(bpsVarvl3);
    bpsVarvl4 = varValueConvert(bpsVarvl4);
    bpsVarvl5 = varValueConvert(bpsVarvl5);
    bpsVarvl6 = varValueConvert(bpsVarvl6);
    bpsVarvl7 = varValueConvert(bpsVarvl7);
    bpsVarvl8 = varValueConvert(bpsVarvl8);
    // create URL
    url = url + appl + 0SALESORG + bpsVarvl1 + ZZHOUSE + bpsVarvl2 + ZZBRAND + bpsVarvl3 + ZZLINE + bpsVarvl4 + ZCOREC + bpsVarvl5 + ZSUBCAT + bpsVarvl6 + ZZMARCAT + bpsVarvl7 + 0VERSION + bpsVarvl8;
    // remove possible white spaces
    url = url.replace(/ /,"");
    // alert('Generated URL: ' + url);
    // set source attribute of iframe to new URL
    frame.src = url;
    </script>

    Hi Gert,
    the following line is wrong:
    url = url + appl + 0SALESORG + bpsVarvl1 + ZZHOUSE +
    bpsVarvl2 + ZZBRAND + bpsVarvl3 + ZZLINE +
    bpsVarvl4 + ZCOREC + bpsVarvl5 + ZSUBCAT +
    bpsVarvl6 + ZZMARCAT + bpsVarvl7 + 0VERSION +
    bpsVarvl8;
    Try this:
    url = url + appl + '0SALESORG' + bpsVarvl1 + 'ZZHOUSE' +
    bpsVarvl2 + 'ZZBRAND' + bpsVarvl3 + 'ZZLINE' +
    bpsVarvl4 + 'ZCOREC' + bpsVarvl5 + 'ZSUBCAT' +
    bpsVarvl6 + 'ZZMARCAT' + bpsVarvl7 + '0VERSION' + bpsVarvl8;
    Regards
    Marc
    SAP NetWeaver RIG

  • Dynamic field selection by variable input in bex report

    Hi Frineds,
              I have created  variable on characteristic  ( 0CURTYPE )  which mainly have two values 'A' and ' B' .Based on my variable input in Bex I have to dynamical select key figuers  Example .
    0CURTYPE    KeyfigA  KeyFigB  
    A                    123 Rs   144 $
    B                     124 Rs   145 $
            In above example is user select A I have to display KeyfigA   if I select B then i should display Keyfig B in Bex report .
    I know that by using user exit in report we can do but I would like to try with out Exit .
    Thanks ,
    Kumar.

    Your formula variable allowed to be of type either number or amount or date or quantity which are all numeric(currency type/type tab) .But your reference characteristics is a letter.So there is an inconsistency here and you can not make equal your formula variable and 0currtype's variable.
    Have a look at Akshata's post in this thread :How to create formula variables in sap bi?
    Therefore this model does not work and I can not see any other way apart from a very simple user exit which says if 0currype=A, then formula variable=0 else if 0currtype=B then formula variable=1.After that you can use your formula variable in your formula since the letters are now converted to numbers.
    By the way it mustn't ask two things in the selection screen.Since your formula variable takes the values of 0currtype's variable automatically.Did you create the formula variable with replacement path(general tab) referencing to 0currtype?Just create a formula, enter this formula,right click create formula variable,go to general tab then replacement path then reference to 0currtype.But as I told, you nevertheless can not achieve it, just explaining it.
    Regards,
    Sunny

  • Variable Input display in report

    Hi Experts,
    I've a requirement where I need to display the inputs given in the Variable input screen in the report.
    Please help me hoe can I achieve this.
    Thanks in advance.

    Hi,
    Issue dicussed already.
    Very nice how tos from Surendra Kumar Reddy Koduru
    Derive texts from input varaibles
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f119d9-922d-2c10-88af-8c016638bd90?QuickLink=index&overridelayout=true&43581033152850
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13221
    Hope this helps
    Joe

  • How to hide some variables on variables screen in web report (in WAD)

    I need to hide some optional variables (not all of them) on variables screen in web template.
    Hiding the whole selection screen is not an option, since users have to populate other variables and some variables are mandatory.
    Web template is based on a query that can be run in BEx Analyzer by superusers - and there they need all variables. I want to use the same query both in BEx Analyzer for superusers and on the Portal for regular users. For portal version though I need to hide some of the variables on the selection screen. Is it possible at all?
    I would like to avoid creating two separate queries - one for Analyzer and one for Portal.

    if the variables are optional and mandatory both avaialble
    then there is no chance that u can hide them
    the only option is to create a save as QUERY and remove those variable.
    it is not possible to just hide the variable screen...
    if u hv used they will be displayed....
    if u dont want it dont use it...
    and if really using another query is not advisable as u said
    the only thing i can say is that... try to interact with ur security person
    ask him u need to create several authorization objects for several variables
    if that is possible
    let him create those
    assign those specific authorization object to specific user id
    use it for specific variables u need
    tat way super users with specaial authorization can acess the same query and can see specific variables
    regular users withouts authorization of variables can see rest of variables.

  • One column result to another column input in webi report

    Dear Experts
    I have a requirement to show remaining quantity of stock on each row as available quantity. Table is maintained as given below and stock remain same for a whole weak as they get weekly order. User has requested us to bring the necessary difference on webi report.
    Can anyone help on how to attain this request?
    Table Available (example):
    Product           Date          Total Qty     Sold Qty
    X                 1/5/2015          60               10
    X                 2/5/2015          60               10
    X                 3/5/2015          60               10
    X                 4/5/2015          60               10
    X                 5/5/2015          60               10
    X                 6/5/2015          60               10
    X                 7/5/2015          60               0
    Required: Cross-tab result
    Product Breakup
            X                     Total     1/5/2015    2/5/2015    3/5/2015     4/5/2015     5/5/2015     65/2015    7/5/2015
    Availablel Stk           60          60                50               40               30          20               10               0
    Sold Today                            10                10               10               10          10               10               0
    Regards
    Kishore Balchandran

    Hi Tanveer
    Fantastic. Works perfectly. Thank you so much .
    Regards
    Kishore Balachandran

  • Skipping of the variable screen in Web report

    Hi,
    I have created my queries in Bex. When I run the reports from my favorites in the SAP GUI, the reports are displayed directly without bringing up the variable screen in the web browser.
    Currently on BI7. Any ideas how to fix the issue.
    Thanks
    Demetrius

    Queries in Web are run using the default web template (which is generally 0analysis_pattern) - you can check the default WT for your system in tcode SPRO. In the properties of the web template, you have an option 'Display Variable Screen' - you can turn it on. As such, I think your query has no 'mandatory' variables, otherwise the var entry screen should have appeared.
    You might want to search for some threads on 0analysis_pattern to get some more info about it.

  • Variable screen in Web report

    Dear all,
    I have a small BEx question. In my report, I restrict by using variable ZCREATOR which contains business partner number. Here’s the problem, in my variable screen, even though I set the display TEXT or  LONG TEXT it only shows me description of the short text. E.g if fullname is JOHN DOW, it only shows DOW
    But once the report is generated out, LONG TEXT will of cause show JOHN DOW whereas if SHORT TEXT will just show DOW.
    Answer I need would be, how can I set in my variable screen to show JOHN DOW instead of DOW?

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi<br>
    Go to the InfoObject definition and check details in the tab Business Explorer. General Settings --> Display and BEx Description, are they both selected as Long Texts?
    <br><br>
    Hope it helps.<br><br>
    Cheers Abhijit<br>
    </FONT><FONT FACE = "Verdana", Font Color = "Red">
    Removed
    </FONT>

  • Webi report - Excel Source - breaks if excel is edited

    I have a Webi Report that uses Excel has its data source. I have many variables defined in the webi report. Now, I had to add a new column in the source excel. When I do that, all the variables in the webi report break. Is there a way around this? I want to add columns to excel and not break my variables. Using BO 4.0 SP5.

    The references in variables are changing.
    Suppose I have Field1, Field3 in excel (Field Selection - All fields). I create a variable Field1 + Field3 and show it on report. If I add a new column Field2 in the excel in between Field1 and Field3,  and refresh and point/load that excel, the variable changes by itself to Field1+Field2. It seems like I need to rebuild the webi report again. This is just an example. All varaiable references seem to break. Have you not had such problems?

  • Formula error in Webi Report

    Hi,
    I created a variable in my webi report using below formula. It is validated but when I use this variable in my report giving #ERROR. Not dispalying the value.
    =Count([Loan Number]) Where ([Interest Amt]+[Principal Amt] > 0)
    Loan Number datatype is varchar2 and other two are number fields.
    We are in BOXI R2 version.
    Please suggest where I am going wrong.
    Thanks,
    Ven Men

    Ven Men,
    The preferred function in WebI is "if", so here is a stab at re-addressing your test on principle amount + loan amount:
    =count(if( [Interest Amt] + [Principal Amt] > 0;[Loan Number]);0)
    thanks,
    John

Maybe you are looking for

  • I want to remove Trailing zeros from a charecter value

    Hello ,           i want to remove trailing zeros for a prticular value.Following is my code : DATA: V_FLOAT TYPE F VALUE '4.8240000000000000E+03',            V_CHAR(25) ,            P10_4(10) TYPE P DECIMALS 4. CALL FUNCTION 'CEVA_CONVERT_FLOAT_TO_C

  • My New iMac and hotmail

    Hey everyone!!! I got my New iMac .. I am really glad of it so far. One thing i realized that isnt really making me happy though. When i access my email messages from msn messenger it never signs in. It opens hotmail but everytime i sign in it just g

  • J1IF01 creation error

    Dear All SAP Gurus I am creating subcontracting challon J1IF01 .Following error is coming, Please specify the number of line items for the challans. Message no. 8I802 have maintained the detais as you suggested in the customisation Excise Group 91 Ex

  • IMAP & Exchange accounts not synching read & deleted

    It seems like this has just recently started happening to me and it may be more than my iPhone that's responsible. I have an IMAP account (personal) and an Exchange account (work) setup on my iPhone, on my iMac (Apple Mail) at home and my Windows 7 (

  • Where is the folder?

    I have suddenly lost the actual folder where my pictures are. All I see under "Pictures" in Finder is an icon for Photo Library but when I open it I just start the program and not the actual folder. Can anyone help me restore the initial setting?