Skip to Content
0
Former Member
Jul 16, 2006 at 12:47 PM

Reading all the records from the file in Application Server

57 Views

Hi,

I need to read all the records in a file from the Application server.I have coded and it reads the same record( the first one ) and runs into an infinite loop.

OPEN DATASET w_path FOR INPUT IN TEXT MODE ENCODING DEFAULT.

<b> DO.</b>

READ DATASET w_path INTO i_tab.

IF SY-SUBRC <> 0.

EXIT.

ENDIF.

APPEND i_tab.

clear i_tab.

<b> ENDDO.</b>

Please suggest.