*&---------------------------------------------------------------------*
*& Report ZMM009
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zmm009a.
TABLES : mara .
DATA: BEGIN OF gs_Out ,
matnr LIKE mara-matnr,
mtart LIKE mara-mtart,
END OF gs_out .
DATA: gt_out LIKE TABLE OF gs_Out .
SELECT-OPTIONS: s_matnr FOR mara-matnr .
SELECT-OPTIONS: s_MTART FOR mara-mtart .
"sql
SELECT matnr mtart
INTO TABLE gt_out
FROM mara
WHERE matnr IN s_matnr
AND mtart IN s_mtart.
"alv
DATA: gs_layout TYPE slis_layout_alv .
DATA: gt_fieldcat TYPE TABLE OF slis_fieldcat_alv.
DATA: gs_fieldcat TYPE slis_fieldcat_alv.
ABAP培训第二节(2021-05-23)
最新推荐文章于 2024-03-10 20:37:33 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)