cancel
Showing results for 
Search instead for 
Did you mean: 

How to map XML to Web Dynpro context nodes?

Former Member
0 Kudos

Hi Experts,

I know there is a method in IF_WD_CONTEXT_NODE called TO_XML( ). And the method is so cool, which can export the data of the context to XML string easily.

But the question is how can I do the reverse operation?

For example, I export the data of root context node to XML string. And then how can I get the data back onto the context nodes?

Best Regards,

Guo Guo Qing

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I worked it out myself

Former Member
0 Kudos

Hi,

Could you please explain how this is achieved.

Thank you,

Former Member
0 Kudos

Hello guoqing guo,

Just try this method from class CL_WDR_XML_CONVERT_UTIL.

IF_WD_CLIENT_CONVERSION_UTIL~STRING_TO_STRUCT

The converted data is bind back to the context node susing bind_table method from the IF_WD_CONTEXT_NODE.

Regards,

Bharath.K

Former Member
0 Kudos

Hi,

Please check the following classes and interfaces -

CL_SALV_WD_XML_20

CL_WDR_XML_CONVERT_UTIL

IF_IXML_NODE* You can related interfaces for the XML.

Give them a try to read the XML string.

Regards,

Lekha.