2007 Feb 26 4:12 AM
I have a internal table, i need loop the internal table and append the record index to text.
like
loop at itab
CONCATENATE 'INFO' + SY-TABIX into itab-text.
modify itab index SY-TABIX
endloop.
how can i do that. Thanks!
2007 Feb 26 4:16 AM
hi,
wat you can do is create a integer variable and inside loop increment it and concatenate it to the INFO and store it in the internal table
2007 Feb 26 4:17 AM
Hi,
Assign the sy-tabix to some temporary variable of type String or char.
As follows.
loop at itab
DATA: local_tabix type string.
local_tabix = SY-TABIX.
CONCATENATE 'INFO' + local_tabix into itab-text.
modify itab index SY-TABIX
endloop.
Regards,
Sesh
Message was edited by:
Seshatalpasai Madala
2007 Feb 26 4:18 AM
try this..
data w_index(10).
loop at itab.
w_index = sy-tabix.
CONCATENATE 'INFO' w-index into itab-text
separated by '+'.
...
...
endloop
~Suresh
2007 Feb 26 4:18 AM
data : v_index(5)
loop at itab.
v_index = sy-tabix.
CONCATENATE 'INFO' v_index into itab-text.
condense itab-text.
modify itab index SY-TABIX.
endloop.
2007 Feb 26 4:21 AM
hi
good
you can store the SY-TABIX value in to a string varibale and after that using CONTACTENATE command you can concatenate both the strings ,bcz concatente wont allow to joing two different data types.
Thanks
mrutyun^