on 09-28-2006 1:39 PM
Hi all.
I am doing interface is Siebel to SAP Customer Creation and Update. While mapping source side Siebel pass the Customer Account Group are Sold to Party, Goods Recipient, Payer and Bill to Party based on these parameters .My Target side we want like Z001, Z002, Z003 and Z004.
1) If Source side Customer Account Group is Sold to Party then my target side is Z001.
2) If Source side Customer Account Group is Goods Recipient then my target side is Z002
3) If Source side Customer Account Group is Payer then my target side is Z003
4) If Source side Customer Account Group is Bill to Party then my target side is Z004
So each time source Siebel send one Customer Account Group based on that we want target side as Z001, Z002, Z003, and Z004. So pls help to me <b>how do this issue on message mapping or user defined function (UTF)</b>
please help me out .....
Regards,
Ramesh
the best way to do it will be via value mapping
http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
in this case in future any change comes only your value mapping table needs to be altered unlike editing your UDF.
Also ref: https://www.sdn.sap.com/irj/sdn/developerareas/xi?rid=/webcontent/uuid/a680445e-0501-0010-1c94-a8c4a... [original link is broken]
to get value mapping on SDN TV.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can go for Value mapping in your case.
Use function 'fixvalue' and mention your sender elements with corresponding target elements then map the fields accordingly.
ofcourse this work for this particular scenario only. If you want to reuse the same mapping in future you can maintain the same Value mapping in Integration Directory.
Thanks
SRK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
While doing message mapping you can use the <b>FixValues</b> that is available in Graphical mapping.
Just give the key and the values in it thats it.
Source field --> FixValues -->Target field
Thanks,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
UDF is very simple
public String conversion(String a,Container container){
if(a.equals("Sold to Party")
return "Z001";
else
if(a.equals("Goods")
return "Z002";
else
if(a.equals("Payer")
return "Z003";
else
if(a.equals("Bill to Party")
return "Z004";
}
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 | |
10 | |
7 | |
6 | |
6 | |
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.