Skip to Content
0
Former Member
Aug 01, 2008 at 12:46 PM

Mapping issue

13 Views

Hi, well i open a new thread on this.

I have following source IDoc:

<ZBC0>

<IDOC BEGIN="">

<EDI_DC40 SEGMENT="">

<ZBC0 SEGMENT=""> 0...9999

<No>1</No>

<TYPE>1B20-6</TYPE>

<SPEC>152J</SPEC>

</ZBC0>

<ZBC0 SEGMENT="1">

<No>2</No>

<TYPE>1B20-6</TYPE>

<SPEC>152J</SPEC>

</IDOC>

</ZBC0>

the target will be three files with different contents, depending on the value in field <No>.

Target structure:

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

<MT_TYPSCH> 1..1

<TYPSCHRecordSet> 1..1

<TYPSCHDetailsStruc> 1..unbounded

<FELD1/> {represents content of <No>}

<FELD2/>

<FELD3/>

</TYPSCHDetailsStruc>

</TYPSCHRecordSet>

</MT_TYPSCH>

Make sure that we recieve IDoc with several ZBC0 and depending on the value in <No> it should be seperated in different target messages!!

How to achive this?!

br