cancel
Showing results for 
Search instead for 
Did you mean: 

Club or add two queues in to one SAP PI

ramu_g4
Participant
0 Kudos
228

Hi Experts,

Can we add two queues to produce a single queue without disturbing the context changes.

Queue1:

Queue2:

Result Queue should look like below:

Thanks,

Ramu.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190293
Active Contributor
0 Kudos

Hi Ramu!

Yes, this can be done using simple UDF for reading two input arrays in a loop sequentially and adding items to result list.

Regards, Evgeniy,

ramu_g4
Participant
0 Kudos

Hi Evgeniy,

Can you paste the code here.

I used below which produces different result.

for (int i=0;i<var1.length;i++)

{ result.addValue(var1[i]); }

for (int j=0;j<var2.length;j++)

{ result.addValue(var2[j]); }

Thanks,

Ramu.

ramu_g4
Participant
0 Kudos

Hi,

I used "All values of Queue" , now it worked.

Thanks,

Ramu.

former_member190293
Active Contributor
0 Kudos

Hi Ramu!

Looks good. Wouldn't you please provide the output? What's wrong with it?

Regards, Evgeniy.