Skip to Content

Current Record (XI 2.0 Mapping)

Hello,

I have a record coming in that looks like this:

<root>

<document>

<type>sale</type>

<company>GNS</company>

<detailline>

<amount>123.21</amount>

<volume>555</volume>

</detailline>

<detailline>

<amount>123.21</amount>

<volume>555</volume>

</detailline>

</document>

<document>

<type>purch</type>

<company>R1N</company>

<detailline>

<amount>123.21</amount>

<volume>555</volume>

</detailline>

<detailline>

<amount>123.21</amount>

<volume>555</volume>

</detailline>

<detailline>

<amount>445454.32</amount>

<volume>65477</volume>

</detailline>

</document>

</root>

As you can see there can be multiple documents and within those multiple documents there are an indefinite amount of detaillines.

These records are moving into SAP R/3 via RFC. We are unable to find a way to build a remotely enabled function with a structure that will match the layout of this file (table within a table). Normally this is allowed in ABAP functions however when the function is made "remotely enabled" it will not allow us to have a structure within a structure. We have had to resort to creating two separate flat structures and mapping the header (document) data to table one and all the detail lines (detailline) to table two. So, how do I know which detail lines go which header? The simplest solution would be to move a unique key from the header into the detail lines it owns. The problem is that there is no unique data in the header. I would like to be able to draw out from XI the record number of the <document>. This could be placed in a field in the header table on the RFM side and I could also place that same number in all the subsequent detail lines.

So…

First of all, is there a way to create a structure within a structure and have it remotely enabled?

Second, how would I be able to build that unique key the header and subsequent detail lines? How can I retrieve the current record index from the XI mapping tool?

  • note * We are unable to have this field added to the XML file as it is being generated by an external company that would call something like this a three hundred thousand dollar change order.

Thx

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2005 at 09:10 PM

    Is it possible to use ABAP proxy? The proxy can be generated based on the interface you designed in the IR. This way you can have the "table within table" structure.

    Regards,

    Bill

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.