REPORT z_vtest7.
TABLES: mara,
marc,
mast,
mapl.
* Selection screen
SELECT-OPTIONS : s_matnr FOR marc-matnr.
PARAMETERS : p_werks TYPE marc-werks.
* Internal Table declaration - Type 1
DATA : internal_table_marc TYPE STANDARD TABLE OF marc WITH HEADER LINE.
* Select statement
SELECT *
FROM marc
INTO table internal_table_marc UP TO 15 ROWS.
*Output
WRITE : 'Hello this is the output'.
skip 5.
loop at internal_table_marc.
WRITE : / internal_table_marc-matnr, internal_table_marc-werks.
ENDLOOP.
TABLES: mara,
marc,
mast,
mapl.
* Selection screen
SELECT-OPTIONS : s_matnr FOR marc-matnr.
PARAMETERS : p_werks TYPE marc-werks.
* Internal Table declaration - Type 1
DATA : internal_table_marc TYPE STANDARD TABLE OF marc WITH HEADER LINE.
* Select statement
SELECT *
FROM marc
INTO table internal_table_marc UP TO 15 ROWS.
*Output
WRITE : 'Hello this is the output'.
skip 5.
loop at internal_table_marc.
WRITE : / internal_table_marc-matnr, internal_table_marc-werks.
ENDLOOP.
No comments:
Post a Comment