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
WITH SMART LINEFEED.
IF sy-subrc = 0.
LOOP AT gt_tab INTO lw_tab.
TRANSFER lw_tab TO lv_file LENGTH 517.
*--Close the file opened.
CLOSE DATASET lv_file.