Accessing the Message ID
The message ID is a unique indicator that identifies a message. In the synchronous case, the request and response messages have different IDs. The application can use the ID if it needs to access the messages again at a later point (for example, to query an acknowledgment for a message).
To access the message ID, use the method GET_MESSAGE_ID of the controller object:
...
1. Fetch a protocol instance for the protocol IF_WSPROTOCOL_MESSAGE_ID.
2. To have the system return the message ID after the sender has sent a request message or the receiver has received a request message, use the method GET_MESSAGE_ID of this instance. This returns the ID by using the parameter MESSAGE_ID of type SXMSGUID.