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

xml to Internal table : Issue

Former Member
0 Likes
610

Dear All,

I have written a program to bring the data from xml to internal table Below is the strucutre of my xml file .

- <Data>

- <MT Type="CR">

<MatType>FERT</MatType>

</MT>

- <OP Type="CR">

<MatNumber>9901040103-000115</MatNumber>

- <Activities Element="AT">

- <AT Type="CR">

<MaterialNumber>115</MaterialNumber>

<ActivityType>DEPR.</ActivityType>

</AT>

- <AT Type="CR">

<MaterialNumber>117</MaterialNumber>

<ActivityType>L.C.R</ActivityType>

</AT>

</Activities>

</OP>

</Data>

.However I am not able to handle the multiple entries which comes together . ie

- <AT Type="CR">

<MaterialNumber>115</MaterialNumber>

<ActivityType>DEPR.</ActivityType>

</AT>

- <AT Type="CR">

<MaterialNumber>117</MaterialNumber>

<ActivityType>L.C.R</ActivityType>

</AT>

Please let me know how to handle this . Thanks!

Regards,

Syed

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
569

Hello Syed

You may have a look at thread

Regards

Uwe

Read only

Former Member
0 Likes
569

yo can the FM alsm_excel_to_internal_table or for Example you can see in the given url:

Read only

jitendra_it
Active Contributor
0 Likes
569

Hi ,

To convert XML data into internal table u have to use FM "SMUM_XML_PARSE", this FM takes XString as input ,so first u have to

convert ur xml string into XString using FM "SCMS_STRING_TO_XSTRING".

Thanks

jitendra

Read only

Former Member
0 Likes
569

if you are in ECC 6.0, use Transformation (Please search the forum or help.sap.com to know more)

It is easy to use with table handling (only have pain in nested structure and control break-up) and really fast with bot-way handling.

Thanks.