‎2007 Apr 04 3:22 PM
Dear Friends,
I am doing the screen validations in Module pool.
say if I selected some unvanted radio button and check box I need to through some error message...
Its working fine with my code...I am getting the error but the same time my screen is grayed out.
here I want to be screen active mode and display the message..
here is my code wich i am using:
IF radio_nval = 'X' OR
radio_nstk = 'X' OR
radio_mach = 'X'.
if ZMLSR-ONETIME_TNPR = 'X'.
MESSAGE e010(ad) WITH text-163.
ENDIF.
ENDIF.
could you pls suggest me if I sm wrong..
Thanks,
Sridhar.
‎2007 Apr 04 3:29 PM
You have to include the fields that you want to be input enabled when you get the error message, in a CHAIN-ENDCHAIN block.
in PAI.
chain.
field field1.
field field2.
field field3.
module <name of module that is doing the validation>.
endchain.
Regards,
Ravi
‎2007 Apr 04 3:34 PM
chk the PAI in this program
<b>DEMO_DYNPRO_FIELD_CHAIN</b>
you have to use CHAIN ... ENDCHAIN
‎2007 Apr 05 8:02 AM
Hi,
Whenever you are doing validations for the fields in the Module Pool Program you have to write those fields between CHAIN and ENDCHAIN Statement in SE51 under Flow Logic.
For eG
CHAIN.
Field Matnr.
Field Werks.
Module Validate_fields.
ENDCHAIN.
you have to write the vcalidation code in the module Validate_fields in SE38.
Pls reward if it is helpful
Regards,
Sangeetha.A