Message at the variable screen

Hello,
I would like that message pops up at the variable screen during the execution of the report.
How can I implement this functionality?
Thanks

Hi,
Use the following Code, don't write in between Case and EndCase, after ENDCASE you write code for I_STEP  = 3.
See PDF
https://websmp203.sap-ag.de/~sapdownload/011000358700002765042003E/HowToVerifyVariableInput.pdf
Re: send message from EXIT_SAPLRRS0_001
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
     IF I_STEP = 3.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'MONTH'.
                  IF LOC_VAR_RANGE-LOW(4) LE 2010.
                       CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                          EXPORTING
                            I_CLASS = 'RSBBS'
                            I_TYPE = 'I'                     " It will through Warning Message
                            I_NUMBER = '000'
                            I_MSGV1 = 'Pls Enter Year Greater then 2010'.
                        RAISE no_replacement.
                  ENDIF.
         ENDLOOP.
      ENDIF.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
     IF I_STEP = 3.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'MONTH'.
                  IF LOC_VAR_RANGE-LOW(4) LE 2010.
                       CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                          EXPORTING
                            I_CLASS = 'RSBBS'
                            I_TYPE = 'E'
                            I_NUMBER = '000'
                            I_MSGV1 = 'Pls Enter Year Greater then 2010'.
                        RAISE Again  " It won't allow user untile he/she give correct values
                  ENDIF.
         ENDLOOP.
      ENDIF.
Thanks
Reddy

Similar Messages

  • Pop up message on the variable screen in portal when report is run

    Hello
    I have a requirement to pop up a message stating " Date should not be entered before 2010 "on the variable screen of the report if date is entered before 2010 by the user when the report is run.
    Please can someone tell me how to implement this?
    thanks

    Hi Tom,
    The logic could be to include code in CMOD forat variable with ISTEP=2.
    IF I_STEP = 2.
    LOOP AT i_t_var_range into wa_t_var_range where vnam = 'Date Varaible'
    <write condition to check the year entered. First, using function module DATE_TO_PERIOD_CONVERT, extract year from Date>
    <   CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
            EXPORTING
              I_DATE               = ZT_SDT
            I_MONMIT             = 00
              I_PERIV              = 'Variant'
           IMPORTING
             E_BUPER              = zbuper
             E_GJAHR              = zbdatj this is the year entered
           EXCEPTIONS
             INPUT_FALSE          = 1
             T009_NOTFOUND        = 2
             T009B_NOTFOUND       = 3
             OTHERS               = 4>
    >
    Then check the year for the condition.
    If correct.
    exit.
    else.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    I_CLASS = 'RSBBS'
    I_TYPE = 'E'
    I_NUMBER = '000'
    I_MSGV1 = 'Date should not be entered before 2010'.
    raise again.
    endif.
    endif.
    endloop.
    Hope this helps you.!
    -Pradnya

  • Web-based BEx: How to display a customized message on the variable screen??

    Hi All,
    I'm now using the web-based BEx. Recently I want to display a customized message (e.g. the usage of the report) on the first page (i.e. the variable entry screen) of the query. Is it possible?
    Thanks.
    BR,
    M. Ng

    Hi marco,
          Check here. itmay help you.
    Custom Messages WAD
    Thanks,
    Vijay.

  • How to add customize message on the variable selection screen in the query

    Hi all,
    Can we add an customise message on the variable selection screen in the query? If yes please let me know how it can be achevied?
    Thanks,
    Rani

    Hi Rani,
    I faced a similar issue (for what I understand your request is).
    My requirement for the Variable Screen was to do:
       1) place a link to a ppt file
       2) remove buttons "Save", "Save As...), "Delete"... the standard buttons come when running the Query or WebTempl
    We were using a Web Templ for BI7.0
    I struggled trying to find out how to do it. My conclusions are:
    - WAD, not sure we can accomplish it using a Web Template but i did not "play" a lot with the Web_Template Properties in order to know
    - XHTML, I was told in my post HTML modification was the way, but I have close to nil background in HTML and couold not find the way of accessing the Variable Entry screen
    For instance, I had to remove similar buttons and change some font size from a link on the Web Template (WAD), which was pretty straight forward. In WAD the buttons come with its own icon and to increase the Font size for that link we used XHTML (<font size="2" >). But the heck of the variable screen...well, i just did not get trhough to it to modify it in any way.
    Good luck,
    Definetly in a Query I would say that no.
    alex
    PS: If anyone had a better insight, please feel free to share it.

  • Adding a message to the variable selection screen

    Hi there
    I have been asked to find a way to add a message to the variable selection screen.
    It appears that DIVISION needs to be added to the selection screen, as this makes the query run faster. However, they don't actually want the user to enter a division, as this causes other problems.
    So, ideally, I would be able to add a message to the variable selection screen that advises users against entering a value for division.
    I don't know how to do this.
    I create the web template, and I can therefore add messages or anything you like to the template, but I don't believe I have any control over the variable selection screen.
    Does anyone know if this is possible?
    We are running a 2004s system if that helps.
    Cheers,
    Andrew

    Hello,
    Well i think if you make the variable used for division not ready for input it would not be available for the users to input anything.
    you can find the checkbox for this in the properties of the variable in query designer.
    Hope this matches your requirement.
    Regds,
    Shashank

  • Display message in BEx variable screen in 7.0

    In BEx 3.5 I was able to display a message to the user when they enter a value they are not authorized for in the variable screen.  This was done using the function module RRMS_MESSAGE_HANDLING in the variable user exit at step 3 and raising no_replacement.
    This is no longer working as of BEx frontend 7.0.  Is there a way (or different function module) I can display a message to the users on the variable screen?
    Edited by: Troy on Dec 19, 2008 8:56 AM

    I am too facing same scenario. What did you do to have variable screen screen displayed ?.

  • Compounded characteristic are not displayed in the variable screen (BI 700)

    Hi Experts,
    How to display compounded characteristic  in the variable screen of queriies?
    Example :
    IO 0PROFIT_CTR is compounded to 0CO_AREA. Tryimg to select 0PROFIT_CTR via a variable,
    only values of 0PROFIT_CTR are displayed in F4 opo up, not those of 0CO_AREA.
    0CO_AREA is not restricted in any way in query definiton.
    This happens in BEx Analyser as well as in web apllication.
    Did anybody face this issue? How to solve it?
    Thanks in advance for helpful replies.
    Regards
    Joe

    Hi,
    Thanks for replies. Possibly I did't explain my problem i a correct way.
    'I 've a variable for 0PROFIT_CTR. When I call F4 , values for 0PROFIT_CTR are displayed
    e.g. as
    7062 PC 7062
    7062 PC /062
    My problem is, that these PCs belong to different Co_areas. so i expected
    3200 7062 PC 7062
    4300 7062 PC 7062
    3200 an 4300 are representing compounded Co_areas in this example. In 3.5 this worked perfectly,
    if Co_areas was not restricted itself with a variable or a defined value.
    Now I'm looking for the option to achieve this as well in 700.
    Regards
    Joe

  • HT201365 When I upgraded my iPhone 4s to IOS7, I lost all my app icons. Where did they go? Interestingly they are still listed in notifications and I could play words with friends when I got a message on the home screen that it was my turn (but still no i

    When I upgraded my iPhone 4s to IOS7, I lost all my app icons. Where did they go? Interestingly they are still listed in notifications and I could play words with friends when I got a message on the home screen that it was my turn (but still no icon)

    Hey linfrommi,
    Thanks for the question. I understand that you are having trouble locating some application after the update to iOS 7. To troubleshoot this issue, let’s reset the home screen layout of your iPhone, which should move all of your applications to the second “page”:
    Reset iPhone settings - iPhone
    http://help.apple.com/iphone/7/#/iph7a2a9399b
    Reset Home Screen Layout:  Returns the built-in apps to their original layout on the Home screen.
    Thanks,
    Matt M.

  • How to change the width of the variable screen?

    Hi
    like in the subject mentioned i need to know how i can change the width of the variable screen....
    right now i have to scroll if i want to see the right part auf the variable screen...
    maybe i can change the width with css?

    Hi,
    Using CSS specify the table width for the variable screen and include the Css in the header section of the table.

  • How do change the text color in the variable screen ?

    Hi Experts ,
    I would like to know about , How do change the text color in the variable screen ?
    Using web templates (Analytical) can get the output. It has the variable screen contains 6 fields (Company code, Country , Region , COB, Plant and Purchasing Group). I want to make RED color text on Plant. Please help me .
    Thank you ,
    Prasad.

    Hi,
    I am looking for nearly the same. What I have found is that it seems to manipulate the SAP theme that is used in standard when template is executed in the portal. Just display the source code of the HTML and there you will see the included SAP theme (normally SAP_TRADESHOW). Then you have to go to the SAP portal and change this stuff. But for that you have to know where to find it and what impact this change has.
    I am not pretty sure if this is the right way. But as I want to change the standard layout of a whole template to a customer specific layout I think there is no other way in BI7.0.
    Regards,
    Peter

  • How to display the variable screen with report in the same page together

    our customers want to design a web application use BEx
    they want the variable screen can be displayed with the report result in the same web page together
    so they can modify the variable filters any time and refresh the report with new variable filter
    i have tried the navigation area,but it seems only use new filter to the data athough get,we can't change the filter we input in the variable screen.
    is there any way to display these together?
    even I can use BSP.

    I think to display var screen with the report is not possible.(At least it will not be static). You need to refresh the report and choose the varibale at that time.
    Other option could be to bring all the possible value in the report and provide your user with the filter value. But this will make your report slow as you may have to bring more data in the filter.
    Thanks...
    Shambhu

  • Sorting in the variable screen

    Hello,
    I use BW 7.0 and have a problem with the variable screen.
    In the web-report I have three queries with different and same variables. I know that I can adjust the sorting of variables in the query designer. But this has no affect to the sorting of the variable screen.
    Does anybody know a solution?
    thanks
    bertl

    Hi,
    You can sort the Char.Values by doing settings in Query Designer :
    Say for 0calmonth :
    In its Display properties tab,You select appropriate options in
    Sort Char -> select the name
    sort by -> Key/Text
    Sort Direction -> Ascending/Descending.
    You will then have them in required order.
    ALso if you want it only for F4 help:
    In F4 help screen,you will see two arrow buttons next to Char. name. they are useful for sorting the values to either descending or ascending.
    Hope it helps:)

  • How to order the variable screen if some variables are in differnet Queries

    Hi,
    i have a workbook in Bex Analyzer (BI 7.0) which contains 4 Queries (A,B,C,D). In the variable selection screen are 15 variables. One variable is used only in one Query (C). 6 variables are used in 2 Queries(1xA,B; 2xB,C; 3xA,D) and 8 variables are used in 3 Queries(A,B,C).
    If I open the variable screen in the workbook the 15 variables are in a confusing order.
    How can I change the order of these variables?
    I tried to order the variables in the Query Designer (Variable Sequence) for every Query but it didn't work.
    Best Regards.

    Hi Jordan,
           There is a best practice when using the variables in a the queries...Make the most used ones in"Personalise variables" option available in the pop up screen for the variable selection....
         Also,in order to have a correct sequence of variables ,,just arrange them in order u want using "query properties"....
        Hope this helps you..and assign the points if ts needful
    Regards,
    Venkat.

  • Error message at the selection screen while processing screen logic

    Hi All,
      I need to show error message at the selection screen.
    I am calling the screen inside the START-OF-SELECTION, and processing the calculation and putting the data into i_final internal table. If internal table I_FINAL is empty I have to show error message saying ' DATA is empty' , this error message should be shown at the SELECTION SCREEN (Report input screen 1000) and provide the user to enter the input values once again.
    But whenever I am populating error message, I am getting a pop up to chose exit, and process is terminating.
    Since I am in the middle of the screen processing whenever I am giving a error message.
    Please let me know how can I populate error message without terminating the process while I was in the middle of the screen processing logic.
    Regards,
    Mahesh

    hi
    If u are trying to validate a field use
    AT SELECTION_SCREEN ON <field>
    if want to validate a block
    AT SELECTION SCREEN ON <block>
    If Universal Validation
    AT SELECTION SCREEN
    and display a 'E' Message inside the block.
    You can Enter Correct Value and start processing Forward.
    hope this will help.
    Regards
    Sumit Agarwal

  • 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.

Maybe you are looking for

  • Ipod touch not showing in iTunes

    Anyone help? On an imac with 10.6.1 Mac OS and iTunes 9.1.1 Recently the HDD failed and Apple replaced, but since then ipod touch not recognized in iTunes. Have followed all the steps in the support document for resetting, rebooting, reinstalling etc

  • Help needed in SQL performance - Using CASE in SQL statement versus 2 query

    Hi, I have a requirement to find count from a bunch of tables. The SQL I have gives the count of all members. I have created 2 queries to find count of active and inactive members. The key difference is only the active dates. Each query takes 20 seco

  • "Photos" option button in icloud control panel not working

    Photos option button in icloud control panel not working...it is not greyed out, and it is ticked, but clicking on it has no effect. Windows 8.

  • My notebook whenever starts it opens recovery manager to recover system daily.

    sir/madam whenever i start my pavilion g4 1200tx windows 7 home basic 64 bit ,system startup repair starts to repair  my system but it fails to repair it and opens recovery manager to recover my system daily.so tell me what i can do.????

  • Macbook crashes when installing yosemite

    I have been trying to install Yosemite and it will download without a problem, but when I attempt to install it, my Macbook Pro immediately crashes. I've had my computer completely swiped (E&I) at the Apple Store who was supposed to update me to Yose