Date offset as input on query selection screen

Alright all,
I have a date variable which is based on current month/year.  We need to allow the user the ability to offset this date by a month.  e.g.
if date is 06.2010, they will have the ability to enter '2' as the offset and this will give them data from 05.2010 to 06.2010.
We cant use intervals for this, need the ability to be able to enter an offset.
Any ideas?
Thanks,
Nick

Hi Ravi,
Thanks for the sugestion.
The condition has to based on a keyfigure right?
What if the only key figure in the cube is a currency based key fgure?  This probably wont work if you only want a value of say '3'?
Any thoughts?  Would you create a dummy key figure in the cube?  Seems a bit messy.
Thanks.
Nick.

Similar Messages

  • Input Variable on Selection screen in BEx

    Hi Team,
    Is there a way to change the sequence of Input variables on Selection screen in BEx ?
    Thanks in Advance.

    Hi,
    Go to query designer - query poperties - you find variable sequence tab
    you change the sequence of your variables
    Thanks,
    pk.

  • F4 search-help in infoset query selection-screen fields

    Hi all,
    I created an infoset, and it's corresponding query, and now I need to associate F4 search-help in two of the selection-screen fields. Since they don't have any reference field associated (they are SAP standard table fields), there are no possible values available to select.
    How can I do this?
    I have already tried to use the "AT SELECTION-SCREEN OUTPUT" in the infoset, but I'm not able to do that. When I try to use the select-options generated by the query (SP$00013 and SP$00014) I have a syntax error with "Field not known".
    Can you help me? I never done this before, so I really don't have a guess.
    Thanks in advance.
    Beste regards,
    Sónia Gonçalves

    Hi all,
    I have found thread  that helped me a lot in this issue.
    I just have one more doubt: I created the selection criterion and I can already see it in the query selection-screen, but it's appearing in the top of the selection-screen, in a different area called "General data selections".
    Isn't it possible to include it in the "Report-specific selctions"?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

  • Query Selection screen field validatoin

    I am testing a query using the RSRT2 transaction and have a query selection screen whose fields i want to create custom validations for. ( which should trigger when check or execute is pressed )
    How can this be achieved ?
    I tried looking for exits but did not find a relevant one.
    Thanks in advance.

    Hello,
    You need to write a routine in SMOD for selection screen validations.
    It will come in i_step = 3. please refer foll code as example:
    The code example is to check whether date is less than or equal to current date. If user enters future date it pop ups saying enter date less than or equal to current date.
    DATA:  LI_VAR like rrrangeexit,
           wa_t_var_range like LI_VAR,
           count type i value 0.
    IF i_s_rkb1d-infocube EQ 'CUBE1' or
       i_s_rkb1d-infocube EQ 'CUBE2'.
    Check whether only one of date variable is entered in variable screen.
    IF I_STEP = 3.
        Read table i_t_var_range into wa_t_var_range with key vnam = 'VARDATE'.
          if wa_t_var_range-low > sy-datum.
            CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
              EXPORTING
                I_CLASS  = 'RSBBS'
                I_TYPE   = 'E'
                I_NUMBER = '000'
                I_MSGV1  = 'Enter date less than or equal to current date'.
            raise again.
          endif.
    ENDIF.
    ENDIF.
    Regards,
    Shashank

  • Query Selection Screen restriction

    Hello All,
    In my query selection screen, i have date, month and week as selection parameters. Now my requirement is that user should select only one of them. If he selects more than one ie combination of two or all three, than query should not show any data.
    Can this be achieved? If yes how.
    Regds,
    Shashank

    Hi,
    You can try out, customer exit with I_STEP = 3.
    using which a exception will be raised if user enters value for more than one variable.
    Hope it helps......
    Regards,
    Umesh.

  • Query Selection Screen does not appear in Web Analyzer

    Hi Experts,
    Query Selection Screen appears when we open the query in Bex Analayzer in production system. But when we open the query in ABAP or JAVA Web view, the selection screen does not appears.
    As the volume of data in the cube is very high, and since the selection screen is not appearing, the query extracts 1.5Mrecords and results in dump.
    Kindly let me know the possibility for selection screen not appearing.
    Note: The selection screen appear in Development system in Bex Analyzer, ABAP View and Java View
    Regards
    Suresh Kumar

    Dear Suresh,
    You can check if the parameter &VARIABLE_SCREEN=X is added to standard template or not, If not add this,
    In order to add this parameter in the webtemplate you have to change 0ANALYSIS_PATTERN and save it as ZANALYSIS_PATTERN and enter this standard web template under TCODE RSCUSTV27.
    Also I would like to explain you the behavior of Web Analyzer,
    Parameter VARIABLE_SCREEN=X only influences the WEB application at startup. This will not come into affect
    when you use the 'New Analysis' button. The 'New Analysis' button resets the dataprovider so this would not
    affect the variable screen and would not redisplay the variable screen as you require.
    Regards,
    Arvind

  • Check box in SAP Query selection screen

    I want to keep 2 check box in SAP Query selection screen.
    could you please tell me any one.
    regards,
    kumar

    Hi Vijay,
    If these check boxes are the fields in the table you are using then you can do it in SQ01, otherwise you may required to make the changes in the standard code generated for that query.
    You can find the name of the generated program of the query when you execute the query.
    Reward points if useful.
    Regards,
    Atish

  • 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

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • Date format needs to be in selection screen mm/dd/yyyy but in alv output ..

    hi
    i need help on displaying date in alv output
    date format needs to be in selection screen mm/dd/yyyy but in alv output ..it should be displayed as yyyymmdd
    regards
    Nishant

    hi,
    you are passing the value to ALv using an internal table.
    so store the format  YYYYMMDD date in the internal table and pass it to ALV.
    use the below FM
    DD/MM/YYYY -> YYYYMMDD
    <b>CONVERSION_EXIT_PDATE_INPUT</b>
    rgds
    Anver

  • Month/year input field in selection screen

    Hi,
    Can anyone tell how to declare an input field in selection screen in the format month/year with out day.
    Thanks.
    Prasad.

    hi ,
    I have the same doubt ,
    but its taking invalid input also as in if i enter 13/2006
    Can it be avoided,
    also can the calender be displayed at F4 on such field.
    Thanks in advance
    Regards
    Bijal

  • Date field in Input ready query

    Hi Folks,
    I have created a input ready query on transactional infocube.
    Its working fine and able to input for keyfigures except one keyfigure it is Date Keyfigure.
    I just created one more keyfigure with Datatype as Date so that user will able to enter date aswell in input ready query.
    but problem here is  I have done same changes/enable for the date keyfigure like remaining keyfigures.
    in query anylazer i cannot see input enable for the particual date keyfigure.
    please let me know what are the steps need to do extra for the particular date keyfigure to make enable for input..
    Thanks.

    Hi,
    Thanks for your response.
    if it not happened by IP is there any other option available to update changes in to DSO/Infocube.
    one more thing.I have a created one Multiprovider on the transactional DSO then i created query on the multiprovider,but in query designer i cannot change the option to change mode for the keyfigures.its in display mode only.
    why it is not enabled.is there anythying missing to do..
    Thanks..

  • ABAP Query - Selection Screen Values Usage

    Hi,
       I have created an ABAP Query. For one of the selection-screen fields (CAUFV-FTRMI)
    which is select-options, I want to use the values during coding (in the where clause of a select query)
    in Extras section under the event "record processing". Please suggest how to make the the selection-screen values
    available during record processing event. Thanks in advance.
    Regards,
    Tejas Savla

    Hi Kartik,
                  I need to fetch data from some table KEKO depending on the values entered on the selection-screen for the field CAUFV-FTRMI. So, I need to find a way by which the selection-screen input values are available in the record processing event. The values are available in some variable SP$00002 of the automatically generated report program. But, this variable cannot be used in the Coding section of the ABAP QUERY. Please advise.
    Thanks & Regards,
    Tejas Savla

  • All master data values not shown in query selections

    Hi
    I have created a query on a BasisCube containing the InfoObject 0FUNC_AREA. I loaded data to 0FUNC_AREA and the cube.
    I then created a query on the cube, in which I want to filter on 0FUNC_AREA. However, when I get the list of available values for 0FUNC_AREA not all the values in the master data is shown. It only shows 25 values out of 105.
    As a default, the data shown is only the cube data, so I removed the tick in the checkbox: Show only InfoCube data. Still the same.
    Then I went to the InfoObject and set the 'Query Def. Filter Value Selection' and 'Query Execution Filter Val. Selectn' equal to 'Values in Master Data'. Still the same.
    Then I deleted the contents of the InfoCube. It still shows the original 25 values.
    The really strange thing is, that when I go into the selection screen for 0FUNC_AREA in the BEx and limit the shown values to one of the values available in the master data but not shown in the list, it shows the text of the functional area in the limit summary window. But still when executing the limitation, it cannot find the value!!!
    The problem is the same in LISTCUBE
    I hope some of you can help we with this.
    Thanks
    /Karsten

    Hi Hari
    1) Reactivated the master data, said it was already active.
    2) Could see a difference between the data contained in cube and the remaining data. Otherwise not.
    I deleted cube and master data and reloaded, the problem still persists. I am beginning to suspect a bug in BW.
    I have to determine whether I am going to live with it (as it isn't critical, just a nuisance) or create an OSS on it.
    Thanks for all the input guys.
    /Karsten

  • How to validate input's in selection-screen

    Hi ,
    can any one how to validate input's field's  in selection-screen and each field has diffirent tables and what is the table name which has all the validating fields??
    Thank's in advance..

    hi,
      You can use validate selct-options using select query by obtaining the realtionship from table .Using the selection-screen events You can write code for validation as follows.
    tables:
      kna1.                                " General Customer data
    *"Selection screen elements............................................
    select-options:
      s_kunnr for kna1-kunnr.              " Customer number
    *"Data declarations...................................................
    Data declaration of the structure to hold kna1 details              *
    data:
      begin of fs_customer,
        kunnr type kna1-kunnr,             " Customer number
        adrnr type kna1-adrnr,             " Address
        anred type kna1-anred,             " Title
        erdat type kna1-erdat,             " Created on
        ernam type kna1-ernam,             " Created by
      end of fs_customer.
    *"Constants declarations..............................................
    constants
      w_path type string value 'D:\DOWNLOAD\CUSTOMER'.
    Internal table to hold customer details                             *
    data:
      t_customer like
        standard table
              of fs_customer.
                          AT SELECTION SCREEN OUTPUT                    *
    at selection-screen.
      perform retrieve.
    Form  RETRIEVE                                                     *
    This subroutine retrieve customer data from table kna1             *
    There are no interface parameters to be passed to this subroutine. *
    form retrieve .
      select kunnr                         " Customer number
             adrnr                         " Address
             anred                         " Title
             erdat                         " Created on
             ernam                         " Created by
        into corresponding fields of table t_customer
        from kna1
       where kunnr in s_kunnr.             " END SELECT
      if sy-subrc ne 0.
        message text-001 type 'E'.
        exit.
      endif.                               " IF SY-SUBRC NE 0
    endform.                               " RETRIEVE
    regards,
    veeresh

Maybe you are looking for

  • Addition of a new column in Table Maintenance Generator

    Hi All, I have a requirement in which I have to include a new field in Table Maintenance Generator . This field is not present in the table but its data will be fetched from another table . Pls help me in this regard. I have little idea of Table cont

  • Outlook sync finally works.

    Thanks to mlgatzke for pointing out the Data Execution prevention!!! I did everything everyone suggested and then his fix. Outlook (2003) no longer crashes when closed and deletes the add ons. Sync works. Go to control panel Go to system Go to advanc

  • Screen exit (for newTabstrip) for ME21 TRANSACTION CODE AT ITEM LEVEL

    Hi All ABAPERS, I had a urgent requirement that I need to provide new tabstrip in ME21 tcode at ITEM level. note: not in Item overview. So, friends could you please tell me what is the screen exit for it and if you have steps for it please give me th

  • Cannot back up my pics to DVD??

    Hi, Hope you can help. I select all my pics, click file and then burn to cd. I select my DVD drive from the drop down menu. On the top left of the window it states "free space available on disk 8 457mb"?? When I insert a DVD into my drive (4.7gb) and

  • Airprint - prints photos but not documents.

    I have a HP Photosmart 5515, and have successfully printed photos from my iPad 2, but cannot print text documents.  When I select print it finds the printer, then when I click OK it says "sending to printer", but nothing happens.