cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping - Checking 3 fields to change IDOC

Former Member
0 Kudos

Hello,

I am triggering a new IDOC whenever the source field1 changes as below.

field1 -> removecontext -> splitbyvalue [value change] -> collapsecontext -> IDOC

If i need to check for 2 more fields field2 & field3 and if any one of these 3 field changes trigger the creation of new IDOC field?

How do I map the other two fields to IDOC?

Thanks,

Hari

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

First you can do a concat operation of the three fields then do the remove context and split by value.

Regards,

Francis

Answers (1)

Answers (1)

PriyankaAnagani
Active Contributor
0 Kudos

Hi,

Since we can not map the target IDOC when any of the field changes using nodefunctions , you can write UDF and check the same i.e if field1 changes or field2 changes or field3 changes then trigger new IDoc. This is one of the options that you can try...please try it once.

Regards

Priyanka

Former Member
0 Kudos

Thanks Priyanka . I have never written a UDF. I work on PI 7.1 Can you please provide me an example.

Hari