Error message in Bex Variable screen

Hello All,
In my BW I have a new variable of type interval for the selection criterion calendar year/month .
I want to check high value of the interval if it is lesser than or equal to current calendar year/month (that is 201405)  then report can be executed.Else if it is greater than current calendar year/month (that is 201405) an error message has to be displayed for the user to change the value.
Can anyone help me in knowing how this can be done.
Many Thanks,
PS

Hi,
This can be handled by writing code in Cmod i_step = 3.
IF I_STEP = 3.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'Give the tech.name of user input variable'
                  IF LOC_VAR_RANGE-HIGH GT SY-DATUM+0(6).
                       CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                          EXPORTING
                            I_CLASS = 'RSBBS'
                            I_TYPE = 'I'                     " It will throw Warning Message
                            I_NUMBER = '000'
                            I_MSGV1 = 'Give the message which you need to display'.
                        RAISE no_replacement.
                  ENDIF.
         ENDLOOP.
      ENDIF.
Hope this gives an idea.
PS:In case you need to throw an error message then replace   I_TYPE = 'I'    by   I_TYPE = 'E'  .
Regards,
AL
Message was edited by: Anshu Lilhori

Similar Messages

  • Throwing error message in BEx variable

    HI,
    I am using one of the variables in the user exit in cmod. in step1 & step2 I determine some values to be poplated in the variables. What is the ABAP command if say I want to show an error message on the variable screen? For Example, if I want to print that the value is invalid or something

    I want to re-phrase my quesitons a little bit.
    IN user exit there are 3 i-steps. What I want to do is the following.
    In i-step 2 I determine the values for 4 variables based on the 2 values that have default values. This works fine.
    However, if the user changes selection, I want to be able to check in i-step3 what user input and return an error i f values are not valid, so that the query does not run. It seems like step3 does not let me do it.
    Thank you,
    Andrei

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

  • Error message during BEx analyzer execute

    Using BEx analyzer, system show error message like below:
    Variable 0P_FVAEX could not be replaced;
    Program error in class SAPMSSY1 mehtod: UNCAUGHT_EXCEPTION
    System error in program CL_RSR_REQUEST and form TEXT_ELEMENTS_GET:VARIABLES_SUBMIT(see long text)
    Who can solve this problem? Thanks!
    Message was edited by:
            Almini Sanbra

    Dear sanbra,
    We have faced the same error and its resolved after applying the
    Following:
    I have applied the following Note
    1079186 Error when you filter by characteristic values
    Please also apply the following patches to your system:
    Support packages and patches ->SAP netweaver->SAP Netweaver->
    SAP Net weaver 2004s->Entry by component->BI java
    Update with the latest patches
    1)BIBASES12P_4-10003477.SCA Patch for for BI BASE SERVICES 7.00  SP12  4
    2)BIWEBAPP12P_4-10003476.SCA Patch for BI WEB APPLICATIONS 7.00 SP12  4
    3)BIIBC12_0-10003495.SCA SP for BI INFORM. BROADCASTING 7.00  0
    Regards,
    Suman Raju.
    ***********IF useful some points please***********

  • How to catch error message inside a variable?

    Hi,
    I'm trying to catch the error message inside a variable using this this command below:-
    <%=odiRef.getPrevStepLog("MESSAGE")%>
    Could you please tell me what is the right approach to capture the error message inside a variable.
    Thanks
    Anindya

    Hi Bhabani,
    I have done this and select an oracle schema.But the variables only captures the (null).Please look into this.You must have one step prior to this refresh variable. Then only it can get the status as given below.
    Returns the one-letter code indicating the status with which the previous step terminated. The state R (Running) is never returned.
    D: Done (success)
    E: Error
    Q: Queued
    W: Waiting
    M: Warning
    If you want the complete error details then you will face issues in case of multi line message. For this best option would be jython variable.Could please provide me some idea how to use this jython variable.I will update you on this soon
    Thanks
    Anindya

  • Error message: "Unable to load screen : root. ChangeLocation.ChangeLocationStart"

    I paid for & downloaded zagat to go app from handmark & it fails to run on my bb tour. Here is the error message I keep getting on my bb tour - "Unable to load screen :  root. ChangeLocation.ChangeLocationStart".   I've tried everything, including uninstalling and reinstalling the zagat app and I keep getting the very same error message: "Unable to load screen : root. ChangeLocation.ChangeLocationStart".
    btw, I have plenty of free space on my device.  HELP!!!
    I tried Handmark support several times, to no avail.  Thanks very much.  mike

    I'm having the same problem.  Have tried uninstalling, reloading, nothing.  Also read something about do not select Verizon as a carrier, but to use bizB, however on the 7. (new version) I'm trying to install bizB is not an option.  Help please!

  • Handling Error message in Module Pool screen

    Hi Folks,
    I have developed a ALV report for table maintenace and I am calling the Dialog screen (small one) and Create and update the records of the Ztable through that screen.
    Presently I am handling the error message in the main ALV screen .
    My requirement is that I have to handle those error messages in small module screen.
    How to do the same ?
    Thanks.
    Hemum.

    crate message se91.
    insert failure
    if sy-subrc  <>0.
    message e001 with 'all readt exist'.
    endif.

  • 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

  • I'm trying to print some pictures in iPhoto but a error message apears in the screen saying that there is no theme installed and I need to have some theme installed. I don't know how to do that. Need help.

    I'm trying to print some pictures in iPhoto but a error message apears in the screen saying that there is no theme installed and I need to have some theme installed. I don't know how to do that. Need help.

    Reinstall iPhoto.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 or later they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

  • Connection between 2 variables in bex variables screen

    Hi all,
    Can anyone help me please with the following scenario?
    I need to create a connection between 2 variables in BEx variables screen.
    Example:
    2 variables in the selection screen:
    Prod Hier. 1
    Prod Hier. 2
    When a user make a selection in the first var. (Prod Hier. 1) in the var screen, i need that the F4 help in the second variable will show only the Prod Hier. 2 that is under Prod Hier. 1.
    Any help will be gratitude,
    Y.B

    Hi,
    your question:
    When creating a replacementpath variable you don't have the option to make it depends on other variable entry (i didn't find the option) I'm using BEx 7
    Answer:
    In BI7.0 Query designer, replacement path with other variable entry is possbile.
    your requirement:
    When a user make a selection in the first var. (Prod Hier. 1) in the var screen, i need that the F4 help in the second variable will show only the Prod Hier. 2 that is under Prod Hier. 1.
    my answer:
    replacement path with variable  will not suit your requirement as far as i know.. any way let us wait for other experts reply...might be someonw knowing.
    if it is useful assign points.
    Regards,
    Senthil

  • When I connect to USB port error message appears on computer screen and i tunes software shuts down. This is a brand new ipod shuffle.

    When I connect my brand new ipod shuffle to the USB port I get an error message on the computer screen and the i-tunes software shuts down.

    URGENT help please!!! I have looked everywhere on the internet and theres no information on anything

  • BEx variable screen to exclude values from selection

    Hi,
    I have a requirement in the BEx report variable screen here my user want to select values for the variable and
    from the values in selection on right hand user wants to exclude few values.I want the red color exclude button to appear in the screen.can anyone tell me whether there are any commands in WAD for variable personalization.
    Thanks,
    Harsha

    Hi,
    Try this.
    TABLES : ztable.
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER : p_field1 TYPE field1_in_ztable,
                            p_field2 TYPE field2_in_ztable.
                            p_field3 TYPE field3_in_ztable.
                            p_field4 TYPE field4_in_ztable.
                            p_field5 TYPE field5_in_ztable.
    SELECTION-SCREEN:END OF BLOCK b1.
    DATA : itab TYPE TABLE ztable,
                 wa_itab TYPE ztable.
    AT SELECTION-SCREEN.
          MOVE p_field1 TO wa_itab-field1.
          MOVE p_field2 TO wa_itab-field2.
          MOVE p_field3 TO wa_itab-field3.
          MOVE p_field4 TO wa_itab-field4.
          MOVE p_field5 TO wa_itab-field5.
    INSERT ztable FROM wa_itab.
    IF sy-subrc = 0.
    MESSAGE 'Successfully saved' TYPE 'I'.
    ENDIF.
    Thanks,
    Sri.
    Edited by: Sri on Jul 28, 2009 4:15 PM

  • Error message in Bex after I make display attribute navigational

    Hello,
    Regarding 0FIAR_C03.  There's a display attribute called "Customer Classification".  I made it navigational and re-activated the cube.  Thereafter, the existing queries on this cube display the following error message when I try to edit them:
    1) Variable 0P_KEYD2 for characteristic Posting Date has been converted to a required entry.
    2) Variable 0P_KEYD3 for characteristic Clearing has been converted to a required entry.
    Does anyone understand what this means and how I can resolve it?
    Thank you,
    Jim

    Hello Bhanu,
    Yes, I can edit the query after seeing these messages.
    I also received an error message within the RSA1 after I turned on the Navigational Attribute, but it seemed like more of a warning than an error message, so I was not concerned....until I ran into this error immediately upon going into Bex.
    In my past experiences, I never had an issues after making something navigational, but this seems to be related to that change....
    Thank you.

  • Bex variable screen

    Hello gurus:))
    I've the folloeing question:
    I have user exit variable which is ready for input.
    There after the input step I want to check the values and acording the check results proceed or pop up the error message and cause the variable screen  to appear.
    So:
    - How can I cause to pop up the error message from user exit code?
    - How can I cause the variable screen to appear from the user exit code ?(Should I RAISE some kind of exception - which one ?)?
    Thanks in advance, waiting for replay:))

    Check out this Howto document (Funny, I found out about this document yesterday); it is very well explained.
    https://websmp106.sap-ag.de/~sapdownload/011000358700002765042003E/HowToVerifyVariableInput.pdf
    If you don't have access to service.sap.com, give me your email address, I'll send you the document.
    Regards,
    John

  • Error message into a Variable.

    Dear users,
    I have a rather usual (unusual from the weekend beers for me though!!) query which I can't figure out a proper way to implement.
    My requirement is like this:
    I have a message class in which I want to define a text 'Employee number & not found'.
    I want to use this in the program, but not to raise this error. Instead, I want to move this error message with the Employee number into a Character(200) variable.
    So instead of using MESSAGE e0xx(messageclass) USING employee number, I would like to move the error text into a variable which looks like:
    lv_text = e0xx(messageclass) USING '1234'   which stores the text 'Employee number 1234 not found' in lv_text.
    How would I acheive it??
    Thanks, V!

    Try tis way
    message e999(00) with i_emp-empno into lv_text.
    press f1 in message will provide you more details

Maybe you are looking for

  • Third-Party Keyboard's top row (vol., brightness, etc)

    I was wondering how to get the keyboard shortcuts for volume/brightness to work on bootcamp while using a third party keyboard.   I have a Razer Blackwidow Ultimate-Mac Edition.  I have the drivers and firmware up to date.  When I hit the F12/Vol UP

  • Call a word/pdf document

    Hi all, I would like to know which is the best way to open a word/pdf file from an Apex page. I don't know whether locate the file in the server or in load it as an static file. I would imagine it would be quicker to put it in the server. I would app

  • I couldn't get my maps to work while out today which I needed for directions anyone know why ? It kept saying no server .

    I couldn't get my maps to work while out today which I needed for directions anyone know why ? It kept saying no server , is it to do with my settings, my network provider, 3G or what ? Anyone help please. Thanks

  • Icons(apps) appearing large

    Icons (APPS) appearing LARGE now and cannot scroll correctly.  i know its an easy fix, just cannot seem to find it...HELP!!!

  • Performance issues w/LR 4.4

    ugh...I am desperately searching for (more) ideas on how to make my LR 4.4(or my computer) run faster or perform quicker without taking forever to load catalogs/ previews and etc. Any suggestions on where I can look to get my computer to work better