cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Problem

Former Member
0 Kudos

Hi,

I am very confuge in following Message Mapping Problem

Source Structure:

<IDOC>

<PO>

<A>1</A>

<B>2</B>

</PO>

<PO>

<A>1</A>

<B>3</B>

</PO>

</IDOC>

Target Structure:

<IDOC>

<PO_HEADER>

<A>1</A>

</PO_HEADER>

<PO_ITEM>

<B>2</B>

</PO_ITEM>

<PO_ITEM>

<B>3</B>

</PO_ITEM>

</IDOC>

Can any one help?????

I am using Message Mapping (Graphical Mapping) Only.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

STALANKI
Active Contributor
0 Kudos

Have a look at https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2792.It [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] will be helpful.

Answers (4)

Answers (4)

Former Member
0 Kudos

hi umesh

check this recently posted weblog

<a href="/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi:///people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi

hope this helps u

praveen

Former Member
0 Kudos

hi this link cud help u..

/people/venkat.donela/blog/2005/06/09/introduction-to-queues-in-message-mapping

but for the scenario u have given i wud recommend XSLT Mapping

stefan_grube
Active Contributor
0 Kudos

Hi Umesh,

try following:


constant - PO_HEADER

A - removeContexts - copyValue* - A

PO - PO_ITEM

B - B

  • instead of copyValue you can use collapseContexts as well.

Hope that helps,

Stefan

Former Member
0 Kudos

Hi Stefan Grube,

Sorry to give you compleate structure,

Is above mapping works for following structure also.

Source Structure:

<IDOC>

<PO>

<A>1</A>

<B>2</B>

</PO>

<PO>

<A>1</A>

<B>3</B>

</PO>

<PO>

<A>X</A>

<B>2</B>

</PO>

<PO>

<A>X</A>

<B>3</B>

</PO>

</IDOC>

Target Structure:

<IDOC>

<PO_HEADER>

<A>1</A>

<PO_ITEM>

<B>2</B>

</PO_ITEM>

<PO_ITEM>

<B>3</B>

</PO_ITEM>

</PO_HEADER>

<PO_HEADER>

<A>X</A>

<PO_ITEM>

<B>2</B>

</PO_ITEM>

<PO_ITEM>

<B>3</B>

</PO_ITEM>

</PO_HEADER>

</IDOC>

Thanks & Best regards

stefan_grube
Active Contributor
0 Kudos

Hi Umesh,

I love challenges


A - removeContexts - splitByValue(valueChanged) - collapeContexts - PO_HEADER
 
A - removeContexts - splitByValue(valueChanged) - collapeContexts - splitByValue(eachValue) - A (*)
 
A - removeContexts - splitByValue(valueChanged) - PO_ITEM

B - B

*) When in the target structure the occurrency of A is 1:1, then this term can be reduced to:


A - removeContexts - splitByValue(valueChanged) - A

Regards

Stefan

Message was edited by: Stefan Grube

Former Member
0 Kudos

Hi Stefan Grube

Actually above mapping generates wrong results as follows:-

Target Structure:

<IDOC>

<PO_HEADER>

<A>1</A>

<PO_ITEM>

<B>2</B>

</PO_ITEM>

<PO_ITEM>

<B>3</B>

</PO_ITEM>

<PO_ITEM>

<B>2</B>

</PO_ITEM>

<PO_ITEM>

<B>3</B>

</PO_ITEM>

</PO_HEADER>

<PO_HEADER>

<A>X</A>

</PO_HEADER>

</IDOC>

Best Regards

stefan_grube
Active Contributor
0 Kudos

Hi Umesh,

sorry about that.

Now I did some testings. Look at it now.

Regards

Stefan

STALANKI
Active Contributor
0 Kudos

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii will be helpful.