Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make Errored out field editable?

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

Hi,

Write your validation code in the event

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

Regards,

Vimal.

0 Kudos

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?

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

yes there is an existing code as you have mentioned, i will have to add the field name only to the existing list.

THanks a lot to everyone.

0 Kudos

How do i change the PAI?

The include program in which i can see the "chain - endchain" command while debugging, does not contain the chain oprator when i see the code in se38..