FUNCTION ZWHMES_TES1.
*"----------------------------------------------------------------------
*"*"本地接口:
*"----------------------------------------------------------------------
types:begin of ty_mm,
matnr type mara-matnr,
end of ty_mm.
types: begin of ty_makt,
matnr type mara-matnr,
spras type makt-spras,
maktx type makt-maktx,
end of ty_makt.
data mm type table of ty_mm with header line.
data makt type table of ty_makt WITH HEADER LINE.
mm-matnr = '000000007001010018'.
append mm.
select
matnr
spras
maktx
from makt
into CORRESPONDING FIELDS OF TABLE makt
for ALL ENTRIES IN mm
where matnr = mm-matnr.
loop at makt.
write:/
makt-matnr
,
makt-spras
,
makt-maktx.
endloop.
ENDFUNCTION.
abap 中 for all entries in 中的 distinct 功能
最新推荐文章于 2024-07-16 11:40:31 发布