Tuesday, October 15, 2019

IDOC Packaging

IDOC PACKAGING / COLLECTION


In some scnearios, we have to collect the idocs and dispatch them collectively.


For ex:


1. Collect of Purchase Orders and create a file at EOD everyday


2. Create a file with a maximum of 100 Idocs/records only. So, set the package size as 100 here.


This can be achieved by IDOC sender adapter. You need to define a package size in the adapter.

The package size defined here will be used to create IDoc packages in PI.






Some configuration needs to be done in ECC to work this -


In the partner profile of the Idoc,


Select the collect idocs options and also proivde the package size.






Report RSEOUT00
This report can be executed or scheduled as a background job to send the IDocs.

Sample Payload in SXMB_MONI




Challenges -


Ex. In a package of say 500 IDocs, if the field of an IDoc has wrong value which leads to mapping error in PI. The idocs may get stuck in queues.
So, we need to reprocess the idoc package from ECC.
When sending an IDoc package (assume N IDocs) if it goes into a data mapping error, we can fix the data at the source and resend the whole package again as follows-
1. In PI, find out what is causing the error & the idoc that contains the data.
2. In SXMB_MONI - extract all the idoc numbers in error state
3. Edit the error idoc in WE02
4. In ECC, use the report RC1_IDOC_SET_STATUS to change the status of the IDocs (to Ready for Dispatch)


5. Use RSEOUT00 and send the N IDocs again to PI


AMOR FATI - LOVE OF FATE


No comments:

Post a Comment