Skip to Content

get "MessageDirection" in Java map?

Oct 25, 2017 at 02:39 PM


avatar image

Dear experts,

I have been following this blog:

It works for me but I have one question related to the "MessageDirection":
in the code provided it is hardcoded for the "key"
key = new MessageKey(messageid, MessageDirection.OUTBOUND);

Can I somehow retrieve the MessageDirection in this Java method?

In adapter modules I can get the MessageDirection from the Message object. But is this possible in that context?
I have the MessageID available and thought I could somehow create a Message object and then get the MessageDirection - but I do not see a way to do this.

Thank you for your help,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Evgeniy Kolmakov Oct 25, 2017 at 03:16 PM

Hi Peter!

I may be wrong but it seems to me that direction is always set to outbound for ICo, since only the sender queues are used.

Regards, Evgeniy.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

hello Evgeniy,

Thank you for your answer. I don't really understand because even with an ICO I have inbound and outbound messages. Do you know if there is documentation on this? Thank you again, Peter


Hi Peter!

During ICo processing the message is taken from respective Sender queue and after receiver/interface determination is sent directly to receiver adapter.

You can refer to SAP Note 1557036 - ICO scenarios use PI Messaging System Sender Queues only:


  • You are using Process Integration (PI) or Process Orchestration (PO) with the 'Java only' Integrated Configuration Object (ICO) scenarios
  • ICO scenarios differ from the classical (i.e. double stack) scenarios in that all Messaging System (MS) processing occurs exclusively in the MS Sender queues
  • Receiver queues are not used.

Regards, Evgeniy.


Hello Evgeniy,

thank you very much - I was not aware of this.

Best regards, Peter