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

reg loop condition

Former Member
0 Likes
578

Hi All,

I have a small query I have my values in my int table in the field zlnid with the values FWP,FWS,INP,INC.

But now I want to loop my int table only for the values starting with FW.I gave like this this.

loop at i_lineid where zlnid = 'FW*'.

endloop.

but the above one is not working.I tried with like it is not taking.Please suggest somebody how to do this?

Regards

Mahesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

Use this:

loop at i_lineid where zlnid+0(2) = 'FW'.

endloop.

5 REPLIES 5
Read only

Former Member
0 Likes
553

Use this:

loop at i_lineid where zlnid+0(2) = 'FW'.

endloop.

Read only

Former Member
0 Likes
552

Try:

loop at i_lineid where zlnid(2) = 'FW'.

endloop.

Rob

Read only

Former Member
0 Likes
552

You can use it like this:

loop at i_lineid where zlnid CP 'FW*'.

endloop.

Cheers!!

Lokesh

Read only

Former Member
0 Likes
552

 loop at i_lineid where zlnid+0(2) = 'FW'.
 
 endloop.
Read only

Former Member
0 Likes
552

Hi,

You can use below code :

loop at i_lineid where zlnid(2) = 'FW'.

"Here comes your further logic.

endloop.

Thanks,

Sriram Ponna.