Problem in RFC  call in ABAP code...Urgernt

Hi ,
I am working on scenario wherein , i have created remote enabled RFC in target system SAP R/3 one . I have maintained RFC in original system where i have my calling program.This done by using sm59 transaction .When i execute my abap calling program as follows , it gives out error as RFC destination not known.The code is
CALL FUNCTION 'ZRFC_01' DESTINATION 'IDECECC5'
EXPORTING  nu1 = num1 nu2 = num2
IMPORTING  res = result  .
write: result .
This call passes two numbers for addition and returns result as addition in import parameters.
KIndly help me on this

Hi,
First of all do not forget to add standard SAP exceptions to your code to avoid shotdumps in case there is something wrong with the RFC connection:
CALL FUNCTION 'ZXXX' DESTINATION 'ZXXX'
   EXCEPTIONS
     SYSTEM_FAILURE = 1
     COMMUNICATION_FAILURE = 2.
Test your RFC connection in SM59 transaction. Make sure as well you did not make any typing errors, the best would be just copy its name from SM59 to your code.

Similar Messages

  • A upper/lower sensitive problem on RFC call

    hello, everyone.
    Maybe it is not the proper forum to discuss this topic, but I think the ABAP programinig Forum is the best forum in SDN, which has the most vistors.
    So please help me solve this problem, if possible.
    I meet a problem on RFC call through dotnet connector.
    There is a RFC deploy on the R3 server.
    And a portal application using dotnet connector to call the RFC from web side.
    The problem is when input some string like 'AbCdEf' from web side, transfer to the sap side, the RFC always get the string like 'ABCDEF'.
    I think it dues to the auto upper convert by the RFC call, and if in SE37, we can check the upper/lower box to solve it.
    But how can I solve it in this portal case?
    Can I get original string in the RFC side?
    How we can get the string as the original content 'AbCdEf' in RFC side?
    any suggestion is welcome,
    and I'm waitting for your answer, thanks a lot

    Hi zhenglin,
    To expand on what Siggi said, fields in the structures of your RFC parameters are based on data elements which in turn are based on domains.
    An attribute on the domain is "Lowercase'.  Unless this is checked, the field will always be treated as uppercase, and you will get the effect you described.
    Please check the domain of the field in question, to ensure that the "lowercase" flag is checked.
    Cheers,
    Brad

  • RFC Call from ABAP (R3) to Webdynpro EP

    Hi experts,
    I have a requirement to initiate a call from an ABAP program on R3 to a standard Portal (Webdynpro) API. Does anyone have any experience with this?
    I understand that normally Portal (Webdynpro) applications will make the RFC call to ABAP via the established JCO connection. However there's very limited literature elaborating how the call can be made in the other direction i.e. from ABAP R3 to Portal
    Anyone, please kindly advise how, if this can be done. Many thanks!
    Best regards,
    Lionel

    Hi,
    I'm trying to make a RFC call from the ABAP program to a built in Java method residing on EP. It is part of a suite of methods provided by the UME engine.
    Typically a call is made from a webdynpro program to a SAP ABAP function module. In this case, I'd like to make a call from the SAP ABAP report to the EP method.
    Best regards,
    Lionel

  • Problem with RFC-Call within BPM

    Hello Experts,
    I am developing a scenario in which I call an rfc-function-module for saving information from an incoming xml which will be transmitted as Idoc to another SAP System.
    The Idoc transmission is doing properly. But the RFC-Call I try to do always ends with a red flag. Error-Message: message has error status on outbd. side at the Process-Engine.
    Can someone help solving that problem?
    Thanks in advance.
    Regards, Alexander

    Hi Rajhans,
    1) The user mentioned in the RFC communication channel is having the authorization.
    Yes, he have the authorizations.
    2) Go to Communication channel monitoring and check what error you are getting for the communication channel is showing.
    There is an error about the FileSenderChannel. Error: java.lang.NullPointerException.
    3) Check whether the RFC created at abap stack is remote enabled or not.
    The function module is remote enabled.

  • Java calls from ABAP code in XI

    Java and ABAP gurus,
    Is it possible to make java call from ABAP. Is a sample out there I can take a look at.
    Please help.
    Thanks.

    Hi,
    YES, Very well it  is Possible,
    This will help you
    /people/bv.pillai/blog/2006/09/28/calling-mdm-java-api-application-executable-from-abap
    /people/vijayasarathy.raghunathan/blog/2005/12/28/java-editor-inside-abap
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    JCo Outbound( calling Java Function from ABAP )
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    Call Java Class and Methods from ABAP
    Regards
    Agasthuri Doss

  • Problem with RFC call between different clients. Plesae help!

    Hi Experts,
           I have a RFC enabled function module in one SAP instance 'A' where the client is 130. I am trying to call this function module from another SAP systen 'N' where client is 220. RFC destination has been set in 'N' system.
    The RFC functin module pulls data fromm a custom table. For a given input it is puuling data in 'A' system.
    But when I call it from 'N' system with the same input it is not pulling the data.
    I feel the problem is with teh different clients.
    please help me how to resolve this.
    Is there any setting in RFC destination?
    Thanks
    Gopal

    Hi gopalkrishna,
    1. Is there any setting in RFC destination
    Ofcourse there is.
    2. The tcode is sm59.
    3. Where u have maintained in system 'N',
       we have to specify
       a) Server 'A'
    <b>   b) Client Number 130</b> 
    4. So while calling from N(220),
       it will connect A(130)
       and fetch data from A(130) only.
    regards,
    amit m.

  • Facing a problem with RFC Call receiver error while importing the table sap sandbox

    Hi All,
    I am trying to import a table from sap sand box . while importing it is showing below error..
    RFC CallReceive error <Function DDIF_FIELDINFO_GET: RFC_ABAP_EXCEPTION-(Exception_Key: NOT_FOUND, No active nametab exists for /BIC/OHZ_ISP_SCX)[SAP NWRFC 720][SAP Partner 731 ][SCX][ics106046124][APOBODS][4103]>.
    Please suggest me how can i overcome this problem ??

    Hi Kishore,
    Can you quickly check with your SAP Basis Team whether they have installed necessary  functions related to BODS on the SAP Application server.
    Please check Supplement for SAP Guide
    Regards
    Arun Sasi

  • Problem in rfc call

    hai i am using
    CALL FUNCTION func STARTING NEW TASK task
                  [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
    to execute function call in back ground multiple times
    when i run normally it is not success full for all times soem are in failure
    btu when i do in debuggin i am gettign correct results
    as i am using destination group is it casuing problem for application servers
    and in debug it is getting enough time to get application servers free
    wat to do
    useful answer will be reqrded
    regards
    afzal

    Hi,
    Have you tried WAIT after using this statement?
    allow application server some time to wait, i am not sure if syntax you are using has option of waiting. pls check that first.
    else, use wait explicitly.
    Regards
    Bin

  • Finding BADI calls in ABAP Code

    Hi Guys,
    I want to find which program(s) call BADI Interface WORKORDER_UPDATE-INITIALIZE.
    I've tried the where-used list without luck.
    Also tried a break-point, but it doesn't stop.
    PeteA

    I did the same...
    after double clicking
    Program                        LCOBHU10                        
    CLASS/INterfaces    :
    /SAPMP/CL_IM_CMTS                Implementation Class for BAdI Impl. /SAPMP/CMTS
    /SAPTRX/CL_IM_PP_WOUPDATE        Imp. class for BAdI imp. /SAPTRX/PP_WOUPDATE
    CL_EX_WORKORDER_UPDATE           BAdI Class CL_EX_WORKORDER_UPDATE
    CL_IM_PGTR_COMP                  Imp.Class for BAdI Imp. PGTR_COMP
    it is strange due the fact yoa are using SAP 4.7 too (maybe different level of upgrades ?? )
    Message was edited by: Jacek S³owikowski

  • Asyncronic JCO RFC call from JAVA to ABAP

    Hi,
    Please could you provide a sample java code to establish JCO RFC call to ABAP?
    Thanks.

    Hi Denis,
    Import the model In NWDS for ABAP for RFC.
    Please check here [Accessing ABAP Functions using the Adaptive RFC Model |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3?quicklink=index&overridelayout=true]
    [Web Dynpro Model: Backend Access|http://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/webcontent/uuid/403e6bf5-426e-2910-b0a8-a95548724af9#section10 [original link is broken]]
    Also check here /docs/DOC-8661#section10 [original link is broken]
    Hope it helps,
    Redards,
    Arun

  • RFC call in Servlet problem

    Hello,
    I have servlet in my web application module, and I try to make RFC call, within it. I use com.sap.mw.jco.*.
    I compile it but when run the server respond with
    Application error occurs during processing the request.
      Details:   java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO  The ID of this error is
    Exception id: [000C763FB7EE00390000001F000007E800043A148A45F9B4
    I think that I should packaged the jco lib in my war and make it available to servlet, but how can I do this ?
    Thank for any help.

    Hello,
    Thanks a lot Maksim, Bhavik, you helped me.
    I try to make a reference and now the library ClassNotFound error is gone.
    But now I have a next problem with RFC call, I also wrote it to post (Webdynpro VS. Java Servlet). I have a code in which I make RFC call. When I embed this code into regular Java aplication and run, it will return results as I expect. (of course I must run it with jco lib .jar in classpath). But when I run it on my servlet, I got an exception with message: "'mshost' missing"
    I don't know what this supposed to mean, because I run the mentioned application, also from PC where I have j2ee engine installed and it work.
    If you can please help.
    (and thank for your help again (Maksim, Bhavik))

  • SAP R/3 RFC Call to XI

    Hallo,
    My scenario is as follows: when sending a RFC to XI via the RFC adapter, I get a short dump with the following error: "the error occurred in an RFC call to another system (XI).The termination occurred in the function "RfcExtendedReceive" of the SAP
    Basis System, specifically in line 392 of the module
    "//bas/640_REL/src/krn/rfc/abrfcrcv.c#2".
    The internal operation just processed is "FUNC".
    The internal session was started at 20060125163632".
    The RFC adapter has been configured as the Sender and all the parameters populated with the system details.
    Has someone seen this eror before?
    Please assist.
    Thanks,
    Catherine

    Maybe you're invoking RFC synchrounously from ABAP code and your receiving scenario is on Asynchrounous interfaces? What are you doing then in XI with data sent by the RFC?
    Message was edited by: Alessandro Guarneri

  • RFC call on click of button

    Hi,
    I need to make RFC call to  ABAP function module with some input parameters.
    On click of a button, I need to navigate between views based on returned values.
    I have followed steps similar to FlightList example. Created a  model, custom controller and all necessary contexts between them.
    Basic RFC connection seems to be working fine (I tried to populate a table with the return values for testing purposes) as the table header gets the appropriate values based on model... but the actual values are not being returned.
    Please guide me what needs to be done with
    1) ButtonAction() method,       2) DoInit( ) method of the model,     3) ...Bapi_execute( )
    Or give me the steps to start from fresh, whatever is easier...
    Thanks a lot in advance,
    Dil

    Hi
    Steps:
    1. First create an instance for bapi and bind the instance to the bapi node.
      Z<bapi name> zb=new Z<bapi name>();
      wdContext.nodeZ<bapi name>. bind(zb);
    2. Then if u have the import parameter u have to set them by using
        The instance of the above bapi.
        Zb.set<import parameters>;
    3. Then Execute the bapi after setting the import parameters.
    4.  If there is any export parameters, then get the values after execution.
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
    Z<bapi name> zb=new Z<bapi name>();
      wdContext.nodeZ<bapi name>. bind(zb);
    Zb.set<import parameters>;
    try
                   wdContext.nodeZ<bapi name>_Input().currentZ<bapi name>_InputElement().modelObject().execute();
         catch (Exception e)
                   wdComponentAPI.getMessageManager().reportWarning("Exception:"+e);
    // code for getting values from response node
        //@@end
    Hope this helps,
    Regards,
    Arun

  • Custom Spell Check from ABAP Code without MS Word

    Hi All,
    I am working on a requirement where we need to check for misspelt words in a string that is received from another system. I have come across a number of FM's which can be used to check for spellings but all of the require MS Word to be installed in our PC, but I am looking for a solution that does not involve MS Word. If any of you have come across any external tool that can be called from ABAP code or any suggestion on a logic that can be built please pass it on. Any pointers or help in this regard would be highly appreciated.
    Thanks,
    Praveen

    Hi,
    Try the "CF_WWSpeller" customtag which actually uses the
    Winword spelling engine,
    http://web4w3.com/wwspeller.html

  • Get handle to "model" after RFC call

    I need to place in httpsession the "model" (structure) returned from my RFC call.
    This code does not work:
    Zemployee = wdThis.wdGetGetEmployeeController().wdGetContext().nodeOutput().nodeE_Employee().currentE_ReturnElement();
    How do you get a handle to the "model" following an adaptive rfc execute?
    Thanks,
    Kevin

    Hi kevin
    get this like
    wdContext.currentmodeloutputelement().getmethod();
    And explain you want to handle the outputelement?
    Handle the outputelement means,
    Determine the number of outputs
    Case 1:
    if single
    get,
    wdContext.current<BapiOutputElement>.get<attribute>
    Case2:
    If it is multiple rows,
    using the loop,
    for(int i=0;i<size of the outputnode;i++)
    wdContext.node<BapiInputElement>.getElementAt(i).get<Attribute>

Maybe you are looking for

  • IMovie 9.0.4 won't import Sharp miniDV

    Hi, I'm running 10.7.3 on a new iMac with iMovie 9.0.4; using a firewire 800 adapter to plug in the back of the computer. I've got an old Sharp miniDV camcorder--when I click on the camera icon in iMovie I get a bluescreen window, it defaults to DV a

  • E72 Dictionary

    I am struggling to find a way to copy and paste words from the dictionary into a text message and/or email.. ctrl c and v don't seem to operate :-( If this is not possible with the built in dictionary, would anyone be able to advise me if there's ano

  • Can't connect to SQLPlus

    Hi all, I've installed Oracle9i Database Release 2, everything went ok during the installation. When I try to connect to the SQLPlus I get the error: "ORA-12154: TNS:could not resolve service name". I've checked and set up the REGEDIT in HKEY_LOCAL_M

  • Migrate Active Directory 2008 to 2012 but need to keep the same ip address and server name

    Hi, Current setup is 2 DCs in one site running 2008 R2 AD. We are planning to migrate from 2008 R2 to 2012 R2 but need to keep the same ip address and server name. I have came up two plans to do this and hope someone can tell me which one would be th

  • Changing iMovie background during photo show

    Does anyone know how to change the background during still photos in iMovie HD? Ideally looking for a complete white matte (rather than generic black), for when some or all photos are not the same size as the QT movie or TV screen. I'm not talking ab