FM for RFC destination

Hi All,
Iam working on CRM4.0 and SAPR3 4.6. I need to call a Function module which is RFC enabled in CRM from R3. currently iam hard coding the RFC destination. is there any FM that can get me a destination.
could some help me with this?
Thank u.
Suresh.

Hi Suresh,
You check the FM 'SMOF_READ_SMOFERPSH' in CRM system.
It should work...
<b>code:</b>
DATA: lv_oltp_destination TYPE rfcdest,
        lt_erpsites         TYPE TABLE OF smof_erpsh,
        ls_erpsites         LIKE LINE OF lt_erpsites.
read OLTP destination
  CALL FUNCTION 'SMOF_READ_SMOFERPSH'
    EXPORTING
    I_ERPLOGSYS          =
    I_RFCDEST            =
    I_SITEID             =
      i_sitetypeid         = 'SMOF_ERPSITE'
    I_ALL_ERPSITES       =
    TABLES
      t_erpsites           = lt_erpsites.
  READ TABLE lt_erpsites INTO ls_erpsites INDEX 1.
  lv_oltp_destination = ls_erpsites-rfcdest.
  IF lv_oltp_destination IS INITIAL.
    RAISE no_data.
  ENDIF.
  CALL FUNCTION (RFC FMNAME)
    DESTINATION lv_oltp_destination
    TABLES

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

  • Custom Table for RFC destinations

    Hi,
    I am working on SAP PI/XI. I had created an Custom Function Module (RFC Wrapper) in XI or PI which calls Bapi's in SAP R/3.
    So we specify the RFC Destinations in the code to call the Bapis. But these RFC destination Values changes for DEV, QA and PRD systems. when we transport, these Values we need to change as per the Enviromment(DEV,QA,PRD).
    I want to Maintain the the RFC destinations Values dynamically.
    For that I want to define a Table to maintain the RFC destinations. There could be "n" of RFC destinations to R/3. I want to differentiate RfC destinations pertained only to my scenario or Interface.
    How do I proceed. what should be the table structure and fields?
    Kindly provide your valueable Inputs
    Thanks &Regards,
    Varun

    Hey
    You should be able to handle this by reading the System Id of the current system
    Just have a If-Else condition in your FM.
    If SY-SYSID ="Dev"
       then call Dev RFC dest
    If SY-SYSID="Qa"
       then call QA RFC dest
    etc etc
    Thanks
    Aamir

  • CCMS aler for RFC destinations availability

    Hi Experts,
    We have configured ccms alert autoreaction method for availability of RFC destinations.
    alert is configured with yellow thershold as 10% and red threshold as 5%.
    alert text is :&1 &3 < &2 &3  15 min. avg. value below threshold value (&4 measurements)".
    We are receiving mail alerts for CCMS red alert for RFC saying" 0 % < 5 %  15 min. avg. value below threshold value (1 measurements) ".
    But when we checked the corresponding RFC is working fine.
    Can anyone please explain how this RFCs destinations check alert will work and what is the meaning of alert text ":&1 &3 < &2 &3  15 min. avg. value below threshold value (&4 measurements)"."
    Thank you,
    Kavitha

    Hi
    I have done
    1. RFC connection from x to y and y to x
    In X system:
    1. In transaction RZ21, mark Method definitions, and choose Display overview
    Copyed standard CCMS_RFCDest_Availability_Col method definition to ZCCMS_RFCDest_Availability_Col
    Parameters tab
    For x
    Parameter name = RFC_DEST
    value = SM_XCLNT510_TRUSTED
    Parameter name1 = COLL_METHOD
    value = ZCCMS_RFCDest_Availability_Col
    Same in Y but for RFC_DEST give
    Parameter name = RFC_DEST
    value = SM_YCLNT100_TRUSTED
    Execution Tab
    Type of call = Function module
    Call SALK = SALK_RFCDEST_AVAILABILITY
    Execute method on = The local server of the MTE to be processed
    Execute method for = Individual MTE
    Control tab :
    Execute method for = Individual MTE
    Execute method = periodically in dialog process (short-running program)
    Startup method = Execute method immediately after monitoring segment start
    Execution location
    of startup method = Only on the central instance
    Start Tab:
    Execute method = Data Collection Method
    also try in so many way as in :Parameter Tab:
    RFC_DEST               SM_XCLNT510_TRUSTED
    COLL_METHOD            ZCCMS_RFCDest_Availability_Col
    MTE_CLASS              Availability_RFC_Destinations
    MTE_CLASS              CCMS_RFCDest_Availability_MO_Class
    MTE_CLASS              CCMS_RFCDest_Availability_Col
    COLL_METHOD            CCMS_RFCDest_Availability_Col
    RFC_DEST               CCMS_RFCDest_Availability_Col
    Problem:
    I am not able to  Reset the segment in WARMUP status
    not able to find the node in RZ20
    Regards,
    Neni

  • Steps for RFC destination in TMS

    Hi ,
    I need to configure a transport system , First I need to set RFC destination.
    I need to do a two system landscape. I need to set RFC destination for tis two systems only .
    Is that I need to set a RFC destination(t-code SM59) in DEV as
    DEV-DEV (DEV IP address)
    DEV-PRD (PRD IP address)
    In PRD as follows
    PRD-PRD (PRD IP address)
    PRD-DEV (DEV IP address)
    I know we have to set a path :
    DEV-DEV
    DEV-PRD
    PRD-PRD
    PRD-DEV
    as RFC Destinations, but where i need to set tis either in DEV or in PRD is my doubt.
    In which client i need to login , for tis RFC destination creation . Is that i need to login in 000 client.
    If i m wrong please correct me please..
    Regards,
    Hari

    In a very simple terms
    Yes! You have to login to client 000 for tme configuration.
    1.you have to create the transport domain.<PRD>
    2.Go to Dev and QA and run stms and add these systems to transport domain.
    3.Again login to transport domain <PRD> and accept the system into the transport domain.
    4.Later you can go to the graphical tool in transport domain and configure the transport route .
    Dev-qa consolidation
    qa to prd  -delivery
    and then distribute the configuration.
    You dont need to worry about the rfc etc.It is automatic process.
    Good Luck.
    Amit

  • Unicode Or Non-Unicode for RFC Destination.

    Hi,
    while creating a RFC Destination, what role does a Unicode Setting play.
    Should this  by default always set to Unicode. or does it vary from system to system. Is XI  Uniode compatible or not.
    Regards,
    Sita Rama Raju

    Hi Raju,
    As far as i know, by default, this setting is non-unicode, and that whenever you change the setting to unicode, you need to run a unicode test or something.
    cheers,
    Prashanth

  • Queues for RFC-Destination

    Hallo,
    must i assign a rfc-destination to a outbound queue? what happens when this is not done?
    Thanks in advance,
    Frank

    Hello Frank,
    In the context of using RFC Destination with quality of message EO(Exactly Once -- tRFC), the Queue will be automatically gets assigned at runtime.
    In the case of EOIO(Exaclty Once In Order-- qRFC), since the messages have to be executed in a sequence, a queue must be assigned during configuration.
    As per your query, if not assigned the messages would be struck.
    Regards,
    Sreenivas.

  • Unable to change RFC destination in IT Performance reporting wizard

    Hi Experts,
    I am setting up IT Performance Reporting in my Solman EHP1 system. In the first page of the PErformance reporting wizard, it asked me for RFC destination from BI to Solman(1st field) and Solman to BI (2nd field). I initially entered an existing RFC destination that we are already using in a separate application that has a user with very-limited authorization. Now, I am trying to change the RFC destination by running the same "Configure IT Performance Reporting" wizard but both fields are already GREYED out.
    I tried deleting the RFC destination previously defined in an attempt to reenable the fields but only the 2nd field was enabled. When I try to continue the setup, it results into a Shortdump because it is still looking for the initially defined RFC dest which is defined in the 1st field that cannot be edited.
    SAP has not yet provided us with a solution.Your help is greatly appreciated.
    Thank you very much.

    You canprovide the RFC destination in DOE administration portal. Goto Configurations link and search for "BACKEND DESTINATION" parameter in "BACKEND CONFIGURATION" link. Here you can provide RFC destination at SWCV level or at Data object level.
    After deleting RFC destination in SM59, it will never take you to backend system.

  • RFC Destination Test?

    Is there FM to Test a RFC Destination?

    Hi Ruben,
    SM59 is the transaction to test for RFC destination.
    Just click on REMOTELOGON button. It will open destination system logon.
    The function module <b>/SDF/SL_RFC_GET_CLIENT_REMOTE</b> will determine the RFC destination.
    The function module <b>ARFC_DEST_CONFIRM</b> will confirms destionation of RFC.
    The function module <b>RFC_CHECK_DESTINATION</b> will check the destionation of RFC.
    Thanks,
    Vinay

  • An RFC destination could not be specified for the logical system

    Hello Experts,
    I am trying post goods receipt in EWM system in a simple inbound delivery process. It is not getting posted back in ECC. I have my RFC connection setup properly(I assume since I was able to transfer inbound delivery to EWM in first place).It seems some setting related to Outbound queue in EWM is missing.Can anyone tell me in detail what settings are required?Is it something to do with WE20 transaction?I am not sure what settings should be done there.The error log is as below-
    An RFC destination could not be specified for the logical system
    SB3CLNT011
    Message No. B1550
    Diagnosis
    An RFC destination should be specified for the logical system SB3CLNT011.
    This could not be done in this case. SB3CLNT011 is not your local logical system
    and this system is not included in the relevant Customizing tables.
    Procedure
    Check:
    RFC
    destination
    Port
    definitions
    oubound partner profile of
    message type SYNCH for this logical system
    Regards,
    Khushboo

    Hi Oritra and Suraj,
    I have checked remote connection in SM59 for both the logical system.It works fine.I understand this is more of a technical issue,but I don't have A local basis team to help me so reaching out to experts here.Can you guide me what technical settings could be checked for EWM-->ECC connection?When I execute BD82 for SB3CLNT011 it shows me green status with message "No messages have been defined for the selection conditions in the model".
    Although when I do this for EWM logical system SB3CLNT012 it shows me this with all green status-
    System SB3CLNT011 as a partner type already exists
    System SB3CLNT012 as a partner type already exists
    Port A000000018 with RFC destination SB3CLNT011 already exists
    Outbound parameters for message type SHP_IBDLV_CHANGE SHP_IBDLV_CHANGE01 already
    Outbound parameters for message type SHP_IBDLV_SAVE_REPLICA SHP_IBDLV_SAVE_REPLI
    Outbound parameters for message type SYNCH SYNCHRON already exist
    Am I missing something in WE20?
    Regards,
    Khushboo

  • How to create a RFC destination for extracting data to HANA

    Hello All,
    Could someone help me in providing a document or note on how to create a RFC destination for extracting data from SAP data source to HANA using SAP LT replication server ?
    I am able to create a data base connection while transforming data from non SAP data source,but wasnt able to transform data which is from SAP abap tables .

    Hi Venkatesh,
    In SM59 t.code we create RFC destinations.
    Go thru the video link for creating RFC destinations step by step
    How to setup a trusted RFC connection between SAP systems: a step-by-step guide - YouTube

  • RFC destination Could not be SPecified for Logical System

    Hello there
    i am traying to costomize Transaction Luancher for some of the report which is been devloped in ECC (wich is ARD 100)
    when  on Transaction launcher Wizard--> techincal
    i am  having a  logical system as ARD100(my r.3 system where report is devloped and which is connected to CRM )
    while chosing the OBJ.TYpe :   and Method:
    it says shows three erroe :
    1) RFC destination could not be specified  for the logical system ARD100
    2) Object type and Method is not available
    i have checked RFC  , in  SM59 entriesu2026u2026 There is an RFC named ARD100 and the connection test works. I also did an authorization test and it also works. I also checked to make sure the logical system name ARD100 exists
    could you please help me to resolved the same
    Regards
    Rajiv

    Hi Rajeev,
    In a system landscape it's important and necessary to use the logical system names consistently throughout all systems!
    Therefore please make sure, that you always use the same name for a logical system in all systems (CRM and R/3 systems).
    The following steps are required before a RFC call is made from the CRM system to the R/3 system :
        o  Use transaction SM59 to create an RFC destinations for the remote
           system.
        o  Use transaction BD54 to create the logical system.
        o  Use transaction BD97 to link the RFC destination created in SM59
           with the logical system created in BD54.
    I hope this helps.
    Best Regards
    Gavin

  • Creation of RFC destination for SAP-Access Connectivity

    Hi,
           I want to create a RFC destination for SAP-Access connectivity.
    Can I get some help regarding it's connection type,activation type and gateway options required for the same.
    Regrads,
    Anthony D'souza

    Hi
    Please see the following:
    1. Create an entry in Trxn DBCA for SQL Server in SAP, you are creating a database connection for the SQL server in SAP.
    2. You use this connection, and write Native SQL stmnts...between EXECSQL...ENDEXEC to fetch the data..and then normal ABAP statements to put that data into your ztable.
    TABLE DBCON Entry can be like this...depends on your External database..
    CON_NAME          Raj                      Logical name for connection
    DBMS                   MSS                   Microsoft SQL Server
    USER_NAME        <User name>       For SQL Server
    PASSWORD         <password>         " "
    CON_ENV             MSSQL_SERVER=<server> MSSQL_DBNAME=<database name>
    DB_RECO                 Availability type for an open database connect
    FUNCTION z_houston_connect.
    ""Local interface:
    EXEC SQL.
    CONNECT TO 'RAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    *- Get the data from MS-SQL Server
    EXEC SQL.
    open C1 for
    select
    l.loc_id,
    l.loc_name,
    a.acc_id,
    a.acc_name,
    d.person
    from ho_loc_mast as l
    inner join snd_acc_mast as a on l.loc_id = a.loc_id
    inner join snd_acc_addr as d on a.loc_id = d.loc_id and
    a.acc_id = d.acc_id
    where l.loc_id = '001'
    ENDEXEC.
    DO.
    EXEC SQL.
    FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_acc_id, :wa-c_acc_name, :wa-c_person
    ENDEXEC.
    IF sy-subrc = 0.
    PERFORM loop_output.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    EXEC SQL.
    CLOSE C1
    ENDEXEC.
    ENDFUNCTION.
    Regards,
    Raj

  • RFC destination for Sender System  in R/3 4.6c

    Hi All,
    I am trying create a RFC destination in R/3 4.6 system which will be used as sender RFC communication channel in Xi scenario. However i dont seem to have all the options such as activation type,gateway host and service which used to be there in SAP Enterprise or mySAP ERP systems. Can some one guide me to create an RFC destination in 4.6 system that will be used as a sender RFC system?

    Hi Arul,
           One more important point u have missed.
    Program ID,
    When ur configuring sender service from RFC,The most important point is Program ID.
    Use some name and create it.Use the same name in SM59.
    s such its very crucial .Activate them .make sure the destination for that programID is what u expect.
    Reghards
    chandra shekar

  • RFC destination for synchronous communication (message type SYNCH)

    Hi experts,
    I am trying to configuare ALE settings.waht i did is
    My sending & receiving systems are one server with different clients.By using SALE transaction
    1.crated logical systems.(LS_800 &LR_810)
    2.Assigned those to clients.
    3.Created RFC destination
    4. Created modelview assign sending & receiving
    systems and message type.saved it.
    4.generated Partner profile.Here i am getting below problem
    Target system LR_810
    RFC destination for synchronous communication (message
    type SYNCH)
    Partner profile LR_810 SYNCH does not exist
    Generate partner profile or
    specify outbound partner profiles for message type
    SYNCH
    Target system LS_800
    RFC destination for synchronous communication (message
    type SYNCH)
    Partner profile LS_810 SYNCH does not exist
    Generate partner profile or
    specify outbound partner profiles for message type
    SYNCH
    Regards;
    Upender.

    Hi Shital;
    Thanks for your replay;
    Still am getting the Same Error;
    Thanks;
    Upender.

Maybe you are looking for

  • Can't restore iPad

    I am trying to do a clean restore of my iPad (currently running 4.2) and when I click on the restore button, I get the following message: +There was a problem downloading the software for the iPad "jiPad". The requested resource was not found.+ I can

  • Should I upgrade to the newest MacBook or keep my 2008 that has a few issues?

    I have a 2008 version of the 13" MacBook Pro. It's recently been giving me issues as in slow browsing and quick battery drain. It also freezes frequently. Is it worth buying a refurbished 2012 version?  Should I go with MacBook Pro vs MacBook Air?  M

  • Partial/Residual payments

    Hi, While making the payments, there comes an error at the time of saving : correct the marked line items. Although i have completed the entry already. please advise what can be done to resolve this error. Regards, Ashok

  • XI Sender Adapter Usage .

    Hi All I had query around the Sender XI Adapter ( XI proxy). I know that we do not require a Sender XI Adpater while sending data from a SAP system to XI . What is the need when we would actually use this Sender XI Adapter. Can anyone please give a r

  • Consistent RGB Color Values with Photoshop CS4: An Impossibility??

    What I want is very simple: I want the Photoshop files I am working on and the rendered PNGs in my browser to have the same color values. I don't care if my web images look the same color on other screens or anything like that. All I want is for the