You are on page 1of 1

tables mara.

types: BEGIN OF ty_mara, matnr TYPE mara-matnr, ernam TYPE mara-ernam, mtart TYPE mara-mtart, mbrsh TYPE mara-mbrsh, END OF ty_mara. data : it_mar type table of mara with header line. data : it_mara type table of ty_mara, wa_mara type ty_mara. select-options s_matnr for mara-matnr. select matnr ernam mtart mbrsh from mara into table it_mara where matnr in s_matnr. loop at it_mara into wa_mara. write : / wa_mara-matnr, wa_mara-ernam. endloop. start-of-selection. at line-selection. hide mara-matnr. loop at it_mara into wa_mara. write : / wa_mara-matnr, wa_mara-ernam. endloop. case sy-lsind. when 20. sy-lsind = 1. endcase. write : / 'report', sy-lsind.