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

type conflict while parseing the data (XML to INTERNAL TABLE)

Former Member
0 Likes
632

Hi

i have a little problem while converting the string XML data

I am getting the XML data in a string variable

---now i am calling FM.......SMUM_XML_PARSE

But i getting an error saying that TYPE CONFLICT.....

since the input data type for the above FM is XSTRING and my data is only STRING...

how to resolve this !!!!!!!!!!!!!

Regards

Albert

4 REPLIES 4
Read only

madhu_vadlamani
Active Contributor
0 Likes
571

Hi Albert,

Just conversion with another fm.I think u r uploading first from gui_upload then file is ready.Then use fm SCMS_BINARY_TO_XSTRING this will covert then use SMUM_XML_PARSE.This will work and your issue will be resolved.

Regards,

Madhu.

Read only

0 Likes
571

HI

thanks for your reply....

i am getting the data from a FM SXPG_COMMAND_EXECUTE

Where you can see the output in a table format of type XSTRING

Now my task is to process that Xstring to get the output as internal table........

waiting for your kind reply..

Regards

Albert

Read only

0 Likes
571

Hi Albert,

1) SMUM_XML_PARSE

Since the input data type for the above FM is XSTRING and my data is only STRING

2) FM SXPG_COMMAND_EXECUTE

Where you can see the output in a table format of type XSTRING.Now my task is to process that Xstring to get the output as internal table

I think the problem with conversion into string and xstring .You can check with SCMS_BINARY_TO_STRING,SCMS_BINARY_TO_XSTRING.

Regards,

Madhu.

Read only

Former Member
0 Likes
571

Can you try using FM "LXE_COMMON_XSTRING_TO_STRING" or "ECATT_CONV_XSTRING_TO_STRING" to convert xstring to String?

Regards,

Indranil