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

Re: loop condition using length

Former Member
0 Likes
634

Hi friends,

in a loop condition i am using below coding.

LOOP AT I_FORM1 INTO W_FORM1.

A = STRLEN( W_FORM1-LOTNO ).

LOOP AT I_AUFM INTO W_AUFM WHERE CHARG+0(A) = W_FORM1-LOTNO.

ENDLOOP.

ENDLOOP.

But coming error is

The length specification "(A)" is not a numeric literal or a numeric constant.

how is it possible please help me any body.

1 REPLY 1
Read only

Former Member
0 Likes
423

Hello ,

Data type of variable A should be a integer .

Edited by: Annasaheb More on Jul 2, 2011 9:20 AM