0% found this document useful (0 votes)
184 views3 pages

How To Implement and Use ABAP Channels - Video ..

Implement

Uploaded by

abhilash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views3 pages

How To Implement and Use ABAP Channels - Video ..

Implement

Uploaded by

abhilash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

3/11/2015

HowtoimplementanduseABAPChannelsVideo...|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Store

SearchtheCommunity

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

Communications

Actions

ABAPDevelopment

HowtoimplementanduseABAPChannelsVideo
Tutorials
Previous
Next
PostedbyOlgaDolinskajainABAPDevelopmentonMar9,20151:27:11PM
Share

Tweet

TheABAPChannelsinfrastructureoffersbestsupportfornativeeventdriveninteractiveandcollaborativescenariosin
ABAPandisgenerallyavailablewithABAP7.40SupportPackage5(SP05).TheABAP7.40SupportPackage8
(SP08)containsvariousenhancementsincludingAPIrefactoringtosupportWebSocketsubprotocols.andmessage
exchangewithSAPPushChannelProtocol(PCP).

TakeyourtimetowatchtheseYouTubevideotutorialstolearnhowtoimplementanduseABAPChannels.

HowtoimplementABAPPushChannel(APC)

postpost

ABAPPushChannelenablesbidirectionalcommunicationviaWebSocketsinABAP.Thisvideogivesyoustepby
stepintroductiononhowtoimplementanduseABAPPushChannel.

HowtoimplementABAPMessagingChannel(AMC)
ABAPMessagingChannelenableseventdrivencommunicationbasedonpublish/subscribemechanismformessage
exchangebetweendifferentABAPsessionswhichcanresideondifferentABAPServers.AnyABAPsessioncan
subscribetochannelsandanyABAPsessioncanpublishmessagestochannels.Thisvideogivesyoustepbystep
introductiononhowtoimplementanduseABAPMessagingChannel.

HowtoimplementcollaborationusingABAPPushChannel(APC)andABAP
MessagingChannel(AMC)

Thecollaborationscenarioprovidesthepossibilityonthebasisofpublish/subscribemechanismofABAPMessaging
ChannelsandWebSocketimplementationofABAPPushChanneltoexchangemessagesbetweendifferent
WebSocketClients.Thisvideogivesyoustepbystepintroductiononhowtoimplementcollaborationscenariousing
ABAPMessagingChannelandABAPPushChannel.

http://scn.sap.com/community/abap/blog/2015/03/09/howtoimplementanduseabapchannelsvideotutorials

1/3

3/11/2015

1172Views

HowtoimplementanduseABAPChannelsVideo...|SCN

Categories:ABAPDevelopment

Topics:abapTags:abap_channels

AverageUserRating
(1rating)

Share

Tweet

5Comments
FlorianHenningerMar10,20157:52AM

HiOlga,

niceblogasusual.Canyoureleasesomethingaboutthedynpropushchannels?Ireadsomewhena
bitaboutit,butI'mnotsureiftheAPC/AMCisthesame?
CanIlookforwardtosomethingother?
Thankyou
~Florian
Like(0)

OlgaDolinskajaMar10,20159:16AM(inresponsetoFlorianHenninger)

HiFlorian,

youcanuseAMCformessageexchangebetweenABAPsessions,whichcanevenbelong
todifferentABAPapplicationservers.TheexampleofAMCcommunicationbetweentwo
dynproapplicationsisexplainedinthe"HowtoimplementABAPMessagingChannel
(AMC)"videohereandinMasoud'sblog
http://scn.sap.com/community/abap/connectivity/blog/2014/03/26/abapchannelspart2
publishsubscribemessagingusingabapmessagingchannels

BestRegards,
Olga.
Like(0)

ThomasPorchamMar10,201512:27PM

HelloOlga,

thankyouverymuchfortheseinterestingtutorials.
Can'twaittotryoutthisfunctions.

OurDevelopmentSystemison7.4SP6.
Doyouthinkitwillbepossibletocreatetheechoexamplewiththisversion?

Thanks,

Thomas
Like(0)

MasoudAghadavoodiJolfaeiMar11,201510:28AM(inresponsetoThomasPorcham)

HiThomas,
inreleases<7.40SP8thePushChannelProtocol(PCP)handlingcanbedoneinapplication
whichisperdefaultavailablewithreleases>=740SP08.ThePCPtypeisperdefaultatext
basedmessagetype(verysimilartoHTTPmessageformatwithouttherequest/response
line
part).InABAPthePCPisrealizedviaclassCL_AC_MESSAGE_TYPE_PCPandtherespecting
interfaceIF_AC_MESSAGE_TYPE_PCP.InUI5/FiorithePCPlibraryisprovidedas

http://scn.sap.com/community/abap/blog/2015/03/09/howtoimplementanduseabapchannelsvideotutorials

2/3

3/11/2015

HowtoimplementanduseABAPChannelsVideo...|SCN
sap.ui.core.ws.SAPPcpWebsocketandthemessagestransferredtoanAPCapplicationcan
bedeserializedtoanPCPobjectviafollowinglineofcodesincludedinON_MESSAGE
method:

TRY.
DATA(lo_pcp)=CL_AC_MESSAGE_TYPE_PCP=>DESERIALIZE(i_message>get_text()).
CATCHcx_ac_message_type_pcp_errorINTODATA(lx_pcp_error).
"applyerrorhandling
CATCHcx_apc_errorINTODATA(lx_apc_error).
"applyerrorhandling
ENDTRY.

FurthermoretocreateaPCPmessageinan740SP05S=7releaseyouwillusefollowing
code
snippet,e.g.inON_MESSAGE:

TRY.
DATA(lo_message_mgr)=i_message>get_context()>get_message_manager().
DATA(lo_message)=lo_message_mgr>create_message().
"transferofamessageviaPCP

DATA(lo_pcp)=cl_ac_message_type_pcp=>create().
lo_pcp>set_text(sometext).
lo_pcp>set_field(i_name=mynamei_value=myvalue).
lo_message>set_text(lo_pcp>serialize()).
lo_message_mgr>send(lo_message).
CATCHcx_ac_message_type_pcp_errorINTODATA(lx_pcp_error).
"applyerrorhandling
CATCHcx_apc_errorINTODATA(lx_apc_error).
"applyerrorhandling
ENDTRY.

Cheers,
Masoud

Like(0)

ThomasPorchamMar11,201510:41AM(inresponsetoMasoudAghadavoodiJolfaei)

HiMasoud,

thanksfotthefastreply.
Iwilltrythisout.

Cheers,

Thomas
Like(0)

SiteIndex
Privacy

ContactUs
TermsofUse

SAPHelpPortal
LegalDisclosure

Copyright

http://scn.sap.com/community/abap/blog/2015/03/09/howtoimplementanduseabapchannelsvideotutorials

FollowSCN

3/3

You might also like