Calling a communication channel externally

Hi Experts
I want to dynamically call the communication channel from bpm during runtime.For this i am using a transformation step and writing a java code to call the url.But how to pass the username and password required to login into the adapter framework.Below is the java code i am using :
URL channelurl = new URL("http://hostname:port/AdapterFramework/ChannelAdminServlet?party=&service=\"NP_DEV_3RD_POC1\"&channel=\"CC_Sender_File_FiletoMail\"&action=\"start\"");
URLConnection channelconn = channelurl.openConnection();
channelconn.connect();
Edited by: Sabyasachi Mohapatra on Nov 23, 2009 3:30 PM

ok

Similar Messages

  • Control communication channel externally and automatically

    I would like to be able to control a communication channel automatically and externally,
    to turn it on and off at a certain time every day. Has anybody done this?

    Hi,
    Refer
    SAP Network Blog: Control Communication Channels Externally without using RWB
    Control Communication Channels Externally without using RWB
    Control Communication Channels Externally without using RWB
    Thanks
    Swarup

  • Can we call proxy communication channel of type XI in user defined function

    HI ,
    can any body tell whether we call proxy communication (type xi) in an user defined function
    regards
    sandeep

    Hi,
    The Proxy is an abap coding only. 
    Hence it can be called from anywhere in R/3 region.
    But we need to ensure that the SPROXY settings and proper linking between XI & R/3 are established.
    I think, we can get more clarity on this from the Netweaver forum rather in R/3 ABAP.
    Regards,
    Ramani N

  • How to call communication channel dynamically? Please help!

    Hi Experts,
       BizTalk -
    > XI -
    > SAP SYS01
                          XI|----
    >SAP SYS02
       We are integrating Biztalk with SAP via XI. BizTalk send rosattenet PIP via JMS adapter to XI. XI then sends the PIP data to SAP system using RFC adapter.
       In the PIP we have a parameter for plant code. Now if plant code is 'ABC' then we need to send the data to SAP SYS01 else if plant code is 'XYZ' then send the data to SAP SYS02.
      In other words we have RFC communication channel one each for each SAP system.
      This is like calling the communication channel dynamically based on palnt code.
      How can we do this in XI? Please help!
    Thanks & Regards,
    Gopal
    Edited by: GOPAL BALIGA on Jan 12, 2009 7:35 AM

    this is a typical case for a XPATH based conditional routing. note that your receiver will have binding with the interface and the communication channel
    ref:
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

  • Open and close communication channel in one link

    Hello,
    I implement with successful the scenario that described in this blog:
    Control Communication Channels Externally without using RWB
    Right now I use with this link to start the CC
    http://aaaa:50000/AdapterFramework/ChannelAdminServlet?party=*&service=Open_Friday_Service_Sender&channel=Open_Friday_Sender&action=start
    And with this link to stop the CC
    http://aaaa:50000/AdapterFramework/ChannelAdminServlet?party=*&service=Open_Friday_Service_Sender&channel=Open_Friday_Sender&action=stop
    I looking for the way to start and stop the communication channel in one link.
    Elad

    hi elan
    i think you need to write an abap program and schedule it..
    abap program will call this HTTP link as The URL has no dependency on where it is called.
    regards
    kummari

  • Run Sender Communication channel for every 4Hrs

    Dear all,
    I have requirement to schedule sender CC in production for every 4hrs.
    We have option called daily but not hourly !!!
    Is it possible  to schedule sender CC like this for every 4hrs??
    Note: For Some reasons i can't increase the polling to 4hrs in sender channel to solve this issue
    Regards

    Bhavana,
    Found a solution. Create a unix script and run the command to start and stop the communication channel as per your requirement.
    Below is the syntax.  You can try using wget command or curl in unix followed by the below command
    http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=action
    wget http(s)://...
    or
    curl http(s)://...
    check this link
    /people/william.li/blog/2007/05/04/control-communication-channels-externally-without-using-rwb

  • Communication channel scheduling

    Hi Experts,
    I have a requirement to schedule MDM PI Sender communication channel. The requirement is that the channel should be active only on last three weekdays of the month and first three weekdays of the month.
    I am aware of the feature 'Planning Availability Times' in PI from SP19 (source Adapter Scheduling - Hail SP 19 :-)). But using this we can schedule for a particular day of the month like 1st day or 2nd day etc.
    Is there any way to achieve this requirement? Please note that the channel should work only on WEEKDAYs.
    Appreciate your inputs on this.
    Regards,
    Prasad

    Prasad,
    WE have an option to start/stop CC's using a URL externally (you can write a script or java program where you can put your date logic and call the URL).
    Check the following blogs and you will get a better understanding:
    Control Communication Channels Externally without using RWB
    http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm

  • Sender RFC and JDBC communication channels required to be activated

    Hello Guys,
    Whenever we have a Oracle restart after the server is shut down for maintainence . The sender JDBC communication channel does not poll and we have to activate the channel again in the Integration Directory to make it work, is there any way to make it work automatically.
    Similar is tha case with the sender RFC communication channel.
    Allthough the component monitoring shows green button for the JDBC, RFC communication channel.
    In case of the JMS channel (sender) the channels are in red.
    Thanks for your help.

    HI
    There is no automatic ways to restart channel that you have to manually start.
    You need to stop the channels first before getting oracle server down for maintenance. This will save from errors. Maximum what you can do is to start stop channel using a program externally but that require development.
    Start/Stop using RWB
    Starting / Stopping of Communication Channel from RWB
    Start/Stop without using RWB
    Control Communication Channels Externally without using RWB
    Thanks
    Gaurav

  • Reg jdbc communication channell proccessing

    I have scenario i.e JDBC to RFC
    but i need  small calrification like is it possible to trigger the jdbc sender communication channel automatically whne the file tirggerd from the orcle Database
    like without giving the any polling intervals CC should poll when the file triggerd.
    i am not going to use that file its just a flag to start the communication channel
    can we achive this through OS commands ???
    thanks in advance....
    Edited by: katakoti on Nov 9, 2011 2:18 PM
    Edited by: katakoti on Nov 9, 2011 2:19 PM
    Edited by: katakoti on Nov 9, 2011 2:20 PM

    can we achive this through OS commands ???
    Yes you can write script and control the channels externally like give start or stop command at your specified requirement time.
    Please see this link
    Control Communication Channels Externally without using RWB
    Also you can use wget or curl command in the script  followed by http url string.
    Example:
    wget  http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=start

  • XI Communication Channel setting for MQ Cluster

    Hi all,
    I am looking for information related to communication channel settings to access a MQ cluster using JMS adapter. Please provide any helpfull links.
    I want to know if this would be any different when XI interfaces with a MQ without clustering.
    Thanks!

    I don't know which cluster mechanism you have, but if you have 2 hostname you should think to a method to switch from a node to the other in easy way, deactivating one and activating the other (for instance with the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm">Controlling a Communication Channel Externally</a>)
    I suggest you to verify how it will be in production instance: real cluster ? switch over ? virtual IP ?
    Regards,
    Sandro

  • Suppressing Popup screens while controlling Communication Channel externaly

    Hello PI Gurus
    I have figured out how to control communication channel externally for stopping and starting the channels.
    I am trying to write a simple abap code to do this. Since I have several channels, I am putting in a loop. It is doing the job well. However, for each channel a IE screen pops up with the XML data for that particular URL.
    I am sure many of you might have been controlling comm. channels externally and might have come across this problem. I would appreciate iif you can please let me know how you got this issue resolved.
    Thanks
    Ram

    Thanks for the response. I appreciate it.

  • Remote control communication channel

    Hi
    We want to check the communication channel status from remote it running or down?
    I know we can check using external control URL,
    but the response is XML.
    We want to tell the status job scheduler.
    return code and so on.
    How can I do?
    regards,

    Hi,
    Refer
    SAP Network Blog: Control Communication Channels Externally without using RWB
    Control Communication Channels Externally without using RWB
    Control Communication Channels Externally without using RWB
    Thanks
    Swarup

  • UDF to trigger Communication Channel

    Hello Friends,
    My requirement is ,  if a source field   is  populated with some specific value then it needs to trigger a communication channel ,which is created in Integration Directory...
    Could any one suggest me ,How to write a udf to call a Communication channel ....
    if possible pls provide the code templete tooo....

    Use BPM and check the variable. If true use a send step which takes the file and sends to BPM. I do not think any API supports switching on the communication channel from UDF. There are some http commands available though.
    VJ

  • External Control in communication channel PI 7.1

    Hi experts,
    I would need to start and stop a communication channel from an external program, I have read in differents post that is possible via http call. But when I do the http call I get a permissions error. What permissions o roles I need in my user to do this http call?
    Is necessary configurate anything? My PI version is 7.1.1.
    Thanks in advance
    Jose Manuel

    A user needs the following role to query the status of communication channels:
    ●      xi_af_channel_admin_display
    A user needs the following role to start or stop communication channels:
    ●      xi_af_channel_admin_modify
    http://help.sap.com/saphelp_nwpi711/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm

  • PI 7.0: Error when calling an adapter by using communication channel

    Hello Experts,
    We have a mapping scenario for ERP -> PI -> web service. Few details from ERP will be sent via PI to Web service. 
    Once the web service authenticates, token and sign will be generated. Here an RFC adapter is  used for configuring the RFC receiver communication channel and provided the ERP system logon details at the RFC client parameter.
    An error is received as mentioned below.
    Error while lookup Exception during processing the payload.Problem when calling an adapter by using communication channel CC_Rcvr_RFC_Lookup_TokenSign (Party: , Service: BS_QV6_700, Object ID: 54e904ebf3d7382a84a0f83cd292b810)
    XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>'. com.sap.aii.mapping.lookup.LookupException
    The logon details in RFC parameter are corrected. Re-activated the the communication channel and refreshed the cache.
    But still the error is not resolved.Please let me know if there is anything else i need to check.
    Thanks in advance.
    Regards,
    Sri

    Hello,
    You could also check note 730870  FAQ XI 3.0/ PI 7.0/ PI 7.1 RFC Adapter
    Q 16:
    While sending a message to the RfcAdapter the error "...functiontemplate from repository was <null>" is shown. Which reasons are possible?
    Regards,
    Sarah

Maybe you are looking for

  • Change slide duration to 2.5 seconds??

    Is it possible to change the duration of a slide to 2.5 seconds in imovie08. I keep trying, but it seems to make it go to 4 seconds rather than 2.5. 2 seconds is a little too fast and 3 makes my slide show a bit too long. I have also changed the dura

  • Custom Step Type Execution

    I've made a custom step type which calls a .NET module. In the Properties>>SubSteps tab I added an Edit type which opens a dialog for the user to enter parameters when they edit that step type. Then I added a Post-stpe type which I thought was what g

  • Error when extending Active Directory schema

    Hi there, I am trying to extend my active directory schema in order to store my managed preferences in AD. I am following this white paper : http://images.apple.com/business/solutions/it/docs/Modifyingthe_Active_DirectorySchema.pdf When I try to appl

  • Basic doubt on sales order and purchase order

    Hi, I would like to know that at the line item level in a sales order is the plant from where we deliver goods/services or is the plant to which the goods/services will be delivered? Also I would like to know that at the line item level in a purchase

  • What file extension should I see after doing a complete PSE backup?

    I repetedly have had problems getting back a catalog after getting a new computer, getting an additional hard drive, etc.  So...when I do a complete back up, what file name extension should I see, so that I am POSITIVE that I can get my catalog back