Skip to Content
author's profile photo Former Member
Former Member

How to make Errored out field editable?

HI All,

I have a screen in which there are some fields and i have done some validation for the data entered in those fields. When there is an error message for a particular field due to incorrect data, i need to make that field editable and the rest of the fields uneditable. HOw can i achieve this ?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2009 at 09:27 AM

    Hi,

    Write your validation code in the event

    At Selection Screen ON (PARAMETER OR SELECT OPTION VARIABLE NAME Eg: s_matnr).

    Regards,

    Vimal.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      i am doing some modification to a pre existing screen. the validations for some of the fields already existed, and i have added my code with them(in an include program), but when i get an error all the fiels become uneditable. Where can i find this event mentioned below?

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2009 at 09:35 AM

    Hi,

    please use following event,

    AT SELECTION-SCREEN ON s_werks. -


    Parameter or Selection Option Name

    • PERFORM validate_werks. -----> validation code for Field s_werks.

    Thanks And regards

    ShreeMohan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I guess you are talking about Module pool programming,

      
          CHAIN.
          FIELD ZMATNR.
          FIELD ZKTMNG.
          MODULE GT_ITAB1_MOD.
          ENDCHAIN.
      
      

      Write the field names of those that you want to make uneditable using the FIELD statement.

      Edited by: Nitwick on Jul 20, 2009 3:12 PM

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2009 at 09:39 AM

    Hi Kumar,

    I assume you are talking about module pool screen.

    You have to use validation in PAI as follows:

    CHAIN.

    FIELD input3.

    FIELD input4.

    FIELD input5.

    MODULE check_chain ON CHAIN-REQUEST.

    ENDCHAIN.

    So whenever one of the fields (input3 , input4 or input5) is having error data, all 3 fields will available for input.

    Regards,

    Anil Salekar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.