Skip to content

Instantly share code, notes, and snippets.

@js1972
Created June 30, 2014 05:26
Show Gist options
  • Save js1972/73a82505b338c2d03990 to your computer and use it in GitHub Desktop.
Save js1972/73a82505b338c2d03990 to your computer and use it in GitHub Desktop.
How to set a sender proxy message to EOIO (serialization). Call this serialize() method just prior to execute().
method serialize.
"importing io_proxy type ref to cl_proxy_basis
"raising cx_ai_system_fault
data:
lo_async_messaging type ref to if_wsprotocol_async_messaging.
queue = get_queue_name( ).
check not queue is initial.
try.
lo_async_messaging ?= io_proxy->get_protocol( if_wsprotocol=>async_messaging ).
check lo_async_messaging is bound.
lo_async_messaging->set_serialization_context( queue ).
catch cx_sy_move_cast_error.
endtry.
endmethod.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment