Tuesday, December 21, 2010
REPORT ztest_notepad.
DATA: BEGIN OF it_upload OCCURS 0,
pernr TYPE pa0001-pernr,
subty TYPE pa0001-subty,
ename TYPE pa0001-ename,
END OF it_upload.
"START-OF-SELECTION

START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:\test.txt'
filetype = 'ASC'
TABLES
data_tab = it_upload.
IF sy-subrc EQ 0.
LOOP AT it_upload.
WRITE:/ it_upload-pernr, it_upload-subty, it_upload-ename.
ENDLOOP.
ENDIF. 

1 comment:

  1. filename = 'C:\test.txt'
    filetype = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'

    ReplyDelete

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.