Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Here I want to upload the data into the internal table along with blank lines.
 if there is a blank line in the middle of the file the function module gui_upload 

or gui_download *  *didn't pick up this blank line generally . 

but here in this case I can able to upload the blank lines too .

here I am considering the case of  uploading  the files. The file is like this:

*---------start of the file .

                                (  this is a blank line )

                                (  this is a blank line )                                (  this is a blank line )

                                (  this is a blank line )testname01
testname02

testname03

testname04

*------end of the file

the coding is like this ..

Error rendering macro 'code': Invalid value specified for parameter 'lang'
REPORT YTESTS.
DATA: BEGIN OF ITAB OCCURS 0,
       TEXT_LINE(80) TYPE C,
       END OF ITAB.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME = 'C:\Documents and Settings\venkatapp\Desktop\venkat.txt'
  TABLES
    DATA_TAB = ITAB.
*----this is the condition for including the blanklines
SET BLANK LINES ON.
LOOP AT ITAB.
  WRITE / ITAB-TEXT_LINE.
ENDLOOP.

 

 

  • No labels