Skip to Content
0
Former Member
Jun 08, 2009 at 07:39 PM

Correlating AS2 MDN to Original IDoc?

450 Views

Hi All -

I have got the following scenario:

1) Backend system (ECC) sends IDoc to SAP PI.

2) SAP PI maps IDoc to EDIFACT message and sends via AS2 to B2B Partner.

3) B2B Partner sends back AS2 MDN to acknowledge receiving of AS2 message.

__Question:__

How can I now correlate the AS2 MDN to the original IDoc and so forward the acknowledgement to the Backend system?

I was thinking to use the 'Correlation ID' which is contained in the AS2 MDN and is the same ID as the original SAP PI message.

However, how do I practically retrieve the IDoc number (part of original IDoc message and used as identifier in the ECC system) from the persisted messages of SAP PI?

Can I code an ABAP or JAVA program which is than called within a mapping to query the persisted messages and give back the correlating IDoc number?

Are there other ways to achieve this?

Thanks for your inputs.

Best Regards, Mathias.