You are on page 1of 1

*&-------------------------------------------------------------------**& Report ZFAST_24_11_1012_1

*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZFAST_24_11_1012_1.
types : begin of ty_app,
empno(10) type n,
empname(40),
end of ty_app.
data : it_app type table of ty_app,
ot_app type table of ty_app,
wa_app type ty_app,
fname type rlgrap-filename value 'fast1.txt'.
wa_app-empno = 1.
wa_app-empname = 'aaa'.
append wa_app to it_app.
wa_app-empno = 2.
wa_app-empname = 'bbb'.
append wa_app to it_app.
open dataset fname for output in text mode encoding default.
loop at it_app into wa_app.
transfer wa_app to fname.
endloop.
close dataset fname.
open dataset fname for input in text mode encoding default.
do.
read dataset fname into wa_app.
if sy-subrc = 0.
append wa_app to ot_app.
else.
exit.
endif.
enddo.
close dataset fname.
loop at ot_app into wa_app.
write : / wa_app-empno , wa_app-empname.
endloop.

You might also like