2007 Sep 27 9:37 AM
Hi all,
i have following problem:
**********************************
types: begin of XML_LINE,
DATA(256) type x,
end of XML_LINE.
types: begin of XML_LINE2,
all(1000) TYPE c,
end of XML_LINE2.
data: XML_TABLE type table of XML_LINE.
data: XML_TABLE2 type table of XML_LINE2.
XML_TABLE2 has records in it. Those records i'd like to "convert" to xml_table. (From C to X)
Can anyone give me a hint?
Thanks in advance, best regards
Frank
2007 Sep 27 9:44 AM
Hi,
use 'SAP_CONVERT_TO_XML_FORMAT'......
or
to convert internal table to xml format you could use CALL TRANSFORMATION key word
data: xml_out type string .
call transformation (`ID`)
source output = youritab
result xml xml_out.
thanks,
Reward If Helpful.
Hi all,
i have following problem:
**********************************
types: begin of XML_LINE,
DATA(256) type x,
end of XML_LINE.
types: begin of XML_LINE2,
all(1000) TYPE c,
end of XML_LINE2.
data: XML_TABLE type table of XML_LINE.
data: XML_TABLE2 type table of XML_LINE2.
XML_TABLE2 has records in it. Those records i'd like to "convert" to xml_table. (From C to X)
Can anyone give me a hint?
Thanks in advance, best regards
Frank
2007 Sep 27 9:44 AM
Hi,
use 'SAP_CONVERT_TO_XML_FORMAT'......
or
to convert internal table to xml format you could use CALL TRANSFORMATION key word
data: xml_out type string .
call transformation (`ID`)
source output = youritab
result xml xml_out.
thanks,
Reward If Helpful.
2007 Sep 27 9:46 AM
Check FM - CHAR_HEX_CONVERSION
Also check this code -
Consider the following code snippet -
data : char type c,
hexa type x.
Now, both these variables are of 1 byte each. However, they store different kinds of data, so we have -
hexa = '41'.
write : hexa to char.
write: char , hexa.
hexa is going to store the hexadecimal number 41. (the decimal equivalent is 65). The first write statement does the automatic type conversion. so we get the 65th ASCII character in the character variable (which is the capital A).
~As found in forum.
Regards,
Amit
Reward all helpful replies.
2007 Sep 27 10:29 AM
Hi Amit,
the problem is i want to convert from char to hexa:
When i want to do this as you decribed it (write char to hexa. ),
i get following error:
hexa must be of type C,N,D or T
Thanks in advance, best regards
Frank
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |