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

Similar Messages

  • Adding the field in selection screen

    Hi Guru's,
    how can i add the field in selection screen of t code qa33.
    can any one help me pls.
    Thanks & Best Regards,
    Rakhi.

    You can enhance the standard program RQEEAL10 using implicit enhancement points.
    Click the spiral (Enhance) button (Shift + F4)
    Go to Edit -> Enhancement operations -> Show Implicit Enhancement Poitns
    Create an Enhancement Implementation and include your code there.
    See the following link -> Source Code Enhancements - Part 5 of the Series on the New Enhancement Framework
    Hope it helps
    Neeraj

  • After Showing ERROR message make the field editable in subscreen.

    Hello Experts,
    I have a requirment where i have added a subscreen to the standard screen of ME31K for creating the contract. In my Subcreen i have my custom screen fields that i'm updating in EKKO table through include structure.
    Now if user forget to fill the details in my custom fields in the subscreen then i'm giving the error message prompting the user to fill the value in fields.
    But the problem is the screen is locked there itself i want to make the field editable so that user can enter some value in the fields. I can not use the stuatus or information message here because doing this i will get the item overview screen which should not come as i want to restrict the user to header details only and fill all the custom fields.
    Please provide me with your helpful responses.
    Thnaks,
    Naveen

    Hi Naveen,
    Sorry for the delay.
    The code which I gave for popup, i hope its being shown in an IF . . . ENDIF.
    So in that condition u can add the following :
    IF < ur condition >
       < Call message FMs >
        SET SCREEN SY-DYNNR.   "this would set screen to current screen which is 0201
        EXIT.
    ENDIF.
    Other than this if you like you can set some parameters in the PAI of this screen which redirect to current screen based on some conditions.
    So u can manually set OK-CODE and CALFCODE as SPACE, but i dont know how much this can impact the process.
    So please follow the above code.
    This is available in
    Main Program     SAPMM06E
    Source code of   MM06EF0F_FCODE_CALL
    IF OK-CODE EQ SPACE AND
       CALFCODE EQ SPACE.
      SET SCREEN SY-DYNNR.
      EXIT.
    ENDIF.
    Hope this helps.
    Regards,
    Ateet

  • At selection-screen. - message - go back to the field on selection-screen

    At selection-screen.
    If the user enter the wrong profitcenter .
    just  I  need to issue a  message saying the user to "enter the correct profit center "
    and cursor should go back to the profit center field on the selection screen.
    How to code this ?

    Hello Sam
    Here a more detail code sample:
    *& Report  ZUS_SDN_RETURN_TO_SELSCREEN
    REPORT  zus_sdn_return_to_selscreen.
    PARAMETERS:
      p_bukrs    TYPE bukrs  DEFAULT '1000'.
    SELECTION-SCREEN BEGIN OF BLOCK profit WITH FRAME TITLE text-bl1.
    *                                  text-bl1 = 'Profit Center Selection'
    PARAMETERS:
      p_prctr    TYPE prctr  OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK profit.
    AT SELECTION-SCREEN ON BLOCK profit.
      IF ( p_prctr BETWEEN '0000001000'  AND '0000002000' ).
      ELSE.
    *   IF condition only used to trigger either error message
        IF ( p_prctr BETWEEN '0000002001' AND '0000003000' ).
          MESSAGE 'Invalid profit center' TYPE 'E'.
        ELSE.
    *     or
          MESSAGE e398(00) WITH 'Profit Center' p_prctr 'invalid' .
        ENDIF.
      ENDIF.
    START-OF-SELECTION.
    * do something...
    END-OF-SELECTION.
    Regards
      Uwe

  • To access the value of the fields in selection screen

    Hi,
    I have used PNP Logical database in the report and also I have created a Report category with organizational unit,begin date and end date.so in my selection screen,I have these three fields.
    Now i need to get the value of those fields in the program..so I need to how to get the value of these fields.
    Regards,
    Kiruthi

    Hi Kiruthi,
    Goto SM31 -> V_T599F.
    Write down your report category.
    There u'll see the technical names of the selection screen fields.
    You can use PNPXXXX name in your report.
    Best regards,
    Dilek

  • How gray out the fields in selection screen with parameters

    Hi,
    Can any one help me how to gray out the selection screen fields
    Start-of-selection----
    Parameters : p_status TYPE edids-status MODIF ID xyz DEFAULT co_51.
    End-of-selection----
    i want to grayed out the field p_status.
    except At selection-screeen output, can any one suggest the other method of gray out the above field.
    Thank u
    B Ravi Kumar

  • I keep getting an error message at the bottom of my screen. Sync encountered an error while syncing. Unknown error. Sync will automatically retry this action. I keep getting the same message. What can I do ?

    I have firefox 5.

    It looks like your data is corrupted. Take a look to this articles and try to reset the information in your account: [[Replace your Sync information]]

  • Display error message in the status bar during PBO

    Hi All,
    I want to issue an error message on a program's selection-screen.
    The thing is when I issue an error message inside PBO, all the text in the selection-screen are gone and replaced with lines.
    So i displayed the error message in the status bar.
                      MESSAGE S074(Z4) DISPLAY LIKE 'E'.
    But the problem with this is that it will allow to continue data processing.
    What shall I do in order for my error message to behave as an error message and not as a status message?

    Hi,
    Write your message in PAI same as you have done MESSAGE S074(Z4) DISPLAY LIKE 'E'.
    after this use call screen 'your screen no'.
    it will not lock the field.

  • Field Validation for Authorization Object field on selection screen

    Hi Experts,
    We have included a new field u2018Authorization Objectu2019 in the selection screen which should be reflected in the field Authorization Object of the spool property. Please let us know how we can provide F4 help for this field and also validate it in the code.
    The data element "RSPOAUTH" is used for the field on selection screen parameter. However, as there is no value table attached to the domain, we are unable to provide any F4 help and hence cannot validate the field in the code.
    Looking forward for your valuable reply.
    Thanks in advance.
    --Warm Regards,
      Prajakta Kanitkar.

    Hi Prajakta,
       You can refer the following code for getting F4 help.
    TYPES: BEGIN OF stru_btc,
             zesgbtc TYPE zhr_del_btc,
           END OF stru_btc.
    DATA: it_btc TYPE STANDARD TABLE OF stru_btc
    SELECT-OPTIONS: s_zzbtc FOR pa0001-zzbtc NO INTERVALS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_zzbtc-low.
      SELECT * FROM zbtc INTO CORRESPONDING FIELDS OF TABLE it_btc.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BTC'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'S_ZZBTC'
          value_org       = 'S'
        TABLES
          value_tab       = it_btc
        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.
    Hope this will help you.
    Thanks & Regards.
    Aniruddha

  • Add custom fields on selection screen  and ouput in Transaction QM11

    Hi All,
       i have the requirement to enhance the transaction qm11( Report : RQMELL10) to add the custom fields on the report selection screen and in the report output.
      i tried to add the fields on selection screen by copy the standard program RQMELL10 to custom one. and tried to add the fields above to the coding tab but i am not able to display the text for those fields of select-options. can any one help me is it the right way to copy the standard program to custom program and adding the custom fields and how to get the text element for the custom fields which we are going to add it. i tried to add the text element in program text elements but it is not appering on the report.
    please requeting the help asap if it is possible.

    Have a glance in below thread.
    Enhancing transaction QM10
    Also, there are some more threads available in enhancing the QM10 / QM11. Please search those as well.

  • Project system: CJE2 tcode.. Add the field to selction screen

    Hi,
    GM ALL
    I would like to add the field to selection screen for a dynamic report one which is using in CJE2 T.CODE. I am trying to add the field through se36 [logical data base level] but its not helping.
    Need to add below field to selection-screen
    CJDB_SELIDS
    Field:  SELID_PR
    Please let me know,if any one know the solution..
    Regards
    KK
    Edited by: kirankumar2129 on Oct 18, 2011 10:03 AM

    You need to have the SAP access key to modify the screen and add the field which already been added in VBAP using the Append structure in SE11
    Thanks,
    Babu Kilari

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • 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

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

  • Regarding the event AT SELECTION-SCREEN ON FIELD ..

    Hi experts,
    Can u plz tell the real advantage of the event AT SELECTION-SCREEN ON FIELD than
    AT SELECTION-SCREEN ..
    in which type of situations  AT SELECTION-SCREEN ON FIELD is needed??
    Thanks & Regards,
    sathish.

    Hi,
    when we are going to do two are more field validations at a time
    we can use AT SELECTION-SCREEN ON <fieldname>.
    if it is there single field we can use AT SELECTION-SCREEN.
    have a look.
    select-options: s_vbeln like vbak-vbeln,
                          s_vkorg like vbak-vkorg,
                          s_vtweg like vbak-vtweg,
                          s_matnr like vbap-matnr.
    AT SELECTION-SCREEN ON s_vbeln.
    select----
    if sy-subrc <> 0.
    error message.
    endif.
    AT SELECTION-SCREEN ON s_vkorg.
    select----
    if sy-subrc <> 0.
    error message.
    endif.
    AT SELECTION-SCREEN ON s_vtweg.
    select----
    if sy-subrc <> 0.
    error message.
    endif.
    AT SELECTION-SCREEN ON s_matnr.
    select----
    if sy-subrc <> 0.
    error message.
    endif.
    Regards.
    sriram.

Maybe you are looking for