取数逻辑基本模板如下
SELECT …
FROM …
INNER JOIN… ON …
WHERE IN @s_XXXXX
INTO CORRESPONDING FIELDS OF TABLE @gt_xxxxx
SELECT …
FROM …
INNER JOIN …ON…
INTO CORRESPONDING FIELDS OF TABLE gt_data
FOR ALL ENTRIES IN XXXXX
WHERE
SELECT-OPTIONS:
s_lgort FOR mchbh-lgort,"仓库
IF S_LGORT[] IS INITIAL.
DELETE gt_so_inf where menge = 0.