cancel
Showing results for 
Search instead for 
Did you mean: 

Handling IDoc Acknowledgement

Former Member
0 Kudos

Hi,

I have a File -> XI -> IDoc scenario where I am using 2 IDocs at the receiver side.

I need to check the acknoelwdgement from IDoc1; and only if IDoc1 is successfully posted in R/3, I'll need to send IDoc2.

Is it possible to map the acknowledgement from IDoc and validate the status (using status code 52 or 53) and then take appropriate action?

Any help would be greatly appreciated.

Thanks,

Guru

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Guru,

One option, in the Idoc processing code for Idoc1 write an Exit that on the basis of the status of the Idoc will send the Idoc Acknowledgement back to XI in the form of the ALEAUDIT Idoc.

Using this you can check the status of the idoc inside your BPM ( you will need a receive step in the BPM following the send step to get the idoc acknowledgement ) and then use this to decide if the idoc2 is to be sent or not.

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Thanks for the reply. Could you please provide more details on the following?

>>in the Idoc processing code for Idoc1 write an Exit

I'm not sure I completely understood this. Do you want me to write a code to process the acknowledgement and validate it?

Thanks,

Guru

bhavesh_kantilal
Active Contributor
0 Kudos

Guru,

To be frank coz I aint an ABAP'er I just know that this is one option to trigger the idoc Ack back to XI, once the idoc has been processed by the R3 system.

Asking an ABAP'er / ALE specialist should give you the exact implementation info, but this is one solution that would certainly work!

Regards

Bhavesh

Former Member
0 Kudos

Prasad,

If you want to change the Idoc status then you use the report IDOC_STATUS_CONVERT. Also see this thread:

Also see some threads on this:

https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums&query=idocstatus&adv=true&adv_sdn_forums_sdn_author_name=&adv_sdn_forums_sdn_allusernamesofthread=JayakrishnanNair&adv_sdn_forums_sdn_category=&adv_sdn_forums_sdn_forum=&adv_sdn_forums_sdn_updated_on_comparator=GE&adv_sdn_forums_sdn_updated_on=&sortby=cm_rnd_rankvalue

---Satish

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Guru;

If you need to send teh IDoc 2 if IDoc 1 is simply posted successfully then in the send step of the BPM you can add transport level ack otherwise if you want to post IDoc 2 in case of successfull processing of Idoc 1 then you will have to use application level ack in BPM send step.

Refer this for help

Mudit

Award points if it helps

former_member335553
Active Contributor
0 Kudos

Hi

refer to the following link for IDOC acknowledgement

/people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc