Skip to Content
author's profile photo Former Member
Former Member

Looping on IDOCS for mapping - Business Connector

I am sending DELVRY03 type IDOC from SAP 4.6C to third party as an XML document using Business Connector. My mapping is as follows

LOOP over 'DELVRY03/DELVRY03/IDOC'

--MAP (Header fields from E1EDL20)

--LOOP over 'DELVRY03/DELVRY03/IDOC/E1EDL20'

-


MAP (E1EDL24 fields occurs many times - Items)

-


LOOP over 'DELVRY03/DELVRY03/IDOC/E1EDL20/E1EDL24'

-


MAP (E1ADRM1 fields - Shipto )

My External format requires data in the following format

DocHeader

Request (Record List)

--Shipto (address)

--Items (Record List)

Simple example

<?xml version="1.0"?>

<ALS>

--<DocHeader>

-


<Request>

-


<ShipTo>

-


</ShipTo>

<b>------<OrderLine>

-


</OrderLine>

-


<OrderLine>

-


</OrderLine></b>

-


</Request>

So far I have not been successful in mapping two line items under one request. I am very new to BC. I have tried several combinations by mapping my segments into temporary record lists etc. without any success. I would appreciate if someone can point me in the right direction. This will me to proceed further.

Thanks,

Ramesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2005 at 10:00 AM

    Hello Ramesh,

    You can better use xslt for this type of conversions.

    This is also standard functionality within the SAP Business Connector.

    In the future when your customer would like to migrate to XI or another solution, it is easy to copy the mapping to XI.

    Greetings,

    Mark

    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.