Application Development 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: 

Facing probelm in uploading the local file to application server?

Former Member
0 Kudos

Hi all,

I have a file, which is ' | ' delimited. At the last of each line record, I have not put any separator. Now when I am uploading the file to server path, at the lat of each record I am getting a ' # '.

When I am reading that file using READ DATASET, it is giving me ' # ', as a part of record.

Please can you help me with this.

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ganesh,

try giving the file in DAT format(transfer format for data) in CG3Z transaction.

4 REPLIES 4

Former Member
0 Kudos

Hi ganesh,

if u are using the fm guI_upload

pass the parameter HAS_FIELD_SEPARATOR = 'X'

it removes the separator ...

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

Former Member
0 Kudos

Hi sampath,

I am using the transaction CG3Z to upload the file to SAP server.

Former Member
0 Kudos

Hi ganesh,

try giving the file in DAT format(transfer format for data) in CG3Z transaction.

Former Member
0 Kudos

While using READ DATASET , remove the last character from all lines

READ DATASET into itab-field.

translate itab-field using '# '. <----


Replaces # with space.

<b>After # give 1 space in single quotes</b>

Message was edited by:

Chandrasekhar Jagarlamudi