Skip to Content
0
Former Member
Apr 23, 2012 at 11:14 AM

File issue in ABAP

324 Views

Hi,

I am writting the data in to a file using OPEN DATASET. When I opened the file if I press right arrow button at the end of the record it is going to the next line eventhough the there is no data in the second line.As per my requirement cursor should not go to second line if there is no data in it.

My Code is

OPEN DATASET lv_file FOR OUTPUT IN TEXT MODE
ENCODING DEFAULT
WITH SMART LINEFEED.
IF sy-subrc = 0.
LOOP AT gt_tab INTO lw_tab.
TRANSFER lw_tab TO lv_file LENGTH 517.
CLEAR lw_tab.
ENDLOOP.
*--Close the file opened.
CLOSE DATASET lv_file.