Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error in XML transformation

Former Member
0 Likes
1,550

We are reading an XML file (utf-8) using a transformation created through the Tcode XSLT_TOOL. We are using the CALL TRANSFORMATION statement for the same.

We find that there is an issue which has come up in production because the program could not read a file which has around 6000 lines. Upon analysis we found that the CALL TRANSFORMATION statement fails.

The error message of the exception we get is “System Expected A value Of Type C”.

We do not have a way of finding which exact tag in the XML file is causing this. We tried to declare the structure elements with numeric data types, but the transformation accepts only Character type elements. Due to this  we’re not able to resolve this error.

This is a very critical production issue for the client since it affects the transfer of payment data to banks in this XML format of SEPA (Single EURO Payment Area).

Kindly help us out by connect us to some folks who have worked on XML processing of bank files and will be able to help us out.

2 REPLIES 2
Read only

Former Member
0 Likes
947

Hi,  Try this approach.

DATA:lv_filname TYPE  localfile.   DATA:lv_xstring TYPE xstring.   DATA:xml_table   TYPE STANDARD TABLE OF smum_xmltb.   DATA:lv_dummy TYPE string.   CONCATENATE  in_path in_filename INTO lv_filname.   OPEN DATASET lv_filname FOR INPUT IN BINARY MODE.   IF sy-subrc NE 0.     "...

ENDIF.   READ DATASET lv_filname INTO lv_xstring.   CLOSE DATASET lv_filname.   CALL FUNCTION 'SMUM_XML_PARSE'  

EXPORTING    

      xml_input = lv_xstring  

TABLES    

      xml_table = out_tab    

return    = out_return.   CALL FUNCTION 'HR_KR_XSTRING_TO_STRING' 

  EXPORTING    

      in_xstring          = lv_xstring  

IMPORTING  

      out_string          = out_string     

      .   IF  out_string NE 0.    "... 

  ENDIF.

Read only

germain_azambou2
Explorer
0 Likes
947

Hi

Set a break point by call Transformation, so at this point you will be able to jump in the transformation with F5, and debug  line after line. till the point where it trows the error

i think your error mean the declared structure is waiting for a caracter but receiving somthing else.

i'm working on Sepa XML too but with simple transformation

let me know if it solved your problem