Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
With NW2004 SPS19, a new capability was introduced that can allow us to easily control the status of one or more J2EE adapter's communication channels.

Even though we also have scheduler capability to turn on/off a communication channel, this feature adds an option for us to control the communication channel externally, without using the scheduler or any XI tools (e.g. RWB), based on requirements that cannot be satisfied with a scheduler.

This capability also allow us to control a group of communication channels in one command.

To control the communication channels the HTTP GET or POST is used.

Prerequisites: the userid must have the proper role(s). The userid's roles cannot be assigned using ABAP via SU01. The roles must be assigned in the J2EE, using the Visual Administrator.

  1. Start and logon to the J2EE Visual Administrator.
  2. Navigate to: Server 0 -> Services -> Security Provider
  3. In the screen on the right, select sap.com/com.sap.aii.af.app*AdapterFramework
  4. Select the tab: Security Roles
  5. Assign the userid to the roles:
    • Query Status - xi_af_channel_admin_display
    • Change Status - xi_af_channel_admin_modify

Below is a sample screenshot:

Procedure

The following URL can be used to control the communication channel(s) externally:

http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=action

The parameters in italics are described below:

  • party - Identifies the party of the channel to be administered. You can use an asterisk (*) as a placeholder to administer several channels simultaneously.
  • service - Identifies the service of the channel to be administered. You can use an asterisk (*) as a placeholder to administer several channels simultaneously.
  • channel - Identifies the name of the channel to be administered. You can use an asterisk (*) as a placeholder to administer several channels simultaneously.
  • action - Identifies the action to be executed (start, stop, or status).

    You can use the start and stop actions to start and stop the channels. You can use the status action to query the status of one or more channels.

For example, to find the status of all the communication channels belonging to service=BLService, the following URL is used:

http(s)://nspad271.pal.sap.corp:50000/AdapterFramework/ChannelAdminServlet?party=&service=BLService&channel=*&action=status

With the result:

By looking at a specific communication channel, File1_sender, in the RWB's Communication Channel Monitoring, we will now stop it:

Please note, in order to use this feature, the External Control must be selected for the communication channel.

I will now stop it, or turn it off, by using the URL:

http(s)://nspad271.pal.sap.corp:50000/AdapterFramework/ChannelAdminServlet?party=&service=BLService&channel=File1_sender&action=stop

The result is as follow:

The communication channel is now stopped.

Please also note, once the External Control is turned on for the Communication Channel, we can no longer manually start or stop the communication channel using the RWB. We will have to turn the External Control off to do so.

Reference:

http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm

22 Comments