cancel
Showing results for 
Search instead for 
Did you mean: 

Sender Proxy to send multiple messages

Former Member
0 Kudos

Hello All XI experts,

I need your help to work for my scenario which is a Proxy-File .

I need to send data picked up from certain group of tables via sender proxy to XI.

The problem is that , we will be having thousands of records at the same time , so what we plan we can send the records via multiple messages in bunch of n no of messages rather sending the entire data in a single message.

Can you please help me in order to find a way by which we can achieve this in sender proxy ( to send multiple messages with each bunch having n no of messages ) .

Waiting for your expert thoughts and invaluable help.

Thanks,

Sunil

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sunil,

Can you please help me in order to find a way by which we can achieve this in sender proxy ( to send multiple messages with each bunch having n no of messages ) .

Yes, I can help you

It is fairly simple ... in your proxy code, when you are looping at the tables for moving the records, make a counter and increment it with each record. As the counter reaches "n", execute the proxy method.

A sample logic for you, change it as per your requirements -

loop at <tab1> into <tab2>.

move <>.

.

.

append <>.

add 1 to l_count.

add 1 to l_total_count.

if l_count = 500.

<Call Proxy Method>

commit work.

clear l_count.

endif.

endloop.

Hope this helps.

regards,

Neetesh