Skip to Content
avatar image
Former Member

Sending Data from MII to SAP

Hi,

I need to send data from MII to SAP. The data is in the form of table, so i have created a XML document for it ( the structure of the xml doc is same as the internal table of SAP ) and mapped to the structure of the RFC using the JCo block. But this is not working. If the data column is mapped one to one, then only one row of data is passed to the internal table. How can i send the whole table data to the SAP internal table. Can anyone help me on this?

Regards,

Jeedesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 17, 2008 at 06:41 AM

    Hi Jeedesh,

    please have a look at the MII Help to Link Types of the Link Editor:

    [http://help.sap.com/saphelp_xmii120/helpdata/en/44/89aa7088cc6fb5e10000000a155369/content.htm]

    To copy all the rows to the RFC structure, you have to append the xml with all the rows to the RFC structure. Assume the following structure:

    RFC:

    <TABLE>
      <item>
        <element></element>
      </item>
    </TABLE>

    Local.item:

    <item>
      <element>Some Text</element>
    </tem>

    Now you use the the link editor to replace the item node of the RFC wih the local item node. If there are more than one rows, you append further item nodes to the TABLE node of the RFC. In the end you will get something like this:

    <TABLE>
      <item>
        <element></element>
      </item>
      <item>
        <element></element>
      </item>
    </TABLE>

    which you will send to SAP. Play around with link types to see how they work.

    Michael

    Add comment
    10|10000 characters needed characters exceeded