Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mapping issue: FCC: Idoc for each record in file

Hi,

I have file to Idoc scenario.

I receive csv file with multiple records.

The requirement is to create an Idoc for each record.

For eg.

source file

A1,B1,C1

A2,B2,C2

A3,B3,C3

After FCC

<MT>

<TRANS>

<ROW>

<A>A1</A>

<B>B1</B>

<C>C1</C>

</ROW>

<ROW>

<A>A2</A>

<B>B2</B>

<C>C2</C>

</ROW>

<ROW>

<A>A3</A>

<B>B3</B>

<C>C3</C>

</ROW>

</TRANS>

<MT>

I have first tested it with only 1 record to test end to end connectivity. It works as expected and Idoc is posted to target system.

Now when I am trying to send multiple records, I am getting some issues.

Below are the steps that I have taken to process multiple records:

1. Changed the cardinality of ROW (child of RecordSet) from 1 to Unbounded.

2. Changed the occurance of Idoc to Unbounded.

3. Mapped ROW to Idoc root.

I have tested the mapping in IR and it generates multiple IDOCs.

When I send the test file, it fails with error Tag found instead of tag IDOC BEGIN=

I can see the xml message created with multiple ROWs in XI by File adapter in sxmb_moni.

When I do Test Configuration in ID, with the XML message extracted from sxmbmoni, the result that I got was:_

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1></ns0:Message1></ns0:Messages>

This means that idoc was not created while mapping.

But the same sample message works OK in IR!

Pls help where I have missed.

Regards,

Anirudh.

Not what you were looking for? View more on this topic or Ask a question