2005 Oct 05 2:35 PM
I have created XML using IF_IXML. According to the schema, several of the elements have trailing spaces in the value for the element. I set the value with a string. For example,
move 'XXXXX ' to lv_string.
lv_rc element->set_value ( lv_string ).
In the rendering of the document to a string, the trailing spaces are omitted and the XML will not validate. Any suggestions would be appreciated.
Buster Hale
2005 Oct 05 7:28 PM
Found the answer. Use ` instead of ' to set value of string.
data: lv_string1 type string value `ABC `,
lv_string2 type string value 'ABC '.
The length of lv_string1 is 5 and the length of lv_string2 is 3.