SAP APC CONNECT VIA HANDLE ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_APC - System-Wide Access
This example demonstrates access to any ABAP channel using a connection handle.

ABAP_SOURCE_CODE
DEMO CL_DEMO_APC_ACCESS_CNNCTN

ABAP_DESCRIPTION
The class expects a valid connection handle for a WebSocket connection as its input, creates an access objects for this handle, and uses it to send a simple text message.
An APC connection from the executable example AS ABAP as WebSocket Server publishes its connection handle as follows:
Create a WebSocket server without PCP.
Open the connection on the Web page.
Send the text message get handle.
This message is identified in the method ON_MESSAGE of the APC handler class CL_APC_WS_EXT_DEMO_APC and the connection handle is retrieved and sent. The Web page displays it in a form that can be copied. If the connection handle is passed to the class above while the connection is open, the message sent by the class is received and displayed by the Web page.