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: 

loss space symbols Xstring to binary converting

Former Member
0 Kudos

Hi Everyone,

I have a word 2003 xml template. I use function SCMS_XSTRING_TO_BINARY to convert xml template to binary and then I change it. The function SCMS_BINARY_TO_XSTRING is used to back convertion.

But I have a one problem. I lose some space symbols in a final document when I convert it.

If I have the following text in my template <w:t>some text </w:t>. It will be <w:t>some text</w:t> in the final document. But I don't want to lose space symbols in the end of text.

I use encoding="UTF-8" in my template.

How to solve this problem? Any solution or suggestion are welcome?

Thanks in advance!

Best Regards,

Ilya

2 REPLIES 2

Former Member
0 Kudos

Hi,

You have to compress the binary.

  • CALL METHOD cl_abap_gzip=>compress_binary*.

Try it out.

Thanks

Arbind

Former Member
0 Kudos

I found the trouble. It is not SCMS_XSTRING_TO_BINARY and SCMS_BINARY_TO_XSTRING work.