Deciding RFC destination dynamically

Hello All,
         I need to call a RFC which is there in R3 system from SRM system . While calling RFC I want to decide the RFC destination name dynamically i.e. depending upon the development , quality and production environment.
         Is there any way to decide the RFC destination name dynamically depending upon the source and target system's logical system name or with some other way.
Thanks and regards,
Keith

This solely depends on the naming conventions you are using. Since the name of the RFC destination is arbitrary, there is 'no' way of determining the name of the destination.
To be flexible to some extend, I 'always' create a customizing table (which can be maintained without transport) in which I use a name (like name of function module which calls RFC) as key field. second field is the name of the destination.

Similar Messages

  • To get the RFC destination dynamically

    hi,
    is there any Standard FM to get the RFC destinations dynamically. if so tell me what are the parameter i need to give for that.
    currently i am hardcoding the RFC destination, but if i Transport to Q system it should take dynamically
    thanks in advance,,,,

    Pradeep,
    I recently had to do this in a program.  I used the following select statement:
    SELECT SINGLE rfcdest INTO gv_rfc FROM  crmrfcpar
                                  WHERE consumer = 'CRM'.
    In the system I was working on, there was only one entry in the table per system with a consumer of CRM.  You should probably check the entries in the table in your system to determine the correct select logic.
    Best Regards,
    Chris H.

  • Finding RFC destinations

    Hi ,
    I am calling RFC functional module and I am passing the destination by Hardcoding . How can we pass the destinations dynamically .
    For example i am pasing the destination like
    CALL FUNCTION 'Z_PROMOTION_ON_ARTNR_ME_FIND' DESTINATION  'D01CLNT202'
    In above case destination is 'D01CLNT202'  this destination for Developement system whenever the code moved to qualaity i have to pass the quality destination system and then production means i have to pass production destination system.
    How can i pass the destination dynamically . Is there any FM or method ?
    Regards
    Srihari

    Hello,
    I don't think there is any FM or method which can return you the RFC destination of the particular system!
    You can specify the RFC destination dynamically by passing the value in a character-like variable, like this:
    CALL FUNCTION 'Z_PROMOTION_ON_ARTNR_ME_FIND' DESTINATION gv_dest
    You can use the following 2 approaches:
    1. If there is a scope of User Interaction, you can create an screen-element where the user can i/p the RFC destination name(F4 help will help the cause). But there is a chance that the user may not be aware of the correct RFC dest.
    2. You can create a TVARVC param & store the RFC destination against it. This has to be done in the QAS & PROD system as well. In your program you will have to query the TVARVC table using the parameter(this has to be hardcoded though!) & get the RFC dest.
    I've implemented both these solutions, but find the latter more convincing. The end users are finicky when it comes to technical terms like "RFC", "FTP" et al.
    @Keshav: How do you get the logical system for the QAS & PROD systems?
    BR,
    Suhas
    Edited by: Suhas Saha on May 18, 2011 3:25 PM

  • RFC Destination issue

    Hi
    I am facing an issue  while providing destination for RFC function module.I dont know  how to get the destination.
    Many of friends suggested me that we can get it through SM59. As I dont have authorisations for SM59,I could'not do.
    Is there any table or other alternate??
    I have one more doubt,
    Say suppose my RFC function module exist in R/3  development system and I am calling it from SCM  development system. assume  that destination for R/3 development system is DA4200.When  we move our calling program and R/3 RFC function module  to Quality system, destination will be changed.For quality system destiantion would be QA4200. How can we achieve it  programatically?/
    do we need to pass RFC destiantion dynamically?/ if  yes? how ?
    Please reply me. It is an urgent
    thanks
    Rama

    Hi Rama,
    We have to define the RFC Destination at the time of Function Module Call.
    Check this link for more:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf
    and this is step by step for SM59
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f62cfa8911d386e70000e82011b8/frameset.htm
    Sachin

  • 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

  • Pass RFC destination from Portal

    Hello all:
    I am developing a webdynpro abap application, and i have to pass RFC destination from protal to MY webdynpro abap applcation.
    Could some one pelase let me know how to acheive this.
    Thanks,
    Ratna.

    and i have to pass RFC destination from protal to MY webdynpro abap applcation.
    Hi.,
    I didnt get u.  If you want to pass a parameter dynamically from Portal check this Article : [How to integrate Web dynpro in ABAP and pass Parameters to WDA.|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/008fc414-997f-2e10-3899-fd895ec8eb5e]
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • 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

  • Logical system and rfc destination

    hello all,
    what is the difference between logical system and RFC destination?
    thanks for ur help in advance.
    regards,
    vikas

    Hi,
    In any ALE scenario u need one sender and one receiver system.
    Logical systems are just logical representation of these systems but in case of RFC destination u specify technical parameters for those systems like IP address and username and password to connect to that system.
    Thus when u create port i.e.we21 u specify actual RFC destination for the system to which u want to connect and when u create partner profile for that logical system u specify this port so when u want to send data to this logical system i.e receiver system port will be used which in turn has RFC destination which will be used to connect to that system.
    In simple terms logical systems are logical representation of any system and RFC destinations are physical/techinical systems.
    Regards

  • Logical system and rfc destination related Query?

    Hi Dudes
    Do we need to define logical system and RFC destination if they are in different clients in same server
    Regards
    Raj Kumar

    Hi
    Both are client independent setting, so even if you define in one client, it would be available in other clients also.
    Regards,
    Sanjeev

  • RFC Destination Connection Pool requirement

    Hi Experts,
    I have a custom webdynpro java application to display number of work items pertaining to that particular user in a backend.
    There are users who dont use this functionality as well. But the requirement is to place this application in home screen.
    I have used both metadata and modeldata with hard coded user since we did not want error messages to appear for users who do not have backend access.
    Application & Access Details
    Application Location : Home Screen
    Concurrent Users     : 600 concurrent users maximum possible value
    Connection Usage    : Close connection immediately using disconnectIfAlive() method.
    Now I need to configure JCO Pool Size , Max Connections, Wait Time for the RFC destination.
    I have read a lot of post and documents but could not acheive clarity of thought on this.
    Kindly let me know what values I should give in these fields for optimal performance and no connection issue for users.
    Regards,
    Porselvan

    Hi Muthavudaiyan,
    Hope you are doing good.
    Basically from the JCo perspective, there are only 5 parameters that are involved here:
    jco.destination.pool_capacity:
    Maximum number of connections that are held open in the pool for reuse (default: 1)
    jco.destination.peak_limit:
    Maximum number of connections that can be obtained from a pool at peak usage times
    jco.destination.max_get_client_time:
    Maximum time to wait for a free connection if the peak limit is reached before exception is thrown
    jco.destination.expiration_time:
    Timeout period after which pooled idle connections can be closed (default: 600000ms = 10mins)
    jco.destination.expiration_check_period:
    Regular time interval for checking if pooled connections have expired and will be closed
    The values are determined by the application in question. The ideal values have to told to you by the application developer; there are no two ways about this.
    Thank you and have a nice day :).
    Kind Regards,
    Hemanth

  • Service desk RFC destination in the Satellite system

    HI All,
          can any body tell me the RFC destination that is to be maintianed in the satellite system so that the message reaches the solution manager service desk.
    I am creating messages they are being send to the service desk successfully but are not visible when I go into the service desk of the solution.
    But they are visible through the transaction code CRM_DNO_MONITOR .Can any body help the RFC destination to be maintaned in the BCOS_CUST table so that the message reaches the Service Desk.]
    Currently I am using the RFC destination to the service desk client in the solution manager ie SIDCLNT200
    Thanks in advance
    Regards
    Amit

    Hi Amit,
    I think your expectation is not correct. I understood, you can create a message in a satellite system and you can see the ticket in SolMan service desk. Then everything is configured correct. What you are now looking for is to see the ticket in a solution when the sat. system is part of the solution. This is not working. If you create out of a solution a service desk ticket, these ticket get a special attribute that they belong to this solution, all other tickets can not be selected by a solution.
    Sorry but I am quite sure that it is working like this.
    There is only one option, that you define special variants so you can see only tickets from special systems, but these variants can not be assigned to a solution.
    Regards,
    uDo

  • 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

  • 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.

  • Communication failure : RFC Destination SALV_WD_EXPORT_PDF does not exist

    Hi Experts,
    I have one standard ALV report in ABAP Webdynpro.
    When i try to print the ALV Report it gives Communication failure : RFC Destination SALV_WD_EXPORT_PDF does not exist.
    Can you give solution for this one.
    Regards,
    Sri

    Hi Sri
    Please go through this..
    /people/bv.pillai/blog/2007/01/09/webdynpro-abap-alv-print-versionpdf
    also Have a look this note SAP NOTE 918236; you will need help from basis.
    Cheers,
    Kris.

  • 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

Maybe you are looking for

  • Java Applet Not Loading In IE6 on XP

    Can anyone assist I have a user who can not load a Java Applet on one of our web pages, I really need her to access this as it is important to her work. I have tried all the latest Java Versions to no avail. I have also tried adding SP1a to Windows X

  • Movement type 311- get value against a material

    Hi All, I can get a report of stock value and qty against a material from MCBE report. But for movement type 311,I am getting only the stock qunatity but not value. Will there be associated value for this movement type. Is there any other way where I

  • ITunes error 3036

    I have had an issue with iTunes for a long time now. On my MacBook Pro, MacBook, or my PC, I open iTunes on click on the Store tab at the top of the window, then I click on Check for Available downloads. I get a pop-up error window that says, "Unable

  • Can't get WIFI on my new Mac Book Pro

    Setting up my new Mac Book Pro and on the WiFI page, I see and select my network name.  Enter password and it hangs.  Try other networks and get same result.  I have two iPads and they work fine as do other devices. I thought I maybe maxed out on my

  • How to see in adobe viewer for iPhone5

    Hello. I joined adobe and I got a e-mail from Adobe Digital Publishing Suite. So, I logged in to the Digital Publishing Suite at https://digitalpublishing.acrobat.com/  yesterday. after then I download the adobe viewer app to my iPhone5 and I loged i