cancel
Showing results for 
Search instead for 
Did you mean: 

How to send multiple IDOCs as one message?

Former Member
0 Kudos

Hello,

I am setting up a process to allow our suppliers to pick up all their POs at once. I'd like to see if there is a way to pull all the active PO IDOCs into one message in PI.

The biggest concern I am facing is gathering and then sending many IDOCs as 1 big document:

<Purchase Orders>

<Purchase Order>

<PO Number> 0000001</PO Number>

</Purchase Order>

<Purchase Order>

<PO Number> 0000002</PO Number>

</Purchase Order>

</Purchase Orders>

Or can I send a "flow" of IDOCs into PI which is then consolidated into one document and sent.

Any ideas?

Thanks,

Matt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Matt,

There are two options for you to send multiple IDOCs as a single msg.

1. On the ECC side, You can gather IDocs in a file with XML format. Check out Stefan's blog on that : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417200%29ID1920843750DB1042936456389680400...

2. If you want to do it on PI end, you can use BPM to collect the idocs in PI. http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417200%29ID1920843750DB1042936456389680400...

If you are on PI 7.1 EHP1, there is a new feature : IDOC packagaing, you would have to "choose IDoc Packaging" option in your IDOC sender CC and under "IDoc Package Size ". Watch the video : http://www.sdn.sap.com/irj/scn/events?rid=/library/uuid/40a412a0-9501-2c10-cb83-f124e23d5373&overrid...

Pooja Pandey

Former Member
0 Kudos

2. If you want to do it on PI end, you can use BPM to collect the idocs in PI. http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417200%29ID1920843750DB1042936456389680400...

This is an Technical option but you shouldn't be doing it. B'cos of performance, message restart & memory issues.

IDOC Packaging is the BEST option. If you don't ahve that feature bundle up ur IDOCs as XML-file (Option-1) suggested earlier.

Regards,

Siva Maranani

VijayKonam
Active Contributor
0 Kudos

Matt,

IDoc packaging is good as Siva mentioned. PI 7.1.1 has built functionality for that. You might want to consider that too. If not you would have to create a BPM for sending these IDOCs as a response to a service call and with a time limit ( you would have to estimate a reasonable time limit fir the BPM to stop collecting).

VJ

Former Member
0 Kudos

Yes, I agree with Siva that the option to collect idocs on PI is not a best option from performance point of view but still, sometimes one can come across a situation where there are only few idocs coming from ECC side and also business decide not to do any configuration setting for idoc collection on ECC side.... In that situation,( without PI71EHP1) , one end up collecting idoc via BPM only.... But AGAIN, this should be the LAST option to choose for idoc collection.

Now you have all the options in front of you, Its your call to decide on the best approach to go for

Pooja Pandey

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you for the helpful responses. I'd like to use either the file or HTTP methods but I am unable to see how PI will recognize the files.

So when the supplier does a web service call for their POs, I will then kick off a proxy to our R/3 system that will execute the RSEOUT00 process to create the IDOCs and place them in the file. But how does PI know to pick up these files and correlate the files with the suppliers web service call?

Thanks,

Matt

Former Member
0 Kudos

Also, Check out Michael's blog for all the possible option to collect idocs. Also, it gives Pros and Cons for all the approaches :

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417200%29ID1920843750DB1042936456389680400...?

blog=/pub/wlg/14425

Pooja Pandey

Former Member
0 Kudos

Hello Matt,

Please see this link

Please give points if found useful

Regards,

Hemanthika