10-07-2008 2:17 PM
Hi Dears,
I have screen 200. For one of the input field when it has the value coming by default with 'S' i need to allow only 'F' as input if user wants to change. If input is coming by default with 'F' I need to allow 'S' as input if user wants. How can I control this input in module pool programming.
Thanks,
10-07-2008 2:19 PM
PAI
field <fieldname> module check.
module check input.
if..condition
message e001...
or message w001...
endif.
endmodule
10-07-2008 2:22 PM
10-07-2008 4:29 PM
Your requirement is tricky.
Here I would suggest that you change the field to alist box and dynamically set the list values based on the currrent value.
if the current value is "S" or "F" then the list will have only these 2 values.
if it is something else, you can fill the list with the entire list of possible values.
10-08-2008 12:39 PM
hi
check this
in screen 200 pai
module check
if default = 'S'
use input value = 'F'
else.
message 'incorrect value '.
endif.
if default = 'F'
user input value 'S' .
else.
message 'incorrect value '.
endif.
endmodule.
if it is not usefull then plz make clear ur problem in brief
regards
anil