07-20-2009 10:20 AM
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
07-20-2009 10: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.
07-20-2009 10:34 AM
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?
07-20-2009 10: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
07-20-2009 10:42 AM
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
07-20-2009 10: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
07-20-2009 10:46 AM
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.
07-20-2009 10:58 AM
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..