cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an IDoc based off XML Schema

Former Member
0 Kudos

I was given the task to take an XML example and create an IDoc for it.

For example, the XML example I was given was....

<Items>

  <Item>

    <Item>MyMaterial</Item>

    <ListPrice>50</ListPrice>

    <NetPrice>50</NetPrice>

    <UOMS>

      <UOM>

        <ConvQty>1</ConvQty>

        <QtyUm>EA</QtyUm>

      </UOM>

      <UOM>

        <ConvQty>3</ConvQty>

        <QtyUm>3PK</QtyUm>

      </UOM>

    </UOMS>

  </Item>

</Items>

2 questions....

1. Should I make a segment for each layer and just have one field in each one?

2. I'm forced to have a Z* segment name.  How do I get the output in the name that I need?  Ex. ZITEM to ITEM

Any direction would be greatly appreciated.

Thanks,

Curtis

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Curtis,

You need to get the mapping design document from your functional owners & try to understand how the XML tags are mapped to which segments of the IDOC

Regards,

Ashish

former_member184789
Active Contributor
0 Kudos

Hi Curtis,

Could you please go through:

https://scn.sap.com/thread/1087846