How to test Particulare Communication Channel is active or not in UDF?

Hi,
  Can any body suggest me how to code in UDF particulare Communication Channel is active or not. If it is inactive then I have to thow exception else ok.
Appreciate for your response.
Regards,
Daniel.LA

Daniel,
Check this..
String BSys = "BS_FSCM_AR_CLNT100";
/1. Determine a channel (Business system, Communication channel).
Channel channel = LookupService.getChannel (BSys,"CC_RFC_TEST");
Then you do a
//2. Get a RFC accessor for a channel.
accessor = LookupService.getRfcAccessor(channel);
add this code
try{
if(accessor == null;
}catch(Exception e){
throw new Exception("Communication channel for System " + BSys + "Inactive ");
That should fix it....:-)
Hope that helps
Regards
Ravi Raman
Channel.

Similar Messages

  • How can One sender communication channel pick two file from two location

    Hello
    I have a requirement that how can One sender communication channel pick two file from two location.Both the file has same name...How to configure the one receiver communication channel.i dont have any IR,no mapping..Please help me...

    >
    Soumitra Sinha wrote:
    > Hello Vijay
    > I already done the adapter specific message attribute.i am getting the file name properly.but that is nothing to do with my req.i am again clearing my problem:
    > i have two folder   folder a,folder b.Both has the same file credit0002. i have two destination folder i have one sender and one receiver channel.I dont have any IR.How one sender channel can  pick file from two location and how one receiver channel can put in two location.please help me..
    Ok now I get your requirement.
    you cant achieve this -  how one receiver channel can put in two location if you dont have a dynamic configuration defined i.e Adapter specific attributes.
    easy way - involve IR mapping
    else
    have a adapter module to define your dynamic configuration.
    Ref: /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules & /people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further
    Set the dynamic directory/file name etc for your receiver adapter.

  • How to identify whether that particular process chain is active or not?

    Hi all,
    How to identify whether that particular process chain is active or not ?
    thanxs
    haritha

    If see the process chain then it will not be greyed out if it is active. Or else check in these tables.
    RSPCCHAIN
    RSPCCHAINT
    to check the logs
    RSPCLOGS               
    RSPCPROCESSLOG
    Give the chain name and check in the object version.
    Khaja

  • How to determine whether process Chain is active or Not

    Hello Experts,
    How to determine whether process Chain is active or Not, because i have large number of PC to activate.

    Hi,
    Please check this program in SE38---- /SSA/BWT
    This program will give you information regarding all your process chains which are active and running based on there timings.
    Hope it helps.
    Regards,
    AL

  • How to find if Reconciliation Ledger is Active or not for Controlling Area

    Hi,
    How to find if Reconciliation Ledger is Active or not for Controlling Area?
    Thanks

    Hi,
    You can check using OKKP.
    Further TCode KALA is useful in activating/deactivating etc., for the Controlling Area.
    Rgds.

  • How to find out if Role is active or not and also delimited or not ?

    How to find out if Role is active or not and also delimited or not ?

    Hi,
    Basically this job is done by BASIS (Technical) Team.
    They can check whether role is active or not by using tcode "PFCG" by giving role name.
    Regards,
    Rameshwar

  • How to test the communication stability and calculate ber using the CVI ?

    Our chief engineer gave me a task yeasterday.He asked me to do software testing and calculate bit error rate that we would know our communication stability.
    However,I have never touched this aspect of knowledge. I have known a bit about CVI and I want to write  bit error rate code using CVI.Thus,I could test the communication stability.
    But I don't know how to analyse and judge the receiving codes whether they are right or wrong.
    We use Modbus communication protocol and receive data via serial port,so I want to save all datas and record the total datas number ,marking as M.
    then,save the eligible datas and record the mumber marking as N. So, bit error rate is (M-N)/M   .
    Whether this is feasible ? Or you have any good idea. Thank you very much.
    unsigned char in_data[100];
    inqlen = GetInQLen (comport);
    for(i=0;i<inqlen;i++)
    in_data[i]=ComRdByte(comport);
     Above is my code that receive all datas and I want to save the array in_data[] data and record the number.
    switch(inqlen)
    case 19:
    crc=usMBCRC16(in_data,inqlen );
    if((in_data[1] == 0x03)&&(crc==0)&&(in_data[0]==device_addr))
     Above is the condition judgement that receive eligible datas which number marks as N.
    I know there is a precondition that I filter out all the wrong data . However ,I don't know any good idea. I will appreciate if anyone could help me.
    Thank you very much.
    Best regards.
    xiepei
    I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
    Solved!
    Go to Solution.

    Hi xiepei,
    since you are using modbus, a simple error checking is implicit in the protocol and is the comparison between returned checksum and the calculated one on the received message: checksum errors, if any, are an effect of communications errors (you should have at least 2 bits changed and on particular patterns to have the checksum be calculated correctly!). You won't be able to calculate BER on them, but you can calculate PER (Packet Error Rate).
    Another flag for communication errors, on the other direction, is to intercept error messages from the device: if it fully implements modbus protocol, it should return some warning in case of error (I seem to remember that in some cases it returns the reveived message with some error bits added: please check in modbus documentation).
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to select a communication channel based on a field in the message?

    Hi All,
    In my scenario - Sending system will send one country field in the message ,I have one receiver system which has different folders for different countries.
    I have created separate communication channels for separate countries.
    Now at runtime based on the country field in sender message I need use the channel respective to that country.
    How should i achieve this?
    Please help.

    Hi,
    Say you have 3 countries - I would suggest:
    1) Create 3 services - each for one country
    2) Create 1 CC's under each of these services
    3) In your Receiver Determination ->Configured Receivers -> Condition field --- put in the condition (by choosing the field from the input that has the country code)
    4) Against each condition, choose the respective service for that country
    5) Complete the Interface Determination - (by calling the same mapping in all three Interface Determination)
    6) Complete the Receiver Agreement by choosing the appropriate CC created as in Step 2)
    1) and 2) are basically for ease of use. If you need to identify the Service or CC - this would be user-friendly.
    If you dont want to create 3 different services - you can still not do Step 1 and continue from Step 2.
    Regards,
    Balaji.M

  • How to configure receiver communication channel in File to mail scenario?

    Hi all,
            I'm working in FIle-to-Mail Scenario. I did all the required configuration In Integration repository. As per my Scenario whenever a text file stored in Application server of the R/3 system. it should be sent as a attchment with a mail.so i set a sender communication channel with file adapter in sender R/3 system . i dont know which business system should i refer for my receiver communication channel.because my receiver end is  a mail server. should i create any third party business system for this one?
    can anyone suggest me to define a receiver comm channel in a right manner?
    helpful answers will be rewarded.

    Hi,
    Check these
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Regards
    Seshagiri

  • How the campaign with communication channel telephone picks the mobile No.?

    Hello All
    I created a marketing campaign with communication channel telephone the cal l list is only generated for the telephone number but I want it to pick the mobile phone number and use it. If I put the mobile number only it gives me error that the communication is missing
    Regards
    Jacopo Fransoice

    Please try this:
    Assign the target group again. Assign the already prepared target group to your campaign. Assign the Channel: Telephone (with activity creation). Release and Execute the campaign on the Assignment Block Campaign Details. Execute the campaign for the target group. Schedule the batch job to be executed immediately.
    Please tell me if it doesn´t work.
    Thanks,
    Marcus

  • How can we stop communication channel at run time?

    Hi,
      I have a requirement where in we have to stop the JMS Sender communication channel in case the Receiver System is down. Could you please let me know how to stop the sender communication channel at run time.
    Thanks
    Rajeev Gupta

    Rajeev,
    Like Praveen Kumar said, I dont think there is an out of the box solution for this. But if you want to stop the communication channel, you could do it using a BPM.This solution is just something that came to my mind. It would be resource intensive to implement this. But here goes...
    Try to make the call to the Receiver System a synchronous call and have an exception branch in the block which has the synchronous step type. So if the Receiver System is down you would get an error in the Sync Step Type and it would go to the exception branch.Try to make a HTTP call from BPM to stop the communication channel. The URL for the HTTP call could be what Matias Denker suggested. This would stop the communication channel. This solution might however have two disadvantage that i foresee.
    1) It might stop the communication channel not only for system down but for any kind of synchronous error.
    2) Starting the communication channel has to again be a whole different process.
    Thanks
    Praveen M

  • How to find which communication channel is picking the file

    Hi
    Can any one tell me, how can i  find which communication channel is picking the file from the source directory?
    I have a file scenario. File is coming to directory but it disappears even after I STOP the communication channel, I am using for this scenario
    I want to find out which communication channel is picking the file.
    How can i do it?

    Hi,
    you can try this:
    Go to Communication Channel monitoring in Runtime Workbench.
    Select all file adapters and check cluster node for each Channel. If the file is picked by the channel you will see processing details or errors related to channel here.
      Since as you say the message is not seen in sxmb_moni then the communicaition channel would be red. Files that are picked from directories but not visible in sxmb_moni are usually in error at channel level.
    Hope this helps.
    Regards,

  • Communication Channel in SXI_CACHE but not in RWB

    Hi Gurus,
      Created a simple file to file scenario. While testing the scenario, i've got the following error while looking at the SXMB_MONI.
    "com.sap.aii.af.ra.ms.api.ConfigException: ConfigException in XI protocol handler. Failed to get a receiver channel from the agreement for the given message. Root cause: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Channel object with Id Channel:ca8f9060afd235e7b77958ffc1bb2096 not available in CPA Cache"
    Did an initial investigation and found that the communication channel exist in SXI_CACHE. Proceed to do a Complete Cache Refresh. However, I still get the same error.
    Went to RWB to check on the Communication Channel under Adapter Tab and realised that the Communcation Channel created cannot be found in the list. I suspect that might be causing the error and Im really puzzled by the mis-match between SXI_CACHE and RWB. Is there a way to refresh the list of Communcation Channels in RWB.
    Thanks

    Hi Jason,
    For this kind of problem i think better restart the XI server then check out .
    I hope it would get resolve .
    regards
    ashwin

  • ORA-03113: end-of-file on communication channel:(The queuing is not enabled

    The queuing is not enabled.
    SQL> select * from user_queues;
    NAME QUEUE_TABLE QID QUEUE_TYPE MAX_RETRIES RETRY_DELAY ENQUEUE DEQUEUE RETENTION USER_COMMENT
    ACK_QUEUE ACK_QUEUE_T 36560 NORMAL_QUEUE 5 6 NO NO 0
    AQ$_ACK_QUEUE_T_E ACK_QUEUE_T 36561 EXCEPTION_QUEUE 0 0 NO NO 0 exception queue
    AQ$_IFW_SYNC_E IFW_SYNC 36562 EXCEPTION_QUEUE 0 0 NO NO 0 exception queue
    IFW_SYNC_QUEUE IFW_SYNC 36563 NORMAL_QUEUE 5 6 NO NO 0
    In blrhpqe2 system when we try to create the queue it gives end-of-communication error. It seems there some problem with the dbms_aqadmn. Can you please check-up and let know your feedback.
    Below the output of the screen contents:
    1* select * from user_queues
    SQL> begin
    2 dbms_aqadm.start_queue(ACK_QUEUE);
    3 commit;
    4 end;
    5 /
    begin
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    please help me on this

    >>>ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    conn to database again.
    ORA-03113: end-of-file on communication channel
    Cause: The connection between Client and Server process was broken.
    Action: There was a communication error that requires further investigation. First, check for network problems and review the SQL*Net setup. Also, look in the alert.log file for any errors. Finally, test to see whether the server process is dead and whether a trace file was generated at failure time.

  • How to test whether XI is sending file or not?

    Hi all!
    My scenario is like this:File(File sender Adapter)->XI->(HTTP receiver adapter)J2EE appl.
    I placed the xml file in D:\somedir on my PC. It is picking up the file, after picking it should post the same xml file to my j2ee appl. My servlet receives the xml file and display it on browser. But nothing is displayed. How to test whether XI is sending XML file to J2EE appl or not? All helpful answers are highly appreciated.
    Thanks!

    Hi
    In the file adapter i set processing mode as delete, it is picking up well from my d:\somedir.
    I got success flag in SXMB_MONI and successful status in RWB->message monitoring?
    Why my servlet is not able to display?
    All helpful answers are rewarded.
    public class DisplayRes extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
                        doPost(request,response);
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
         String inputLine;
         StringBuffer sBuf = new StringBuffer();
         while ((inputLine = brin.readLine()) != null)
             sBuf.append(inputLine);
             brin.close();
             PrintWriter out = response.getWriter();
             response.setContentType("text/xml");
             //out.setContentType("text/xml");
             //out.println(sBuf.toString());
             out.write(sBuf.toString());
             out.flush();
    Thanks

Maybe you are looking for

  • Search help for user field for WBS element

    Hi, how can I add a search help to one of the user fields for WBS elements without modification? Is there an exit which I can use? I want to have a search help for field PRPS-USR02. Thanks for your help.

  • PICK is hanging

    ver 10.1.3.4 I have created a simple BPEL synchronous service which is just mapping input to output to test the SupplierPartyMaster.wsdl from OAGIS. It uses a PICK to which I assume should route the message to the proper RECEIVE by matching the incom

  • Converting profiles

    I've received some TIF files created in basic sRGB mode but that contain Adobe 1998 images within them. The files, I've been told, were saved without embedding any profile to them. My printer just told me that I need to have a matching color profile,

  • Help need regarding Java Reflection

    I need help in programming the following: I have to generate a test Harness for OOP.This program that automatically tests classes by instantiating them, selecting methods of these instantiated objects randomly or using some criteria, invoking them, a

  • SSAS Cube data display platforms (including per user permissions support)

    Hi, I've developed an SSAS cube for a small sales company. The company does not want to invest on sharepoint. They need to display cube data for each sales agent filtering his own records.   Excel and SSRS can display cube data but can they filter th