PCP - Push Channel Protocol
The Push Channel Protocol (PCP) is a communications format, specified by SAP, that is used to exchange messages between ABAP programs and between ABAP programs and external interfaces. A message in Push Channel Protocol is similar to a simple HTTP message. It basically consists of header fields for metadata and a message body.
- A header field is a name-value pair separated by a colon (:) and followed by a line break.
- The message body can be either character-like or byte-like.
- The encoding of a character-like message body is UTF-8. It can contain line breaks (\n).
- The encoding of a byte-like message body is Base64.
The following APIs are available for handling the Push Channel Protocol:
- On AS ABAP, the class CL_AC_MESSAGE_TYPE_PCP and the interface IF_AC_MESSAGE_TYPE_PCP constitute an API that handles PCP messages.
At present, the Push Channel Protocol is used by the following ABAP frameworks:
- PCP messages are an optional message type for AMC messages
- PCP messages are a possible subprotocol of the WebSocket protocol for APC messages.
7.31 | 7.40 | 7.54
- The Push Channel Protocol is recommended for AMC messages and APC messages. They provide a unified format and make it possible to send and evaluate context information as meta data in the header fields, alongside the message itself.
- Detailed information about PCP can be found in the ABAP Channels documentation in SAP Help Portal.