cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert XML to Webdynpro Context

Former Member
0 Kudos

Hi Experts,

Could anyone please provide the example code of clas CL_WDR_XML_CONVERT_UTIL method IF_WD_CLIENT_CONVERSION_UTIL~STRING_TO_STRUCT? Many thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Darcy Mei ,

I hope you convert the context to XML by using TO_XML( ) method from interface if_wd_context _node.I searched in SDN and find the relavent thread

look at the below thread for converting XML-> context

[|]

Regards

Chinnaiya P

Former Member
0 Kudos

Hi Chinnaiya,

I do convert the context to XML by using TO_XML( ) method and I found the thread you mentioned before. I just want the code be more standard and convinent since sap provide such a class which seems provide the function. Unfortunately I searched with google and sdn and found no example code about this class. If you know any reference, I hope you could share with us. Many thanks.

Former Member
0 Kudos

hi,

I think you can try to parse your XML, there are 2 ways which we can parse XML

1). Using IXML-proxy class

2). Using Call-Transformation ID <>

You can search them, i think you will get detail information.,

Best wishes

Former Member
0 Kudos

Hi Edison,

I searched the web there were many people mentioned the class CL_WDR_XML_CONVERT_UTIL but no example code. So I just check on sdn to see anyone know it. For other way to read the xml, I know it. Many thanks.