select *
from ekko
into table @data(lt_ekko)
up to 100 rows.
sort lt_ekko by lifnr ernam.
loop at lt_ekko into data(ls_ekko) group by ls_ekko-lifnr.
"多個分組條件
"loop at lt_ekko into data(ls_ekko) group by ( lifnr = ls_ekko-lifnr ernam = ls_ekko-ernam ).
loop at group ls_ekko into data(member).
endloop.
endloop.
按lifnr分組,ls_ekko為每一組的第一行
loop at lt_ekko into data(ls_ekko) group by ls_ekko-lifnr.
loop at group訪問組成員
loop at group ls_ekko into data(member).
select *
from ekko
into table @data(lt_ekko)
up to 100 rows.
sort lt_ekko by lifnr ernam.
loop at lt_ekko into data(ls_ekko) group by ( key1 = ls_ekko-lifnr key2 = ls_ekko-ernam ) into data(key).
loop at group key into data(member).
endloop.
endloop.
按lifnr,ernam分組,ls_ekko為空
loop at lt_ekko into data(ls_ekko) group by ( key1 = ls_ekko-lifnr key2 = ls_ekko-ernam ) into data(key).
loop at group按組的分組條件訪問組成員,其中key可以理解為工作區,包含lifnr和ername. member裡面包含有key工作區關鍵字段.
loop at group key into data(member).
LOOP AT GROUP語法熟悉
select from ekko into table data lt ekko up to 100 rows.sort lt ekko by lifnr ernam.loop at lt ekko into data ls ekko group by ls ekko lifnr.多個分組條件 lo...
Swift 語法的熟悉
swift 語法的熟悉 oc與swift區變 檔案區別oc有實現檔案以及宣告檔案等,在swift中實現機宣告類似檔案總歸結乙個即可 1.常量與變數的初始化 常量 關鍵字 let 表示不可變 變數 關鍵字 var 表示可變 在swift中變數型別自動推到,可以使用option 左鍵檢視型別,swift...
CSS 從熟悉到更熟悉
最近學習了css,乙個從熟悉到更熟悉的過程,來說說其中的收穫.css,好像在哪兒見過你 層疊樣式表 英文全稱 cascading style sheets 是一種用來表現html 標準通用標記語言的乙個應用 或xml 標準通用標記語言的乙個子集 等檔案樣式的計算機語言.css不僅可以靜態地修飾網頁,...