2006 Jul 14 1:44 PM
Hi Experts,
Can any body has sample code to use the FM TEXT_CONVERT_XML_TO_SAP...??
Which converts XML file to Text file.
Because we can't test that FM in SE37.
Hi Experts,
Can any body has sample code to use the FM TEXT_CONVERT_XML_TO_SAP...??
Which converts XML file to Text file.
Because we can't test that FM in SE37.
2006 Jul 14 2:06 PM
2006 Jul 14 2:11 PM
Try this:
REPORT ZHK_XML3 .
type-pools: TRUXS.
data: TAB_RAW_DATA TYPE TRUXS_XML_TABLE,
TOT_SIZE TYPE I,
TOT_SIZE1 TYPE I.
data: begin of TAB_CONVERTED_DATA occurs 0,
data1(250) type c,
end of TAB_CONVERTED_DATA.
DATA: FILENAME1 LIKE RLGRAP-FILENAME.
FILENAME1 = 'C:hkcmnicfg.xml'.
CALL FUNCTION 'TEXT_CONVERT_XML_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR = ';'
I_TAB_RAW_DATA = TAB_RAW_DATA
I_FILENAME = FILENAME1
I_TOTALSIZE = TOT_SIZE
TABLES
I_TAB_CONVERTED_DATA = TAB_CONVERTED_DATA.
2006 Jul 14 5:07 PM
2006 Jul 17 10:27 AM
Hi,
When i exicute your code it is going to short dump.It says:
A RAISE statement in the program "SAPLTRUX " raised the exceptio
condition "CONVERSION_FAILED".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
Any suggessions on this?
Regards
2006 Jul 14 2:09 PM
2006 Jul 14 2:12 PM
2006 Jul 14 2:31 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |