Selection in 0CALMONTH

to all the gurus here...
I had a query with a restrictions of 0CALMONTH, in the cube, there are only 2 dates available but when i execute the report, the selection for the 0CALMONTH variable have 4 values to let the user to choose. But in the cubes only have 2 values. Why is there two additional dates under this variable. Thankss!!

Hi,
Check the Bex properties in the info object definition. Go into the info object definition for 0CALMONTH. Go to the Business Explorer tab... here check the settings for 'Query Def. Filter Value Selection'.... you should have 'Only Values in the Infoprovider' selected here if you want only the values in the infocube to be available for selection.
Also check the setting for 'Query Execution Filter Val. Selectn', this will define the values allowed for navigation after the query is executed.... this should be set to 'Only Posted  values for Navigation' for your requirement.
Regards,
Shilpa
Regards,
Shilpa

Similar Messages

  • Month Text display for 0CALMONTH

    Hi,
    Currently in our reports 0CALMONTH - Calendar year/month is
    being displayed as 009.2013 or 005.2014.
    How can I make it display SEP.2013 or MAY.2014 (instead of
    month Number I want to display text).
    Thanks

    HI,
    if you want maintain like that SEP.2013 or MAY.2014 maintain the master data like that - 009.2013 - SEP 2013.
    it is not possible to display alphabet and year you should maintain the specific master data.
    in BEx designer  select the 0CALMONTH - go to display tab -> select display as text.
    Thanks,
    Phani.

  • Dynamic data selection in process chain

    Dear BW gurus,
    I've an infocube 0PA_C01. I'm gettting data with data source 0HR_PA_0. Because of
    time-dependency of personel data i should get the package month by month. SO I set the data selection parameter 0CALMONTH in data package.  
    0CALMONTH=200601-200601;
    0CALMONTH=200602-200602;
    My question is how can i use this data package in a process chain for automatically getting data each month without manually changing data selection parameter.
    thanks,
    Yigit

    Hi Yigit,
    In the info-package after you have selected type '6' it will take you to the ABAP editor, please try the following code,
    data: l_s_range type rssdlrange,
            l_date type d.
    l_date = sy-datum.
    l_year = l_date+0(4).
    l_mth = l_date+4(2).
    concatenate l_year l_mth into l_month_high.
    concatenate l_year '01' into l_month_low.
    loop at l_t_range into l_s_range where fieldname = 'CALMONTH'.
    if dy-subrc = 0.
      l_s_range-low = l_month_low.
      l_s_range-low = l_month_high.
      modify l_t_range from l_s_range.
    endif.
    endloop.

  • Query selection screen

    Hello All,
    Currently on the variable selection screen 0CALMONTH is restricted by current month on our reports.  If a user wants to change the date selection they can, but they can select data right form 1947.  We only want them to be able to report upon the last three years as thats all the data we load.  So my question is how do I restict the selection of CALMONTH on the selection screen for only three years??
    Thanks,
    Nick.

    Nick,
    The F4 help settings for time characteristics comes from SPRO settings in BW.
    SPRO --> SAP Netweaver --> Business Intelligence -->Settings for Reporting and Analysis -->Set F4 Help and Hierarchies for Time Characteristics/OLAP Settings --> Time Interval
    Help doc:
    Set F4 Help and Hierarchies for Time Characteristics/OLAP Se
    Use
    In this activity you can make some general OLAP settings for time characteristics.
    You can also determine hierarchies for the time characteristics that you want to use in Reporting.
    The leaves of the hierarchy are then in the time interval that you have set.
    Activities
    General Settings:
    Time interval:
    For time intervals, you can determine the time interval that appears in F4 help for the characteristic values.
    This period should be as big as required but also as small as possible so as to keep F4 help as clear as possible. If the interval is later changed, all aggregates that contain a hierarchy to time characteristics are deactivated.
    I thought the "Provider Specific Properties" would overwrite this settings. But you could still make a meaning ful time range by changing the settings there. Please note that the setting is global.
    Good Luck.
    VJ

  • Selection Variable Issue

    Hello All,
    Web report is based on two selection variables and both are mandatory entry.
    0CALMONTH: Customer Exit : Populated from customer exit code. By default always Shows last month i.e 04.2011
    Spend Attribute: A002.
    Recently it is identified by user that selection variable is popluated as below
    0CALMONTH: Customer Exit : 03.2010 - last year - Incorrect value
    Spend Attribute: A002.
    I have checked all transport request if anything by mistake moved production but every thing is fine.
    Somehow 0CALMONTH is populating like 03.2010 which is incorrect. Even I debugged in T-code /nRSRT, it is showing correct 04.2011 while executing the report
    Please provide me some ideas to resolve this issue?
    Thanks in advance.
    Vijay Velpula

    Hello,
    Thanks for your response. Please find below customer exit code.
    *for variable: IC_SPEN1*
        WHEN 'IC_SPEN1'.
          IF i_step = 1.                                  "befor the popup
    select in infocube dimension
            CLEAR sid_month.
            sid_month = 0.
            CLEAR /bic/dic_spend1t.
            SELECT * FROM  /bic/dic_spend1t.
              IF /bic/dic_spend1t-sid_0calmonth > sid_month.
                sid_month = /bic/dic_spend1t-sid_0calmonth.
              ENDIF.
            ENDSELECT.
    select in 0CALMONTH master data
            IF sid_month <> 0.
              CLEAR n_month.
              SELECT SINGLE calmonth INTO n_month FROM /bi0/scalmonth
              WHERE sid = sid_month.
            ELSE.
              n_month = 200301.
            ENDIF.
            CLEAR l_s_range.
            l_s_range-low      = n_month.
          L_S_RANGE-HIGH     = n_month.
            l_s_range-sign     = 'I'.
            l_s_range-opt      = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDIF.
    Values are coming correct under l_s_range.
    Please suggest.
    Vijay velpula

  • Single Selection Prompt for all queries

    Hi All,
    I have 5 queries in my workbook.
    Each query uses some variable which is not used in the other queries.
    So, i get 5 prompts when i run the query.
    This looks very awkward and also my system almost hangs while showing for each prompt.
    Is there any way of showing all the variables in a single prompt?
    Thanks,
    Arun KK

    Hi,
    I found this answer on a message board:
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/assigning-same-variable-values-for-queries-in-workbook-711943
    There are two answers to your question, depending on whether or not all of the dates are the same info object (i.e., have the same technical name).
    Case 1:  All info objects have the same technical name.
    Use the "refresh all" option:
    Run "SAPBEX.XLA!SAPBEXrefresh", True 'true = refresh all
    BW will use the input from the first set of refresh screen variables for all others.  IF each query have exactly the same refresh screen, you will not see another refresh variable screen.  If not, then BW will stop between queries to ask for more input, only if required. 
    So, the trick would be to define the first query that refreshes in such a way that its variable screen covers everything needed.
    Case 2:  Not all info objects have the same technical name.
    Use the "Save and reuse variable values" option.  You will find this in the query Properties dialog box on the second tab ("Interaction").  Put a check there for all queries except the first one. 
    Set up the workbook so that the first query refreshes by itself
    Run "SAPBEX.XLA!SAPBEXrefresh", False 'False = refresh one only
    Then, after the first query has refreshed, locate the date(s) the user selected and copy those to the ranges for all other date values.  If your installation is BW 3.x, the code below should do the trick.
    It is slightly ineffecient because it will refresh the first query twice.  But, the second refresh will be fast because the results will still be in cache. And, the code to keep it from refreshing the first query twice is not something you really want to mess with.
    Alternatively, instead of using the SAPBEXrefresh, True at the end, you could put in 13 different SAPBEXrefresh, False statements, identifying the other 13 query worksheets individually.
       Run "SAPBEX.xla!SAPBEXrefresh", False, _
           Sheets("firstQueryToRefresh").Range("a cell in the query")
       'locate dates user selected for "0CALMONTH"
       For i = numFilter + 3 To 4 Step -1
           If Range("GS" & i) = "0CALMONTH" Then
               myType = Range("GC" & i)
               myInterval = Range("GD" & i)
               intfirstMonth ("GE" & i)
               extfirstMonth = Range("GF" & i)
               intlastMonth = Range("GG" & i)
               extlastMonth = Range("GH" & i)
               Exit For
           End If
       Next i
       For i = 4 To numFilters + 3
           If Range("GS" & i) = "YCODOCMNT" Or _
               Range("GS" & i) = "YCOSHPMNT" Or _
               Range("GS" & i) = "0CALMONTH" Or _
               Range("GS" & i) = "YCOACCMT" Then
               Range("GC" & i) = myType
               Range("GD" & i) = myInterval
               Range("GE" & i) = intfirstMonth
               Range("GF" & i) = extfirstMonth
               Range("GG" & i) = intlastMonth
               Range("GH" & i) = extlastMonth
           End If
       Next i
       Sheets("SAPBEXqueries").Visible = xlSheetVeryHidden
       Sheets("firstQueryToRefresh").Select
       Application.ScreenUpdating = True
       Run "SAPBEX.xla!SAPBEXrefresh", False
    End Sub
    maybe this will help a bit.
    regards,
    Raymond Baggen
    Uphantis bv

  • Contant selection use with variable restriction

    Hi gurus,
    My issue is as follows:
    I am trying to create a query where there will be a restricted key figure with a variable restriction (ZCALMON - ready for input-mandatory-single) on 0CALMONTH characteristic. I want this restricted key figure to be constant (no changes shall be allowed based on drill-down or any other filters in the query). So I selected the 0CALMONTH char in restrictions screen and made "Constant selection".
    In the filters part of my query, I am again restricting 0CALMONTH with another variable Z12MONTH(Customer exit-interval-mandatory). The from value of the variable should be 12 months before ZCALMON and to value of the variable should be ZCALMON. The value of Z12MONTH is determined via CMOD (it is correct as I have checked it via RSRT + Debugging).
    However, when I run the query, only the ZCALMON values for 0CALMONTH are coming (although this should only affect the restricted key figure and report should be listing all 12 months determined by Z12MONTH).
    What may be the problem?
    Is it because of using "Constant selection" with a variable restriction option?
    Thanks in advance for your support,
    Regards,
    Dilek

    Deepmala,
    I gues it is not possible..
    Check the following :
    Variable offset
    Dilek

  • Customer Ext Variable is NOT working correctly in the Restricted Key Figure

    Hi all,
       I have created a variable ZVCBLMTH (Period from 01/1996 to Last Month) with reference to
        0CALMONTH  and it will be populated through  Customer Exit and it works fine.
        In the selection for 0CALMONTH, I gave the range as '05/2008' to '08/2008' and this new
        variable  passed the value of  range as '01/1996' to '04/2008' in RSRT.
        The properties of the variable are:
              Type of Variable -  Characteristic, Processing by - Customer Exit, Variable Represents - Interval
              and Variable is - Optional.
              No change in the result after changing the 'Variable is' from Optional to 'Mandatory'.
      This variable is used in Restricted Key Figure to calculate the number of matching records between
       01/1996 & 04/2008 and somehow it is not recognizing this variable and NOT passing the results correctly.
       But, there are records with 0CALMONTH between 01/1996 & 04/2008.   
       How could I test that which value is passed into the Restricted Key Figure for this variable, PLEASE ?
       Thanks in advance.
    Regards,
    Venkat.

    Hi Clemens Li
    I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
    Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
    Hi Abhii
    I have given below the fieldcat coding.
    Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
        wls_fieldcat-col_pos   = wpv_pos.
        wls_fieldcat-fieldname = wpv_champ.
        wls_fieldcat-tabname   = wlc_tabname.
      wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
        wls_fieldcat-seltext_l = wpv_libelle.
        wls_fieldcat-ddictxt   = 'L'.
        wls_fieldcat-no_out    = wv_no_out.
        APPEND wls_fieldcat TO gt_fieldcat.
    Kind regards,
    Jegathees P.

  • Variable offset in customer exit

    Hello,
    I need to calculate the Date based on the user entered the values in the selection criteria 0calmonth.   Say the user entered the calmonth as 05/2008, i need to calculate the date and i can achieve this in customer exit.  But under calmonth variable if we use offset (as -1 or -2), it is not considerding.  Ex.  in selection criteria the value entered as 05/2008 and offset as -1,  then then date i need to calculate is based on value 04/2008 not 05/2008.   But in customer exit not sure how can i consider this offset value as well.
    Appreciate your earlier response.
    Thanks
    Sreedh

    Sreedh,
    if the offset is not fixed, then can you provide a formula variable for entering this offset and then pass on both the cal month and the offset to the customer exit?
    Lets assume calmonth is by variable V1 and formula variable is by v2, then pass to the customer exit v1-v2.
    Hope this helps
    Naveen.A

  • Objects are inactive even in Backend it is active.

    Hi All,
    I am getting the error while running the report. While selecting the 0CALMONTH, i am getting the error as 0calmonth info object is no available in Version A. But i checked in BW system and found that, 0CALMONTH is in active version. Can you please help on this issue.
    Thanks.

    Hi Jalina,
    Check weather MP for the report is active or not???
    or use the query in RSRT and generate report.
    Regards,
    Mukesh

  • Problem in Displaying text Variable

    Hi All,
    I have problem in Displaying text Variable in the column header.
    My requirement is as follows.
    Column Level:
    0Calmonth/Year
    Key figures
    Keyfigure1 - Current Month  - Text Variable1
    Keyfigure2 - Previous Month - Text Variable2
    Keyfigure3 - Previous Month - Same as Text Variable2 - Display same month
    So based on each 0Calmonth/year these three keygirues should display in Header section like.
    Selection screen
    0Calmonth/Year - 03.2005 - 06.2005
    Result should be for each month.
    0Calmonth/Year
    03.2005                                04.2005                              05.2005
    03.2005 | 02.2005 | 02.20005  04.2005 | 03.2005 | 03.2005 05.2005 | 04.2005 | 04.2005.
    I have created two text variable with Customer exit.But not able to show exact months in the header section.
    For first three columns months are coming exactly, but from fourth columns it should display next month, but it is not coming.
    I have tried to code, but not successfull.
    Please help me how to go about this.
    Will assign full points.
    Regards,
    Vijay

    hi
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    it might helpful for you
    assign points if helpful

  • Period number to be displayed as month name

    Hi,
    I have Fiscal year/Period defined in the column section of the BW query.  Currently the column will be displayed for example: Period 01, 2009, Period 02 2009 and etc.   Our users are asking to display the month name instead of the Period#.  Is it something can be handled within the query definition (or) via the BW query user exit. 
    Thanks in advance for any response.

    Hi Venugopal,
    Fiscal period is not always the same as calmonth.
    For eg - In India, you have April as the 1st fiscal period of this year.
    Hence, it does not make sense to have month names for fiscal period.
    Also in FICO you may have special periods..ie periods after period 12.( eg period 13 to 16) you wont be able to map them to a particular month in some cases.
    If you want to display month name in your column selections, use 0calmonth object with text display.
    However, this would mean you are view a dataset as per calmonth and not as per fiscal period.
    Check if this is acceptable for your business requirement.
    Lastly, you can always have a formula, to check the value and put texts instead.
    ( if fiscal period is 02/2009 then month is feb ..(based on the country).
    Hope it helps,
    Best regards,
    Sunmit.

  • Dynamic Variable for YTD08

    Hi All,
       I am having a requirement for the generating a report for the selection field 0calmonth.if execute the report,the field name should get change for the previous years and i should get the data for the same.
    For Example:
    Input : 200906
                                                                YTD' 200906(Dynamic)      YTD 08 (Dynamic)
    ARCHWAY SALES - CINCINNATI         1234                                       1234
    ARCHWAY SALES - CINCINNATI        13,725                                     13,725.
    Eg.. If i give the input as 200906 and execute the report then at YTD 08 place i have to get previous year ( 200906 has to be converted as 200806) so it has to generate dynamically .
    Let me know if you have any queries
    Thanks!!!

    Hi
    Create 2 Restricted Key Figures YTD(FiscalPeriod) and YTD(FiscalPeriod-12)
    In 1st RKF
    Bring the KF of YTD and restrict by Fiscalperiod Variable
    In 2nd RKF
    Bring the KF of YTD and restrict by Fiscalperiod Variable and offset the variable by -12.
    Use these 2 in your report.
    Regards,
    Bilapati

  • Structure urgent plz

    Hi all,
    I am using the key figure sturcture in the rows for some RKF on amount,
    At the same time i am having another  requirement where I hav to restrict the data on the every month from jan - dec and also hav to calculate the value for every quater. I am planning to make use of Variable offsets hope it will work fine.
    For this I am creating the structure where i am going to restrict year on year1,.....year12.
    Is my process is fine.Does any other changes are required.
    Plz let me know
    Regards

    hi KK
    what you can try is
    create a structure in row where you insert  selections
    1st selection include 0CALMONTH restrict on january
    2nd selection include 0CALmonth again and restrict on february
    etc... till December
    Then insert a fromula for the first quarter with 1st selection + 2nd + 3rd
    The same for 2nd quarter with 4th selection, 5th, 6th
    etc...
    You can include a variable to determine year to be applied on the RKF
    Otherwise you can put a variable that dtermines the actual calmonth on the fisrt selection (meaning you have 12 sliding months) and deal with offsets as you mentionned.
    hope this helps.
    regards
    Boujema

  • Description for Formula Values in Structure

    Hello All,
    I want to change the description of the formula values in my Structure (i want to add the Month that is used in the formula to the description so that the description becomes more dynamic). Can any one of you please suggest a way. This is required quickly so please respond ASAP and ALSO LET ME KNOW HOW TO REWARD POINTS I WILL DO IT AS SOON AS I GET MY ANSWER.
    Thanks,

    Hi,
    To use a text variable on 0CALMONTH, 0CALMONTH need not be in Fomula as you mentioned.
    as you said,you have variable on 0CALMONTH and you wanted to see entered 0CALMONTH value in formulas.Right?
    From the context menu of formula>Edit->click on 'Select text variables'->a window will pop up which shows all existing text variables->(you can use any existing text variable of 0CALMANTH,ok..for time being we will go with new text variable)  go to starting point of the text variables window>double cilck on "New" node->provide Tech name and description for text variables and select 'processing by' as 'Replacement path'->next->select Characterstic ' 0CALMONTH'->next->select 'replace variable' with "KEY" or "TEXT">next>Finish.
    Use this Text variable in your formulas.
    Pl dont foget to assign points if it helps.
    Thanks

Maybe you are looking for