Skip to Content
Author's profile photo Pravesh Puria

IDoc Package processing using sender IDoc adapter in PI EhP1

     In PI, IDoc packages received from SAP application system are split and each IDoc is processed separately.

 

     In order to regroup the IDocs or to avoid package splitting there can be different approaches.

 

     From Enhancement Pack 1 onwards a new option to process IDoc packages in PI is available. On enabling this the IDoc packages received from the sender system are not split and are sent to the IE as a package for further processing.

 

    In order to use the same following configuration steps are needed.

 

   a)  Necessary Configuration in SAP Application system:

 

      i) IDoc collection and Package size needs to be configured in the partner   

      profile –

 

       image

 

   

 

   b) Necessary Configuration objects  in PI:

 

      i) A Sender channel of type IDoc needs to be configured –

 

         image

 

  

      ii) Sender Agreement for the sender channel needs to be configured.

 

 

Processing status of the IDoc package as viewed in IDoc adapter monitor – transaction code IDX5:

 

 

image

 

  

 

Package details as viewed in transaction code SXMB_MONI:

 

 

image

 

 

 

Message details as viewed in transaction code SXMB_MONI:

 

 

image

 

 

For mapping purpose the IDoc xsd needs to be modified to change the occurrence of the “IDoc” node.

 

This feature is only applicable in cases wherein the IDocs have been sent in packages from the sender system.

 

IDoc packages received from the sender system are not split into individual IDocs given that the package size in sender system partner profile and in sender IDoc channel are the same.

 

If the package size in the sender system partner profile is greater than that specified in the sender IDoc adapter then the incoming package is split accordingly and the remaining IDocs are processed as part of another message in PI.

 

If the package size in the sender system partner profile is less than that specified in the sender IDoc adapter then the incoming packages are processed individually and there is no clubbing of packages in PI.

 

This feature does not enable collection of IDocs, ie – IDocs received individually are processed separately.

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Niki Scaglione
      Niki Scaglione
      Hello,

      Since on PI side the package is calculated again using Communication Channel parameter, it should be better to set higher value on partner profile (e.g. 500).

      Do you agree?

      Kind Regards,
      Niki

      Author's profile photo Pravesh Puria
      Pravesh Puria
      Blog Post Author
      Hi,

          Yes one can set the package size in the partner profile to a higher count.

      Regards,
      Pravesh.

      Author's profile photo Michal Krawczyk
      Michal Krawczyk
      hi,

      this feature is also described in my book:
      "Mastering IDoc Business Scenarios with SAP NetWeaver PI"
      http://www.sap-press.com/product_basic.cfm?account=&product=H3059
      if anyone would be interested

      Regards,
      Michal Krawczyk

      Author's profile photo Jaganmohan Ponnusamy
      Jaganmohan Ponnusamy
      Dear Pavesh,

         A very nice and interesting blog. Thanks.

      Regards,
      Jagan.

      Author's profile photo Mallikarjuna Rao Malisetti
      Mallikarjuna Rao Malisetti
      Thanks for sharing.

      Regards,
      Mallikaruna Rao M

      Author's profile photo Former Member
      Former Member
      Its very helpful in improving the overall performance.

      Regards,
      Pushkar

      Author's profile photo Former Member
      Former Member
      if one particular idoc fails at some step of processing like mapping step...how we need to handle the same...do we need to reprocess the entire package..or is there any other option for the same

      Thanks and Regards
      Rajesh

      Author's profile photo Pravesh Puria
      Pravesh Puria
      Blog Post Author
      All IDocs in the package are part of one single PI message, rather than looking at it as separate IDoc in case of error it needs to be dealt with as is done for a PI message.