cancel
Showing results for 
Search instead for 
Did you mean: 

UDF , Mapping issue

former_member192079
Participant
0 Kudos

Hi all

in my scenario i am mapping an IDOC interface to a file..

at runtime one segment E1EDKA3 is repeated 2 times..like

E1EDKA3.ort01

E1EDKA3.ort01

i <b><b>want a field value of ort01 of the 2nd segment not the first</b></b>... to be mapped to file..

by default it is taking value of the first segment ort01 field

can any one have the user defined function coding...as i am not from java background..

Regards,

ashutosh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Try this out

UDF Context type

Input ort01

Code

result.addValue(ort01[1])

Mapping

ort01 --- removecontext -- UDF --- Target

Mudit

Award points

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

You can achieve it in two ways

one is by copyvalue and second is UDF

copyvalue

source -- copyvalue(double click enter 1) -- target

with UDF -- take queue option

source -- remove context -- UDF -- target

in UDF

result.addValue(1)

Regards

Chilla

Former Member
0 Kudos

Hi

Just to add

User defined function(UDF) will be context type

and remove context is a node function.

Mudit

Award points if it helps

former_member192079
Participant
0 Kudos

Thanks Mudit

it work in single shot

ajay