Skip to Content
0
Former Member
Jan 19, 2006 at 08:50 PM

Replacing New Line character in a hexadecimal string in ECC5.0

580 Views

Hi,

I am trying to create an XML document using ABAP.

I have created one DOM and later used the DOM to get the XML content into an internal table in form of Hexadecimal String. In that internal table(which contains XML in form of hexadecimal content), I want to search for the new line character and replace it by Space.

I have used class CL_XML_DOCUMENT to create such document.

Now, the keyword 'SEARCH' which searches the New Line character, works on the hexadecimal content of the internal table in 46C and I get an XML document. I get the position of the New Line in SY-FDPOS and can do whatever I want. But SEARCH on hexadecimal content is not permitted in ECC 5.0. I get a syntax error when I try to do so. Tried many options but could not succed.

Would apreciate if anyone can help in finding and replacing characters like new line, tab etc in a hexadecimal string.

Thanks.

Can anyone