cancel
Showing results for 
Search instead for 
Did you mean: 

have to send only first context value

manikandan_shanmugam3
Active Participant
0 Kudos

Hi All,

I have a requirement where a field will have a multiple context and need to send value of the first context only.

Regards,

Mani

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hi Manikandan,

Mark the thread as answered if the issue is solved.

Regards,

Sudha

Former Member
0 Kudos

Hi Manikandan,

use collpasecontext node function

Cheers

Hidayat

0 Kudos

Hi Manikandan,

If you need first value in all context then you can use collapse context.

If you need values of only one context then you need to go for udf.

Can you provide more details regarding requirement. Provide sample input and output data it will easier to answer your query.

Regards,

Sudha

manikandan_shanmugam3
Active Participant
0 Kudos


regardless of any  number of values in a context should be sent to target


Regards,

Mani

Former Member
0 Kudos

Hello Manikandan,

You would have to play with your mapping, Pass your element till same node exist(e.g. - root node, since this only comes once). Then you have to be sure if the target elements occur same multiple number of time, depending on your requirement.

If you can share input or target maybe i can explain you better.

Regards,

Hiren

0 Kudos

Hi Manikandan,

As per my understanding you want to send all the values coming in first context to target.

If my understanding is correct then PFB the screen shots of mapping & UDF which will serve your purpose.

If your requirement is different then provide sample input and expected output.

Regards,

Sudha

iaki_vila
Active Contributor
0 Kudos

Hi Manikandan,

Have you tried with the copyValue function? (you would need to have the queue with the correspondents contexts)

Check these examples:

Standard Functions in PI 7.0 - Process Integration - SCN Wiki

copyValue (SAP Library - SAP Exchange Infrastructure)

Regards.