cancel
Showing results for 
Search instead for 
Did you mean: 

Message mapping

Former Member
0 Kudos

Hi,

My requirement is like this.

If source=Mt then target=M;

ElseIf source=Lt then target=L;

Else source =target.

Could anyone please help out with this?

Please send the screen shot of the mapping also.

Regards

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Mujja,

This can be solved using two if-else funcitons in graphical mapping only.

If source=MT-->then M --> else --> If source = Lt --> then L --> else source.

Regards,

---Satish

Former Member
0 Kudos

Hi Rambabu,

Create the UDF and write the following logic

1. Take Source as input to your UDF

2. Take Target as output to your UDF

3. Take the UDF as simple one ie Value [not context or queue]

4. Write the following logic

if(source.equals("Mt")

return "M";

elseif(source.equals("Lt")

return "L";

else

return source

Thats all. your problem will be solved

Warm Regards,

Vijay

Former Member
0 Kudos

Hi Rambabu,

Here is the text preview of the mapping. Unfortunately I don't know how to attach the screenshot you requested:

/ns0:m2/target=iF(const([value=M]), stringEquals(/ns0:m1/source=, const([value=Mt])), iF(const([value=L]), stringEquals(/ns0:m1/source=, const([value=Lt])), /ns0:m1/source=))

Former Member
0 Kudos

Hi,

If I am not wrong you are checking the conditon on a single field where as the result you are assigning to different target field. Is this what you are trying to achieve, if so, you can easily achieve this using graphical mapping. plz do clarify.

regards

Former Member
0 Kudos

Hi

i can't understand your requirement.

regards

yugapreetha

prabhu_s2
Active Contributor
0 Kudos

check with value mapping. refer to the below link

/people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool

also u can check with IF..ELSE in Graphical mapping.

The adv of the first approcah is if u need to change the parameter in the future u do not require to change it in mapping but u have the previledge to change it in the configuration part itself at one shot as in the blog.

Message was edited by:

Prabhu S

Former Member
0 Kudos

Hi Rambabu

Pls refer the below link

Start with these...

http://help.sap.com/saphelp_nw2004s/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm

/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio

/people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e...

http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm

/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio

http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm

/people/sravya.talanki2/blog/2006/07/24/integrating-java-editor-in-xi-integration-stack

/people/vijayasarathy.raghunathan/blog/2005/12/28/java-editor-inside-abap

http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/45/244c40aa6a0272e10000000a155106/frameset.htm

/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm

/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi

Hope it it will solve all your mapping related Issue

Pls reward if useful

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

1.Go for an UDF..... or

2. Use Boolean IF mapping function in MM

Regards

Santhosh

Message was edited by:

Santhosh Kumar V