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

Former Member
0 Likes
639

Hi experts ,

when i reading a text file using open data set coding, content are coming like this

0002#######sachin############indara market.

aithough i save text file in tab saprater.i want to read field seprately

like 0002 sachin indra market.

how i can solve this problem .

Thanks & Rgds

5 REPLIES 5
Read only

Former Member
0 Likes
615

Hi Zeba,

Which is the function module you are using? and also check the file type it should be 'DAT'

if you are using GUI_UPLOAD then pass 'X' to the parameter has field seperator and give a try.

Regards,

Ranjith N

Read only

Former Member
0 Likes
615

you can use

OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT

WITH SMART LINEFEED.

Read only

0 Likes
615

hi chenna,

Thanks for ur reply.

its not working , still data is coming like this 0001#######ISRIAL khan#####indra market.

Thanks & Rgds

Zeba

Read only

0 Likes
615

Hi,

Declare the internal table with these fields and using Read read the data from the application server to the itab instead of text table..


DATA : Begin of itab occurs 0
               field1 type ...
               field2 type ...
               field3 type...
          END of itab.

READ DATASET filename INTO datatab.

When uploading the data to application server the tab delimitor is used because of which you are getting # symbols.

Read only

Former Member
0 Likes
615

Hi ,

Kindly go through this link:

Hope it helps you

Regrds

Mansi