cancel
Showing results for 
Search instead for 
Did you mean: 

How to send a single Message to XI in case of Collect IDOC?

Former Member
0 Kudos

Hi,

   we have a scenario where in we are collecting the PEXER IDOC. The collect IDOC seeting as far as R/3 - ECC is working fine.

we are able to collect the IDOC in ECC but the moment we are sending all these collect IDOC to XI, It comes as individual messages in XI-PI.

where as we want a single message for all these collect IDOC's which we have sent from ECC.

kindly let me know what all configurations are required to do in ECC as well as in XI. we do not want to use BPM in XI-PI.

Regards,

Umesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member189754
Participant
0 Kudos

Hi Umesh,

You said, "Just to clarify that at ECC side we are collecting the IDOC. the setting is not based on numbers. like 500 IDOC etc. we are simply collecting it & in ECC ABAP we have written one custom (Z program)

by which we are sending all these collected IDOC's based on particular condition e.g. for a particular RUN ID we are selecting all these IDOC's & sending it to PI ".

My answer to this is: Not a problem. No matter how many idocs you collect in ECC. You just give the max number in the sender adapter 5000. Now, you collect the idocs in ECC using your Z Report and send it to PI.

PI will receive the idocs in one message and process the same as one message. provided the number of idocs in one message does not exceed 5000. Or else, PI will split the message after 5000 idocs.

Hope it's clear now.

Regards

Harish

Former Member
0 Kudos

Hi Harish & Abhay,

     Now actually i am facing the IDOC problem. The PEXER IDOC is not coming to PI. It is giving the following error. Just to Add at PI side we have created the SENDER IDOC channel.

at ECC side we have created in WE20 Partner type B (Bank). In WE21 we have created XML HTTP Port with RFC destination. The path prefix mentioned as follows :

/sap/xi/adapter_plain?namespace=urn:sap-com:document:sap:idoc:messages&interface=PAYEXT.PEXR2002&service=BS_SAP_R3&QOS=EO

The Above mentioned RFC destination is working Fine. But Getting the following error in ECC for Idoc Generation.

Error when sending by HTTP

Message no. EA096

Diagnosis

When transferring the IDoc by HTTP, the return code with the message '500Wrong channel adapter type' has occurred.

The target address was: http://xidev.corp.bharatpetroleum.com:50000/sap/xi/adapter_plain?namespace=urn:sap-com:document:sap:

Check whether the IDoc can be sent again.

It is unfortunately not possible to determine automatically whether the IDoc has in fact arrived in the target system and the error occurred afterwards.

Procedure for System Administration

Inform your system administrator

Former Member
0 Kudos

Dear All,

   our problem got resolved. Acually there was no setting required at the PI side.

we have defined in WE21 the XML HTTP Port with RFC destination as Type H to connect to XI integration engine port 8000. At ECC side we have written one customized program to collect the IDOC based on some identifier e.g. payment run & pushed these all IDOCS as single message by submitting to a standard program RSEOUT00 to PI.

Thanx a lot.

Umesh

abhay_rajhans2
Contributor
0 Kudos
Former Member
0 Kudos

Hi Umesh,

Please check this link:

http://help.sap.com/saphelp_nwpi711/helpdata/en/06/d781977e8b40b3ac8e651cae383df5/content.htm

idoc packaging option in sender idoc adapter.

Regards,

Beena.

Former Member
0 Kudos

Hi Guys,

    Still it is not clear to me, that what settings i will have to do in XI to received one XML message.

Regards,

Umesh

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Michal has a very nice blog about collecting IDocs (with pros and cons)

http://scn.sap.com/community/pi-and-soa-middleware/blog/2009/05/21/xipi-collecting-idocs--possible-w...

Hope this helps,

Mark

abhay_rajhans2
Contributor
0 Kudos

Hi Umesh,

Please follow below steps

Setting in ECC.

1) As per the link given in my earlier post . Use XML HTTP port. And in SM59 go for the way URL defined in the way it is mentioned in POST.

2) Use report RSEOUT00 to bundle IDoc in ECC. This report will send the  bundled IDoc to PI.

Settings in PI

1) Import IDoc in PI in ESR under namespace

2) Change the cardinality of IDoc from0-1 to 0 - Unbound using notepad

3) Now the manual changed IDoc needs to be taken as External defination again in ESR.

This way your scenario should work.

Former Member
0 Kudos

Hi Umesh,

Please check this blog:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2010/01/22/idoc-packaging--sap-pi-71-ehp1-an...

http://scn.sap.com/thread/3200424

Please create idoc sender channel and enable idoc packaging flag and give some package size.

Regards,

Beena.

Former Member
0 Kudos

Hi Umesh,

you mentioned as XI ..So you may need to check whether the IDoc packaging option in sender idoc adapter is available with your SP...

From PI 7.11 onwards ( if i am correct) IDoc sender adapter has an option to enable packaging option in PI so that one XI message will be receiver for idocs sent in bulk from ECC...

HTH

Rajesh

Former Member
0 Kudos

Hi Rajesh,

     we are on PI 7.11 wih SP8.

Regards,

Umesh

former_member189754
Participant
0 Kudos

Hi Umesh,

You can set the parameter in your IDOC Sender adaper.

Set the check box IDOC Packaging and give the max size that you want to include in your message.

For eg. if you want to include 500 idocs in one message then set it to 500.

just check the settings in your ECC what is the max number you have given in your partner profile to collect the idoc. Set the same number in your IDOC sender adapter too.

It will work.

Regards

Harish

Former Member
0 Kudos

Hi All,

  Just to clarify that at ECC side we are collecting the IDOC. the setting is not based on numbers. like 500 IDOC etc. we are simply collecting it & in ECC ABAP we have written one custom (Z program)

by which we are sending all these collected IDOC's based on particular condition e.g. for a particular RUN ID we are selecting all these IDOC's & sending it to PI.

But after it is receiving in PI it is coming as individual IDOC. so how to handle this?

hope my requirement is clear.

Regards,

Umesh

Former Member
0 Kudos

Dear Abahy,

    can you pl. explain in detailed how to do the following steps. how to change the Cardinality of IDOC?

      

Settings in PI

1) Import IDoc in PI in ESR under namespace

2) Change the cardinality of IDoc from0-1 to 0 - Unbound using notepad

3) Now the manual changed IDoc needs to be taken as External defination again in ESR.