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 record these in case it needs to access again them at a later point.
To access the message ID, use the method GET_MESSAGE_ID of the controller object:
...
1. Get 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 using the parameter MESSAGE_ID of type SXMSGUID.