Skip to Content

Change the status of a Async message as cancelled for any failure in mapping/communication

Hi,

I am having a scenario where I have to send a B2B message to a third party system through HTTP_AAE adapter. This message is asynchronous from our side sender side. However the receiver 3rd party system will send back an acknowledgement once it receives the message. The acknowledgement status needs to be delivered to the ECC as proxy message to track whether the B2B message is acknowledged or not. I am using SAP BPM for the entire process, where I am setting up a waiting time, say 2 mins, to get the response back from the receiver system, else I will update the status as message not delivered to the receiver.

Now, there is always a probability that due to some communication failure like communication channel problem, server unavailability/restart at receiver end etc. due to which the message is not delivered in 1st attempt, but during the 2/3 retry it gets delivered, say after 10 mins. By that time BPM has already updated the status as message not delivered, which would be wrong. To prevent this, I think the only feasible option would be cancel the message after 1st attempt failure, like a synchronous message.

My question is, can we set a failed async message status as Cancelled with Error after 1st attempt failure itself like a sync message failure? Please let me know your thoughts on this.

Thanks,

Soham

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 02, 2017 at 07:14 AM

    Just found out that we can schedule a job in PI which will cancel the messages in error status in a specific time interval. So that will solve my problem :)

    Add comment
    10|10000 characters needed characters exceeded