Application Development and Automation 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: 
Read only

validation for subscreen fields??

Former Member
0 Likes
835

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

3 REPLIES 3
Read only

Former Member
0 Likes
537

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

Read only

0 Likes
537

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.

Read only

Former Member
0 Likes
537

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.