Monday, December 20, 2010
REPORT ztest_notepad.
DATA:it_data TYPE TABLE OF string,
wa_data LIKE LINE OF it_data.
DATA:p_app_file(100) TYPE c VALUE '/user/sap/tmp',
p_separator     TYPE c VALUE ''''. "quote separator
"START-OF-SELECTION
START-OF-SELECTION.

OPEN DATASET p_app_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
DO.
READ DATASET p_app_file INTO wa_data.
IF wa_data IS INITIAL.
EXIT.
ELSE.
SPLIT wa_data AT p_separator INTO TABLE it_data.
ENDIF.
ENDDO.
ENDIF.
CLOSE DATASET p_app_file.

0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.