Quarter variable  in Bex reports

The report need to run for the selected quarter. The time char I am using is 0FISCPER3
The Q1 will be Period 1, 2,3 totals.
Q2 will be Period 1 to 6
Q3 will be period 1 to 9
Q4 will be period 1 to 12.
The reqiuired quarter will be selected at the time of execution. that is Q1 or Q2 etc.
How to enable the quarters in the reports.

hi
with hierarchy that solution seems to be the correct one...
so that u can create hierarchy node variables and u can define hierarchies like quarter1,2,3,4
but if ur users can compromise i have alternate solution...
lets say u want to display the net amount keyfigure spent for chars... product 1 and 2
and u want the net amount spent for different quarters
what ur user has to do is to enter the quarter values each time.....
what i mean is if they can enter the period range as
1/2006-6/2006....
like this.. if they can... then it will be easy for u ....
wat u can do is
in columns lets say u have key figure NET AMOUNT
hit net amount right click and hit edit
in new dialog box bring in 0fiscper3 from time to right section
then u can restrict the 0fiscper3 and say restrict
in restrict dialog box.... u can restrict it with value range period1 to period 3
hit okey
now at the end change the description from net amount to QUARTER 1
secondly copy this quarter1  and paste it 3 times.
now edit each quarter1 other than 1st
change description to quarter 2
hit edit and then change the restriction from period 1- period 3 to
period 1 -- period 6
in quarter 3 change it to period 9
in quarter 4 change it to period 12
now u can use sap exit as always u r going to use period1 and its gonna remain same.....
change query properties and apply ZERO SUPRESSION TO ROWS AND COLUMNS......
this way ur user has to enter only the ending period and then it will display different quarters....

Similar Messages

  • Not able to access the Date variable in Bex report after SP upgrade

    Hell Experts,
    We have upgraded the support pack to 27 and after that we are not able to access date variable in Bex report.
    We are not able to restrict the Posting date on variable, we are getting the message "Operation failed! No detailed error information from backend available".
    Thanks
    Chetan

    Hi,
    carry out basic checks like RSRV for the field,query ,Infoprovider on which this query is based..
    Check whether there is any in consistent value in the posting date..
    check whether objects are active correctly..
    else serach for SAP note or raise OSS to SAP..
    Thanks and regards
    Kiran

  • Creation of Variables in BEx reporting

    Hi,
    I want to know the Creation process or steps for creation of variables in BEx Reporting.
    Please let me know.
    Thanks & Best Regards,
    Venkata.

    Hi,
    there are various kind of variables- refer this -
    http://help.sap.com/saphelp_bw33/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/frameset.htm
    if you want to create variable on char -
    go to BEx Query designer, create your query , go to left panel & that characteristics--open that -- see variable - right click & create.
    it will take you through all the steps.
    hope it helps
    regards
    Vikash

  • Rectrict list of possible values for variable in Bex

    Hello folks!
    I need to give a user possibility to choose only few value for variable in Bex report. Number of entries in master data is huge. I need to show only 7 possible values in the window with variables.

    Amy,
    You have a tricky requirement but I can only think of one thing but it would require user training. Try the following.
    You can setup a new variable with default values and define it as type multiple single values.
    The user could in the variable screen would then need to take out the ones that are not needed.
    Hope this helps.
    -Sid

  • 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

  • Issue with Variable Personalisation in Bex Report

    Hi Gurus,
    I'm facing a typical problem with Variable presonalisation in the Report.
    I've executed a BEX Report and filtered data on some characteristics and used SAVE AS Button on the Portal to save the resultset. When I'm trying to use the variants, again say after  2 or 3 days i couldn't find updated data for particular variants upon using the same variants rather its refelecting the old data. Further more when I execute the report and try filtering on the same criteria altogether, I'm able to see updated result set.
    Is there any setting to be enabled when we personalise variants or variants are dependent on the data or the date on which they are created. Not sure why the reports are behaving this way. Or Do I need to create variants time and again.
    Any pointers would be of great help.
    Regard,
    Yaseen

    Hello,
    In the BEx report, when you get the variable selection screen there input your selection and at the bottom you have the option of saving them as a variant.
    Now in future when you run the report simply use this variant and execute the report. It should work fine.
    Also remember date selection can be tricky. If you input todays date in the variant, it wil consider the same date in further references. So do a check on that too.
    Regards,
    Shashank

  • How to create dummy variable in Webi report in BO 4.0 with Bex query.

    Dear All,
    We have a requirement where we need to overlap multiple tables and based on user selection any one of the table should display in report.
    We are on BO 4.0 and source is BW Bex report, we dont have any Universe.
    To achieve this we plan to have dummy variable with some fix value and use it as report filter & based on selected value in filter the related table should be display.
    We have not found any way to have dummy variable directly in Webi.
    Is their any way we can create dummy variable directly in Webi?
    Thanks v much in advance,
    Regards,

    lets say u want to display following picture:
    sept$-----august$
    City
    -chicago123$--
    44$
    so in Query designer go to Default values section.
    Bring in Calendar month
    right click calendar month
    and hit Restrict
    now select variable
    use standard sap variable Current Month.
    hit okey
    now select Variable and hit Red button
    Result u restricted current month.
    in columns bring in keyfigure $
    right click and hit edit
    bring in time field calendar month
    right click and hit restrict
    bring in Current month
    right click and select - SET OFFSET FOR VARIABLE
    select -1
    hit okey
    repeat the above process
    and this time select offset = -2
    this way u restricted current month
    but displayed last 2 months for keyfigure values.

  • 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

  • Selection Variables display in report output using BEX ANALYSER 7.0

    HI All,
    I am using BEX Analyzer 7.0 , I want to display the Variables  selected in the selection screen, to be printed in the
    Report Output.when i execute the same query in 3.5 , i am getting all hard coded and selected variable values in report  output.
    But in 7.0 analyzer  i am not getting any filter values.can i know the reason for this ? do i need to do any settings ? how to display all filter values in report output.
    Thanks and Regards,
    Joseph

    Hi Joseph,
    I feel there might be personalization of variables.
    After executing the query click on "Change Variable Values" which is on Bex Tool Bar and there click on personaliztion icon and check if any personalizations are there.
    Regards
    Ravi

  • Variables display in report output in BEX Analyser 7.0

    HI All,
    I am using BEX Analyzer 7.0 , I want to display the Variables  selected in the selection screen, to be printed in the
    Report Output.when i execute the same query in 3.5 , i am getting all hard coded and selected variable values in report  output.
    But in 7.0 analyzer  i am not getting any filter values.can i know the reason for this ? do i need to do any settings ? how to display all filter values in report output.
    Thanks and Regards,
    Joseph

    Hello Joseph,
    Please check where did you kept the restriction in the filter is it in the defalut values or it is in the characteristic restrictions. If the values are in the characteristic restricion it won't display . The values need to restricted in the default option.
    Thanks,
    Geeta

  • Search instring value of Variable in customer exit of bex report

    Hello experts-
    I have a situation where I need to search the records based on value  of a variable input in selection screen of bex report and according to that i need to show the results in report.
    Ex- if we have a material characteristics on selection screen,or material number has 10 digits(eg 1234567809). so the user will only type 2-3 digit(i.e 12) on selection screen, In this case I want only those records to be displyed, for which material has these 2 digits in it .
    Eg would be:
    1234567809,
    3451267809,
    9807654312.
    Could you please suggest ABAP logic for the above. Properties of variable and how many variable we have to create.
    Regards,
    Yatendra

    Hello Vineet,
    we have tried putting  ' * ' i n place of '=' in drop down screen.
    we have also tried customer exit code, please check below.
       WHEN 'ZSEARCH'.
         data: lv_string type string.
         data: wa_test type ZTEST_TOOLING.
    if I_STEP = 2.
         LOOP AT i_t_var_range INTO loc_var_range
                   WHERE vnam = 'ZTSEARCH'.
              CONCATENATE '' loc_var_range-low '' INTO L_S_RANGE-LOW.
              L_S_RANGE-SIGN = 'I'.
              L_S_RANGE-OPT = 'CP'.
              APPEND L_S_RANGE TO E_T_RANGE.
         ENDLOOP.
      endif.
    In  this code we have created two variables 1st 'ZSEARCH' which is type of 'customer exit' , and the second one 'ZTSEARCH' type of "user entry/ default value" .
    As we need the value provided by user in  ZTSEARCH (user entry), we loop at  i_t_var_range where vnam = 'ZTSEARCH'.
    But i_t_var_range doesn't contain  ZTSEARCH variable.
    Can you please suggest in customer exit code as well as in selection option.
    Thanks
    yatendra

  • BeX: Select option for the variable of the report in Portals

    Hi Gurus,
    In the variable selection screen of the BW reports, I have 'Employee Number' field tab. I have some 3000-4000 employee numbers in a file daily. Generally, I use the option "upload from a file/clipboard" in the multiple selection dialog box that you get after clicking the "more" button.
    But the users report only in the Portals, where this option is not available. They do not want to use BeX reporting rather.
    what should be done to achieve the same functionality in Portals ?
    Any solutions or hints please....?
    Points will be awarded.....
    Regards,
    Srinivas

    Hi Suresh,
    Those values may not be assigned (OM,OS) to your profile , aas  that vriable is Authorisation Process type , i belive u have to be assigned to them,
    I hope it helps
    Regards,
    BRB

  • BEx Variable in Webi Report questions

    Hi Gurus,
    Here is my issue.
    I created a BEx Query 0SD_C03 Cube with following fields
    Two Columns
    One Key Figure:                   Subtotal1
    One Restricted Key Figure:  Subtotal with restriction " Sales Organization 1000"
    Two Rows                             Plant, Sales Organization
    One Variable with Sales Organization.
    When I ran this query in BEx Analyzer I can see all Sales Organization values in prompt list, How ever when I created a Universe and ran a webi query I can see 1000 in the Sales Organization list.
    Is this because I have restricted Key Figure with Sales Organization 1000 in the query?
    I removed my Restricted Key Figure from my query and tried again this time I see some 10 Sales Oraganizations but I didn't see all available Sales Organizations. Does BO Universe LOVs restricte the list?
    Thanks
    Sasi

    Identical entry so this is being closed:
    duplicate:
    BEx Variable in Webi Report questions
    Ingo

  • BEx Report Performance with selection-screen input

    Hello Gurus,
    My Bex report is working fine when the report had run with out PLANT filter in the selection-screen but when report had run with plant in the selection-screen , report running for forever.
    Please let me know what I need to do improve the performance.
    Saleem.

    Hi Saleem, Just a few thoughts;
    1. Check the M-table in RSD1 for 0PLANT. In Table View edit any blank or null values. Run the same restrictions you apply in the query at Info provider level > Display Data. If there's any lapse; you can judge where exactly the problem lies.
    2. If you are using Infocube & that your master is >20% fact; you can declare the Info object as 'Line Item Dimension'.
    3. Create Variants. Esp. if you are running the query for same set of data. Try Variable Preselection: You can restrict both the values + varaiables in the filter level. When you execute the values will be visibly pre-selected in selection screen.
    4. As discussed in previous messages, running a SQL trace using RSRT may prove useful.

  • Strange performance issue in bex report

    Hello Experts,
    I have a performance issue on my bex report.
    I'm running the report with below selection criteria and getting 'too much data' error.
    Country :  equals EMEA
    Category: not equlas 13
    Date : 02/2010 to 12/2010.
    But when I ran the report for smaller date ranges the number of records are not exceeding 13000.
    02.2010 - 06.2010 - 6,555 rows
    07.2010 - 09.2010 - 3,671 rows
    10.2010 - 12.2010 - 2,780 rows
    I know excel can't fit more than 65000 records, but I'm expecting 13000 records for my wide date range which excel can easily fit.
    Any ideas on this one will be appreciated.
    Regards,
    Brahma Reddy

    Hi,
    For Question 1:
    In query designer Go to the Query properties and select the tab "Variable Sequence", here you can set the order of variables as per you requirement.
    For Question 2:
    There will be a option "Hide Repeated Key values", if you uncheck this option then you will have the values for each row even though the material values are same.
    Note; if you are viewing the report in web or WAD report you need to make the same changes in the Web template also because the settings in the query designer will be overridden when you run the query in web.
    Hope this helps.
    Regards,
    Rk.

Maybe you are looking for

  • Copy and Paste bugged in FCP 7??

    Is anyone else having problems with copying from one seq to another? Everytime i paste an item into my main seq it changes the name of my seq to the pasted item. Its doesnt stop me working just quite confusing and annoying..

  • Addition of field to FISL table

    Hello, Can I modify the special purpose ledger table by adding a field ? will it create problem ? What precaution we need to take for this? Thanks in advance

  • Help required about InsertHTML function

    Hello i want to use this function to add HTML in documnet of JEditor pane public void insertHTML(HTMLDocument�doc, int�offset, String�html, int�popDepth, int�pushDepth, HTML.Tag�insertTag) it is a function HTMLEditorKit.But i dont understnad what int

  • Magic Mouse erratic in WORD AND EXCEL

    In both the WORD and EXCEL programs the cursor goes off on its own, pages flip, and in EXCEL almost useless. Have to switch to the old ball mouse for both of them.

  • Synchroniz​ing counter and analog tasks

    Hi, I would like to synchronize an analog task and a counter task. I want to share the AI sample clock for the analog task and the counter task. I found an example on NI website that seem be be suitable: http://digital.ni.com/public.nsf/allkb/BB7AE2D