0% found this document useful (0 votes)
70 views1 page

Tables Begin of Type Type Type Type End of Data Type Table of With Header Data Type Table of Type Select-Options For Select

This document defines a table type called ty_mara with fields for material number, description, material type, and purchasing info. It selects data from the MARA table where the material number is in the selected options and stores it in an internal table of type ty_mara. It then loops through this internal table and writes the material number and description to the output.

Uploaded by

Ace Kay
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views1 page

Tables Begin of Type Type Type Type End of Data Type Table of With Header Data Type Table of Type Select-Options For Select

This document defines a table type called ty_mara with fields for material number, description, material type, and purchasing info. It selects data from the MARA table where the material number is in the selected options and stores it in an internal table of type ty_mara. It then loops through this internal table and writes the material number and description to the output.

Uploaded by

Ace Kay
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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.

You might also like