Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open Data Set- Issue

Former Member
0 Likes
336

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
302

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.

1 REPLY 1
Read only

Former Member
0 Likes
303

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.