on 03-15-2007 12:04 PM
Hi,
I am trying to do a mapping with an Idoc and I don't know how to do it.
The Idoc has a structure like that:
<idoc>
<E1PLOGI>
<E1PITYP>
<E1P0021>
<element1>
data....
subtype = 2
</element1>
<E1P0021>
</E1PITYP>
<E1PITYP>
<E1P0021>
<element1>
data....
subtype = 3
</element1>
<E1P0021>
<E1P0021>
<element2>
data....
subtype = 3
</element1>
<E1P0021>
</E1PITYP>
<E1PITYP>
<E1P0138>
<element1>
data....
subtype = 3
</element1>
<E1P0138>
<E1P0138>
<element2>
data....
subtype = 3
</element1>
<E1P0138>
</E1PITYP>
<E1P0138>
<element1>
data....
subtype = 2
</element1>
<E1P0138>
</E1PLOGI>
</idoc>
Target Structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:HRM_EmployeeFamily xmlns:ns0="urn:alken-maes.be:xi:hrmaster2manager">
<EmployeeFamily>
<FRM>322499</FRM>
<AB>B</AB>
<WKN>06000040</WKN>
<VOLGNR>01</VOLGNR>
<NAAM>paca</NAAM>
<VNAAM>Manuela</VNAAM>
<GESLACHT>V</GESLACHT>
<VANAF>2007-03-13</VANAF>
<TEM>9999-12-31</TEM>
<GEBDT>2000-11-13</GEBDT>
<VERWANT>K</VERWANT>
<PCTINV>0</PCTINV>
<TENLASTE>1</TENLASTE>
<KNDBIJSL>1</KNDBIJSL>
<VLAG>I</VLAG>
</EmployeeFamily>
<EmployeeFamily>
........
</EmployeeFamily>
</ns0:HRM_EmployeeFamily>
In this Idoc the infotype 21 y related with 138, but the elements order is not correlated and when I do the mapping the 0021 element1 subtype 2 is mapped with element 0138 element1 subtype 3, so the data I get in the target structure is wrong.
Looking at the display queue when I do the mapping I see that the context never coincide.
any Idea of how I can map it to do it correctly.
Thanks.
Very helpful.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
write a User defined function
input nodes -- remove context - UDF - splitbyvalue -- target node
maintain the order with Vector. or add allvalues into vector and sort.
then yu can get it.
see to do UDF and vector help , inthe below link
Messsage mapping functionality - http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
Regards
Chilla..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.