Skip to Content
author's profile photo Former Member
Former Member

Mapping

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 15, 2006 at 07:36 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2006 at 06:57 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Smitha could you explain me with Java Function.I couldn't achieve this using userdefined function.

      Here once again i am repeating my problem.

      If my source field value is=AB then target field(name of the target field) value will be printed as 2...same like Value=CH then field would be 3..

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.