Local function calling remote function - error

Dear All
i have following remote function wich return some value from both methods ie.
1) select func1(variable, varialbe) from dual@remoteDB; working
2) select func1(variable, varialbe) from dual; -- by making a synonym at local
Now i create a local function funclocal calling remote functino i.e. func1 in this example as:
CREATE OR REPLACE FUNCTION funclocal(locc varchar2, artnoo number)
RETURN NUMBER IS
query_str VARCHAR2(1000);
STKQTYY NUMBER;
artno number(10);
loc varchar2(80);
BEGIN
artno := artnoo;
loc := locc;
query_str := 'select func1(loc, artno) from dual ';
EXECUTE IMMEDIATE query_str
INTO STKQTYY;
RETURN STKQTYY;
END;
compiled successfully.
But when i run as:
SQL> select funclocal('abc', 469183) from dual;
select funclocal('@st3', 469183) from dual
ERROR at line 1:
ORA-00904: "ARTNO": invalid identifier
ORA-06512: at "funclocal", line 11
Please guide me.
Regards
Saeed

EXECUTE IMMEDIATE query_strAs Andreas states: Why are you using dynamic sql?
From what I see all you need is sth like
create or replace function funclocal (locc varchar2, artnoo number)
   return number
is
begin
   return func1 (locc, artnoo);
end funclocal ;
/even the whole concept of a »local« function seems suspicious. Why do you need that one?

Similar Messages

  • Calling Remote Functions Locally Triggers any Database commit(Implicit)

    Hello,
    Am making use of RFC enabled function module as normal function module (Calling remote function module locally).
    My question is does it trigger any implicit database commit or not. Since synchronous RFC triggers database commit.
    Regards,
    Tenzin Choegyen

    I057200 wrote:
    Since synchronous RFC triggers database commit.
    Let me correct the statement both synchronous as well as asynchronous RFCs trigger an implicit DB commit.
    SAP documentation on synch-RFCs states:
    If the content of dest is equal to the constant space, then the addition DESTINATION is ignored and a normal call CALL FUNCTION func is executed.
    Please note that you should not use the DESTINATION addition or use DESTINATION space. DESTINATION none will start the FM as an RFC in the same app server.

  • What is the exact syntax for calling remote function module.

    Hi to all
    1.....what is the exact syntax for calling remote function module.?
    Thanks and regards,
    k.swaminath reddy

    hi
    good
    Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.
    Do the following steps for creating RFC in server A.
    1. log on to server A
    2. go to se37
    3. Edit -> function groups-> create function group and give the function group name (say ZGRP).
    4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.
    5. go to attribute tab -> choose remote-enabled module from processing type.
    so that your FM will become RFC.
    6. provide the import parameter in import tab.
    we will provide only two import parameters.
    - parameter name : P_NUM1, typing: TYPE, associated type : I & check the pass value (all the parameters of RFC must pass by value).
    - parameter name : P_NUM2, typing: TYPE, associated type : I & check the pass value
    7. provide the export parameter in export tab.
    parameter name : P_SUM, typing: TYPE, associated type : I & check the pass value
    8. write the given simple code in source code tab.
    FUNCTION Z_TEST_RFC.
    P_TOT = P_NUM1 + P_NUM2.
    ENDFUNCTION.
    Do the following steps for creating ABAP program which will call the RFC in server B.
    1. se38 - > creat a program.
    2. write the given simple code.
    data tot type i.
    call function 'Z_TEST_RFC' destination 'XXXXXX'
    exporting
    p_num1 = 10
    p_num2 = 15
    importing
    p_tot = tot.
    write tot.
    please note that XXXXXX is RFC connection which is avialable in sm59 transaction in server A.
    -go to sm59 - > abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of XXXXXX in the code.
    finally you can execute the normal abap program that will call the RFC and display the result.
    reward point if helpful.
    thanks
    mrutyun^

  • Urgent: No data while calling remote function in custom widget.

    Hi,
    I created a function module with transaction se37 and in its attributes checked the 'Remote Enabled' radiobutton.
    Now in my widget I called this remote function in my RFC view.
    The data is not displayed in the widget and in debug mode error is displayed :
    "Type error: data.root has no properties (RFCRequest .js: Line 102 )"
    what is the reason for the error ?
    or am I going wrong with remote function module call.
    regards,
    Omkar H. Nakhate

    Hi,
    Thanks for the information provided.
    We are using Eclipse plug in to create the widget
    After  Debug yahoo widget,
    This is my Konfabulator log.
    Welcome to Yahoo! Widgets 4.5.1 (build 10A39) on 04/03/08 17:01:44.531
    Type '/help' for help.
    Loaded Widget 'rfc_call' from C:\Documents and Settings\Administrator\Desktop\new Data\rfc_call\Main.kon
    04/03/08 17:01:44.875: rfc_call version is 1
    Main.kon (Included file 'js/utils/PlatformUtil.js')
    Main.kon (Included file 'js/utils/DomUtil.js')
    Main.kon (Included file 'js/utils/CommonUtil.js')
    Main.kon (Included file 'js/utils/Common.js')
    Main.kon (Included file 'js/utils/Timer.js')
    Main.kon (Included file 'js/utils/DataLoader.js')
    Main.kon (Included file 'js/utils/RFCRequest.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/Skin.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinCell.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinConfiguration.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinCustomDraw.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinImage.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinInput.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinList.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinElementStyle.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinEvents.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinComponent.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinText.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinLabel.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinViewDefinition.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinViewDraw.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/XmlUtil.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ConfigurationReader.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/SkinUtil.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ResourcesReader.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ResourceBundle.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/Components.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ComponentEvents.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/ComponentProperties.js')
    js/utils/PlatformUtil.js (Included file 'js/skinlib/WidgetUtil.js')
    Main.kon (Included file 'js/skinlib/SkinLib_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.About/js/c.About.js')
    js/utils/PlatformUtil.js (Included file 'components/c.About/js/c.About_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Feedback/js/c.Feedback.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Feedback/js/Animation.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Feedback/js/c.FeedbackController.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Feedback/js/c.Feedback_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Footer/js/Footer.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Footer/js/c.Footer_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Header/js/Header.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Header/js/c.Header_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/Task.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/TaskSet.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/JavaChecker.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/FoundationChecker.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/tasks/WidgetDeployer.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/TaskViewer.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/StartupServices.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/ActivityLogger.js')
    js/utils/PlatformUtil.js (Included file 'components/c.StartupManager/js/c.StartupManager_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Table/js/Table.js')
    js/utils/PlatformUtil.js (Included file 'components/c.Table/js/c.Table_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/c.TellToFriend/js/c.TellToFriend.js')
    js/utils/PlatformUtil.js (Included file 'components/c.TellToFriend/js/c.TellToFriend_Include.js')
    js/utils/PlatformUtil.js (Included file 'components/Main/js/controller/Controller.js')
    js/utils/PlatformUtil.js (Included file 'components/Main/js/view/View.js')
    js/utils/PlatformUtil.js (Included file 'components/Main/js/model/Model.js')
    js/utils/PlatformUtil.js (Included file 'components/Main/js/Main_Include.js')
    Main.kon (Included file 'components/Main/js/Main.js')
    04/03/08 17:01:45.859: Starting deployment
    04/03/08 17:01:45.859: Deployment Finished
    17:1:46! [Components.create] cAbout : c.About
    17:1:46! [Components.create] cFeedback : c.Feedback
    17:1:46! [Components.create] cFeedbackHeader : c.Header
    17:1:46! [Components.create] cFeedbackFooter : c.Footer
    17:1:46! [Components.create] referenced1 : c.Table
    17:1:46! [Components.create] cMainHeader : c.Header
    17:1:46! [Components.create] cMainFooter : c.Footer
    17:1:46! [utils.DataLoader]> open( POST http://127.0.0.1:7531/SapMiddleTier/RESTJSON/ewcs/service/rfct?serviceProvider=&httpMethodOverride=POST true );
    17:1:46! [utils.DataLoader]> headerName: Content-Type ; headerSource: text/xml
    17:1:46! [utils.DataLoader]> data: <root><RfcRequest name='ZTABLE'><![CDATA[ <T_ROM></T_ROM> ]]></RfcRequest></root>
    17:1:52! [utils.DataLoader]> (http://127.0.0.1:7531/SapMiddleTier/RESTJSON/ewcs/service/rfct?serviceProvider=) request returned
    TypeError: data.root has no properties (RFCRequest.js: Line 102)

  • Calling Remote function tool leads always to a logon screen

    Hello,
    I run an remote function tool in system A. In System B I run a report calling this function module.
    Each time, I execute the report, a remote logon screen appears. It looks the same like the one you logon the system. You have to specifiy client, user and password.
    I know one possibilty to avoid this logon screen appeaering.
    System B (holding the function module) must declare System A as a trusted system. Thus, the user does not need to logon system B, each time calling the func. module. I processed this in correspondence with the help data, but the screen still appears.
    Is there any other possibilty to avoid appearing the logon screen or does anybody know wheter I did something wring??
    thanks, holger

    Hi Holger,
    1. This has to do with tcode SM59 (Maintain RFC Connections)
    THE CALLING SYSTEM HAS NOT DEFINED
    USER ID / PASSWORD TO LOGON TO THE TARGET SYSTEM.
    HENCE, IT SHOWS BLANK LOGIN SCREEN
    2. Under the node RFC Destinations ---> R/3 Connections,
       various systems are defined for RFC Purpose.
    3. Lets say ur system(which u want to connect) is PRD.
    4. Double Click PRD and go the the details.
    5. There are 3 Tabs. Goto LOGON/SECURITY TAB.
    6. In the logon information , enter the
       USERID and password and client.
    7. Save.
    Then try your program.
    Hope this helps.
    Regards,
    Amit Mittal.

  • Put a commit in a stored procedure that is called remotely, give error

    I put a commit in a stored procedure that is called remotely, this gives me an error. Why?

    Why? Because only the calling procedure - the local one - can have commits. Please read my reply to Re: DBlink: Can I access to a remote type?. In particularly read the part of the documentation it links to, about distributed transactions.
    Cheers, APC

  • Function call another function variable

    Is it possible to call another function variable?
    Below is my Script:
    f2();
    function f1() { 
      var v2 = 1; 
    function f2(v2) { 
      var v3= 2; 
      alert(v2);

    Hi creativejoan0425,
    Some additional notes:
    > Is it possible to call access another function variable?
    No, it isn't. A local variable only lives in the scope of the function (body) where it is declared. In that sense any local variable should be considered private—in OOP terms.
    pixxxel schubser's solution is based on setting a global scope for the variable myA, so it is visible from every place of your code.
    Another solution could be implemented using JS closure mechanism. You can create a local scope (in an anonymous function which is executed once) then return your main function and additional helpers from that scope. All inner functions have then access to the local variables that have been declared in the scope. For example, you can create your function f1 and attach a getter function to it, as follows:
    var f1 = (function(/*anonymous*/__)
        // Local variable to be nested in the closure
        var v1;
        (__ = function(/*optional init value*/x)
            // Here is your *actual* function
            // do what you want with v1
            v1 = 'undefined'!=typeof x ? x : Math.random();
        ).getVar = function()
            // Here is your getter
            return v1;
        return __;
    var f2 = function()
        alert( f1.getVar() );
    // Process
    f1('init');
    f2();           // => 'init'
    f1();
    f2();           // => some random number
    f1();
    f2();           // => another random number
    // etc
    This way v1 remains almost private but the outer code can read it through f1.getVar().
    Anyway this seems to me a complicate approach for a basic script that probably does not require high security level. Another option, really easy to set up, is to use the fact that a function is an object. Instead of declaring a local variable, just handle v1 as a (public) member of f1, as follows:
    var f1 = function F(/*optional init*/x)
        // Do something with F.var
        F.v1 = 'undefined'!=typeof x ? x : Math.random();
    var f2 = function()
        alert( f1.v1 );
    f1('init');
    f2();          // => 'init'
    f1();
    f2();          // => some random number
    f1();
    f2();          // => another random number
    That's it!
    > why every function need to return?
    No, return is not required. By default, any function that has no return statement will simply return undefined.
    @+
    Marc

  • Webdynpro/abap portal unable to call Remote functions?? HELP

    <b>Scenario:</b>
    webdynpro/abap system A talks to system B.
    webdynpro Abap has a call as
    call function 'BAPI_FLIGHT_GETLIST'
        destination 'RFCB'....
    At "A"
    created  SSL  Server for https, created certificate request and imported it from SAPtest ticket.
    imported certificates for the SSL from "mySAP" and "Server CA" downloaded from sap site
    enabled the ACLs for the above 2 certificates on client '000"
    The browser's http proxy tool shows that after login to system A with Http, further requests go through RFC destination to system B, called RFCB.
    RFCB config to systemB as a specific user, everything is fine.
    However, if RFCB is set to 'current user', it does not work.
    So, SSO ticket is not used to login to system B, I guess.
    How to set up the RFCB.  If I change to 'trusted system', I get RFC authentication error.  The sdn shows to setup S_RFC auth object into user profice with PFCG.
    Can you help?
    Thanks.

    Hi ,
    I have used RFC's couple of time in WebDynpro ABAP .As I am doing WD Application for SRM where I require to fetch data from other R/3 servers .
    Now do you want something like this . You will pass some parameters to RFC and based on that will updates data in that Remote R/3 and Also send results that you want show over WebDynpro Application .
    Please see thread below .See that help you or not.
    Re: RFC call Dumps with ***Ilegal reference***
    Cheers
    Parry

  • Call remote function on a satellite system using RFC target sys option

    Hi all,
    I am on the Java stack and I would like to call the ABAP stack of a statellite system. I can create a JCo connection on this system directly but for security reason I am not allowed to do that. I would like to call this system through the ABAP stack of my machine (I am in dual stack environment).
    - How can I use RFC target sys (available in SE37 for Remote-Enabled functions) with my JCo connection?
    - Or, is there a generic function which can call all other functions on a remote system (still using RFC target sys)?
    Many thanks,
    Stephan

    Siddhesh - thank you for the link; the blogs by Thomas are required reading as far as I am concerned.
    Hi Raja;
    <i> do you mean another ABAP system (was6.40)?
    and from here using another FM you call the 4.6c
    system RFC ?</i>
    Yes, that is what we are doing.  We are calling a web service from an Intranet form to the 6.40 system that, in turn will call the 4.6C system and pass the data back to the Intranet form (through 6.40)
    <i> may be you could pass the RFC destination as import
    parameter to the 6.40 RFC and use the same will the
    call to 4.6C RFC from the 6.40 RFC</i>
    That would work, but it would be more beneficial to just use the function module on the 6.40 system as a proxy to the function on 4.6c and not have to enter code in it each time. 
    I had thought of writing just one function module in the 6.40 system that could dynamically call any different function module in 4.6c (based on the input parameters), but since were are trying to accomplish SOA, we need visiblity to each web service (ergo function module).
    If it's not possible, that is OK I am just hoping someone had found a way to pull this off.
    Thanks!
    John

  • Call Remote Function Module with SAEURI  dataelement as Export parameter

    Hi Experts, Am creating a program in a Gateway system, where i need to call a FM from HR system.
    My Code is like this,
    Data: lname(20) type c,
             lv_url type SEAURI.
    Call 'Z_EMP_GET' Destination 'HR_DEST'
    Exporting
    Pernr = '12345678'
    Importing
    lname = lv_lname
    Url = lv_url.
    At HR Destination system, I have a FM 'Z_EMP_GET ' with signature as
    Importing : Pernr Type NUMC
    Exporting : lname Type Char20
                     Url Type SAEURI(Char 4096).
    When i debugged it, I see the Remote FM is getting Perner value and returning only lname, but URL paramter is empty.
    I believe i have problem in receiving Long Text (URL - Char 4096).
    How can i handle this and let me know if need to specify String length parameter for RFC call somewhere.
    Also let me know if need more details
    Thanks in advance.
    Thanks in advance.

    Hi naveenraj,
    I don't know which type of URL you want in output but you can check  entries in table HTTPURLLOC and or if you want URL of employee photo then you have to use this FM HRWPC_RFC_EP_READ_PHOTO_URI.
    Regards,
    Shahezad

  • Quicktime 7.0.4.0 DLL Function Call Crashed Message Error 0x80040707

    Quicktime 7.0.4.0 won't install and the above error message occurs, and because that program won't install, the latest version of iTunes won't install either. What's the solution?
    Others have posted the same problem, but I can't find any answers on this Board, thanks.
    Gareway   Windows XP   Athlon 64 dual core

    That worked. Thanks for your help.
    I hope I dont have to encounter this problem again with Apples next release of iTunes or for that mater Microsofts next update patch.

  • Function calling a function

    Hello,
    If a fumction say F1 is calling an another function say F2.
    If I change the definition of the function F2, then what will happen with the function F1.
    (F1and F2 are stored function)
    Does Oracle automatically recompile the function F1?
    THANKS.

    See this
    CREATE FUNCTION F1(ARG_1 IN NUMBER) RETURN NUMBER AS
    VAL NUMBER;
    BEGIN
    SELECT ARG_1*2 INTO VAL FROM DUAL;
    RETURN ( VAL );
    END;
    SQL> ED
    Wrote file afiedt.buf
    1 CREATE OR REPLACE FUNCTION F2(ARG_1 IN NUMBER) RETURN NUMBER AS
    2 VAL NUMBER;
    3 BEGIN
    4 SELECT F1(ARG_1) + 100 INTO VAL FROM DUAL;
    5 RETURN ( VAL );
    6* END;
    SQL> /
    Function created.
    SQL> SELECT OBJECT_NAME,STATUS FROM DBA_OBJECTS WHERE OBJECT_NAME IN ('F1','F2');
    OBJECT_NAME
    STATUS
    F1
    VALID
    F2
    VALID
    SQL> ED
    Wrote file afiedt.buf
    1 CREATE OR REPLACE FUNCTION F1(ARG_1 IN NUMBER) RETURN NUMBER AS
    2 VAL NUMBER;
    3 BEGIN
    4 SELECT ARG_1*2 + 100 INTO VAL FROM DUAL;
    5 RETURN ( VAL );
    6* END;
    7 /
    Function created.
    SQL> SELECT OBJECT_NAME,STATUS FROM DBA_OBJECTS WHERE OBJECT_NAME IN ('F1','F2');
    OBJECT_NAME
    STATUS
    F1
    VALID
    F2
    INVALID
    SQL> SELECT F2(100) FROM DUAL;
    F2(100)
    400
    SQL> SELECT OBJECT_NAME,STATUS FROM DBA_OBJECTS WHERE OBJECT_NAME IN ('F1','F2');
    OBJECT_NAME
    STATUS
    F1
    VALID
    F2
    VALID

  • How to create RFC function module and how to call this function module

    Hi,
    i want to know step for creating RFC function module and then How to  use this function module from some other sap system.
    Thnaks,
    jigar

    Jigar,
    To implement a remote function module in ABAP, perform the following steps:
    Register the module as remotely callable in the RFC server system.
    In the function module Administration screen (transaction code SE37), set the field Can be called via REMOTE CALL. Registering a module as remote causes an RFC stub to be generated for it.
    Write the code for the function module.
    Create the destinations.....................
    Displaying, Maintaining and Testing Destinations
    To display, create or modify destinations, choose Tools ® Administration ® Administration ® Network ® RFC destinations or enter transaction code SM59.
    Remote Destinations are stored in table RFCDES. The RFCDES table describes logical destinations for remote function calls.
    It is not possible to maintain the RFCDES table directly.
    You can also access logical destinations via the Implementation Guide (IMG) by choosing Tools ® AcceleratedSAP ® Customizing ® Execute Project ® SAP Reference IMG.
    In the Implementation Guide, expand the following hierarchy structure:
    Basis
    Application Link Enabling (ALE)
    Sending and Receiving Systems
    Systems in Network
    Define Target Systems for RFC Calls
    Displaying Destinations
    The initial screen for this transaction displays a tree:
    Different connection types (i.e. partner systems or programs) are possible. For further information, see Types of Destinations.
    To display all information for a given destination, double-click it, or place the cursor on it and press F2 .
    To search for a destination, press the Find button and specify your selection. You get a list of all entries matching your selection. Place the cursor on the one you want, and press F2 or simply double-click the destination. All information for the given entry appears.
    Creating Destinations
    On the destinations overview screen (transaction code SM59), the connection types and all existing destinations are displayed in a tree structure.
    All available connection types are explained in Types of Destinations.
    To create a new RFC destination, press the Create button. A new screen is displayed with empty fields for you to fill in.
    If you want to create a new destination
    As you create a remote destination, you can specify a particular application server or a group of servers for a balanced distribution of system load.
    For details of the destination parameters, see Entering Destination Parameters.
    Changing Existing Destinations
    On the destinations overview screen (transaction code SM59), the connection types and all existing destinations are displayed in a tree structure.
    You can display all information for a given destination by double-clicking it or pressing F2 on it.
    To change an existing destination, double-click it, or place the cursor on it and press the Change button.
    For details of the destination parameters, see Entering Destination Parameters.
    Testing Destinations
    To test a destination, choose the appropriate function from the Test menu.
    Connection (also available via the Test connection pushbutton)
    Authorization (checks logon data)
    Local network (provides a list of application servers)
    You can use the CALL FUNCTION statement to call remote functions, just as you would call local function modules. However, you must include an additional DESTINATION clause to define where the function should run:
    CALL FUNCTION RemoteFunction
    DESTINATION Dest
    EXPORTING
    f1 =...
    f2 =...
    IMPORTING
    f3 =...
    TABLES
    t1 =...
    EXCEPTIONS......
    The field Dest can be either a literal or a variable: its value is a logical destination (for example, "hw1071_53") known to the local SAP System. Logical destinations are defined in the RFCDES table (or the TRFCD table in R/2 Systems) via transaction sm59 or the following menu path: Tools ® Administration, Administration ® Network ® RFC destinations. You can also access logical destinations via the Implementation Guide (IMG) by choosing Tools ® Customizing ® Enterprise IMG. In the Implementation Guide, you can then choose Cross-application components ® ALE ® Communication ® Define RFC destination.
    The remote function call concept, for example, allows you to access a function module in an R/2 System from an ABAP program in an R/3 System. If you want to read a customer record from your R/2 System’s database, create a remotely callable function module in the R/2 environment which retrieves customer records. Call this function from your R/3 System using a remote function call and listing the destination for the target R/2 System:
    Pls. reward if useful

  • Preloading and initialization of function calls brings response to a halt

    I am creating a form with many CFC calls to the server.
    However, on initial load, I am calling all these functions so that
    my detailregion which relies on the result set from these
    function calls would not error out. These initial functions do not
    return any results - there exist to satify the regiondetail
    bindings.
    Eg. my initialization calls
    var getEmployees = new Spry.Data.XMLDataSet(someCFCFile,
    "employees/employee_id", { useCache: false });
    var getDocs = new Spry.Data.XMLDataSet(someCFCFile,
    "employees/employee_id", { useCache: false });
    My issue is that the number of calls I am making are causing
    the page to take 15+ seconds to load. I can't do without them
    because my regiondetail rely on them initially. And also, later on,
    my code uses these variables to make other calls Eg.
    getEmployees .setURL(someCFCFile);
    I have tried to perform these initial call with a null value,
    but IE is still taking just as long to process these calls.
    Eg.
    var getEmployees = new Spry.Data.XMLDataSet(NULL,
    "employees/employee_id", { useCache: false });
    Please help. Thanks.

    Either Restrict Access or a Send Email Instance. Once I have tried to add either one of these to a page or successfully added, then I can't use ADDT at all.
    For instance I click on any of the Wizards to run them, I get a ADDT window with the word loading across it. It sits and spins.
    I have spent all afternoon trying to just get back to where I can work with ADDT again normally. The only way I have found that ADDT will work again after trying to utilize the email function or the Login function is to delete all of the ADDT include files and re-install.
    Not very time affective.

  • How to call this function in onload event

    Hi All,
    I would like to call this function on page load, how to achieve? Thanks in advance.
    var siteUrl = '/sites/MySiteCollection';
    function retrieveListItems() {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('Announcements');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var oListItem = listItemEnumerator.get_current();
    listItemInfo += '\nID: ' + oListItem.get_id() +
    '\nTitle: ' + oListItem.get_item('Title') +
    '\nBody: ' + oListItem.get_item('Body');
    alert(listItemInfo.toString());
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());

    Try modifying as
    <script language="javascript" type="text/javascript">
    var siteUrl = 'http://mysite/sites/';
    $(document).ready(function()
    //Call your function here like
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems,"SP.js");
    function retrieveListItems() {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('Project_Issues_and_Risks');
    var camlQuery = new SP.CamlQuery();
    // camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=\'Project_x0020_Code\'/>' +
    // '<Value Type=\'Lookup\'>NGI-P1</Value></Eq></Where></Query><RowLimit>10</RowLimit></View>');
    // <Query><Where><And><IsNotNull><FieldRef Name="ID" /></IsNotNull><IsNotNull><FieldRef Name="Title" /></IsNotNull></And></Where></Query>
    camlQuery.set_viewXml('<View><Query><Where><And><Eq><FieldRef Name="Project_x0020_Code" /><Value Type="Lookup">NGI-P1</Value></Eq><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Issue</Value></Eq></And></Where></Query></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var close = '';
    var open = '';
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var oListItem = listItemEnumerator.get_current();
    listItemInfo += '\nID: ' + oListItem.get_id()+
    '\nTitle: ' + oListItem.get_item('Close')+
    '\nBody: ' + oListItem.get_item('Open');
    close = oListItem.get_item('Close');
    open = oListItem.get_item('Open');
    alert(close);
    alert(listItemInfo.toString());
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    <input id="Button1" type="button" value="Retrieve Data" OnClick="retrieveListItems()" />
    Geetanjali Arora | My blogs |

Maybe you are looking for