on 10-15-2006 7:48 AM
Hi,
I was doing mapping for the below validation and I got strucked,so can any one help to achieve this.
Sourcefield-value
Target Field-FIELD
Conditions
1)If value=
AB=FIELD=2
CH=FIELD=3
MN=FIELD=4
YJ=FIELD=5
IJ=FIELD=6
Hi,
You can write a UDF with an if condition to check if the value is AB or CH etc, for example
if (field1.equals("AB"))
And then write the corresponding output you want to, either 2 or 3 or whatever you require. If the structure which you want to get is more complex, you can do the same in Java Mapping. Refer to these blogs by Prasad to help you with Java Mapping
<a href="/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i Mapping-Part 1</a>
<a href="/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii Mapping-Part 2</a>
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you didn't understand my question completely,Let me explain once again.
In my source Element name is VendorName.
In My Target Element name is VendorNumber.
I have to map a source Element VendorName to VendorNumber with some conditions.
When I give Input as VendorName=CH then Target Element VendorNumber would display as 2(VendorNumber=2)...like that VendorName=EF then VendorNumber=3
Can you write a sample program and reply me...
Note:Please take more than two values
1)VendorName=CH----VedndorNumber=2
2)VendorName=EF----VedndorNumber=3
3)VendorName=EF----VedndorNumber=4
Hi,
There is no need for a UDF, you can either use FixValues or Value Mapping. These functionalities are available specially for this kind of requirements.
FixValues
http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/content.htm
Check out this link a very good document explaining mapping functionality and Value Mapping as well.
Regards,
Prakash
Hi,
You can carry out this mapping by writing a simple user defined function in graphical mapping.
Could you please be more clear as to where you are facing a problem?
Regards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.