Skip to Content
author's profile photo Former Member
Former Member

RFC destination in call function

Hi ,

there are 3-4 connections between two systems in SM59. i want to use one of the connections explicitly.

Is there any way to code it while writing call function destination ***.

The problem is somebody has created a conection without saving the passoword. so each time RFC is called i have to login into the sytem.

i want to use another RFC connection.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2009 at 12:15 PM

    Hi, I used the following statements:

    • Check RFC destination = from SM59

    SELECT SINGLE rfcdest

    FROM rfcdes INTO lv_rfcdest

    WHERE rfcdest = irfcdest

    AND rfctype = '3'. "ABAP connection

    IF sy-subrc <> 0.

    RAISE no_dest.

    ENDIF.

    CALL FUNCTION 'ZCS_BAPI_INTERMED_GETAGRDET'

    DESTINATION lv_rfcdest

    EXPORTING

    etc.

    Succes,

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      i system name is F9Q450. when i check sm59 there are 4 connections with name F9Q450,F9Q450_1,F9Q450_2,F9Q450_DEBUG.

      out of which the connection F9Q450_DEBUG has the password as initial in the logon tab of sm59, & others have id ALEADMIN,pwd SAVED.

      so it means if the connection F9Q450_DEBUG is calledit will ask user name ,pwd to login and others will automatically excute.

      when i do pass call function ZMMMX destination 'F9Q450' it is showing me logon screen ' it means it is calling the F9Q450_DEBUG connection .

      is there any way in SM59 where they have made it as default.

      i am unable control through program.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2009 at 12:07 PM

    i am not getting any response...

    is my explanation not adequate plese let me know

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2009 at 12:10 PM

    Just give the connection name as seen in SM59 after DESTINATION, or what am I missing?

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2009 at 12:10 PM

    Hello,

    If you want to use the RFC destination 'XYZ', you call the RFC FM as:

    CALL FUNCTION 'Z_TEST' DESTINATION XYZ

    You can also pass a variable to the DESTINATION as well. What is your exact problem?

    Suhas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.