‎2009 Feb 02 5:31 AM
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
‎2009 Feb 02 5:54 AM
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
‎2009 Feb 02 5:57 AM
you can use
OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT
WITH SMART LINEFEED.
‎2009 Feb 03 6:59 AM
hi chenna,
Thanks for ur reply.
its not working , still data is coming like this 0001#######ISRIAL khan#####indra market.
Thanks & Rgds
Zeba
‎2009 Feb 03 7:11 AM
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.
‎2009 Feb 02 6:31 AM