on 10-09-2009 9:58 AM
Hi All,
Is it possible to print the data of ex: some 2 fields in the below way. If suppose i have some 10 records.
S.no Name | S.no Name
1 a | 6 f
2 b | 7 g
3 c | 8 h
4 d | 9 i
5 e | 10 j
Hi Sidhir,
Yes it is possible to print the way you want.
1-Either you take 2 template window or 2 table widows.
2- Split the data and pass them to each window.
Regards,
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if the max no. of records is 200 then max tables you would need is 8.
create 8 windows side by side with templates inside them.
now create 8 internal tables.
suppose ur main internal table is itab_main
describe table itab_main lines n.
n will have total lines. now divide n by 25. also get the remainder.
a = n / 25.
b = n mod 25.
if b > 0.
a = a + 1.
endif.
data: line type i.
do a times.
append lines of itab_main from line to 25 into itab.
if a = 1.
itab1[] = itab[].
endif.
if a = 2.
itab2[] = itab[].
endif.
if a = 3.
itab3[] = itab[].
endif.
if a = 4.
itab4[] = itab[].
endif.
if a = 5.
itab5[] = itab[].
endif.
if a = 6.
itab6[] = itab[].
endif.
if a = 7.
itab7[] = itab[].
endif.
if a = 8.
itab8[] = itab[].
endif.
if a = 3.
itab1[] = itab[].
endif.
if a = 4.
itab1[] = itab[].
endif.
if a = 5.
itab1[] = itab[].
endif.
if a = 6.
itab1[] = itab[].
endif.
if a = 7.
itab1[] = itab[].
endif.
if a = 8.
itab1[] = itab[].
endif.
line = line + 25.
enddo.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.