cancel
Showing results for 
Search instead for 
Did you mean: 

Having problems performing field mappings

Former Member
0 Kudos

Hi Experts...

I am trying map werks field to another field of the same type .

However we are suppose to map the last two characters of source work field.

The source incoming data for werk can have 2 ,3 or 4 characters.

I have tried various combinations of if ....if without else ...length ...text functions

but they are not working.

can somebody tell me how to go about it using standard functions available .

Regards,

deepak

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Deepak -

Much easier with a very simple User Defined function (UDF). Just create a simple UDF with one input parameter (call it 'a' which is default) and just put in the following and save:

<i>return a.substring(a.length() - 2, a.length());</i>

Regards,

Jin

Former Member
0 Kudos

Hi ,

Thanks ...do i need to import any java packages for the same.

Former Member
0 Kudos

No...

Regards,

Jai Shankar

prabhu_s2
Active Contributor
0 Kudos

not req

prabhu_s2
Active Contributor
0 Kudos

you can close either one of the thread of urs havin the same post.

Former Member
0 Kudos

Hi Deepak,

If source file doesn't have fixed lenght , we may not use standard functions in this case.

you can do it with Creating Java or Abap simple New functions in mapping it self.

regards,

ramesh..

Former Member
0 Kudos

check my reply in ur other posting