Retreiveing RFC destination attributes using JCoDestination

Hello experts,
I have created a RFC destination in 2 CE 7.11 servers via NWA.
When I use the following code on one of the servers:
JCoDestination destination = JCoDestinationManager.getDestination(BACKEND_CONNECTION);
destination.getAttributes();
I get the attributes and everything is okay.
When I use it on the other server, I get NullPointerException.
Can anyone explain this behavior?
Regards.

Hi,
Did you create the RFC distination on the new server using Visual administrator and tested it?
RFC destinations have to be created at both ends at portal visual admin as well as at backend.
Regards
Deepak

Similar Messages

  • Enable Secure communication for RFC destinations by using sm59 transaction

    Dear friends,
    We would like to enable secure communications for RFC destinations by using the sm59 transaction in our systems.
    We need to do this manually, by changing  the internal communication settings in a way they can communicate securely.
    Any idea or advice on the way it can be done ?
    We need to take each RFC, manually check it and secure it.
    Thanks in advance,
    Jordan

    In SM59 open up a RFC destination and go to Logon & Security. There you can enable Trusted relashionship and activate status of secure protocol.
    And yes you have to do it manually for the desired RFC's

  • How to create RFC Destination without using SM59?

    Hello all:
    We are troubleshooting an issue.   An user created a RFC destination.   He claims that he did not use SM59.   We checked his access and do not have SM59 in his roles.
    He configured VIRSA FireFighter.   During the configuration, he created RFC destination.   Document says use SM59 or contact BASIS Admin.     He claims that he used a config table and he don't remember the config table name.   RFC screen shows his ID as creator of the RFC.
    We are trying to understand how an RFC can be created (outside of SM59) and plug the security hole in the environment.
    Any insights would be appreciated.
    --Anand

    The FireFighter solution changes the RFC destination of the service user "on the fly" without S_TCODE checks for 'SM59'. But if I can remember correctly when looking into this, it does not create the RFC destination (in SM59) "on the fly".
    > He claims that he used a config table and he don't remember the config table name.
    Theoretically this is possible - a config table to define the name of the destination, and then create it if it does not exist yet (when used).
    Otherwise, see SAP note 587410 and restrict (remove) his authority for the test environment (concentrate on S_DEVELOP, not S_TCODE - as you have also experienced).
    Cheers,
    Julius

  • Decreasing amount of RFC-Destinations when using UD-Connect?

    Hello,
    I created an RFC-Destination in sm59 as well as JCO RFC Provider and used the SAP manual for UD-Connect/JDBC to a "foreign" Sybase-DB. The Connection is working properly and all DB-data is accessible, but our cutomer claims that there are more than 25 parallel rfc-connections from our Web AS to his Sybase-DB. My question is: How can I decrease the amount of parallel connections, because I don't think 25 connections to Sybase-DB are necessary. I know there is the maxConnection-Property in JCO RFC Provider but this parameter is globally affecting all RFC-connections and not only those that are associated with the Sybase-DB.
    Is there actually a way to customize the amount of parallel connection via JDBC?
    Best regards
    Danny

    Hi,
    use transaction  "smqs", select destination and click on registration  change max number of connections.
    Try to define rfc server group  to control connections ...
    Regards
    Ben

  • How to find out, which RFC-Destinations are in use?

    Hi community
    We have a huge list of RFC-Destinations in our productive system and I want to delete unneeded entries.
    Is there a report or a log, which shows, which RFC-Destinations were used, and when?
    Thanks in advance.
    Regards, Michael

    HI
    can you see the default trace in tcode SMGW, Be careful about deleting any system rfc.
    Read the documentation about default RFC, internal RFC, LDAP_RFC, transport RFC.
    I don't know other way to do that you need
    Regards
    William Neira

  • RFC Destination (ABAP) to use Single Sign on

    How do I configure an RFC destination to take the current user-id and connect to the RFC destination system without prompting for logon? (I do not look for a dedicated user-id pwd option - must use the current user's id)
    SNC is configured, and when I doubleclick in sap logon pad, I get connected to the corresponding SAP system without the login screen. Specifying the same parameters in the SNC def (SM59 - change destination) doesn't make any difference and returns an RFC error when trying to test.
    I have checked SSO links (some) on SAP help site (Do I need to configure the system in SSO2?). From portal and all it works fine. Not sure what specific config is required to connect to ABAP RFC destination to use SSO (or SNC whatever it be) to not throw the login screen.
    Any help?
    Thanks,

    i assume you are talking about to ABAP systems.
    check this link, you have to set up trust relationship between the systems.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/22/042671488911d189490000e829fbbd/frameset.htm">Trust Relationships Between SAP Systems</a>

  • Logs of used rfc destinations

    Hi Guys,
    i'm looking for some tables including log-information of used rfc destinations. For now i have table EDIDC for IDoc-Logs. Do you know more tables, e.g. regarding BAPI usage? RFC logs in general (here i found ARFCSSTATE/ARFCRSTATE and some others, but they don't look as they would log all records, do they?
    i just want to find out which rfc destinations are used and which not!
    Best Regards
    Stefan

    Hi Stefan,
    Generally we will RFC logs from SM58.
    (Or) Check tcode SLG1 for application Log.
    Thanks,
    Krishna.

  • RFC Destination for RFC adapters?

    What RFC destination is used by RFC receiver adapter?

    Hi SSG,
    You create remote function call (RFC) destinations on the J2EE engine so that SAP BW can make function calls on remote systems.
    Look at these threads.. Shud help u out..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/25/76cd3bae738826e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/7c95731a9c5918e10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/33/c6e63b60c25767e10000000a11402f/frameset.htm
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • Sender RFC - Can it use a Type 3 connection

    Hi all,
             I have a synchronous scenario which has a RFC sender. In one of the blog by Michal_Krawczyk , I saw that a type t  T (TCP/IP) RFC destination was used.
    But both ECC and XI are abap system so why not use a Type 3 - R/3 connection.
    regards,
    Arvind R

    Arvind
    But RFC Adapter is on Java Stack of XI, so you have to use TCP/IP type RFC destination.
    Thanks,
    Sunil Singh

  • Error CL_TAO_GUI_SESSION_SM- Create: Mandatory Attribute missing for Technical RFC destination

    hai
    We have installed solution manager and CBTA for test automation. For SUT , We have created Technical RFC for development client and quality client
    as TST_BID_CLNT220 and TST_BID_CLNT_909 respectively.  Similarly SMBID_CLNT_220 and SMBIQ_CLNT_909 are the business RFC destination to connect SUT.
    Now I have created test System data container which have both target system (Quality and development) . I have also created Test profile
    for both . In the Test Profile I have mentioned Techinical RFC name , Test profile name, business user and password.
    I have record va01 tcode in development client. The same script is used for quality also .
    I am able to execute the script in development . But when I execute for quality it is giving following error
    Error CL_TAO_GUI_SESSION_SM->Create: Mandatory Attribute missing for Technical RFC destination TST_BIQ_CLNT909
    Can any one help me . Pls tell me whether I followed the steps correctly
    Regards
    Jaya

    Hi,
    It will be very difficult to solve without being on the customer site and having all information.
    Right now, the error code is network error...
    Kind regards,
    Yann

  • How to call RFC in Async Mode using TCP/IP RFC Destination ?

    Hi experts,
         Can anybody tell me how to call an Async RFC using TCP/IP RFC Destination ?
    Regards,
    Umesh

    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/content.htm
    It says
    <b> For asynchronous calls, no connection to external systems is possible (TCP/IP connections in transaction SM59).</b>
    Regards,
    Abhishek

  • Should I use the .do or .uix file as the destination attribute on a link?

    Good Morning all,
    What is the difference in using the .do action file or the .uix file as the destination attribute on a link? Is one preferred over the other? Any clairification would be helpful.
    Thank you

    I've spent considerable time on this myself but from the perspective of a GO vs. a link. Why the difference and what do we gain?
    You really need to understand Struts. I am just beginning to. The stuff that comes with 10g on Struts is the tip of the iceberg. I picked up an O'Reilly book (Jakarta Struts) which actually addresses why one should use an action reference vs a direct link to a page (UIX JSP or otherwise). There are many other useful discussions on the MVC and Struts' place in it.
    Briefly, a link to a UIX page bypasses the controller aspect of Struts and you forfeit the opportunity for extensions/customizations etc and basically violate the MVC blueprint (See sun.com).
    My issue was why do I have to do a DataAction and a forward (as all the Oracle collateral would have you do)when I just need to go directly to a page?
    Struts has a class (org.apache.struts.actions.forwardAction) that allows you to do just that without violating the MVC rules and without having to create all the extra actions and forwards when you just want to go to a page without a DataAction.
    Get the book, well worth the $ vs the frustration.
    Hope this helps somewhat.
    Tom

  • RFC destination using TCP/IP

    hi all
    do anybody have created new connction in TCP/IP using RFC in transaction SM59. or have any document for creating the same.
    Regards
    Martin

    Hi,
    Also see
    Design in System A
    1. Create a simple work flow in System A whose triggering event is set to the bussiness object of the bapi. hence when the bapi is used to changed currency, the work flow is started.
    2. Have a work flow task in the work flow, which calls a simple rfc say ZRFC_handleChanges which takes in the changes as parameters.
    3. Create an empty rfc ZRFC_SendDataToXI which takes in changes as parameters
    4.Create a registered program (Rfc2XmbService)TCP/IP conection(SM59) from system A to ur XI box.
    5. In ZRF_handleChanges rfc call zrfc_senddatatoXI using destination(Rfc2XmbService) submit as background and if subrc = 0 commit.
    6. so what we have achived so far is when ever one changes currency in system A using BAPI, the workflow is started, the first step being to call an RFC that pushes data to XI
    Design in XI
    1. Import ZRFC_SendDataToXI into XI
    2. Import rfc from system B
    3. create interface and message mapping between the above two interfaces
    4. Create a communication channel to bussiness sytem A. RFC adaptor, type sender, look for registerd program , key in the registered program created in system A
    So in a nutshell we have established a triggered in systemA to push data to Xi when data changes, and Xi inturn will push data to system B using the RFC in systemB.
    The design i have put forward here is very generic and at a very high level. But it walks you through all the steps.
    Hope its helpful .
    Regards
    Chilla..

  • Calling Remote enabled Function module in java using RFC Destination

    Hi
    We are on Portal 7.3 ehp1 sp9.
    Steps followed are :
    RFC Destination called “SAP_RFC” has been created as below :
    Configuration -> Destinations -> RFC Destinations
    Connection and Transport:
    Load balancing :Yes
    Provided : SystemID / MS Server / MS Server Service / Logon Group / Gateway Host / Gateway Service
    SNC : Inactive
    Logon Data:
    Authentication : Current User (Assertion Ticket)
    Language : EN
    Client : XXX
    Repository Connection:
    Destination Name : This Destination
    Specific Data:
    pooled Connection Mode : Yes
    Max : 5
    Size : 10
    Max. wait time : 10,000
    Ping Destination results : Successfully connected to System XXX as per user XXXXXXX.
    JAVA Code as Follows:
    JCoDestination destination = JCoDestinationManager.getDestination("SAP_RFC");
    //destination.ping();
    JCoRepository repository = destination.getRepository();
    JCoFunction function = repository.getFunction("FM_NAME");
    function.execute(destination);
    Lines highlighted in RED color throwing an error as below :
    {"ERROR":"Initialization of destination JCO_RFC failed: Incomplete logon data. on <SID> mshost <MS_HOST>/ com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Incomplete logon data. on SID mshost MS_HOST"}
    And found that no COOKIE with the name “SAP_SESSIONID_<system>_<client>” was not found, I am afraid that “Assertion Ticket” was not created in above scenario.
    To confirm SSO configuration working, i have followed below steps:
    1) Created System Object pointing to R/3 and tests were successful for authentication type "SSOLOGONTICKET / ASSERTIONTICKET"
    It's J2EE application, no references or any other additional configuration been made part from above.
    Any help ?
    Thanks

    Here is log ..Assertion ticket could not be retrieved. Error was null
    Log Record Details
    Message:
    Assertion ticket could not be retrieved. Error was null
    Severity:
    Error
    Date:
    2014-04-23
    Time:
    20:28:26:056
    Category:
    /System/Security/destinations
    Location:
    com.sap.security.core.server.destinations.service.AssertionTicketRetriever
    Application:
    Thread:
    System [2]
    Data Source:
    j2ee/cluster/server0/log/system/security_00.log
    Arguments:
    Passport User Activity ID:
    3a7af5ddca8b11e384bd8adb6f484d33
    Message ID:
    Session:
    Transaction:
    User:
    Time Zone:
    +0800
    Customer Message Component:
    BC-JAS-SEC
    Runtime Component:
    tc~sec~destinations~service
    Correlation ID:
    3643650000002747
    Passport Session:
    3A7AF5DDCA8B11E384BD8ADB6F484D33
    Passport Connection:
    3a7af5ddca8b11e384bd8adb6f484d33
    Passport Connection Counter:
    0
    Log ID:
    C0000AD01D7B002200000EA5009800B2
    Host:
    host
    System:
    XXX
    Instance:
    J00
    Node:
    server0

  • RFC Destination using ABAP / 4 driver

    hi all
          i want to create RFC Destination using ABAP / 4 driver (Transaction-SM59) so do anyone have detailed steps/any blog/code regarding that. Plz forward it.
    Regards
    Martin

    Martin,
    Hope this link is helpful
    http://help.sap.com/saphelp_nw04/helpdata/en/89/45aad99715462abdf09ec503e151e7/frameset.htm
    Regards
    Kavitha

Maybe you are looking for

  • Selection Criteria addition-Not working

    Hi! I have this report wherein I need to add two fields VBAP-Kunnr and knvv-konda in the selection screen so that I can do my drill down or search criteria based upon these two selections also apart from the existing ones, but unfortunately I am unab

  • Problem with proxy and DNS

    Hello, in our company we use Internet Explorer 8... (i know...) We also have a proxy and 4 DNS servers. Last weekend we suddenly had an issue where internet pages could not be loaded. When we did some testing with Wireshark we saw that it took a long

  • How do I automatically assign URLs to a Tab Group?

    I love the new Tab Group feature of Firefox 6, but it would be great if I could have new tabs open up in the appropriate group based on a pattern in the URL that I've clicked on. Is this possible? Thanks, Theo

  • Error during data load due to special characters in source data

    Hi Experts, We are trying to load Billing data into the BW using the billing item datasource. It seems that there are some special characters in the source data. When the record with these characters is encountered, the request turns red and the pack

  • Values in collection are not showing after submit

    Dear all, I have a collection based on a query. After inserting a value in the collection and submitting, the record with the value is submitted to the database. But my collection does not show the value, how can i have my collection to show the valu