02-25-2011 6:51 AM
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
02-25-2011 11:08 AM
Hi,
You have to compress the binary.
CALL METHOD cl_abap_gzip=>compress_binary*.
Try it out.
Thanks
Arbind
02-26-2011 5:42 AM
I found the trouble. It is not SCMS_XSTRING_TO_BINARY and SCMS_BINARY_TO_XSTRING work.