*&---------------------------------------------------------------------*
*& Report  ZOB_DEMO_REPORT1                                            *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&                                                                     *
*&---------------------------------------------------------------------*
REPORT  ZOB_DEMO_REPORT1                        .
Tables  :   yemp .
data   :   begin of wa_emp occurs 0  ,
          EMP_NO      LIKE YEMP-EMP_NO  ,
          EMP_NAME    LIKE YEMP-EMP_NAME,
          CITY        LIKE YEMP-CITY    ,
          end of wa_emp .
data  :    it_emp like standard table of wa_emp with header line .
break-point.
SELECT EMP_NO  EMP_NAME CITY  FROM YEMP INTO TABLE IT_EMP .
BREAK-POINT.
LOOP AT IT_EMP. " INTO WA_EMP.
WRITE :/5 it_EMP-EMP_NO ,
      20 it_EMP-EMP_NAME ,
      45 it_EMP-CITY .
ENDLOOP .
BREAK-POINT.
 
 
No comments:
Post a Comment