How to get RFC Destination and Logical System name dynamically

Hi all,
I have a RFC FM written in CRM. I need to call this FM in R/3. So, i use the syntax " Call function <func> destination <destination name>. My problem is that i need to fetch the destination name dynamically..
There is a way to do so in CRM which is as follows:
DATA:  lt_siteselect TYPE TABLE OF siteselect INITIAL SIZE 0,
           ls_siteselect TYPE siteselect.
  CALL FUNCTION 'SMOF0_READ_SITESELECT'
    TABLES
      to_siteselect = lt_siteselect.
  READ TABLE lt_siteselect INTO ls_siteselect
         WITH KEY sitetypeid = cl_smw1_siteprovider=>c_sitetype_r3oltp.
The above piece of code returns the site and also takes care of the client you are currently working on. But the specified FM is present only in R/3..
I want to achieve the functionality fulfilled by the above code in R/3.
Kindly help.
Useful answers will be rewarded.
Thanks in advance,
Karan Merwana
I can not use FM LOG_SYSTEM_GET_RFC_DESTINATION as for that i need to provide the logical system name. And the logical system name would be different for different clients.
Message was edited by:
        Karan Merwana

For those referring this thread later, I could not find a solution to this and ultimately had to do away with hardcoding of system names based on the DEV, Q, and PROD system names.
If anyone does manage to get a workaround, please let me know.

Similar Messages

  • RFC Destination and Logical System

    Hi Friends,
    Can anybody tell me how the RFC Destination and Logical System are related to each other?

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

  • RFC and Logical System names

    Hello......is it necessary to have RFC and Logical system name for the connected system to be identical?Is there any explanation behind this if thats true....

    Hi Gaurav,
    It is recommended, but not mandatory, right, Muthuraman?
    The system uses some transactions to determine which RFC will be used for the communication between one system and another, for example, in transaction 'Define backend systems' in SPRO, you can define that the current SRM client has an ECC backend system named X and the RFC destination for this X system is Y (not necessarily the same name).
    Regards,

  • Business system and logical system names

    hello experts,
    Right now m creating scenarios of IDOCs, Files and RFCs. Just wanted to know that is it compulsory to give Business system name and Logical system names same?
    Does it make difference if i will give both names different?
    Regards,
    H.S.

    Hi,
    I guess i have not explained you proprely.
    Here logical system mean m asking abt the system name which we are using in RFC connections to make connection between two systems.
    does Business system name and Logical system name should be same?
    Actually right now we have done system copy of production system into our sandbox. So all the things are pointing to the production system.
    I was just wondering, if i will just change ip/ hostname into the Technical system (ip of sandbox system) and keep business system name as it is( which is right now of production system)... then for me no need to create all ID Objects again. Its just an idea. So just wanted to check is it ok... bcz in ID i have more than 60 objects which i need to create again. and i have very less time
    Or if anyone can tell me any good idea to do that.
    Thankx in advance.
    Regards,
    H.S.

  • Logical System and Logical System Name

    Hi,
       I would like to create the following  and please tell me how do I go about doing this. I am doing this because I am trying to implement both RFC/Idoc to File and File to Idoc/RFC. The basis admin guys are unavailble at the moment so I am on my own at this moment.
    Creating a port(I suppose I need to do this on the R3. What are the steps involved)
    Create a Partner Profile

    Hi Sonia,
    For XI communicating with SAP R/3 through Idocs ALE settings need to be done,
    just go through the following steps and Configure ALE :-
    SAP XI
    1) RFC Destination (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.
    2) Create Port (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 (IDX2) a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    SAP R/3
    1) RFC Destination (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.
    2) Create Port (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)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (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.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    In SLD – System Landscape Directory
    TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.
    Ts for Third Party (Logical system):-
    BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.
    BS for Third Party (Logical system):-Enter the XI logical system name.
    In Transaction SALE
    Define and Assign the logical system name.
    Regards,
    Ashwin M
    Reward If helpful

  • How to change or rename the logical system name T90CLNT090 IN BI 7

    HI Expert's,
    i am really digging for the solution of changing or renaming the logical system name technical name T90CLNT090.
    in our company we are using ecc5.0 with bi 3.5 and ecc6 with bi 7. In BW 3.5 having a connection with R/3 and the technical name of the myself bw source system(logical system) is T90CLNT090.
    In bi 7 also the logical system name is same as T90CLNT090. Because of the same system name(Logical name) it is not active in BI7 and also it's giving error when i am activating the DSO Object as Transfer structure prefix for source system T90CLNT090 is not defined.
    because of this i am not able to create the source system between r/3 also.
    so how to change this source system name for T90CLNT090.
    regards
    harikrishna N

    Hi,
    Pls follow this OSS note : 325525.
    Note 325525 - Copying and renaming systems in a BW environment
    Summary
    Symptom WARNING: THIS NOTE HAS BEEN REPLACED.  FOR MORE CURRENT AND MORE COMPREHENSIVE INFORMATION SEE NEW NOTE 886102.
    You want to copy and or rename one or more systems (database or client copy). One or more of the systems is a BW system or is connected to a BW system.
    Caution: This note only deals with problems that occur in the BW source system connections. Other problems that occur in the BW environment (indexes) are NOT dealt with. See URL http://www.service.sap.com/bw --> Services & Implementation --> System copy & Migration.
    Other terms BW, source system, OLTP, database copy, client copy, system infrastructure, transport system, connections, RFC connection, trfc, transfer structure, IDoc, ALE customizing, logical system name, system changeability, renaming systems, system copy
    Solution Several scenarios are possible in this environment. Find the scenario relevant to your situation below and execute the steps listed or read the note(s) specified:
    Scenario 1) You do not want to copy a system but only want to rename one (changing a logical system name).
               Solution scenario 1): Execute Transaction BDLS both in the client to be renamed and in the connected BWs or BW source systems. To do this, see Notes 121163 and 369758.
               Check the RFC destinations in all connected BWs/BW source systems as described in Note 524554.
               Reactivate all partner agreements that carry the new logical system name after renaming.
    Scenario 2) You want to copy the entire system infrastructure connected by the BW source system connections (that means the entire system group) by a database copy. SAP recommends this procedure for copying systems.
               Solution scenario 2):
    If you want to rename one or more of the copied systems, then execute Transaction BDLS both in the client you wish to rename and in all the connected BW and BW source systems. See Note 121163.
                        Make sure that an RFC destination exists with the new logical name in every connected BW or BW source system.
                        Reactivate all partner agreements that carry the new logical system name after renaming.
    Change the hosts in the appropriate RFC destinations so that they refer to the correct computer. For this, see Note 524554.
    Scenario 3) You want to copy a single BW system of the group by database copy.
    Scenario 3)a) You only want to exchange the hardware of your system but do not want to rename the system.
                         Solution scenario 3)a): You do not need to execute follow-up work regarding the system connections, except for adjusting the IP address in the RFC destinations of the connected system.
    Scenario 3)b) You want to keep the original system of the copy so that you have two systems after copying.
                         Solution scenario 3)b): See Note 184754.
    Scenario 4) You want to copy a single source system of the group by database copy.
    Scenario 4)a) You only want to exchange the hardware of your system but do not want to rename the system.
                         Solution scenario 4)a): You do not need to execute follow-up work regarding the system connections, except for adjusting the IP address in the RFC destinations of the connected system.
    Scenario 4)b) You want to keep the original system of the copy so that you have two systems after copying.
               Solution scenario 4)b): See Note 184322.
    Scenario 5) You want to import a client copy in a source system.
               Solution scenario 5): See Note 325470.
    Thanks & Regards,
    Suchitra.V

  • System Copy  and Logical system name conversion

    Hello All,
    Can any one let me know some inputs over these few queries.
    1. How much time would a 500+GB clients take for Export and reimport after the system copy.
    2. What would be run time of the BDLSS report ( Converting the logical system names) for a typical 1500 GB QTY system
    The requirement is my QTY has 3 clients, and i would like to refresh it with my PRD data. How do i safely perform thia activity with the least downtine possible and please note, the clients are around 500+ GB huge..
    Thanks in advance for your inputs.
    Rgds,
    Sri

    Hi Frank,
    the parameters of my installation are as folows.
    Appl Serv : OS - AIX (5.2 Version) and CPU's - 4 (Mem 20480) ::: DB serv : OS - AIX(5.2 Version) and CPU - 6 (Mem 22528)
    The DB version is Oracle 9.2
    We are on 4.7 enterprise version of SAP with SAPKA62055 patrch level.
    br
    Sri

  • How to get the RFC destination from logical system

    Dear all  ,
      i am working on one system and want to fetch data from another R3 sys
      i have written call ' FM' dest 'HPCR3' where HPCR3 is hardcoded.
      now if i want to remove the hardcoding i need to find out the RFC dest ( HPCR3)
      form logical sys(HPCPPT100) .
      i have used FM LOG_SYSTEM_GET_RFC_DESTINATION but not working
      kindly help
    Tarang

    hi,
    goto SM59 -> click on create rfc -> define rfc of receiver -> save -> give target host n system no -> give user id n password -> clicko n test connection -> if yes [u ll get info of remote connection ] -> remote login -> u can get intial screen of remote system.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • How to map IntegrationProcress to ALE Logical System Name

    Hy,
    i'm triying to send an Idoc from my IntegrationProcess MY_IP
    to out Backend SAP System XX1.
    Konfiguration has been done with an valid ReceiverAgreement.
    But neverless i got the following error:
    "Sender Service MY_IP cannot be mapped to an ALE Logical System"
    1. Where do i specify this Mapping? (I tried Header Mapping ReceiverAgreement
      without success)
    2. In my message mapping EDI_DC40 has mandatory fields like RCVPRN.
        But hardcoding the Receiver here cannot be the solution. Do the value
    i map there do have any effect at all?
    Thanks in advance.
    Gunnar

    Hello Nilesh,
    you're right - now it works. I just defined any LS and SID. No the IDoc runs into the system, but cannot be processed since the originator is unknown. But this can be solved now with SALE and we20.
    To be honest: there are so many blogs concernig this case. But i didn't find any which explains why the behavior is different when you send an IDoc from an Integration Process and what happens behind the scene. In the documentation
    i didn't find anything at all...
    Thank you very much.
    Gunnar

  • How to get record created and modified user name from SharePoint Database?

    Hi,
    My SharePoint Portal is in Window Authentication. Some users have added requests to Lists. I want to find user name of the Created By and Modified By.
    Only ID is available in the corresponding columns in Content Database table. In which table the users details would store in Content Database.
    Thanks & Regards
    Poomani Sankaran

    hi, you can find the user details inside UserInfo Table in content database. But i would suggest not to directly query the content databse not even for select as it will affect the indexes.
    why not follow the link
    http://www.sharepoint4arabs.com/AymanElHattab/Lists/Posts/Post.aspx?ID=99
    also if you just need the basic created by and modified by info than use SharePoint Object Model To get these values using ECMA script use below link
    http://www.c-sharpcorner.com/UploadFile/anavijai/get-created-by-and-modified-by-values-from-sharepoint-2010-l/ using Client side object model https://msdn.microsoft.com/en-us/library/office/ee534956%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Using server Side Object model
    http://www.sharepointcto.com/View.aspx?id=15
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • RFC destination and logigal destination.`

    If I am transfering the data uisng ALE,
    is  RFC destination and logical system name of receiveing system should be same  ??????
    If the names of the both  are different what will be the effect plz tell me ????

    HI Prahlad,
    Logical system is nothing but participating system in the ALE scenario.
    By Using RFC call we can connect to Other system .
    In SM59(Def RFC ) we mention Logical sytstem name.
    So both should be same .
    1. Creating Logical Systems
    o     Login using 800 client
    o     Go to T. Code SALE
    o     Expand Sending and Receiving Systems
    o     Expand Logical Systems
    o     Click on Define Logical System
    o     Click on New Entries
    o     Create STUD_S, STUD_R Logical Systems
    o     Save and come back
    o     Assign the STUD_S Logical System to client 800
    o     Assign the STUD_R Logical System to client 810
    2. Creating the RFCs
    o     Go to T. Code SM59
    o     Expand R/3 Connections
    o     Enter RFC Name as STUD_S
    o     Connection Type as 3
    o     Language as EN
    o     Client as 800
    o     User as  SAPUSER
    o     PWD as abap
    o     Target host as sap
    o     Click on Remote logon button to test the RFC
    o     Enter RFC Name as STUD_R
    o     Connection Type as 3
    o     Language as EN
    o     Client as 800
    o     User as  SATISH
    o     PWD as abap
    o     Target host as sap
    o     Click on Remote logon button to test the RFC
    <REMOVED BY MODERATOR>
    Thanks
    Jagadeesh.G
    Edited by: Jagadeshwar Gollapelly on Apr 22, 2008 3:44 PM
    Edited by: Alvaro Tejada Galindo on Apr 22, 2008 1:15 PM

  • How to get text of itab header and structure field name dynamically?

    HI.
    I'm just trying display itab to web.
    of cause I can use <htmlb:tableView> but I need display by loop itable  for my special reason.
    the table is dynamic structure that means header line should be changes depends on structure description.
    '<htmlb:tableView>' certainly can display header line dynamically with just itable only.
    but don't know how to get these text and structure field name without 'tableView'.
    help me please.
    Thank you.
    <TABLE border=1>
    <TR style="background-color:#FFFF99" >
         <TD>header 1</TD>
         <TD>header 2</TD>
         <TD>header 3</TD>
    </TR>
    <%
    DATA: WA_STR TYPE FOPT_BSP_UI_REPORT.
    LOOP AT TT_itab INTO WA_STRUC.
    %>
    <TR>
         <TD nowrap><%=WA_STRUC-ORGUNIT_T%></TD>
         <TD nowrap><%=WA_STRUC-PRGROUP_T%></TD>
         <TD nowrap><%=WA_STRUC-PROCESS_T%></TD>
    </TR>
    <%ENDLOOP.%>
    </TABLE>

    DDIC structure means struture made from SE11?
    if yes,that's what I'm trying to display table.
    and my sepcial reason is this:
    my final purpose is download dynamic table to excel file.
    but when I download table comes form "<htmlb:tableView>" with changing http response header that shows some link error and useless icon and no table grid and etc...
    "<htmlb:tableView>" resulting lot of useless tags and script.
    think iterator has no function removing extra tags
    so  I'am trying to make simple html table.
    but problem is that itable is not just one structure can be more than 100 kinds of structure.
    in this situation is there any way to display dynamic itab into simple html table?

  • Changing Default logical system names of a model.

    Hi
        How could i change the
         Default logical system name for model instances:
         Default logical syatem name for RFC metadata:
        values for existing model? without recreating the model.
         Thanx

    Hi shah kond,
    you can change  rfc destinations of model in 2 differnet ways.
    firs one: right clcik on project
              from the context menu select propeties
              it will open a dialogbox from that select dynpro references then click on jco references tab
    by using add and remove buttons u can add and remove joc destnations
    2.expand ur model class double click output class.now seelct properties view.there u can change the jco destination
    hope this will use ful for u
    Regards
    Naidu

  • Clarification Regarding Logical System Names

    HI all,
    I read the blogs regarding Logical System Name, even I am having the some problems in my system.
    For PI system client is 100.
          R/3 System Client is 100 is created.
    IN PI when I checked the sale->basic setting-> LOgical Settings-> Assign Logical Systems
    I found there is only one client 100, and it is having the same logical system name as 'PICLNT100'.
    In SLD one Business System is created for Client 100 and having the Logical System Name is 'PICLNT100'.
    When I checking in the R/3 system that logical system Name ('PICLNT100')  is not there  and for r/3 client 100 having the different logical system name.
    IN ID when I found the Goto ID->File Buinsess system and Menu ->Services->Adapter Specific Identifiers->Logical Ssytem,
    It is different from the SLD logical System Name.
    How Can I know in PI, that Logical System is belongs to r/3 or PI client 100,
    when I running the sceanrio it is giving error as ATTRIBUTE_INV_SND_SERV while doing the file to Idoc scenario.
    How I have to maintain the logical system names in this case?
    please help me in this.
    Regards,
    Sree

    hi.
    each r3 system has his own SLN (PI,BI,ECC,etc). this name identify each R3 sytem.
    http://help.sap.com/saphelp_nw04/helpdata/en/78/217dc151ce11d189570000e829fbbd/frameset.htm
    IN ID when I found the Goto ID->File Buinsess system and Menu ->Services->Adapter Specific Identifiers->Logical Ssytem,
    to export data of your R3 system to SLD, just do it from TCODE RZ70 in your r3 system, not PI.
    once you configure it all data from r3 system is exported to SLD.
    if the SLN does not match in Adapter Specific Identifiers->Logical Ssytem, edit the Bussines System (press in the little pencil) go to Adapter Specific Identifiers->Logical Ssytem and prees in the little hand icon. in the SLN in not refresh, go to menu enviroment--> CLEAR SLD DELTA CACHE. and repeat the steps before.
    each time you send data to an R3 system and the sender system is a legacy. in your receiver communication channel>header mapping>sender system--> select the PI Bussines system and try again.
    hope its helps
    Rodrigo
    PD: rewards points if useful

  • How can I get the No. of package and requesting system name in user exit?

    Dear all,
    Is there anybody knowing how to obtain the extracting package number and requesting system name in the user exit "EXIT_SAPLRSAP_002" ? here is detail on my questions as below:
    For package number. If extracting 100,000 records of 0MATERIAL_TEXT , and the package size is 20,000, then there are 10 packages, when executing the user exit, how can I know which package I am extracting on?
    For requesting name, when executing the user exit, how can I know the logical system name from which the extraction request is sent?
    Thanks.
    best regards
    Patrick

    Hi Mansi,
    Thanks for your quick response.
    The background of this requirement is, in the datasource 0material_Plant_Att, we added two fields in the extraction structure, one is variable price, another is previous year's variable price, which need to be obtained by searching data KEKO & CKIS in the user exit, these tables have the huge data volume, in each data package, the user exit needs to be executed once, so the heavy searching needs to be done once, consequently, the total running time of this request including several data packages is very long. In order to improve the performance, we design the following logic:
    1. Create the temporary tables YCKIS & YKEKO in R/3.
    2. Run BW request in BIW.
    3. In R/3, If this is first data package of this request, delete all data in YCKIS & YKEKO, then search the data from CKIS & KEKO ( Average 20 million records), then insert these data into YCKIS & YKEKO ( Average 0.2 million records). 
    4. In R/3, if this is not first data package of this request, then search the data directly from YCKIS & YKEKO.
    You can see in the above, in the step 4, the data searching performance can be improved significantly due to reading data from temporary table, this is why I need to know the No. of data package. In addition, apparently, it can not be done in BIW side since the performance issue is in the user exit rather than in BIW. Also it is very difficult to setup one counter to deliver this since we do not know when to reset the counter. For example,
    - Assuming there are 3 data packages.
    - 1st day, we schedule one request from BIW, in R/3,
       -> At 1st package, counter = 0+1=1
       -> At  2nd package, counter =1+1= 2.
       -> At 3rd package, counter = 2+1= 3, then reset counter = 0 for next request.
    Question 1:  How can we know the 3rd package is last one?
    Question 2: If during the 2nd package, the extraction job is cancelled exceptionally, the counter value is 2 not 0, then for the next request, the data searching is not correct, right.
    Hope the above is clear, and apology this email is too long.
    Thanks.
    best regards
    Patrick

Maybe you are looking for

  • Closing an open task programatically

    HI, I have created a custom component in order to establish connection to BPM . The flow is such that , the connection gets established and i need to fetch the tasks based on the workflowInstance and user ID specified. I am able to fetch the tasks fr

  • Can be possibile that a Philips LCD screen doesn't work correctly with Mac?

    I've buy a LCD Screen 17" Philips SXGA 170S7FB/00. The first time i've connect it on my Mac Mini and it worked,but the second time when i try to startup the Mac,on the screen appair only a white page with in the middle a folder signed with a flashing

  • How to create a decimal object in a class?

    Post Author: farnaz CA Forum: WebIntelligence Reporting Hi, I have two fileds in database, one field is sign (-,+) and another is value( for example 73.92), I want to create an object with these two fields (-73.92).In Object Properties, in select win

  • Accessing individual server in load-balanced cluster not working as expected

    We have a cluster set up with multiple managed servers and hardware load           balancers sitting in front to direct traffic. We have the frontend host           configured to be the dns name of the single URL for the cluster, which maps          

  • 10.3 on b+w

    Blue and white freezes when trying to install 10.3