Skip to Content
0

Club or add two queues in to one SAP PI

Nov 23, 2017 at 11:44 AM

33

avatar image

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.

q1.jpg (11.5 kB)
q2.jpg (13.0 kB)
qr.jpg (15.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Evgeniy Kolmakov Nov 23, 2017 at 12:05 PM
0

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,

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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.

0

Hi,

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

Thanks,

Ramu.

0

Hi Ramu!

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

Regards, Evgeniy.

0