ABC's of RFCs

Hello SAP experts,
Could you advise what workprocess resource is taken up when external application has does an RFC call to SAP, using background user to login?
Hope my understanding is correct:
1. RFC client (ext application) logs in using background user. This takes up 1 BTC workprocess.
2. Then, as SAP note says, 'RFC call is always processed by a dialog work process'. So, this means the BTC will be converted to a DIAlog to process data.
Not sure if my understanding is correct about RFC calls.
The confusion comes when CPIC is also in the picture whenever there is RFC. How are they related?
Could you enlighten me about the relationship between RFC, CPIC and the workprocesses that are occupied? Must workprocess be DIALOG and not BTC or either?
Secondly, I would like to understand how much resources does an RFC connection take up? Under what resource problems situation will RFC calls be unable to connect to SAP? Or caused by time-out? Where to look for clues when investigating? dev_rfc or dev_rd? Seems that dev_rfc is quite little info compared to dev_rd. What gives?
Thank you in advance.
Regards,
Pascal Gabin

Dear Jürgen,
So, can I say RFC calls Always will require Dialog workprocess to login? And when calling BAPI, the BAPI can process in batch or dialog processing whereby the respective workprocess will be occupied?
Pls help me little more to clarify. Thank you.
I've provided points for your useful info.
Best Regards,
Pascal Gabin

Similar Messages

  • Regarding RFC's

    Please tell me how to develope RFC's ?????
    It is very urgetnt....

    Hi,
    Check in the attribues tab , there will be radio button remote enabled select this button.
    For using this u need to use function module with destination opton
    call function YOUR FUNCTION MODUEL'
         destination 'ABC' "<< your SM59 rfc destination name
      exporting
         xxxxxxx = xxxxxx
    aRs

  • Problem in loading meta data !!!!

    Hi,
    While creating metadata in IDX2, I am getting “communication error  'Error when opening an RFC connection' “  .
    I have created port SAP<SYSTEM ID>  and client no & giving  rfc des of sap system in idx1 . and while loading meta data i an getting above error  .
    I able to load meta data if i use other (non sap )  port eg abc  and usng   rfc des of sap system . but idocs are not reaching xi
    What are the  steps we should do for loading metadata by using sap port i.e client .
    Please help me solve this problem
    Thanks,
    Sridhar

    HI
    ALE SETTINGS TO POST IDOC OUT OF SAP R/3
    We need to do the following settings in XI
    1)   Create an RFC Destination to the Sending System in transaction code (SM59)
    a)   Choose create
    b)   Specify the name of the RFC destination
    c)   Select connection type as 3 and save
    d)   In the technical settings tab enter the details SAP SID/URL and system number#
    e)   Enter the Gateway host as same details above SID/URL
    f)   Gateway service is 3300+system number#
    g)   In the Logon /Security tab, enter the client user & Password details of Destination system
    h) Test the connection and remote logon.Both should be succesful
    2) Create Port Using Transaction Code  IDX1
    a)   Select create new button
    b)   Enter the port name as SAP+SID (The starting char should be SAP)
    c)   Enter the destination client
    d)   Enter the RFC Destination created in SAP R/3 towards other system
    e)   Save
    3) Load Meta Data for IDOC Using transaction Using Transaction (IDX2)
    a)  Create new
    b)  IDOC Message Type
    c)  Enter port created in IDX1
                        SETTINGS IN SAP R/3
         We need to do the following settings in R/3
         Logon to Sap R/3 System
    1)   Create an RFC Destination to XI in transaction code  (SM59)
    a)   Choose create
    b)   Specify the name of the RFC destination
    c)   Select connection type as 3 and save
    d)   In the technical settings tab enter the details SAP SID/URL and system number#
    e)   Enter the Gateway host as same details above SID/URL
    f)   Gateway service is 3300+system number#
    g)   In the Logon /Security tab, enter the client user & Password details of Destination system
    h)   Test the connection and remote logon.Both must be succesful
    2)   Create communication Port for Idoc processing Using Transaction(We21)
    a)   First Select Transactional RFC and then click create button
    b)   Enter the destination port name as SAP+SID (The starting char should be SAP)
    d)   Enter the RFC Destination created in SAP R/3 towards other system.
    e)   Save
    3)   Create Partner Profile with Outbound Parameters (WE20)
    a)   Create New
    b)   Create the Partner no. name as same the logical system name of the destination system
    c)   Select Partner type LS
    d)   Enter details for Type: US/USER, Agent, and Lang
         Then Save
    e)   Select Partner no. and LS which were create above
    f)   Now we have to give some Outbound Parameters.So click on ADD TO Create Outbound Parameter
    g)   Select Message type
    h)   Double click on Message Type and Then Enter the details  for Receiving port, Pack size=1 and Basic type
    I)   save
    4)   In Transaction SALE, Create Logical System
    a).  Go to Basic Settings-> First Define logical systems
         and then assign logical systems
    b)   Double click on Define the logical systems
    c)   Give data for your Logicaal System and Name
    d)   Now click on Save.Here one window may appear just click on Continue.Now the Logical System name is ready
    e)   Assign the logical system name to the client
    5)   Create Customer Distribution model in the transaction code BD64
    1)   Click on the Create modal View button and enter the short text, Technical name etc as shown below
    2)   Now select the created model view and click on Add message type button .A pop up box appears, enter Sending system, receiving system and message type
    3)   Save the Distribution model
        Generate Partner Profiles
    Click on Menu Item ‘Generate Partner Profiles’
        It leads to the next transaction where in the selection screen you have to provide Model view name, Partner System logical system and execute
        Then, you will be intimated about the partners, port creation, and outbound parameters creation
    4)   Distribute Customer Distribution Model
        In the menu item  GO to Edit->Modal View-> ‘Distribute’ to the destination client
        Popup window appears ,press Enter
    You will be intimated about the the Modal View Distributed
    PLZ REWARDS POINTS
    VIKAS

  • CPIC error when calling a external c program

    Hi All,
    i Have a scenario where we call a C-Program(RFC api) to connect to and external system thru tcp/ip.
    The issue here is when we call the c program from ABAP we get the below error in files
    dev_rfc0
    Trace file opened at 20091222 094649 TAIST, REL 46D,0,2464, VER 3
    ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223
    CPIC program connection ended (read error)
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 2961
    CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223
    CPIC program connection ended (read error)
    dev_w0
    Tue Dec 22 09:46:49 2009
    ***LOG R49=> tskh_receive, CPIC-Error (020223) [thxxhead.c   6003]
    ***LOG R5A=> tskh_receive, CPIC-Error (80600115) [thxxhead.c   6008]
    ***LOG R64=> tskh_receive, CPIC-Error ( CMSEND(SAP)) [thxxhead.c   6013]
    RFC 2959  CONVID 80600115
    CMRC=20 DATA=1 STATUS=1 SAPRC=223 ThSAPCMRCV
    RFC> ABAP Programm: ABAPXXXX (Transaction: SE38)
    RFC> User: abc (Client: 300)
    RFC> Destination: APIRFC (handle: 1, convid , {4B2E49E2-A088-0082-E100-80003517BA61})
    RFC> Called function module: RFC_API
    dev_rd
    Tue Dec 22 09:46:49 2009
    ***LOG S23=> GwDisconnectClient, client disconnected (029) [gwxxrd.c     10609]
    ***LOG S74=> GwDisconnectClient, client disconnected ( ijkl211) [gwxxrd.c     10620]
    ***LOG S0R=> GwDisconnectClient, client disconnected () [gwxxrd.c     10636]
    ***LOG S0I=> GwDisconnectClient, client disconnected ( interfac) [gwxxrd.c     10657]
    In sm21
    R49 Communication error, CPIC return code 020, SAP return code 223
    Can any one help me find wat might be the cause of this issue.We are using SAP R/3 and OS is AIX 5.3
    Thanks,Rajesh

    Dear Rajesh,
    This depends on what your program does. Based on the error message, it looks like the program ends abnormally, as the gateway writes an error while attempting to read/write data from the connection to the program. With what you have given, the error does not seem to lie with the SAP side. You will have to check your program, e.g. using a debugger.
    Best Regards,
    Tim

  • Error when creating connection with SSO Authentication mode

    Hi All,
    when I am creating the connection with Authentication Mode as SSO, I get error "Unable to connect to SAP BW Server User abc has no RFC Authorization for function group SYST".
    When I am craeting connection with specific user id and Password it works fine.
    Pls. let me know whats the problem with creating connection with SSO.
    System Info: BOXIR.3.1 Sp3, SAP 7.1
    Regards,
    Nisha

    Yes, I have installed Integration Kit, and configured the SSO.
    I am able to login into designer with Authentication as SAP.
    But, the Problem is with connection creation with SSo authentication mode.
    Is there any property or role needs to be defined for the universe designer Group or user, so that SSO is allowed in authentication mode?
    Regards,
    Nisha

  • RFC Error: Program not registered

    Hi,
    We are presently facing issue with our GTS (Quality) and Seeburger system RFC connection. While doing the testing we are getting error as below:
    ======> CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679
    Transaction program not registered
    ABAP Programm: RSRFCPIN (Transaction: SM59)
    User: TESTUSER (Client: 202)
    Destination: SEEBURGER_RFC (handle: 2, , )
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1501
    CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679
    Transaction program not registered
    DEST =SEEBURGER_RFC
    HOST =%%RFCSERVER%%
    PROG =BIS_ABC_202_DEV
    GWHOST =ABC.XYZ.STU.com
    GWSERV =sapgw15
    I have checked RFC connection is fine. Also production systems connection are working fine.
    Can anyone please help me out where to look in GTS or Seeburger to check about this issue and correct it.
    Thanks & Regards,
    Manish

    Hi Sunny,
    Thank you  for your suggestion, actually we have tried registration using rfcexec and it works fine.
    BTW, we have managed to solve this issue by de-activate the IDoc receive & send modules of websap component and activate them again.
    Thanks and Regards,
    Nick

  • Receiver RFC adapter issue! Please help!

    Hi Experts,
       I have 4 XI interfaces. All of these are Webservice to RFC scenarios. Moreover all of them are synchronous.
      Request message: Webservice (SOAP Adapter) ---> XI -
    > RFc Adapter ---> ECC Function modules
      Response message: Webservice (SOAP Adapter) <- XI < RFc Adapter <- ECC Function modules
    As you can see above, external system calls XI web service via SOAP Adapter. The input data is then sent from SOAP Adapter to RFC adapter to call RFC function module in the receiving side.  The receiving system is SAP ECC system.
    The receiver ECC system has two instances. For example SP0 ad SP1. 
    In the receiver determination step we have maintained a rule such that if the Plant value in the input message is XYZ then send data to SP0. But if the plant value in ABC then send data to SP1.
    This Conditional rule is working fine.
    However we are getting couple of issues with only one instance of ECC (SP0).
    1. com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message badfa070-b163-11de-a4c1-001cc495e48a(INBOUND) expired
    2. NO_MAPPINGPROGRAM_FOUND. Mapping program is not available in runtime cache: Object ID C2B41FFDFD4635BAB1E41AE53C0D10CE Software Component 5394F420463611DAC1CFFBBC0A01BC16
    3. com.sap.engine.interfaces.messaging.api.exception.MessagingException: No response available
    The above listed errors are generated occasionally. Sometimes no errors are generated even when the same input data is sent again and message is successfully processed.
    I have verified the input data and everything is OK with that.
    Mapping object is available in XI and cache was also refreshed. I additionally reactivated the objects in XI as well.
    So what could be the real root cause of this? Please help!
    Thanks
    Gopal

    1. com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message badfa070-b163-11de-a4c1-
    001cc495e48a(INBOUND) expired
    Check the Timeout parameter of your adapter.....for requests which expire with this error confirm from the SAP end that the message processing is done well within the Timeout period of the adapter.
    Refer this note for more info on the above occuring error and the possible way to avoid it: https://service.sap.com/sap/support/notes/791379
    Update:
    Even problem 3 seems to be occuring due to insufficient Timeout specified for the adapter.....if possible try increasing the Timeout in VA
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Oct 6, 2009 1:42 PM

  • Multiple receivers for same rfc msg type

    I have a soap-XI-RFC scenario. I have to read the soap message and depending on the key field value, I have to send to two different SAP systems.
    For EX:
    Input Message:
    <input_msgType>
      <item>
          <Key>ABC-123452</Key>
          <value>test1</value>
      </item>
      <item>
          <Key>ABC-342222</Key>
          <value>test2</value>
      </item>
      <item>
           <Key>XYZ-676767</Key>
           <value>test2</value>
      </item>
      <item>
           <Key>XYZ-565655</Key>
           <value>test2</value>
      </item>
    </input_msgType>
    Output Message1:
    <BAPI_SEND_DATA>
       <item>
            <Key>ABC-123452</Key>
            <value>test1</value>
       </item>
       <item>
             <Key>ABC-342222</Key>
             <value>test2</value>
      </item>
    </BAPI_SEND_DATA>
    Output Message2:
    <BAPI_SEND_DATA>
        <item>
             <Key>XYZ-676767</Key>
             <value>test1</value>
        </item>
        <item>
              <Key>XYZ-565655</Key>
              <value>test2</value>
       </item>
    </BAPI_SEND_DATA>
    I have to send the same rfc request data to two sap systems..all the key with ABC starting Key should go to SAP system1
    and all the key with XYZ key should go to SAP system 2.
    Should I split the message in mapping - if so how can i do it? What kind of BPM steps should I do?
    Can I do this in receiver determination itself using condition? THanks for suggestions and help..
    Thilothama

    Krishna Moorthy,
    I came to a point where I decided that Java mapping would be the best for this. But do you have some sample starts for this??? I would appreciate if you can show me some light...
    Would something like this help??
    public void getPhonesById(String[] a, String[] b, String[] c, ResultList result, Container container){
    Map map = (Map) container.getParameter("phones");
    if (map == null){
      map = new HashMap();
      for (int i = 0; i<b.length; i++){ // if the payload is valid to xsd, b and c have equal length
        List list = (List) map.get(b<i>);
        if (list == null){
          list = new ArrayList();
          map.put(b<i>, list);
        list.add(c<i>);
      container.setParameter("phones", map);
    List list = (List)map.get(a[0]);
    for (int i = 0; i< list.size(); i++) result.addValue((String) list.get(i));
    Thanks and appreciate your help
    Thilothama
    Message was edited by:
            Thilothama v

  • RFC lookup error

    Hi all,
    I am doing an RFC lookup to increment counter. I am facing a problem.
    I followed the code written by Michael. https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    My udf is as shown below: -
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    java.util.Map param = container.getTransformationParameters();
    String MSGID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
    // filling the string with our RFC-XML (with values)
    String m="<?xml version="1.0" encoding="UTF-8"?><ns0:_-GLB_-ZGT_RFBIBL00_COUNTER xmlns:ns0="urn:sap-com:document:sap:rfc:functions"><IM_V_FILENAME>CA10.NCH.FCIPAY04</IM_V_FILENAME><IM_V_MSGID>"MSGID"</IM_V_MSGID><IM_V_WRNO>DEVWR0001725</IM_V_WRNO></ns0:_-GLB_-ZGT_RFBIBL00_COUNTER>";
    importanttrace.addWarning("Input value is  "+m);
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    // 1. Determine a channel (Business system, Communication channel)
    Channel channel = LookupService.getChannel(receiverBS,"CC_RFC_RCV_AMS_R3F_DEVWR001725");
    // 2. Get a RFC accessor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    // 3. Create a xml input stream representing the function module request message.
    InputStream inputStream = new ByteArrayInputStream(m.getBytes());
    // 4. Create xml payload
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    // 5. Execute lookup.
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    out = new ByteArrayOutputStream(1024);
    byte[] buffer = new byte[1024];
    for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
    out.write(buffer, 0, read);
    content = out.toString();
    catch(LookupException e)
    importanttrace.addWarning("Error while lookup " + e.getMessage() );
    catch(IOException e)
    importanttrace.addWarning("Error " + e.getMessage() );
    finally
    if (out!=null) {
    try {
    out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing stream " + e.getMessage() );
    // 7. close the accessor in order to free resources.
    if (accessor!=null) {
    try {
    accessor.close();
    } catch (LookupException e) {
    importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
    //returning the result u2013 RFC-XML.response
    if ((content.substring(143,150)).equals("NOENTRY"))
    ExceptionThrower.generate("INVALID INPUT DEVWR NUMBER OR ID" );
    return "Nothing";
    else
    return (content.substring(143,155));
    The problem i am facing is that, i am not able to pass the IM_V_MSGID parameter to the function module.
    The other 2 parameters i can pass. that is IM_V_FILENAME and IM_V_WRNO.
    i am able to extract the message ID using
    java.util.Map param = container.getTransformationParameters();
    String MSGID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
    and displayed it in SXI_MONITOR trace also using importanttrace.addWarning("Input value is  "+m);
    i got the correct MSGID in the trace.But the problem is that this value is not getting passed to the FM. Cos the table is supposed to increment the counter whenever the MSGID value changes.
    I tried hardcoding the MSGID value to 'abc' or '123' like values but the same thing happended. The counter will not increment. The FM is working perfectly when i run it and change the MSGID values manually.
    Thanks
    Pratichi

    Hi,
    We have done this by creating an FM in XI ABAP stack:
    FUNCTION Z_ZBXI_GET_PRE_MSG_ID.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_CURRMSGID) TYPE  CHAR40
    *"  EXPORTING
    *"     VALUE(E_PREMSGID) TYPE  CHAR40
    DATA: lv_currmsgid type SXMSPMAST-MSGGUID,
          lv_parentmsgid LIKE SXMSPMAST-PARENTMSG,
          lv_premsgid LIKE SXMSPMAST-MSGGUID.
    lv_currmsgid = i_currmsgid.
    select single PARENTMSG from SXMSPMAST into lv_parentmsgid where MSGGUID = lv_currmsgid.
    e_premsgid = lv_parentmsgid.
    ENDFUNCTION.
    You need to call this FM through RFC lookup UDF in your mapping.
    Let me know if it works for you.
    Regards,
    Shweta

  • RFC Destination Tables

    Hello,
    Which are the table where I can find the RFC Destination with the Logical system names from SRM to R3  and R3 to SRM.

    Hi,
    My requirement is I need to call a function module in SRM from R3.
    Call Function 'ABC' Destination v_dest.
    I need to find out the v_dest from a table in R3 which will give me the destination which is mentained in transaction SM59.
    The RFCDES table has only destinations but I need the identification for SRM system which will bifurcated from other destinations.
    As I get only destination names, I am not able to get the exact Destination which I have to take for SRM.

  • RFC Sender (XI 3.0, SP14) Load Balancing doesn't work

    Hi all,
    We're "desperately" trying to use the Load Balancing option of RFC Sender Adapter (XI 3.0, SP14). It doesn't work.
    The Adapter can not register to the sender SAP server. But when we do not use the "Load Balancing" option, everything works well.
    We did follow the XI guidelines step-by-step. All necessary configurations in XI and in SAP sender system (TA: SM59) are "properly" done and reviewed by different experts several times.
    Do you have, by chance any running scenario using "Load Balancing" within a RFC Adapter? If yes, I would appreciate if you can share it with me. 
    Thanks a lot!
    Regards,
    Khaled

    Hello Khaled,
    the RFC sender adapter registers a program at the SAP Gateway. Load Balancing for the Sender Adapter means, that you have at least two J2EE server nodes within your XI installation. On all these server nodes the same RFC sender adapter is started and register the same program at the same gateway. The load balancing is then handled by the gateway. That means, that for the sender adapter the settings are the same, even if you use load balancing or not.
    The settings are, e.g.
    - SID=ABC
    - hostname=abchost (central instance, message server)
    - hostname=xyzhost (additional dialog instance of ABC)
    - instance nr=00
    application server (gateway): xi1host
    application server service (gw-service): sapgw00
    programm id: could be freely choosen
    The Metadata Repository could be connected using load balancing. Here a user need to log on to the system.
    The settings here must be:
    Message-Server: abchost
    Message-Server-Service: sapmsABC
    System-ID: ABC
    Logon-Group: e.g. PUBLIC; this logon group need to be created in system ABC using transaction SMLG
    For the RFC-Receiver Adapter the same settings as for the Metadata could be used.
    Keep in mind, that for the RFC Sender Adapter a RFC connection of type T must be created in transaction SM59 in system ABC.
    Rgds.,
    Andreas

  • Problem with RFC LookUp Parametrised Mapping

    Dear All,
    I am using RFC Look function in message mapping and have defied import parameter as xyz of category adapter and type RFC to get a sinle value response from RFC.
    After this, I created operation mapping. Now going for Parameter binding, it is not showing me any value i.e. parameter defined in message mapping is not displaying due to which i am not able to activate operation mapping, it is showing error as "Binding for Message Mapping MM_FILE is not correct. Parameter xyz of Message Mapping MM_FILE is missing"
    I have checked various blogs on SDN but I am not able to figure out the mistake.
    Kindly guide me out.
    Reg,
    NJ

    Hi nishu,
    in operation you need type a name againasi the parameter XYZ.
    XYZ----
    ABC
    and in configuration when you will use this operation mapping in interface determination then it will ask for the value of ABC.
    so
    suppose channel name---CC_TEST
    So in Interface mapping you will assign
    ABC=CC_TEST
    So in Operation mapping you have assigned
    XYZ=ABC
    means XYZ=CC_TEST(beacuse ABC=CC_TEST)
    Simple Math 

  • RFC IN Report

    hi all,
    i had already create a report in crm , and a RFCin R3,
    now i have to call this RFC in my report,
    so plz tell me the procedure for doing this.

    First we need to check whether an RFC destination exist from the CRM system to R3 system. If so and you have the proper authorizations to use that RFC Destination you can make use of that RFC destination. If you dont find the suitable RFC destination, you or the authorized people shuold create the RFC destination in transaction SM59. Then use that destination in call function statement like
      call function 'abc' destination 'xyz'.
    Thanks,
    Rajinikanth G

  • How to display RFC-Logon-Screen for non trusted connection in Web-Dynpro?

    Dear Web-Dynpro-Specialists,
    i got a issue while creation of an WebDynpro-Tool, which is using RFC connections for reading data.
    In some cases the RFC connection is not a trusted one connection, so a login is nessessary, but in
    this cases not a window is coming up for login....
    Any idea how i can get this window for login, in order to collect the nessessary Data for my tool?
    Additional Information concerning the RFC connection:
    While running my Web-Dynpro i run this Method:
    METHOD get_table_entries.
    CLEAR rt_entries[].
    CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'
    DESTINATION iv_destination
    EXPORTING
    gen_key = iv_table_key
    table_name = iv_table_name
    TABLES
    entries = rt_entries
    EXCEPTIONS
    internal_error = 1
    table_empty = 2
    table_not_found = 3
    OTHERS = 4.
    CASE sy-subrc.
    WHEN 1.
    RAISE internal_error.
    WHEN 2.
    RAISE table_empty.
    WHEN 3.
    RAISE table_not_found.
    WHEN 4.
    RAISE unknown_error.
    ENDCASE.
    ENDMETHOD.
    Thanks a lot in advance
    Best regards
    Carsten Klatt

    Hi!
    You can use the function module RFC_MODIFY_R3_DESTINATION to create, modify and delete RFC connections. You will need the system ID (e.g. ABC), client (e.g. 123), system number (e.g. 00) and the host name of the server. In this example the following code would create or modify the RFC destination ZRFC_DESTINATION.
        CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
          EXPORTING
            destination                = 'ZRFC_DESTINATION'
            action                     = 'M'
            systemid                   = 'ABC'
            systemnr                   = '00'
            server                     = 'serverhostname'
            language                   = sy-langu
            client                     = '123'
            user                       = 'USERNAME'
            password                   = 'PASSWORD'
            description                = 'Dummy RFC Connection'
          EXCEPTIONS
            authority_not_available    = 1
            destination_already_exist  = 2
            destination_not_exist      = 3
            destination_enqueue_reject = 4
            information_failure        = 5
            trfc_entry_invalid         = 6
            internal_failure           = 7
            snc_information_failure    = 8
            snc_internal_failure       = 9
            destination_is_locked      = 10
            OTHERS                     = 11.
    With the following code you can delete this connection:
        CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
          EXPORTING
            destination                = 'ZRFC_DESTINATION'
            action                     = 'D'
          EXCEPTIONS
            authority_not_available    = 1
            destination_already_exist  = 2
            destination_not_exist      = 3
            destination_enqueue_reject = 4
            information_failure        = 5
            trfc_entry_invalid         = 6
            internal_failure           = 7
            snc_information_failure    = 8
            snc_internal_failure       = 9
            destination_is_locked      = 10
            OTHERS                     = 11.
    Please keep in mind that deleting an RFC connection is usually noted in the system log.
    If you want to reuse your connection for multiple servers, you could run into trouble since connection data is cached.
    Sincerely,
    Stefan

  • Cannot resovle the Symbol error in UDF - Java mapping - RFC Lookup ?

    Hi Friends ,
    We are working on Java mapping  -  UDF for RFC Lookup . It is giving the Cannot resolve Symbol for all imported archive java class files even if we give again all imported files in import section of UDF we are still getting the same cannot resolve error  .
    We are using SP 12 of XI 3.0 . What could be the reason ?
    Thanks.,
    V.Rangarajan

    Hi,
    Can you try to open imported archive in IR and check if the path(folder structure like com.abc.xyz.etc) for classes is same as in import statement in UDF.Since we had experienced the same problem.
    Thanks.
    Regards,
    Shweta

Maybe you are looking for

  • Can't open my old iPhoto library

    I have my iPhoto library on an exernal desk since I had a crash of my old MacBook pro a while ago. Now I've a MacBook Air and when I'm trying to open the old library it says that I've to update my library to make it work with my new iPhoto software.

  • Regarding conversion of image to video

    Hi All, I need a small help. My requirement is to convert a text file in to an image file by attaching a background and that image is converted into video file by attaching audio file. please guide me how i can achieve this using sun java API. Is thi

  • Data dcitioany view and function and procedures insure a package

    I need the run a query on the Data dcitioany, to get a list of packages as well as a list for procedures and functions inside on Oracle 10g

  • How do I change InDesign CC's desktop back to white?

    I'm finding it hard to read the menu bar and what info I have on the desktop. How do I return it to white?

  • Syncing iTools with MobileMe

    iSync on my older PowerBook G4 still wants to sync with my old iTools account, while iSync on my newer PowerBook Pro wants to sync with MobileMe. The result is two calendars on an iTouch - an iTools calendar and a MobileMe calendar (and, of course, t