Go on link..

link us with ...

Monday, December 13, 2010

REPORT USING INTERNAL TABLE WITH LOOP

*&---------------------------------------------------------------------*
*& 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:

link us...

For Visitors

if you want to publish or Add something on ERP, SAP , SAP FUNCTIONAL, SAP ABAP then mail us along with your email-id. contain must be yours

email-id :- avinashkr_raj@yahoo.com(any email)

email-id :- avinaskr_raj.abap@blogger.com ( use only gmail)