*&---------------------------------------------------------------------*
*& Report ZTR_DEMO_REPORT1 *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
REPORT ZTR_DEMO_REPORT1 .
TABLES : YEMP .
TYPES : BEGIN OF ST_EMP ,
EMP_NO LIKE YEMP-EMP_NO ,
EMP_NAME LIKE YEMP-EMP_NAME,
CITY LIKE YEMP-CITY ,
END OF ST_EMP .
DATA : WA_EMP TYPE ST_EMP .
DATA : IT_EMP LIKE STANDARD TABLE OF WA_EMP .
SELECT EMP_NO EMP_NAME CITY FROM YEMP INTO TABLE IT_EMP .
LOOP AT IT_EMP INTO WA_EMP.
WRITE :/5 WA_EMP-EMP_NO ,
20 WA_EMP-EMP_NAME ,
45 WA_EMP-CITY .
ENDLOOP .
BREAK-POINT.
No comments:
Post a Comment