on 01-04-2009 11:52 AM
Can Variables in target mapping can be used in the deefinition of another target field.
for example:
target variable - *var1(with initialized value )
target variable - *var1 ->substring(0,3) -> *var2
cheers.
Nimrod.g
If you are using PI 7.0, then you can use UDF to achieve this.
function myudf(String a,String b,Container container)
{
String b = "";
//Modify the contents of a.
b = a.substring(0,3);
if (b=="1")
return a;
if (b=="2")
return b;
}
a---> MyUdf-->var1
b(1)--
a---> MyUdf-->var2
b(2)--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nimrod,
Check this for PI 7.1
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nimrod,
You can achieve this either by using same mapping logic + substring function to use first target value for the second target.
Or
You can make use of Edit Java Section, there you can store the output of first target in a variable and then can reuse that according to your requirement.
Check Edit Java Section in
http://help.sap.com/saphelp_nw04/helpdata/en/ee/bf9640dc522f28e10000000a1550b0/frameset.htm
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
We are using the SAP PI 7.1 SP6.
I'm trying to avoid running the same mapping (especially when using lookups) to
hold the value as a variable.
problem happened when I use one variable (with substring for example)to help define another variable.
If you have experienced this specific behavior or created a small test and faced the same problems your solution will be most welcome.
Nimrod.g
Hi...
Check the below link.
/people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
Regards,
Leela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go through following link, explaining how to use variables in message mapping to avoid redundant mapping: -
http://help.sap.com/saphelp_nwpi71/helpdata/en/1d/1140dc082d4c009580100d7efc544a/frameset.htm
Regards,
Sami
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nimrod,
Which version of PI you are using? In PI7.1 had this option in Graphical message mapping.
http://help.sap.com/saphelp_nwpi711/helpdata/en/61/8c3842bb58f83ae10000000a1550b0/frameset.htm
Cheers,
Jag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use global variable for such operations. If you are using PI 7.1, then you may use "Add Variable" option for storing intermediate mapping results.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.