原帖由 xiebinren 于 2008-7-4 10:06 发表
REPORT z000_test LINE-SIZE 300.
types: begin of test_ty,
val01 type i,
val02 type i,
val03 type i,
end of test_ty.
data: test_itab type standard table of test_ty WITH NON-UNIQUE KEY val01 val02 val03.
data: test_wa type test_ty.
do 5 times .
test_wa-val01 = test_wa-val01 + 1.
test_wa-val02 = test_wa-val02 + 2.
test_wa-val03 = test_wa-val03 + 3.
append test_wa to test_itab.
enddo.
append test_wa to test_itab.
clear test_wa.
sort test_itab by val01 val02 val03.
delete adjacent duplicates from test_itab. " 删除相同的列
loop at test_itab into test_wa.
*set left scroll-boundary. "这个你也可试一下,体会一下与其他的有什么区别
*set left scroll-boundary column 15. "这个你也可试一下,体会一下与其他的有什么区别
*set left scroll-boundary column test_wa-val03. "这个你也可试一下,体会一下与其他的有什么区别
set left scroll-boundary column test_wa-val01. "固定
write:/ test_wa-val01 COLOR COL_KEY, test_wa-val02,(20) test_wa-val03.
endloop.
1.你放的位置不对,你自己慢慢体会吧
2.data: test_itab type standard table of test_ty 修改为:
data: test_itab type standard table of test_ty with non-unique key val01 val02 val03.