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: 

additional spaces in the text file (mail attachment)

Former Member

Hi All,

I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send a text file as an attachment in the mail. But the data in the text file is not appearing properly. when i open the text file, i can see spaces after each and every character.

For ex.

Actual data:

ABCDEF

data in the file:

A B C D E F

Please let me know how to deal with this issue. Thanks a lot for your help.

Regards,

Priti

7 REPLIES 7

former_member297642
Participant
0 Kudos

Hi Priti,

Usually we can remove spaces using below statement,try if it works before attaching the file.

CONDENSE <Field> NO_GAPS.

Regards,

Ranjith.

Hi Ranjith,

Thanks a lot for your reply.

the data in the internal table is without spaces when i m passing it to the FM.

Please let me know if you have any other option.

Thanks a lot.

Regards,

Priti

Former Member
0 Kudos

Hello priti,

i have the same problem.

i am gettting the spaces while sending the mail.

is your problem solved?

plz hep me

0 Kudos

i think this is because of the character coding not being properly supported by the receiving system.

Former Member
0 Kudos

Hello soumyaa...

But in my case i am sending it to my own SAP inbox.

What could be the problem?

Former Member
0 Kudos

I'm getting the same error. Besides, I'm proving it in 2 different systems. In one of them, it works fine, but in the other, the spaces are between each pair of characters. Does anyone know a solution?

0 Kudos

Hi,


I have the same problem, Can anyone help me regarding this issue.

Regards

Nooruddin Bohra