Restrict Time characteristic filter at selection screen

Hi,
I am trying to find out a solution for the below typical requirment which i have in my project.
The scenario is as follow:
I have a BEx report with many characteristics in the selection screen. There are three time characteristics in the selection screen based on which the report can be executed. The three time chars are CALDAY, CALMONTH and CALWEEK. Now the requirement is that we need to provide a functionality to the user to select only one of the three time char i.e. they can either input date filter or month filter or week filter.
If user tries to input filter on more than one time char then he shouldnt be able to execute the report and it should show some kind of message. Also if the user dosent select any one of them it should not run
the report.
Please provide any work around for the same.
Thanks,
Varun

Hi Varun,
Yes this can be acheived by coing the same in the CMOD.  Please follow the steps as given below -
Please excuse me if I have done any typo errors -
Goto to CMOD and write a customer exit for i_step = 3 as given below -
IF i_step = 3.
data: count type n.
count = 0.
LOOP at i_t_var_range INTO l_s_var where vnam = 'date_var'
                          OR vnam = 'month_var'
                          OR vnam = 'week_var'.
   count = count + 1.
ENDLOOP.
IF count > 2.                 "this is for multiple time range selection
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
  I_CLASS = 'RSBBS'
  I_TYPE = 'E'
  I_NUMBER = '000'
  I_MSGV1 = 'Please enter either of Date/Month/Week'.
raise again.
ELSEIF count = 0.            "this is for no time range selection
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
  I_CLASS = 'RSBBS'
  I_TYPE = 'E'
  I_NUMBER = '000'
  I_MSGV1 = 'Please enter at least Date/Month/Week'.
raise again.
ENDIF.
ENDIF.
Hope this helps.
Regards,
RashmiG

Similar Messages

  • Restricting values F4 help in selection screen-Urgent

    Hi,
    can anyone pls tell how can I ristrict the values for search help in any field in selection screen.
    please tell me the way to hide some values in F4 help in selection screen so that user can not see those data for selection.
    Regards

    i think u can not hide the data.........
    create own f4 help............restrict the data and then pass it the f4 internal table....
    fro exp;;;;;
    types : begin of ty_tab,
              post_code1 like adrc-post_code1,
             end of ty_tab.
      data : it_tab type ty_tab occurs 0.
      data : lt_field type table of dfies,
             lw_field type dfies.
      select post_code1 from adrc into corresponding fields of table it_tab.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
          exporting
            retfield        = 'POST_CODE1'
            dynpprog        = sy-repid
            dynpnr          = sy-dynnr
            dynprofield     = 'LI_LIST1'
            value_org       = 'S'
          tables
            value_tab       = it_tab
         field_tab       = lt_field
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Regards
    Anbu

  • Restricted key figure as a selection screen

    hi
    in my fs they gave selection screen and restricted key figures are same things?
    can i use this restricted kf as a selection also?

    Hi,
    If u are talking about 'selection' vs 'restricted key figure: -
    Restricted key figure is the selection that u create globally and are avaible for all queries which are built on the multiporvider on which u created your restricted key figure.
    when u right click in ur query desinger row or column and create a 'new selection'  that also basically is a restricted key figure -b ut available only locally within that particular query.
    whereas the globally created RKF will be available to all queries on that info provider.
    And 'selection screen' will show all variables u have set as 'ready for input' . it will ask for user to enter the value when query is executed.
    hope it helps
    Regards,
    Rathy
    Edited by: Rathy Moorthy on Feb 25, 2009 11:59 AM

  • Why Selection Screen is taking much time, very first time?

    Hi Experts,
    I hv a Selection Screen-1000 with 15 select options, 2 push buttons, 6  radio buttons, 3 paras. with List Boxes with my_T.Code.
    So, When I executed this SS-1000 with my_t.code, its consuming time like,
    1 - first time - 58 Sec.
    2 - 2nd time - 31 Sec.
    3 - 3rd time - 5 Sec.
    4-4th time - 5 sec.
    So,
    1 -  Why its happening like this(any buffer concept involved?)? Obviuosly, I hv been asked to get the first time also with in a short time.
    thanq.

    ThanQ Rich,
    OK, anyways, of my curiousity asking that, It shuld all times shuld consume same time for displaying the selection screen! Why its taking differed timings?
    In Intialization:
    push_name1  = 'A1'
    push_name2  = 'A2'
    AT SS OUTPUT:
    filling list_box1
    filling list_box2
    filling list_box3
    perform modify_screen
    So, U mean, I hv to look these things!
    ThanQ.

  • How to restrict the width in selection screen,

    HI all,
           Can anyone help me in solving this issue.  i am not able to remove the horizontal scroll bar in my selection screen.  i gave line-size as 200 if i reduce it the entire program is getting colapsed.  is there anyother way of restricting the width of the selection screen.
    Advance Thankz,
    Regards
    Guhapriyan

    Hi Guhapriyan,
    If your (horizontal) scrollbar is displaying, then two things need to be considered:
    1. The width of the screen (and in some manner the screen resolution).
    2. The total length of number of controls (e.g. inputfields), texts and spaces between them.
    In case of too many controls you'll need to understand, that dispite SAP shows texts on your screen in a proportional format, actually internally it uses a fixed format. Therefore a text of 132 characters long showing on a 80 'column' width screen will show almost all the text AND a horizontal scrollbar.
    To solve it you need to keep track of lengths and positions.
    Important: The standard width of a selection screen is 80 characters. You must modify your 1000 screen via transaction SE80 (and prevent regeneration).
    Regards,
    Rob.

  • BEx query selection screen takes long time to popup

    Hi,
    I have a query which is taking long time to popup the selection screen. I have tried in RSRT the generate report option, the generating report takes 45 to 60 mins. After the report is generated the query selection screen comes up in couple of seconds. The first time I run the query everything its fine but then for the second time the problem comes back again.
    The selection screen takes +/- 40 mins to comes up in RSRT and in the portal it times out.
    I have run the statistics of the query and according to the statistics report the query takes a  lot of time for the following component :
    OLAP: Query Gen.     2681,312682
    I have removed the query from the cache monitor and after that regenerate the report. But these steps didnu2019t solve my problem.
    I made two test queries, in one query I have made the CKFu2019s and RKFu2019s directly at the infoprovider, and dragged and dropped in the KF structure. In the other query I made the CKFu2019s and RKFu2019s in the query KF structure itself. The query where I have the CKFu2019s and RKFu2019s at the infoprovider that query times out, the other query where I put the CKFu2019s and RKFu2019s in the query KF structure doesn't has this performance problem.
    What I donu2019t know is why the query is failing when I use RKFu2019s and CKFu2019s from the infoprovider, the other query donu2019t have this problem.
    Please advise how to proceed.
    Thanks in advance,
    Arash

    Hi,
    Please check the following notes which should be useful.
    1387593 - Performance optimization for query change/generation
    1416737 - Performance optimization for query change/generation(2)
    1396485 - Performance optimization for query check/save
    Then please execute the SE38 report ANALYZE_RSZ_TABLES (see notes
    1472915, 1506560) and repair/correct the different tables to optmize
    the query definition tables.
    Regards,
    Amit

  • Auth infoobject both in free char and selection screen

    Hi,
    Is it possible that I define authorization on, say operating unit, in BW and then provide the operating unit in free characteristic and query selection screen?
    Are there any restrictions to the above scenario?

    Hi Narendra,
    Appreciate your best practice suggestion.
    What I would like to understand is this:
    1 - SAP provided the feature that if we choose processing by auth, it looks at values, defined in auth objects, and populates
         them on the selection screen automatically. Indeed a great feature.
    2 - SAP even gave us freedom to use user exit variables to make it dynamically chosen.
    3 - Even hierarchy based auth framework is provided. Again a great feat.
    4 - Even when user don't give anything in selection screen and just execute, the report is run only for authorized values.
    Then why can't it happen that when user drags the auth IO from free char to report, SAP looks up the authorized values and shows then against the corresponding data record just like it does when we provide values at selection screen.
    I know I might be questioning the SAP auth design and pardon me for my audacity but I just want to understand the rationale behind this restriction.
    You also mentioned about the work arounds to my problem..can you share some so that I might be able to implement them and see if users are fine with it?
    Regards
    Debanshu

  • Regarding hiding Selection screen block

    hi all ,
    i have 2 blocks in the selection screen. the First block has 4 radiobuttons and the second block has 4 parameters.
    i need to hide the block 2 based on the radiobutton checked in the initail block.
    if radiobutton 1 or 2 is selected then the block should not be visible and if the rdbtn 3 or 4 is selected the block should be visible
    i have wriiten the code but it doesn't work at all. the block is hidden but when i select the radiobtn 3 or 4 it doesn't work
    the code i hve wriiten is as follows
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: par1 RADIOBUTTON GROUP rg2 DEFAULT 'X' USER-COMMAND ucom1
    PARAMETERS: par2 RADIOBUTTON GROUP rg2 .
    PARAMETERS: par3 RADIOBUTTON GROUP rg2 .
    PARAMETERS: par4 RADIOBUTTON GROUP rg2
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETER p_pwwrk TYPE plaf-pwwrk  MODIF ID FSC.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_wch TYPE cr_hname MODIF ID FSC.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECT-OPTIONS s_mdv01 FOR g_mdv01 MODIF ID FSC.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK a1.
    I have declared this  after Initialization.
    AT SELECTION-SCREEN OUTPUT.
    if par3 eq 'X' or par4 eq 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'FSC'.
    screen-active = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    endif.
    can anybody please suggest.
    Thanx
    Srinivas

    Hiding Input Fields Locate the document in its SAP Library structure
    To suppress the display of the input field on the selection screen, you use the following syntax:
    PARAMETERS p ...... NO-DISPLAY ......
    Although parameter p is declared, it is not displayed on the selection screen.
    If the parameter belongs to the standard selection screen, you can assign a value to it either by using the DEFAULT addition when you declare it, or during the INITIALIZATION event. If you call the executable program using the SUBMIT statement, the calling program can also pass the value.
    When you use user-defined selection screens, you can assign a value to the parameter at any time before calling the selection screen.
    If you want to display a parameter only in certain cases, for example, depending on the values entered by the user in other input fields of the selection screen, you cannot use the NO-DISPLAY addition. If you use NO-DISPLAY, the parameter actually is an element of the interface for program calls, but not an element of the selection screen. As a result, you cannot make it visible using the MODIFY SCREEN statement.
    To hide a parameter that is an element of the selection screen, you must declare it without the NO-DISPLAY addition and suppress its display using the MODIFY SCREEN statement.
    We can Hide parameter / select option in selection screen dynamically by manipulating screen object.
    SCREEN is like an internal table with a header line. However, you do not have to declare it in your program. Go to debugging mode and then view structure of screen.
    You can modify SCREEN in your ABAP program during the PBO event of a screen. Its contents override the static attributes of the screen fields for a single screen call. The only statements that you can use with SCREEN are:
    LOOP AT SCREEN.
    MODIFY SCREEN.
    ENDLOOP.
    We can hide parameter by set screen-active to 0.
    Here is example of how to hide parameter in selection screen. Write it, and change click on radiobutton to hide parameter.
        REPORT ZAALGAL0006.
        DATA: d_ucomm LIKE sy-ucomm.
        PARAMETERS: p_grpa1(10) MODIF ID A,
        p_grpa2(5) MODIF ID A,
        p_grpb1(2) MODIF ID B.
        PARAMETERS: p_actA RADIOBUTTON GROUP rad1 USER-COMMAND ACT DEFAULT 'X',
        p_actB RADIOBUTTON GROUP rad1.
        AT SELECTION-SCREEN.
        d_ucomm = sy-ucomm.
        AT SELECTION-SCREEN OUTPUT.
        LOOP AT screen.
        IF p_actA = 'X'.
        IF screen-group1 = 'B'.
        screen-active = 0.
        ENDIF.
        ELSEIF p_actB = 'X'.
        IF screen-group1 = 'A'.
        screen-active = 0.
        ENDIF.
        ENDIF.
        MODIFY screen.
        ENDLOOP.
        START-OF-SELECTION.
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Hide display attributes in selection screen?

    Hi @ All,
    Does anybody knows how I can hide some display attributes of one characteristic in the selection screen in the portal?
    For example, I have the characteristic 0plant with the display attribute 0ALTITUDE which I want to hide in the selection screen.
    Any ideas?
    Thanks!
    Stephan

    Hi Abhijit,
    yes we talking about BW report selection screen
    0plant is my input variable in query designer. 0plant is also navigational in the infocube.
    0ALTITUDE is an attribute of 0plant. It is not navigational and not input variable in query designer.
    Any ideas how I only set some attributes of 0plant visible for the selection screen, and some not?
    Thanks,
    Stephan

  • Restrict filter values that are shown in the selection screen

    Hi Experts
    1) Is it possible to restrict the filter values that are shown in the selection screen in BEx web? When a user are asked to enter a material number and uses the selection button in BEx web, he should only see material numbers for one specific plant. How is this done? 
    2) Is it possible to remove the selection button for å characteristic filter in the selection screen in BEx web? The selection button I am talking about is the button to the right of where you enter the filter value (two white papers on top of each other). If there is no solution for question 1 we have to go for question 2 solution.
    We are using BI 04s, SP 09.
    Kind regards
    Erik

    Hi Erik,
    It seems that you would like the user to see value for 1 single plant. If the Plant Value is fixed then you can use this value in the Query and hardcode it.> in the query go to the Plant Chrac and keep a constant value of the Plant.
    How ever if you need this value to be dynamic then use a variable for customer exit and populate this value using ABAP.
    Regards,
    Jasprit

  • Filter value for variable selection screen

    Hi & help !,
    This could be a tricky or an easy question, but it seems too hard for me !
    I'm storing version in my cube, and have a report which shows informations for the version you select (with a variable = ZVERSION01).
    ex :  Version :
    V01
    V02
    V03
    V04
    When report is executed i have my variable selection screen (for variable ZVERSION01) which give all version [V01 -> V04]. But i want users have no access to version V01 & V02.
    Variable ZVERSION01 is "single selection", i tried to filter with Default Values screen or Characteristic Restriction screen but it doesn't work.
    ex : caracterisitic restriction screen : VERSION = !V01 / !V02
          default value screen : variable VERSION = ZVERSION01
    Any idea?
    Thx

    Hi,
    In BI 7.0 there is Anaylysis authorisation RSECADMIN transaction. That you can use here or normal role concept will also do.
    What you need to do is grant authorisation to the users for V03 and 04 version only and create 'Authorisation' type variable on version in the query. (type of variable - it asks while creating the variable). This way users will only be able to see authorised versions only.
    Note you have to make version infoobject as Authorisation relevent infoobject. ( in infoobject properties).
    Let me knw if you have any doubt.
    Regards,
    Viren

  • Restrict value list (F4) at variable selection screen

    Hi,
    we have a variable of type "manual input" so that it appears at the selection screen before executing the query.
    The value-list (F4) for this variable provides every value of masterdata of the infoobject. But here is the problem: I want only those values that are used in the infocube. Is there a way to restrict this list? Customer-Exit??
    Thanks for all hints!
    Regards,
    Mathias

    Hi,
    I tested both of the hints - in my system both settings had no impact.
    Can it be a release problem? My BW is a 3.0B SP 15.
    I changed the settings in the InfoObj and put a new variable in the query-def for this characteristic. In the variable-selector before executing the query I can select a value (via F4) for the characterisitc which is not used in the cube. This is my problem. Only used values should be selectable.
    These are the settings in the InfoObj:
    Display                 Text                          
    BEx description         Short description             
    Selection               Unique for Every Cell         
    Q Def. Filter Val Sel   Only Values in InfoProv       
    Q Exec Filter Val. Sel  Only Posted Values for Navi
    Can anyone help?
    Thanks, Mathias

  • How to Restrict Variables in Selection Screen

    Hi Experts,
    I have set filter variable for my Region which includes (East, West, North, South).
    And I'm restricting North and South in the Selection Screen and displaying a choice of East or West on the Selection Screen.
    I tried right click variable in filter pane-> Restrict -> Move.....East and West to right side. and saved it.
    When I tried executing it I'm being displayed all the 4 values at the Selection Screen.
    Can any real experts help me resolve this
    Thanks

    Hi
    There are two ways in which you approach this
    - Create a variable for Region and set the Default values to East and West. This way when the user runs the query the selection will be by Default populated as East and West. You don't have to go in and do a selection.
    - Personalize the variables.
    Refer to the link below which contains details on Personalizing variables.
    http://help.sap.com/saphelp_nw70/helpdata/en/45/6e4f4db9cc1956e10000000a11466f/frameset.htm
    In short, when you run the query you can see a Personalize variables button where you can just choose Ease and West. You can also choose whether to display or hide the personalized variable. When you hide it will internally be restricted to Ease and West.The result is displayed with your personalized values the next time you execute the query. The down side to this is this is specific to a user.
    Apart from the above two, i don't think you can choose the selection only to display East and West. As long as your master data and info provider has all four values you cannot hide them.
    In the query designer, when you click on the Region infoobject in the Advanced tab, you will see four options. You can only choose among the four. Here you can see that you can only choose between Master data, infoprovider etc.
    Regards,

  • How to restrict or stop the same data provided in selection screen parameters its should stop fetch the data on previously provided data?

    Hi Developer,
    i have issues that i need stop or restrict the same entries provided in the selection screen parameters it should no display that data but it should give an alert message by saying the data all ready viewed or displayed.
    example: organisation :getha pvt.td.
                  name :ramesh.
                  start date:10.2.2013.
    these are parameter which has been displayed by clicking execute ,if provide the same value to display again it should give waring message.
    Please guide me in solve the problem.
    thanks.
    ravi.

    Hi Somendra,
    Thanks for your response sir , i have provided the according to your provided information sir  but it was not  displaying the data first time also its giving message which i have provided ,my issues is if i provide data from time should display if i provide same data next time then only it should restrict the data and give a message.
    example:
    types:BEGIN OF str1,
       ROOMNO type zROOMNO,
       NAME TYPE zname3,
      BRANCH type zBRANCH,
       PHONENUMBER type zPHONENUMBER,
       END OF str1.
       data:it_str1 type TABLE OF str1,
            wa_str1 type str1.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME .
         skip.
    PARAMETERS:s_roomno type ZTABLE_2-roomno.
    skip.
    parameters:s_name type ztable_2-name.
    skip.
    PARAMETERS:s_branch type ztable_2-branch.
    skip.
    PARAMETERS:s_pho type ztable_2-phonenumber.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN.
    SELECT  roomno
             name
             branch
             phonenumber from ztable_2 into TABLE it_str1
             WHERE roomno eq s_roomno and name eq s_name and branch eq s_branch and phonenumber eq s_pho.
       READ TABLE it_str1 INTO wa_str1 with KEY roomno = s_roomno name = s_name branch = s_branch phonenumber = s_pho.
       if sy-subrc eq 0.
         MESSAGE 'THE DATA IS ALL READY VIEWED' TYPE   'E'.
         RETURN.
         ENDIF.
         START-OF-SELECTION.
       SELECT  roomno
             name
             branch
             phonenumber from ztable_2 into TABLE it_str1
             WHERE roomno eq s_roomno and name eq s_name and branch eq s_branch and phonenumber eq s_pho.
         loop at it_str1 into wa_str1.
         WRITE:/1 wa_str1-roomno,
                10 wa_str1-name,
                30 wa_str1-branch,
               60 wa_str1-phonenumber.
         ENDLOOP.
    please guide me in solving the issue sir.
    thanks,
    Ravi

  • Strange Values in Characteristic selection screen

    hello,
    We have a situation here where there are some strange values appearing in the selection screen for a particular characteristic. e.g. for Business Area we expect to see only "A" and "K". But we have a wide range of values showing up like 0001 and 300 etc.
    I cannot see how these values got into the selections.
    - I checked the infoobject and there is no master data load for this infoobject.
    - There is a text load which contains text for 4 values (the ones we expect to see).
    - I checked each of cube that the infobject is used in an used one of the invalid values as a restriction to see if I got any results back, but there was no luck here.
    I thought perhaps the values came from the transaction data loads (seeing as there is no master data load for it). Is this a correct assumption? or is there any other explanation for these values being there.
    Thanks for any help you can give.
    Thanks,
    Allan

    Eugene,
    My apologies. here's the answers.
    do you see the strange data in the master data of the IO?
    I am not able to see tha master data in the IO. In the config of the IO, the "With Master Data" option is unchecked.
    The IO is used in a number of cubes. So in order to try and see if the values came from transaction data, I went to each of those cubes and ran a quick check of the infocube contents. I focused the search on one of the "incorrect" values. (The volume of data in the cubes is enormous). I did not get any results from this search.
    can you suggest anything more I can do?
    best regards,
    Allan

Maybe you are looking for

  • Error Loading Data into a flat file

    I am recieving the following error when loading data into a flat file from a flat file. SQL 2005 is my back end DB. If I cut the file iin half approx 500K rows my ODI interface works fine. Not sure what to look at.. I rebuit the interface which befor

  • Can't include a jsp in another jsp?

    I am useing Jbuilder7.0+wls7.0           I got the Exception:           "index.jsp": weblogic.utils.ParsingException: nested           TokenStreamException: antlr.TokenStreamException: Could not include           conn/conn.jsp           

  • Ohw-demo-ear-2.0.0-beta3.ear

    Hi, when I try to deploy ohw-demo-ear-2.0.0-beta3.ear on my application server (9.0.2) I have this error: Deployment failed: Nested exception Root Cause: Error loading web-app 'ohw-demo' at D:\Oracle\Midtier\j2ee\OC4J_HELP_OHW\applications\ohwdemo\oh

  • OBI 11.1.1.6.SSO

    Hello All, I am trying to configure Windows Native authentication for OBIEE 11.1.1.6 per the "Configuring authentication and SSO with Active Directory and Windows Native Authentication in Oracle Business Intelligence Enterprise Edition” Oracle Suppor

  • How to install the lync 2010 android application in Samsung galaxy si9000

    After installation of lync in my phone, i am supposed to install the SSL certificates but i cant able to view the installation of lync and ssl certificates in my phone. My lync is not getting connected. Error msg: can't connect to the server right no