on 05-29-2006 7:48 AM
Hi All,
I have two fields in BW(Material and Currency). Earlier I had both the fields coming from Source System. Now only material is coming from the source system. So in message mapping,I was trying to apply conditions to the material, but I couldnt.
What I need to do is,
If the length of the material is 5, then currency must be assigned a constant value as pieces. If the length is 7, then currency must be assigned a constant value as boxes.
please help me out.
How do i achieve this?
Regards
rahul
hi,
you can do it with standard mapping functions:
length - to check the legth of your material
if - to check if it has 5 or 7
if 5 then PCE if 7 then BOX
or you can just use length function (on the material element) and connect it with a simple function like this:
if (a.equals("5")
return "PCE";
else if (a.equals("7")
return "box";
else
return "ERR";
which will give you your values
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
Message was edited by: Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.