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 using key fields

RahulKeshav
Active Contributor
0 Likes
388

Hi All

I am using table T510 for validation of slection screen select-options fields TRFST.......

i want to use keys fields as well to validate it...

wt shld be the code....

plz help me...

Rohit

2 REPLIES 2
Read only

Former Member
0 Likes
351

Hi,

You can use the statement :

AT SELECTION-SCREEN ON <field-name>.

and write the code for validation, and can give error or warning messages accordingly to your requuirement.

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
351

Hi Rohit,

I will develop a small code for u check it once ok..

tables : t510.

select-options : s_trfst for t510.

at selection-screen on trfst.

select single trfst

from t510

into t510-trfst

where trfst in s_trfst.

if sy-subrc eq 0.

message s000. " write sucessful message class

else.

message e001. "write error message in the class

endif

Award points if helpful.

kiran kumar.G

Have a Nice Day..