Calling an RFC without the code being present on the destination system

Hi All,
Here is my problem.
I want to execute a piece of code on a system from a program currently running on another system,
get the data and return back.
E.G. I am having a subroutine on development system. Let's say there is a select query inside the subroutine to get PARTNER from BUT000 based on certain parameters. The program should call an RFC get the data for the select query from the Production system and return the result back to the development system.
Please note : Here, I don't want to write the same piece of code on the production system.
<b>Is there any function module for the same or any idea on how to go about it.</b>
<b>Helpful answers would be rewarded.</b>
Regards,
Amit Mishra

Hai
Sending system side(SEND--800)
Create function module by using Tcode SE37 or SE80
goto attributes select remote function
activate
Receiving system side(RECE--000)
goto Tcode SM59
here select the R/3 Connections-->click on Create Button
give RFC Desstination : TESTRFC
     Connection Type  : 3 for Connecting two systems
     Description      : Some meaningful Description
Press enter
give Target system Name : SEND
          Language      : EN
          Client        : 800
          user Name     : sapuser
          Password      : xxxxxx
save this connections & click on test connections(f8)
                      & Remote logon(f7)---> it will open a session
                        with client 800 that is your sending system
                        then only your RFC is correct
create a report in SE38 Tcode
data : c1 type i.
data : itab like mara occurs 0 with header line.
call function 'ZRFCFM' destination 'TESTRFC' --->Function Module 'ZRFCFM' your just create at Sending system
     exporting
     importing
     exceptions.
Thanks & regards
Sreeni

Similar Messages

  • The definition of the READ RFC to the managed system could not be found. Pl

    Hi there,
    i try to setup a managed system on our Solution manager for E2E Analysis... but the Setup gave me a sort of errors
    The definition of the READ RFC to the managed system could not be found. Please make sure to run the RFC creation assistant in SMSY, as described in setup documentation
    and
    No RFC Read User (SOLMANSOX001 or SM_SID) was found at ABAP Host=HOST sys=00 client=001 for roles assignment. Please make sure you have run the RFC creation assistant for this system, in SMSY. If a user name different  from the default 'SM_<SID>' or 'SOLMAN<SID><CLIENT>' was specified in the SMSY RFC creation assistant, you need to assign by hand the following roles & profiles to the Read RFC User :  SAP_SATELLITE_E2E (role), S_AI_SMD_E2E (profile)
    So which documentation means the setup where is described how to create the RFC Destinations with SMSY.. Thanks
    Regards
    Edited by: Bjoern Bayerschmidt on May 17, 2010 5:45 PM

    Hello,
    The documentation is located at [Help|http://help.sap.com/saphelp_smehp1/helpdata/en/b3/64c33af662c514e10000000a114084/frameset.htm]
    Then navigate Basic Settings > Solution Manager System Landscape >  Create Systems > Generate RFC Connections
    You can:
    Assign an existing RFC destination to a client with Assign and Check RFC Destinations.
    Generate RFC destinations for your managed systems
    Change existing RFC connections.
    Delete RFC destinations.
    Resolve RFC Generation Errors
    I hope you find this information helpful.
    Regards,
    Paul

  • CCC or Disk Utility to clone a Mac HD of one new iMac to another, over ThunderBolt, we are getting I/O errors. Even though the clone fails, the destination  system does boot and log in, however, the logins take a very very very long time.

    When using CCC (Carbon Cophy Cloner) or Disk Utility to clone a Mac HD of one new iMac to another, over ThunderBolt, we are getting I/O errors. Even though the clone fails, the destination  system does boot and log in, however, the logins take a very very very long time.
    Thoughts.
    Edit: Already ran Disk Utility. Also reinstalled a fresh OS on top of the cloned OS and it seemed to remedy the problem. Then, cloned to next machine in the row of the lab. Same problem.

    OK, by that I assume that you used Disk Utility to repair the subject disk and it reported "The volume (name) appears to be OK" in green.
    Also verify you followed the instructions here: http://help.bombich.com/kb/usage-scenarios/i-want-to-clone-my-entire-hard-drive- to-a-new-hard-drive-or-a-new-machine
    If so, the Thunderbolt connection begins to look suspicious.
    Reinstalling OS X subsequent to the "clone" operation may be an acceptable workaround but you should not have had the I/O errors you describe, nor should the login times (subsequent to the initial login, that is) be unacceptably long. It calls into question the integrity of all the information that was transferrred.
    I'll try to attract the attention of a CCC expert who will likely provide more competent assistance. You can also try the Bombich support site: http://help.bombich.com

  • Source MV is NULL (from the FIM Portal), How to flow this without the destination attribute being deleted?

    Hi all. I had a quick search but couldn't find what I was looking for.
    Easy question.
    I've setup the following flows:
    FIM MA
    (FIM)employeeEndDate  -> (MV)employeeEndDate
    AD MA
    (MV)employeeEndDate  ->(AD)accountExpire (I have a rule extension to convert it to a UTC etc)
    If I enter an enddate on a person object in the FIM portal it will flow to the MV and then flow to AD (via the AD CS/MA). 
    But (as with all attributes, this is just an example) if I remove the enddate on the person object in the FIM portal it will in turn delete the attribute (AD)accountExpire in the CS of AD. 
    This is normal and expected... My question is. How do I flow a NULL and still have the CS attribute retain a value?
    I'm not wanting to flow a NULL to the destination but I am taking a NULL in as a source (I am working with rule extensions, I have tried a 'ispresent' but as there's no longer a 'space' to flow to it does nothing, I'm stuck with between flow NULL or do nothing,
    depending on if I allow NULLs to flow). 
    The reason is the AD attribute accountExpire is never NULL, but either a date or "0" or "9223372036854775807"(Taken from the MSDN page: )
    I had thought of using a RE on the import rule of the FIM MA but you can't use RE there.
    I hope I've made the question clear, thank you for any help or tips in advanced. 

    Try adding a second attribute for your rules extension when exporting from the MV that always has a value (Ctrl + click the other attribute). This will ensure that the rules extension is always fired, something like this:
    (MV) accountName
    (MV) employeeEndDate --> (AD) accountExpires
    From there you should be able to use .IsPresent to check for a value, and flow out the correct value in your rules extension. 

  • Connecting to Audi A5 without the MMI system

    Is there a way of connecting my Nokia to an Audi A5 replicating the MMI system (ie using the phone controls on the car rather than the phone) as my new company car hasnt the built in Audi option to allow this
    The Audi webiste has it as follows:
    "- uses Bluetooth interface with no physical connection to your A5, including roof aerial for optimal reception. Please note that your mobile phone must have SIM-Access Profile facility. (Only in combination with Satellie Navigation system Plus)"
    But i would like to replicate this not using Audi...is this possible?

    Refer to the post titled JNDI, Active Directory and Authentication (Part 1) (Kerberos) at http://forum.java.sun.com/thread.jspa?threadID=579829&tstart=300
    If your JAAS Login Configuration includes the entry useTicketCache=true, then it will use your existing Kerberos ticket to provide a Single Sign On experience.
    On the other hand if this is a browser based application, you will want to investigate the use of either NTLM or GSSAPI (Kerberos) on the web server. There are also third party solutions from Quest & Centrify that simplify this task for Apache etc.

  • Can I forward calls from iphone without the phone present?

    I forgot my work phone at home and wanted to know if I can forward the calls without having the phone with me.

    Some carriers permit call forwarding using any computer when you login to your account, so contact your carrier.

  • Calling a page without the portal wrap

    I have a portlet with a form in it.
    The form:
    <netui:form action="toggleFavourite" onSubmit="return toggleFavourite(this)">
    If the user has JavaScript DISABLED, the form works like an ordinary form - the page submits itself.
    If the user has JavaScript ENABLED, the "toggleFavourite()" function is called, which submits the form entirely in JavaScript by extracting the target of the form, and calling it in script. This means that the page doesn't have to be reloaded.
    When using the non-JavaScript method, I obviously need the form to submit, and come back with my portal page, including the portlet I submitted from (i.e. exactly as it normally does in WebLogic portals).
    Whe submitting using JavaScript, I don't need the response to include any of the header/footer/pages/other portlets - I just want to return the single page referenced by the Page Flow (i.e. the page specified in the Forward action).
    Is there anything I can add/change in the URL that's submitted in JavaScript to specifically tell the portal server to ONLY return the content within the specific JSP referenced in the Forward action?
    The reason I'm asking this, is that it's a lot slower pulling down the entire portal page, than it would be to just return that single portlet content.
    I hope I've explained this clear enough, but feel free to ask questions.

    Nearly there.
    I can now generate a URL to the portlet, along with parameters to pass in. All that's left to do is trigger the action to make use of the parameters.
    It's beginning to sound very much like a bodge job - like we're trying to do something that hasn't been catered for. I've actually managed to get something working now, using a different bodge. I want to call the current portlet, calling the action "toggleFavourite". I therefore now do this:
    PortletPresentationContext portCtx = PortletPresentationContext.getPortletPresentationContext(request);
    String paramName = portCtx.getInstanceLabel();
    paramName += "_actionOverride";
    String paramValue = portCtx.getPortletUri();
    paramValue = paramValue.substring(0, paramValue.lastIndexOf("/")+1);
    paramValue += "toggleFavourite";
    StandalonePortletURL url = StandalonePortletURL.createStandalonePortletURL(request,response);
    url.addParameter("_nfpb","true");
    url.addParameter(paramName, paramValue);
    String postbackURL = url.toString();
    I then have a form elsewhere in the page, and use JavaScript to take the parameters from the form, and append them to the URL generated above.
    It's working, but it's not pretty!
    Sounds like 9.2 will be the only clean option.

  • Call a smartform in the SAP system from portal

    Hi Friends
    My requirement is to trigger a smartform in SAP, from portal. Please guide me on how to achieve this.
    Thanks
    Saran

    Hi,
    I have an idea but dont know how far its possible for you.
    You can call smartforms function module from portal and then convert that to pdf file which can be displayed in a pdf control on the portal.
    Check whether this approach is possible.
    Regards
    Karthik D

  • I've been writing software for 33yrs. I've many apps. I'd like to use html/xml to replace my aging IDE's. Firefox will no longer execuate a binary directly called from hypertext on the local system. Why?

    I would rather not re-write the old IDE's I've been using for years but rather replace them with html/xml web style pages. Konqueror will locally execute binaries with a launcher script. Firefox, Chrome, re-Konq, WebPositive, and IE Explorer will not. If Firefox or SeaMonkey would execute my binaries I could easily replace the old IDE's and save myself and my clients a lot of time and money.

    That isn't acceptable. I guess that if you don't want to tell me I'll go to Opera or Chrome and ask. I could simply disassemble the code. That takes a long time. 270 Clients some running software that was written as fare back as 1979. I know I'm small, but they have families and business to run. The cost of re-developing the IDE's is huge for small business. I had hoped you would help.

  • Error in Web Srvice while SSO to RFC in the ECC system

    Hello Folks,
    I am creating an Web Service out of EJB to connect to ECC with an SSO(Logon ticket) based Modeldata JCo for which I get an error (Log provided below). When I create the Modeldata JCO with UserID/Pass it works fine.
    Error Line : IWDJCOClientConnection client = WDSystemLandscape.getJCOClientConnection("WD_MODELDATA_TEST_SSO");
    Error Message :
    HTTP/1.1 200 OK
    Connection: close
    Server: SAP J2EE Engine/7.01
    Content-Type: text/xml; charset=UTF-8
    Date: Mon, 27 Feb 2012 04:41:07 GMT
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><rpl:ConnectResponse xmlns:rpl='urn:TestSSOProjectWSVi'><rpl:Response>
    com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:152)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:160)
         at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.getJCOClientConnection(WDSystemLandscape.java:41)
         at com.test.TestSSOProject.TestSSOProjectEJBBean.Connect(TestSSOProjectEJBBean.java:51)
         at com.test.TestSSOProject.TestSSOProjectEJBLocalLocalObjectImpl0_0.Connect(TestSSOProjectEJBLocalLocalObjectImpl0_0.java:103)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:331)
         at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
         at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
         at SoapServlet.doPost(SoapServlet.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for 'WD_MODELDATA_TEST_SSO'
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:649)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:476)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:242)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:227)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:129)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:150)
         ... 29 more
    Caused by: com.sap.tc.webdynpro.services.sal.um.api.WDUMException: No client user defined for the current request (no regular Web Dynpro request as ITask is null.
         at com.sap.tc.webdynpro.serverimpl.core.um.AbstractClientUserFactory.getCurrentUser(AbstractClientUserFactory.java:48)
         at com.sap.tc.webdynpro.services.sal.um.api.WDClientUser.getCurrentUser(WDClientUser.java:67)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:582)
         ... 34 more
       </rpl:Response></rpl:ConnectResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Edited by: Prasanna Joshi on Feb 27, 2012 1:43 PM

    Hi All,
      Please suggest if anyone has faced similar error and any possible solution.
      Any help would be highly appreciated.
    Thanks
    Vishno
    > Hi All,
    >
    > We have 3.5 Web Reports running in Production. We
    >  are on NW2004s platform.
    > The web reports have a WBS Element hierarchy in the
    > 1st column.
    > On expanding this hierarchy it throws an error
    >  message "<b>An error has occured
    > during loading. Please look in upper frame for
    > further information</b>". However  
    > there is no further explanation of the message.
    >  Seems its happening because of
    > high data volume.

    > Please suggest if I need to set any memory
    > parameters. If so how.
    > In SMICM I have increased the timeout for HTTP
    >  service to a high value (6000).
    > There are similar threads posted previously but no
    > solution.
    >  Any help will be highly appreciated.
    >
    > Thanks
    > Vishno.

  • Automatic program execution in the destination system.

    SAP allows to include "special objects" into a transport
    request which cause automatic program execution in the destinationsystem.
    Can anybody let me know how can I do that?

    Hi,
    Do you mean installing/executing some program automatically
    on user machine i.e. presentation system.
    If yes, then following link will help you, see last section Installing the control
    in which one setup file which is already uploaded to SAP Web Repository is downloded to presentation system and then executed on user machine to install the program.
    Using .Net Windows Controls in the ABAP Control Framework
    Regards,
    Vishal

  • CALL 2 RFCS FROM ONE SYSTEM...

    One of my function module FUNCTION_Y on the system Y is calling a RFC FUNCTION_X to a system X. Once the call is over. it returns to the system Y data needed to generate a program, Function module FUNCTION_Y generates then the program within the one it calls an RFC to the same system X
    The problem is that it prompt the user twice for a user and a password. And as between the two calls there is no user dialog. The user does not notice that he is prompt a second time for his user and pass...
    If you have any suggestions? How can I may be do so the user is only asked once ? Maybe can I retain User and password and then call a function module to create the connection ?
    Thank you

    Hi Stephen,
    I assumed you know that you can control in SM59 the login id and password of you RFC destination system. Your requirement is to prompt user login for the first RFC call but not the second.
    If this is the case, you might want to create another RFC destination for the same system you are having. In the second RFC destination, populate the user id and password. Then in your program, the first RFC call, you use the first RFC destination which prompted you for id and password. For the second RFC call, use the second RFC destination.

  • Call a RFC function in VB but without SAPGui install in the system.

    Hi,
    Do you have example of code, to be able to call a RFC with the VB or C/C++ without needed to have the SAPGui install in the client.
    The RFC will be call by a server, so I don't want to install a SAPGui release on this server.
    Regards
    Frédéric

    Hi,
    You can access the RFC using VB by the SAP DCOM connector, or for a more basic solution you can access the wdtfuncs.ocx(ActiveX control).
    I think it has a Login control in it, you can have documentation while installing RFC SDK from SAPGui CD and it will give you some basic samples of how to use these controls.
    Or you can search in help.sap.com and search for "Example Application with the Function Control" and it should return the results to give your VB example.
    aRs

  • How to Debug the RFC when the call is made from XI

    Hi
    I will give the brief about the problem
    this call is from Webservice >XI-> R/3 BW (RFC)
    Some transaction were failed with error 'Reason Code not valid ..e.t.c " this error returning from the RFC of the BW system, but as per the inputs from the business t,he reason code are valid and some of other transactions went through sucessfully with same reason code.
    My requiremnt is,,
    i had the XML's of the failed transactions , and i need to push them From XI to BW, and Simultaneously  i need to debug the RFC of BW system and trace the reason for that error.
    Is there any possiblity to do this.
    Please help.
    Thanks in Advance
    Mallik

    Hi
    I will give some more details abou my requirement.
    Some transaction passed from B2B bridge >-XI (RFC)>BW, Failed due to the error returned by BW system in Production environment.
    The RFC is standard one and intern it is calling BAPI (I need to debug a method inside the BAPI which is returning the particular error).
    And i have the XML's of the failed transactions.
    If i want to do this Dev. environment.i will fallow the below steps.
    1) I will add the external break-point on my user-ID (BREAK USERID)
    2) And in XI i will change the user in the RFC communicational channle to my USER ID and password.
    3) From XI Runtime workbench i will send the test message with XML's provided.
    Can any one please confirm that i am going in a correct way...?
    Please correct me if i am wrong.
    Thanks for your help
    Mallikharjuna Reddy

  • Service Call via RFC

    Hi all.
    I am currently starting with WDA and facing some problems in calling BAPI via RFC.
    We have a "plain" WAS without SD or other modules. Our data is distributed over multiple R/3 systems.
    When I try to implement a Service Call to the BAPI BAPI_CUSTOMER_GETLIST via RFC I got the error message that this FM is not available in the current system (WAS).
    Does anyone has experience in how to get this working?
    What is the best practice here?
    - Building wrapper on WAS which calls the FM via RFC on the other system?
    - Installing missing modules on WAS ?
    Any comment would be appreciated.
    Cheers,
    Sascha

    Hi again.
    To shorten development time we considered the following solution:
    We are generating web service proxy classes on the WAS for the BAPIs of the R/3 system we want to use. Afterwards we are generating wrapper function modules which will use these proxies. So we do not have to import all missing structrues cause these are generated automatically during proxy generation.
    I tested this already with BAPI_CUSTOMER_GETDETAIL2. Calling the wrapping fm which calls the service proxy works fine from se80. I do get a result via the service.
    Then i generated a service call for my WEBDynpro component using the wizard in WDA.
    Silly is that the generated code is not compilable cause of missing ,. Anyway after correcting I tried to run my webdynpro application and when the fm gets called via the generated service method I receive the following message:
    CODE           SOAP:111
    ERRORTEXT     Unallowed RFC-XML Tag (SOAP_EINVALDOC)
    Any ideas?
    Why is it working when i call the fm directly but not when calling it from my webdynpro app?
    Thanks in advance
    Sascha
    Message was edited by: Sascha Dingeldey
    Message was edited by: Sascha Dingeldey

Maybe you are looking for