Skip to Content
0
Former Member
Oct 25, 2013 at 01:28 PM

System error while reading XML using CALL TRANSFORMATION

175 Views

Hi all,

We are trying to READ XML file by XSLT_TOOL using CALL TRANSFORMATION.

we are using below code :-

TYPES : BEGIN OF ls_xml,

raw(262143) tYPE c,

END OF ls_xml.
DATA : l_xml_1 TYPE ls_xml.


DO.
READ DATASET w_fich INTO l_xml_1.
IF sy-subrc EQ 0.
CONDENSE l_xml_1.
APPEND l_xml_1 TO lt_xml_tab.
ENDIF.
ENDDO.


CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = l_str
IMPORTING
buffer = fw_xml
EXCEPTIONS
failed = 1
OTHERS = 2.


CALL TRANSFORMATION zsepa_sdd_trans1
SOURCE XML lv_xml
RESULT document = itab.

Getting EXCEPTION in CALL TRANSFORMATION.

Issue:-

The issue is that, when we are trying to READ an XML file of size grater than 262143.It is giving exception i.e.
"System expected a value for the type C" or "END OF TAG IS MISSING <TAGNAME>".

Thanks in advance.

Please let me know if needed more clarification.

Thanks,

Pratima