on 12-17-2005 11:21 AM
Hi,
I am doing a message mapping.
Source:
=======
>Structure(A,B,C,D)
Target:
=======
>StructX1(A,B,C,D)
>StructX2(A,B,C,D)
I want to map source to both targets based on a certain criteria.
For example the records with A=100,200 or 300 should go to
StructX1 and records with A=500,600 or 900 should go to
StructX2.
Can any one help?
Thanks in Advance
Hi,
Your task can also be achieved by using a user defined JAVA function. the advantage of using a user defined function is, you can implement your logic easily. If the node satisfies your logic you add it to ResultList else you let it free.
This way ur mapping can be made easier. The other steps for going about is clear in the blog specified above. am also giving the link to that blog:
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
regards,
P.Venkataramanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi chemmanz,
You can use the functions availabvle for graphical mapping to solve your problem.
Use the If-then-else available on the Boolean Functions to do your condition checking and then direct it to the appropriate target.
For 1:N mapping, you can always include 2 different message types for your target so that on the basis of your conditions mapping can be done to the appropriate field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure if the target structure StructX1, and StructX2 are same, I assume they are the same structure.
If that is the case, in the message mapping, right click on the target field, choose duplicate subtree, so you know can have 2 target structures.
The rest is just if...else or if without else depending on your requirement.
--Wenning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this should work with the SplitByValue node function.
You can find an example in Sravya's weblog: <a href="http:///people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii:///people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
Regards,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.