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

issue with sy-tabix..

Former Member
0 Likes
720

hey,

In my BADI, i have a variable l_ztabix of type sy-tabix.

i loop thru my idoc data internal table and modify the internal table if neccessary.

loop at t_idoc_data INTO wa_idoc_data.

l_ztabix = sy-tabix.

...

....

modify t_idoc_data index l_ztabix FROM wa_idoc_data.

endloop.

now it so happens, that during the 10th iteration, the sy-tabix is 10, but when the statement l_ztabix = sy-tabix.

is encountered, l_ztabix is set to ' * '. I dont understand why !! bcos of this my modify fails and i get a dump that says, convert_no_number !!

can anyone guess what is happening ??

thks

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
688

You did not define l_ztabix big enough. Define it like this.

data: l_ztabix type sy-tabix

.

Regards,

Rich Heilman

4 REPLIES 4
Read only

Former Member
0 Likes
688

use the sy-index instead of sy-tabix

Read only

0 Likes
688

ok...i will try that optin...but why so ?? can u pl explain ? thanks

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
689

You did not define l_ztabix big enough. Define it like this.

data: l_ztabix type sy-tabix

.

Regards,

Rich Heilman

Read only

0 Likes
688

Yes Rich you were right. Actually I did a mistake of defining as follows:

data: l_ztabix, l_ztabix1 type sy-tabix.

Also, sy-index does not work !! it always retains the value of 1..

thank u