on 04-15-2008 8:14 AM
hi,
i am shabeer ahmed abap fresher i want
ex:-
data: st1 value 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z'.
do 27 times.
split st1 at ',' into sy-index.
write:/ sy-index.
enddo.
i want output like: a
b
c
.
.
z.
then the above code will not becoz sy-index in int type. but i want output like as displayed as above. what can i do plz suggest.
hi,
shabeer ahmed
Try this code, it will work and gives u solution
data : Begin of itab occurs 0,
char(10) type c.
data : string type string.
data : st1 type strng.
st1 = 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z'.
move st1 to string.
split string at ',' into table itab.
loop at itab.
write 😕 itab-char.
endloop.
with regards
Kiran.G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1,Declare a variable Like g_var Type c.
use this:
split st1 at ',' into g_var.
write:/ g_var.
Regards,
Kumar(Reward if helpful).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.