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

Error in simple code .

Former Member
0 Likes
687

i would like to validate all fields at once , but my logic is not working  can anyone tell me better solution.

please check below screenshots of my code.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
653

Hi,

the IN operator is used with selection tables (structure: SIGN, OPTION, LOW, HIGH).

There fore your usage is invalid.

You'll either have to make a selection table for all the strings you'd like to have in the expression

OR

write it manually like this:

if data_equi-herst ne 'MRF' AND data_equi-herst ne 'APOLLO'.

3 REPLIES 3
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
653

Prakash Rao,

     Can you tell clearly your requirement?

Regards.

Read only

Former Member
0 Likes
654

Hi,

the IN operator is used with selection tables (structure: SIGN, OPTION, LOW, HIGH).

There fore your usage is invalid.

You'll either have to make a selection table for all the strings you'd like to have in the expression

OR

write it manually like this:

if data_equi-herst ne 'MRF' AND data_equi-herst ne 'APOLLO'.

Read only

Former Member
0 Likes
653

hi parkash,

                       you can define the range for that first.

place your values in that range(append itab)

use "IN" operator in IF condition.

Range : AA for dd-field.

if  itab-field not in AA .

message..

endif.

regards,

vikas