‎2009 Jun 22 10:52 AM
Hi.
When i am trying to upload a file from application server usind open data set in text mode i am geting a # symbol in the end of each line. File is written to the application server in binary mode.
When i tried using open data set in binary mode and then spliting the data using tab i am not geting the data properly.. I am geting only one line in the itab..
How can i read a file which is saved in binary format in the application server and then split the data properly.
Regards
Ansari
‎2009 Jun 22 10:57 AM
use the open data
data : gt_str type string.
Read the data from Application Server
OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT
WITH SMART LINEFEED.
do
READ DATASET gv_file INTO gv_str.
SPLIT gv_str AT 'TAB' INTO wa_test_-objectid
wa_test-lifnr
append wa_test to gt_test.
enddo.
‎2009 Jun 22 10:57 AM
use the open data
data : gt_str type string.
Read the data from Application Server
OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT
WITH SMART LINEFEED.
do
READ DATASET gv_file INTO gv_str.
SPLIT gv_str AT 'TAB' INTO wa_test_-objectid
wa_test-lifnr
append wa_test to gt_test.
enddo.