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

need code logic

Former Member
0 Likes
404

Hi all,

I want chekc the field conatins the data 'Z','L','D'. and other field contains the 'X'.

but it giving error. 'Comma without preceding colon'.

I am writing like this.

if it_stb-postp in ( 'Z','L','D' ) and it_stb-xisdt = 'X'.

" Any BOM with Z, L, D

lw_stufe = it_stb-stufe.

continue.

endif.

regards,

Ajay Ram

1 ACCEPTED SOLUTION
Read only

aaron_morden2
Contributor
0 Likes
366

IF ( it_stb-postp CA 'Z' or it_stb-postp CA 'L' or it_stb-postp CA 'D' ) and it_stb-xisdt = 'X'.

ENDIF.
1 REPLY 1
Read only

aaron_morden2
Contributor
0 Likes
367

IF ( it_stb-postp CA 'Z' or it_stb-postp CA 'L' or it_stb-postp CA 'D' ) and it_stb-xisdt = 'X'.

ENDIF.