Skip to Content
0
Former Member
Nov 19, 2009 at 02:05 PM

XML Data

54 Views

Hi,

We are using the offline scenario for ADOBE forms integration with ABAP. The data will be in XML format.

The steps I have done.

1) I have converted the XSTRING to string using FM CATT_CONV_XSTRING_TO_STRING.

CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'

EXPORTING

IM_XSTRING = lv_pdf

  • IM_ENCODING = 'UTF-8'

IMPORTING

EX_STRING = lv_string

.

2) And, used the following piece of code:-

  • Remove NEW-LINE character from XML data in STRING format

CLASS cl_abap_char_utilities DEFINITION LOAD.

REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN lv_string WITH ' '.

  • Make the XML envelope compliant with identity transform

REPLACE '<?xml version="1.0" encoding="UTF-8"?>'

IN lv_string

WITH ' http://www.sap.com/abapxml" version="1.0"> '.

*REPLACE ' http://www.xfa.org/schema/xfa-data/1.0/"' in lv_string WITH ''.

REPLACE '</data>'

IN lv_string

WITH '</asx:values></asx:abap>'.

And,

CALL TRANSFORMATION ID

SOURCE XML lv_string

RESULT ITPDF = GIT_PDF.

Now the error I am getting while debugging it is XSLT: No valid XML source

PLease help.