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

Similar Messages

  • Error message for the select options

    hi.
    i want to throw thw error message if the user enters the value not valid(not in the range) for the zregion1 of zbwcntry of the select options.
    and user should be able to correct it before moving ahead.
    Also,iis not a mandatory field,So if it is initial,it can b blank.
    but if the input doesnot lie in the range,it should give error message on the selction screen.
    please guid with the line of codes.

    Check out this code:
    TABLES: PERNR.
    SELECT-OPTIONS VO_PERNR FOR PERNR-PERNR.
    AT SELECTION-SCREEN ON VO_PERNR.
      IF VO_PERNR IS INITIAL.
        MESSAGE 'Enter some employee IDs' TYPE 'E' DISPLAY LIKE 'S'.
      ELSE.
        IF '000001' NOT IN VO_PERNR.
          MESSAGE 'Employee id: 1, not selected' TYPE 'E' DISPLAY LIKE 'S'.
        ENDIF.
      ENDIF.

  • 'Error when generating the selection screen "0500"

    Dear all,
    I have copied a function group QEES to ZQEES through SE80. In that I have copied all screens, includes, function modules etc..
    Now when I activate the ZQEES, I get an error 'Error when generating the selection screen "0500" of report "SAPLZQEES'.
    There is no problem with screen 0500, I have activated it.
    But when I activate ZQQES, I get the error.
    Please let me know the reason for this.
    It will be highly appr
    Thanks in advance,
    Sachin

    Hi Sachin,
    there could be a problem while copying in renaming, delete the Function group ZQEES  and recopy the  Standrad function group and only rename  the  the FM QEES_SHOW_SELECTION_SCREEN to ZQEES_SHOW_SELECTION_SCREEN and copy and activate it will work.
    regards,
    Srini

  • Error when Generating the Selection Screen?

    Hi Guys,
                   When i am executing the program with this code .I am getting this type of Error
    " Source code   ZUSFICOR00013_MM_ACNT_COSTING                Line     0
    Error when generating the selection screen "1000" of report
                 I got this Error while activating my program.The code which i wrote is the below one.
    SELECTION-SCREEN: BEGIN OF LINE.
    Select-Options : S_MATNR for MBEW-MATNR ."MatchCode Object MAT1,
    SELECTION-SCREEN COMMENT 2(10) TEXT-004 for field s_matnr.
    SELECTION-SCREEN: END OF LINE.
    Thanks,
    Gopi.

    Hi Seshu,
                  While doing EPC for the Below code
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(15) TEXT-004 for field s_matnr.
    Select-Options : S_MATNR for MBEW-MATNR ."MatchCode Object MAT1,
    SELECTION-SCREEN: END OF LINE.
                  I am getting an Warning like " Selection text or parameter for selection field S_MATNR is not maintained"  How to coorect this one?
                   and also for the this Below Code
    s_fieldcatalog-col_pos = 1.
    s_fieldcatalog-fieldname = 'BWKEY'.
    s_fieldcatalog-tabname = 'i_MBEW_out'.
    s_fieldcatalog-seltext_l = 'Plant'.
    append s_fieldcatalog to t_fieldcatalog.
    clear s_fieldcatalog.
    s_fieldcatalog-col_pos = 2.
    s_fieldcatalog-fieldname = 'MATNR'.
    s_fieldcatalog-tabname = 'i_MBEW_out'.
    s_fieldcatalog-seltext_l = 'Material'.
    append s_fieldcatalog to t_fieldcatalog.
    clear s_fieldcatalog.
    s_fieldcatalog-col_pos = 3.
    s_fieldcatalog-fieldname = 'MAKTX'.
    s_fieldcatalog-tabname = 'i_MBEW_out'.
    s_fieldcatalog-seltext_l = 'Material Description'.
    append s_fieldcatalog to t_fieldcatalog.
    clear s_fieldcatalog.
                     I am getting EPC Error like " Char. strings w/o text elements will not be translated:
    'Plant'"
         Can u please tell me How to correct these type of EPC Error's.
    Thanks,
    Gopi.

  • Error when generating the selection screen '0005'of report 'XYZ'

    Hi All,
       We copied std SAP pgm and were trying to rename the one of the screen but couldnt. When I tried to transport it to test system it went in to dump giving the error  Error when generating the selection screen '0005'of report 'XYZ' .
    Please advise me on how to remove this dump.
    Regards
    Saurabh

    If you look at the selection screen, you'll probably find that there are overlapping elements (text elements over select-options) or something like that.
    Rob

  • Hello, i am having problems getting face time to work, I keep getting an error message saying the server could not process the registration, I am using the username and password I always have and it has always worked in the past, any ideas?

    Hello, i am having problems getting face time to work, I keep getting an error message saying the server could not process the registration, I am using the username and password I always have and it has always worked in the past, any ideas?

    We aren't Apple, just users like you volunteering to help other users with problems. Threatening to go to Samsung doesn't mean anything to us. What troubleshooting have you tried so far?

  • "Get Variants" button disabled after error message in AT SELECTION SCREEN

    Hi,
    In "AT SELECTION SCREEN" I throw an error message if certain criteria return no data. 
    After the error message is thrown, the button for choosing variants no longer appears to work.  I click it and the variant selection box doesn't come up.  It just changes the values that have been populated from red to black. 
    What is the code that remedies this?  If an error is thrown, it should allow you to select a variant still. 
    Thanks,
    Kevin

    "AT SELECTION SCREEN" is not an option here.  Let me clarify.
    In START-OF-SELECTION, I call another program with a SUBMIT statement.  That program uses a logical database.  So it makes no sense to move this to "AT SELECTION SCREEN".  Even when I did that, I still couldn't solve this problem. 
    If the SUBMIT statement returns no data (if sy-subrc = '4') then I need to go back to the initial screen.  I need to display some kind of message, of type I or E or S, I don't care. 
    It just needs to go back to the selection screen and VARIANTS need to WORK, and you need to be able to SAVE the variants.
    For some reason, if I get no data with the SUBMIT statement, I can display a message and get back to the selection screen but variants do not work.  I've tried EXIT, STOP, CALL SELECTION SCREEN 1000 (the only one in the program), END LIST-PROCESSING, etc.  NOTHING WORKS!

  • Error when generating the selection screen "0100" of report "SAPMZMATMAS

    How to over come this error
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    *SELECTION-SCREEN BEGIN OF LINE.
          SELECTION-SCREEN COMMENT 1(6) TEXT-002 FOR FIELD P_STATUS.
          PARAMETERS: P_STATUS(18)  TYPE C." ZMATMAS-STATUS.
          SELECTION-SCREEN COMMENT 24(8) TEXT-003 FOR FIELD S_MATNR.
          SELECT-OPTIONS: S_MATNR FOR ZMAT-MATNR  NO-EXTENSION.
       SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 100 .
    100 screen i am generating as selection screen
    1100 is my main screen
    please reply,
    Thanks in Advance.
    Vamsi

    If you look at the selection screen, you'll probably find that there are overlapping elements (text elements over select-options) or something like that.
    Rob

  • Error when generating the selection screen "1000"  for Report ztest

    Hi Experts,
    I am getting this strange error while trying to activate my report. I simply copy paste report from my other system to new system it was working fine there. I also created all include program etc.
    While I am trying to create "Selection-text" it is giving message that "Program contain some serious syntax error" while checking syntax saying that "Program is syntactically right".
    Any idea how to solve this???
    Regards,
    Gourav

    Here is the code::::
    SELECTION-SCREEN BEGIN OF BLOCK select  WITH FRAME TITLE text-sl1.
    Component
    SELECT-OPTIONS:
           s_xcide            FOR gw_zsmmess_compo-xcide
                              NO INTERVALS
                              MATCHCODE OBJECT zsm_xcide_oi.
    SELECTION-SCREEN END OF BLOCK select.
    SELECTION-SCREEN BEGIN OF BLOCK prcopt  WITH FRAME TITLE text-sl2.
    Default severity code
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-dsc.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_dfsevc   LIKE gw_zsmglob_sever-sevco
                           OBLIGATORY
                           MATCHCODE OBJECT zsm_sevco
                           DEFAULT '3'.
    SELECTION-SCREEN COMMENT 37(30) pt_sevtx.
    SELECTION-SCREEN END OF LINE.
    Minutes to wait before re-issuing alert
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-ria.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_aleexp(3) TYPE n
                            OBLIGATORY
                            DEFAULT '45'.
    SELECTION-SCREEN COMMENT 37(10) text-min.
    SELECTION-SCREEN END OF LINE.
    Use component specific parameters Yes/No
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-cpu.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_usecsp   RADIOBUTTON GROUP rg1  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(10) text-rby    FOR FIELD p_usecsp.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_dnucsp   RADIOBUTTON GROUP rg1.
    SELECTION-SCREEN COMMENT 35(10) text-rbn    FOR FIELD p_dnucsp.
    SELECTION-SCREEN END OF LINE.
    Create/update component specific parameters automatically
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(32) text-cpc.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_updcsp   RADIOBUTTON GROUP rg2.
    SELECTION-SCREEN COMMENT 35(10) text-rby    FOR FIELD p_updcsp.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_dnccsp   RADIOBUTTON GROUP rg2  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(10) text-rbn    FOR FIELD p_dnccsp.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-afo.
    SELECTION-SCREEN POSITION 33.
    Fire one alert per component/error type combination
    PARAMETERS: p_afrerr   RADIOBUTTON GROUP rg3  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(50) text-afe    FOR FIELD p_afrerr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    Fire one alert per component (= outbound XI interface)
    PARAMETERS: p_afrcom   RADIOBUTTON GROUP rg3.
    SELECTION-SCREEN COMMENT 35(50) text-afc    FOR FIELD p_afrcom.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    Fire one alert per run
    PARAMETERS: p_afrrun   RADIOBUTTON GROUP rg3.
    SELECTION-SCREEN COMMENT 35(50) text-afr    FOR FIELD p_afrrun.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-sel.
    SELECTION-SCREEN POSITION 33.
    Select messages since last run
    PARAMETERS: p_lstrun   RADIOBUTTON GROUP rg4  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(40) text-slr    FOR FIELD p_lstrun.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    Select messages in selected interval
    PARAMETERS: p_mintvl   RADIOBUTTON GROUP rg4.
    SELECTION-SCREEN COMMENT 35(40) text-sin    FOR FIELD p_mintvl.
    SELECTION-SCREEN END OF LINE.
    Message selection interval
    SELECTION-SCREEN BEGIN OF BLOCK msgfilt WITH FRAME TITLE text-msf.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(10) text-icr.
    SELECTION-SCREEN COMMENT 14(05) text-ifr.
    SELECTION-SCREEN COMMENT 25(05) text-dat       FOR FIELD p_stadat.
    Select messages - start date
    PARAMETERS: p_stadat   TYPE d.
    SELECTION-SCREEN COMMENT 46(05) text-tim       FOR FIELD p_statim.
    Select messages - start time
    PARAMETERS: p_statim   TYPE t.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(05) text-ito.
    SELECTION-SCREEN COMMENT 25(05) text-dat       FOR FIELD p_enddat.
    Select messages - end date
    PARAMETERS: p_enddat   TYPE d                  DEFAULT sy-datum.
    SELECTION-SCREEN COMMENT 46(05) text-tim       FOR FIELD p_endtim.
    Select messages - end time
    PARAMETERS: p_endtim   TYPE t                  DEFAULT sy-timlo.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK msgfilt.
    SELECTION-SCREEN END OF BLOCK prcopt.
    SELECTION-SCREEN BEGIN OF BLOCK testopt WITH FRAME TITLE text-tso.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(10) text-tst.
    SELECTION-SCREEN POSITION 33.
    List only, no updates
    PARAMETERS: p_lstonl    RADIOBUTTON GROUP rg5  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(14) text-tsl       FOR FIELD p_lstonl.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    Execute updates
    PARAMETERS: p_update    RADIOBUTTON GROUP rg5.
    SELECTION-SCREEN COMMENT 35(14) text-tsu       FOR FIELD p_update.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK testopt.
    *eject
    INITIALIZATION.

  • Need help in displaying error message on the same screen

    Hi Experts,
    I have written a report which gets called from IW52 by clicking one of the action items. Now in my report when I am trying display an error message it is getting displayed at the bottom of a blank screen. My requirement is to display it at the bottom of the IW52 screen, so that user can rectify the error.
    Please help.
    Regards,
    Sambaran Ray.

    Hi,
    Probably you need to find a way to enhance the standard code.
    But make one thing sure that the code (included bu you) gets fired only when that specific report is being executed. Else it may harm the standard functionality.
    Hope this helps you.
    Regards,
    Tarun

  • How to propogate the error message on the layout screen

    Hi,
    I have a FM call in the OnAction of a button, if that FM returns an exception, the system throws an exception
    raise exception type cx_wd_no_handler
            exporting
              textid        = cx_wd_no_handler=>kind_old
              old_exception = `NO_ZIP_CODE`.
    But I want the long text of this exception to be shown on the screen when I run the Web Dynpro Application...How to go about this??
    Thanks,
    Deepti Kaza.

    Deepti,
    How did you solve this issue
    Thanks
    Bala Duvvuri

  • Select option values disappearing from the  Selection screen

    Dear experts
    I have a selection screen in a report which has push button in the Application toolbar . When I press the button in the application toolbar it should get the count of the output just like in se16 and display it as message.
    I have added the button and I am processing the same in the AT-SELECTION_SCREEN event
    ie
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'FC01'.
        PERFORM get_query_count.
      ENDIF.
    FORM get_query_count .
      CREATE OBJECT g_model.
    l_query_count  = g_model->get_query_count(
      MESSAGE s078  WITH l_query_count .
    ENDFORM.
    Here the problem is I am getting the message but the selection screen values are disappearing after the same .Now the strange thing I just hardcoded the l_query_count without going in to the class method , but then the selection screen values  are not disaapearing?
    Is there any limitation for using classes at AT SELECTION SCREEN event

    Hi,
        Try to write changing in perform.
    AT SELECTION-SCREEN.
    IF sscrfields-ucomm = 'FC01'.
    *PERFORM get_query_count changing p_count.*
    ENDIF.
    *FORM get_query_count changing l_query_count .*
    CREATE OBJECT g_model.
    l_query_count = g_model->get_query_count(
    MESSAGE s078 WITH l_query_count .
    ENDFORM.
    Regards,
    Srini.

  • 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

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

  • Error message disble the Fields in Selection Screen

    Hi,
    In my Report i am validating some fields as mandatory.
    If the field is initial then one Error message should be display in the screen and user has to modify the selection screen.
    But after displaying the errro message my selection screen is input disable except the mandatory field.
    I want all the fields should be input enable.
    Sample code for Error message,
    MESSAGE E018 WITH 'Enter Plant'.
    Please provide the code for this.

    Performing checks on SELECTION-SCREEN
    - if the check uses only one independent field (e.g.: value exist in a table) use a[ AT SELECTION-SCREEN ON <field>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_2@2@], the field will be editable when error is raised
    - if the check uses some fields, group them using [SELECTION-SCREEN BEGIN OF BLOCK <block>/END OF BLOCK <block>|http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_BLOCK.htm] and then [AT SELECTION-SCREEN ON BLOCK  <block>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_4@4@], each field of the block will be editable when error is raised
    So, if you really want that each and every field be editable when an error is raised, declare every parameter and select-options in a big block, and perform the check in a unique AT SELECTION-SCREEN ON BLOCK xxx.
    Use Error message, Warning and Information don't break the flow of the report.
    Regards,
    Raymond

Maybe you are looking for