‎2007 Oct 26 11:05 AM
How to validation for subscreen fields??
I am calling subcreen from my main screen, and in my subscreen I am having a select option and I want to do validation on select option if it is wrong then it should be enable.
I think so we can't use chain endchain for subscreens.
How to do this?
Thanks,
Sridhar
‎2007 Oct 26 11:14 AM
Sridhar,
do the validation in <b>at selection-screen on field</b> event as below.
At Selection-screen on field selfield1.
select <selfield1> from <dbtable> into table itab where field1 in <selfield1>.
if sy-subrc = 0.
do the process.
else.
exit.
endif.
<b>Reward points for helpful answers</b>
Satish
‎2007 Oct 26 11:41 AM
Thats fine its working with subscreen but in main screen fields are grayed out..
its new bug agai.I am calling the subscreen in mainscreen.
‎2007 Oct 26 11:17 AM
hi,
for validating
at selection-screen on <fieldname>
select <field list> from table where <condition>.
if sy-subrc <> 0.
message 'ERROR'.
endif.
Reward with points if helpful.