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

compare 2 XML and only get the differences back

Former Member
0 Likes
1,704

Hello ABAP XML experts,

I do not have an XI infrastructure, but need to perform a changes-only functionality in interfacing.

To achieve this I have a program which creates an XML string from an ABAP dictionary structure. I create this XML using the CALL TRANSFORMATION id statement. Then I store this XML in a custom database table.

The next time I run the interface program I create a new XML string and I read the one from the database, which I stored in the previous run of the program.

So far so good. Now the question.

Is there a standard function module, class or transformation who I can give the new and old XML and then it would compare the content and tell me which values have changed?

Kind Regards

Koen Van Loocke

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
1,064

Try COMPARE method of class CL_SXIVERI_XML_COMPARATOR.

Regards,

Naimesh Patel

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
1,065

Try COMPARE method of class CL_SXIVERI_XML_COMPARATOR.

Regards,

Naimesh Patel

Read only

0 Likes
1,062

Hi Patel,

the method sound promising, however I have my xml in a data field of type string and the method needs type XSTRING.

do you happen to know how to convert from string to XSTRING?

thanks

Koen