on 2007 Jul 31 9:53 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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=))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
i can't understand your requirement.
regards
yugapreetha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.