OOP Question: Calling Function in Root?

This is kinda complicated, and I'm still trying to wrap my head around the whole concept of OOP. So right now I am building a XML Gallery, and in the FLA (Root) I've added the thumbnails. Everytime the thumbnails been clicked, it will bring up the "Detail" movieclip, which also is created in the root. And inside the Detail movieclip, I am creating a few buttons with an external class. My question is how can I call a function in the FLA (Root) when I click on the buttons inside the Detail movieclip? Note it seems I've successfully import my external class in both the root and the Detail movieclip.
I hope I'm making sense. >_<
Thanks for any help in advance.

use:
In the DetailButtons class:
_button.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
private function onClick(evt:MouseEvent):void {
     dispatchEvent(new Event("Clicked");
In the Main FLA / Root:
var detailButtons:DetailButtons = new DetailButtons();
addChild(detailButtons);
detailButtons.addEventListener("Clicked", goBack);
function goBack(evt:Event):void{
    trace("Go Back");

Similar Messages

  • What is the use of CALL FUNCTION MODULE - AT BACKGROUND TASK?

    Hi experts,
    I found Call functional module in background task will make the FM run at the next commit work as some people said. So I have some questions:
    1 if we use COMMIT WORK commend, the pending FM will be called? If there are several FMs called at background task, what is the sequence of them? How many conditions will trigger the running of these FMs?
    2 Where can I find the log of this pending FMs? In SAP library, it says there are 2 tables. But I checked these tables and can only find the FM name and user of it. And I can not understand content of these tables. It seems one is for the main information of FM, and the other is for the data of the FM, maybe the parameters.
    3 If I call a FM in this way, Can I canncel it before the next commit work in some way?
    Finally, thanks for reading and help.

    HI,
    When the COMMIT WORK statement is executed, the function modules registered for the current SAP-LUW are started in the order in which they were registered. ROLLBACK WORK deletes all previous registrations for the current SAP-LUW.
    If the specified destination is not available when COMMIT WORK is executed, an executable program called RSARFCSE is started in background processing. By default, this tries to start the function modules registered for a SAP-LUW in their destination every 15 minutes and up to 30 times. These parameters can be changed in the transaction SM59. If the destination does not become available within the defined time, it is recorded in the database table ARFCSDATA as the entry "CPICERR". The entry in the database table ARFCSSTATE is deleted after a standard period of eight days

  • Question regarding Function F4IF_INT_TABLE_VALUE_REQUEST

    Hi Experts,
    I am using the function F4IF_INT_TABLE_VALUE_REQUEST in my code as follows :
    *& Report  ZTESTER
    REPORT  ZTESTER.
    DATA : begin of VALUE_TAB occurs 0,
            matnr like marc-matnr,
            werks like marc-werks,
            pstat like marc-pstat,
           end of value_tab.
    data: Lt_fields type table of dfies,
          lt_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
    PARAMETERS : P_WERKS LIKE MARC-WERKS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS.
    SELECT matnr werks pstat INTO CORRESPONDING FIELDS OF TABLE
    VALUE_TAB
    FROM MARC WHERE MATNR LIKE 'SH%'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = 'MARC'
        retfield               = 'WERKS'
      PVALKEY                = ' '
       DYNPPROG               = SY-REPID
       DYNPNR                 = SY-DYNNR
      DYNPROFIELD            = 'P_WERKS'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = 'X'
       DISPLAY                = 'X'
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      tables
        value_tab              = VALUE_TAB
       FIELD_TAB              = LT_FIELDS
       RETURN_TAB             = LT_RETURN
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 2
       OTHERS                 = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT LT_RETURN.
    P_WERKS = LT_RETURN-fieldval.
    ENDLOOP.
    The code is working fine and when we execute the report and press F4 on the Field, there is an option for User Input also in the search help. The F4 Help shows the values for Material, Plant and Maintenance Status. Also, the user-input options contain the same fields.
    My question is Can we give user an additional field say, MARC-MMSTA to enter the value in but dont display it in the value-list.
    Please help. Points will be rewarded to useful answers.
    Thanks.

    This is not possible.... when ever you give an additional field as user input, these values are definitely reflected when you call for F4 help... So its not possible to avoid the additional field to be displayed...
    Regards,
    Pavan P.

  • Java calling functions in an OCX

    Hey folks,
    I have a proprietary OCX for a clicker system I use in my high school math classroom. The vendor gave me a VB SDK for calling the OCX functions and that works fine. However, I want to write apps using Java. So, I've thought about two options: 1) creating a VB DLL wrapper around the OCX and then calling routines from the VB DLL and 2) calling the routines from Java using some kind of Java COM bridge.
    Choice 1 seems like the more difficult choice because I'll still have to use some kind of Java COM bridge to access the VB DLL. Also, if my memory serves me correctly, I recall that VB DLL's are not necessarily accessed the same way that C or C++ DLL's are (or maybe that changed with .NET?).
    So, I spent the last week trying to find a Java COM bridge to make contact with the OCX directly. I've read through many posts here and I've searched around the net quite a bit. I've looked at JACOB, com4j, jawin, and comeclipse and I still can't get to the point where I can create a Java. com4j and comeclipse have come the closest to making me feel like there is light at the end of the tunnel. com4j's web site suggested using OLEVIEW to create the .IDL file that is almost like having the the type library (.tlb). That seemed to work, I do have a .IDL file. But when I tried to use com4j to create my wrapper files, the ClassFactory class didn't have any methods defined (it should have had some create... methods).
    So, then I tried comeclipse. That actually took the OCX directly and created a number of Java wrapper code files. The answer may actually already be in my hands, but I'm not sure how to instantiate the objects in the wrapper code files. I'm lucky because the OCX file includes a function that produces an About box (sAbout). So, if I can figure out the syntax to call the About box, I should be able to figure out the rest of the syntax.
    It would be awesome if someone had a clue about the syntax required in order to pull that About box up from Java.
    This is the code from what looks like the main (I guess you could call it the root) file. Furtherdown the page, I have the Java code that includes the sAbout reference.
    Filename: ctlPrsX.java (the OCX is called PrsX.ocx)
    * Generated on Sun Sep 14 14:43:08 PDT 2008
    * This class was 100% generated by the SWTtoCOM Type library
    * generator.  Please do not edit this class manually since
    * all changes will be lost on the next generation.
    package prsx;
    import au.com.swz.swttocom.swt.types.TypeUtils;
    import org.eclipse.swt.internal.ole.win32.GUID;
    import org.eclipse.swt.internal.ole.win32.IUnknown;
    import org.eclipse.swt.ole.win32.OleAutomation;
    import prsx.impl.__ctlPrsXListener;
    import prsx.impl._ctlPrsXImpl;
    public class ctlPrsX extends _ctlPrsXImpl {
         public static final GUID CLSID = TypeUtils.IIDFromString("{E08B4F09-B88A-11D3-B5DB-00104BA291B8}");
         private IUnknown objIUnknown;
         private __ctlPrsXListener mf_ctlPrsXListener;
          * Constructs a new ctlPrsX from the specified OleAutomation.
         public ctlPrsX(OleAutomation oleAutomation) {
              super(oleAutomation);
          * Constructs a new ctlPrsX from the specified OleAutomation and IUnknown.
         public ctlPrsX(OleAutomation oleAutomation, IUnknown unknown) {
              super(oleAutomation);
              this.objIUnknown = unknown;
          * Adds the specified listener to the set of Listeners that
          * will be notified when events occur.
          * @param listener the new listener to add.
          * @return true if the set of listeners did not already contain
          *         the specified listener, false otherwise.
         public boolean add__ctlPrsXListener(__ctlPrsX listener) {
              if (mf_ctlPrsXListener == null) {
                   mf_ctlPrsXListener = new __ctlPrsXListener();
                   addEventListener(__ctlPrsX.IID, 1, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 2, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 3, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 4, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 5, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 6, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 7, mf_ctlPrsXListener);
              return mf_ctlPrsXListener.addListener(listener);
          * Removes the specified listener from the set of Listeners that
          * will be notified when events occur.
          * @param listener the listener to remove.
          * @return true if the set of listeners contained the specified
          *         listener, false otherwise.
         public boolean remove__ctlPrsXListener(__ctlPrsX listener) {
              boolean bRtn = mf_ctlPrsXListener.removeListener(listener);
              if (mf_ctlPrsXListener.isEmpty()) {
                   removeEventListener(__ctlPrsX.IID, 1, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 2, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 3, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 4, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 5, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 6, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 7, mf_ctlPrsXListener);
                   mf_ctlPrsXListener = null;
              return bRtn;
    }Filename: _ctlPrsX.java (this file includes sAbout reference)
    * Generated on Sun Sep 14 14:43:08 PDT 2008
    * This class was 100% generated by the SWTtoCOM Type library
    * generator.  Please do not edit this class manually since
    * all changes will be lost on the next generation.
    package prsx;
    import au.com.swz.swttocom.swt.types.IAutomationObject;
    import au.com.swz.swttocom.swt.types.TypeUtils;
    import au.com.swz.swttocom.swt.types.pointer.IntPointer;
    import au.com.swz.swttocom.swt.types.pointer.StringPointer;
    import au.com.swz.swttocom.swt.types.pointer.VariantPointer;
    import org.eclipse.swt.internal.ole.win32.GUID;
    import org.eclipse.swt.ole.win32.Variant;
    public interface _ctlPrsX extends IAutomationObject {
         static GUID IID = TypeUtils.IIDFromString("{4F0E0D87-ABE3-4B53-A25F-BCD5CD8F4CC7}");
         public String sAbout();
         public void unInit();
         public String sDecode(StringPointer sCID, VariantPointer bBuf);
         public String sInit(IntPointer iCom);
         public boolean rFInit();
         public boolean rFStartClass(StringPointer className);
         public boolean rFStartClassSP(StringPointer className);
         public boolean rFStartQt(StringPointer correctAnswer);
         public boolean rFStartQtHW();
         public boolean rFStartQtSP();
         public boolean rFStopQuestion();
         public boolean rFStopClass();
          * Constructs a Variant representation of this interface that can then
          * be used to pass this interface as a parameter to methods.
          *@return a Variant representation of this interface.
         public Variant createSWTVariant();
         

    After a lot of searching, I had to resort to a second query as follows:
    $getID = mysqli_fetch_assoc(mysqli_query($conn, "SELECT photodate FROM table WHERE ref = $t"));
    $pdate = $getID['photodate'];
    $pdate= (date('d/m/Y', strtotime($pdate)));
    <td>Pictured : $pdate </td>
    produced the correct output.
    Moral - if you work at it long enough there is aways a way!
    Have fun!
    Howard Walker

  • Call functions in parent(?) from popup window(?)

    I'm not sure the terms parent or window in flex 4.
    I want to call functions in parent from parent window.
    it seems to be hard.
    Help me please.
    Thanks in advance.
    ========================== index.mxml ==========================
    (root element : <mx:Application> - xmlns:mx="http://www.adobe.com/2006/mxml")
    has Main.mxml in it
    ========================== Main.mxml ==========================
    (root element : <s:NavigatorContent> - xmlns:s="library://ns.adobe.com/flex/spark" )
    public function functInMain():void
    //do something
    protected function dataGrid_itemDoubleClickHandler(event:ListEvent):void
    var arr:ArrayCollection = event.currentTarget.dataProvider;
    var titleWindowInstance:Popup =
      Popup(PopUpManager.createPopUp(this,
       Popup,
       true));    
    titleWindowInstance.rowData =  arr.getItemAt(event.rowIndex);
    PopUpManager.centerPopUp(titleWindowInstance); 
    ========================== Popup.mxml ==========================
    protected function buttonClickedInpopup():void
    Application.application.parentDocument.functInMain(null);//<<- here I want to correct

    Thanks.
    Your callback function works ok
    why calling public functin won't work?
    here are neet examples.
    index.mxml : front page
    SearchEvents.mxml : inside index.mxml
    UpdateEvent.mxml : poped up from SearchEvents.mxml
    ========index.mxml===========
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application pageTitle="CA Management"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:i="test.*"
        width="100%" height="100%" creationComplete="application1_creationCompleteHandler(event)" >
    <mx:Script>
      <![CDATA[
       import mx.events.FlexEvent;
       protected function application1_creationCompleteHandler(event:FlexEvent):void
        myViewstack.selectedIndex = 0;
      ]]>
    </mx:Script>
    <mx:ViewStack width="100%" height="100%" id="myViewstack">
        <s:NavigatorContent id="EventManagement" label="Event Management"><i:SearchEvents x="0" y="0"/></s:NavigatorContent>
    </mx:ViewStack>
    </mx:Application>
    ========SearchEvents.mxml=========
    <?xml version="1.0" encoding="utf-8"?>
    <s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx" 
         x="113" y="163"  
         height="100%" width="750">
    <fx:Script>
      <![CDATA[
       import mx.collections.ArrayCollection;
       import mx.controls.Alert;
       import mx.events.FlexEvent;
       import mx.events.ListEvent;
       import mx.managers.PopUpManager;
       import mx.rpc.events.ResultEvent;
       public function parentFunction(param:String):void{
        Alert.show("parent function called with " + param);
       protected function btnSearch_clickHandler(event:MouseEvent):void
        var titleWindowInstance:UpdateEvent =
         UpdateEvent(PopUpManager.createPopUp(this,
          UpdateEvent,
          true));    
        PopUpManager.centerPopUp(titleWindowInstance);
      ]]>
    </fx:Script>
    <s:Button x="637" y="70" label="Popup" id="btnSearch" click="btnSearch_clickHandler(event)"/>
    </s:NavigatorContent>
    ========UpdateEvent.mxml=====
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:incl="incl.*"
        showCloseButton="false"
        title="Update Event" width="432" height="500"
        xmlns:subscription="services.subscription.*"
        xmlns:core="services.core.*"
        horizontalAlign="left" xmlns:vo="vo.*"
        >
    <fx:Script>
      <![CDATA[
       import mx.core.Application;
       protected function parentFunctionCall(event:MouseEvent):void
        Application.application.parentFunction("param from popup");
      ]]>
    </fx:Script>
    <fx:Script>
      <![CDATA[
       import mx.collections.ArrayCollection;
       import mx.controls.Alert;
       import mx.controls.dataGridClasses.DataGridColumn;
       import mx.core.Application;
       import mx.events.FlexEvent;
       import mx.formatters.*;
       import mx.managers.PopUpManager;
       import popup.*;
       [Bindable] public var rowData:Object ;//to get the parent row
      ]]>
    </fx:Script>
    <s:Button label="parentFunctionCall" id="btnPar" click="parentFunctionCall(event)"/>
    </mx:TitleWindow>

  • Calling Function on JSP page

    Hi all
    can someone please tell what am I doing wrong here? I'm trying to call Function on a JSP page
    CallableStatement cs = connection.prepareCall("{? = call pa_dump_xml.fn_user_diary(?)}");
    ResultSet rs = cs.executeQuery();
    while (rs.next()) {     
    %>
        <input type="text" name="app1" id="textfields1" size="" value="<% out.println(rs.getInt(11));%>" readonly="readonly"/>
    <%
    rs.close();
    %>... And I keep getting this error
    root cause
    javax.servlet.ServletException: java.sql.SQLException: Missing IN or OUT parameter at index:: 1Thanks

    Thanks for your reply, this is my code ;
    CallableStatement cs = connection.prepareCall("{? = call pa_dump_xml.fn_user_diary(?)}");
    proc.registerOutParameter(1, Types.INTEGER);
    ResultSet rs = cs.executeQuery();          
    while (rs.next()) {     
    %>
        <input type="text" name="app1" id="textfields1" size="" value="<% out.println(rs.getInt(1));%>" readonly="readonly"/>
    ......And the error I'm getting is
    java.lang.NullPointerException It's a JSP page as an index page where I need to show Data in some textfields on load of page. I'm sure there is a better way of doing this but I can not think how to go about it.
    Thanks
    Zed

  • Is there a way to find out the caller function in ESTK?

    Dear forum,
    How do you find out the caller function?
    I remember this question was asked on the forum before and, if memory serves me right, it was Peter Kahrel who answered it. Anyway, it was long ago and I can't find the post.
    main();
    function main() {
        hello();
    function hello() {
        // Is it possible to find out that the caller function is 'main'?
    Before making the post, I googled for it and found many suggestions, for example:
    alert("caller is " + arguments.callee.caller.toString());
    But nothing works for me.
    Regards,
    Kasyan

    Here's a new version of the function:
    function callerName() {
        var arr = $.stack.split(/[\n]/),
        callerName = arr[arr.length - 3].replace(/\(.*\)/, "")
        return callerName;
    I corrected the regex to remove the parentheses and everything in between.
    The previous version returned the function's name with arguments, like so:
    Result: ProcessTables([Paragraph:[object Paragraph]])

  • Calling function in NEW TASK

    Hi,
    I am creating a program which calls a function, becuse the function gets list of 2000 employess and run for long time over the amount of employees i wrote "call function zxxxxx starting new task p_task_number...."
    My question is - how many tasks can i create ? can i run the function in 10 tasks (20 employees in each task)????
    thanks
    Elad

    Hi Diwakar,
    try CALL FUNCTION func STARTING NEW TASK task1 DESTINATION dest IN GROUP DEFAULT, this will enable to run FM in groups (parallel processing) and might help in performance as will itself take care of available Application server.
    Not true, you can call an FM(which needs to be RFC of course) just like below, and you would still achieve parallel processing, read IN GROUP for more details on when and where to use it.
    DATA: l_task TYPE char10.
    DO 5 TIMES.
      l_task = sy-index.
      CONDENSE l_task.
      CONCATENATE 'TASK' l_task INTO l_task.
      CALL FUNCTION 'ZTEST_CHEN' STARTING NEW TASK l_task.
    ENDDO.
    Regards,
    Chen
    Edited by: Chen K V on May 26, 2011 2:55 PM

  • Data Quality vendor-specific error: An error occurred when calling function 'sdq_init_connector ()' in connector ": "(-8) Exception!." Detailed error message: Exception thrown by Java: java.lang.UnsatisfiedLinkError: nio (Not found in com.ibm.oti.vm.boots

    When attempting to create a new Account in siebel integrated with OEDQ the following error occurs.
    ERROR
    Data Quality vendor-specific error: An error occurred when calling function 'sdq_init_connector ()' in connector ": "(-8) Exception!." Detailed error message: Exception thrown by Java: java.lang.UnsatisfiedLinkError: nio (Not found in com.ibm.oti.vm.bootstrap.library.path)(SBL-APS-00118)
    STEPS
    The issue can be reproduced at will with the following steps:
    1) from EDQ director we have imported the EDQ_CDS,EDQ-REFERENCE DATA & EDQ_HISTORICAl DATA packages sucessfully.
    2) Created dnd.param file in SIebel server SDQCOnnector folder.
    3) Copied the libdnd.so file to siebsrvr lib directory(32 bit)
    3) In dnd.param file we have mentioned the javalib file and instllation directory path(<Siebsrvr roo>/dnd/install)
    4) Unzipped the EDQ-Siebel Connector files in dnd/install folder
    5) Copied the dnd.properties file in dnd/install directory and modified it accordingly to point to installed EDQ instance.
    6) Configured the Siebel components for EDQ integration.
    7) Realtime EDQ jobs are running.
    8) Create a new Account
    Env details are
    On : 8.2.2.14 [IP2014] version, Client Functionality
    EDQ 11.1.1.7.4
    IBM JDK 1.7 32 bit
    Using Open UI
    Any Champ have faced this issue and overcame it please let me know the resolution steps. your help is
    Regards
    Monoj Dey
    9007554589

    Hi Monoj,
    A few questions:
    - What OS is Siebel running on?
    - What version of the Siebel connector are you using?
    - Which libdnd.so file are you using?
    - What's the contents of your dnd.parms file?
    thanks,
    Nick

  • Problem with call function close_form

    Hello ,
    I have a problem with function module close_form.I dont know if I am doing something wrong but please help me.
    the issue is
    declarations:
    data: gt_itcpp type table of itcpp,
             gt_otfdat type table of itcoo.
    CALL FUNCTION 'CLOSE_FORM
    EXPORTING
       RESULT  = gt_itcpp
    TABLES
       otfdata = gt_otfdat
    EXCEPTIONS
       OTHERS  = 1.
    DUMP: FUNCTION PARAMETER RESULT IS UNKNOWN.
    THANKS

    My point was that there are actually two problems with the original code: the one that you pointed out and the one that abapuser pointed out.
    Although both were very helpful individually, I don't think either one actually solved the problem.
    It would be misleading to anyone searching the forum looking for posts that solved a problem similar to theirs and only implemented half the solution.
    In fact abapuser's answer is the one that answers the question that was actually asked.
    Rob

  • Remote call function troubleshooting

    I am trying to connect to a target ECC6.0 system from 46c system using SM59 (remote logon). For some reason it keeps displaying the login screen everytime even though I have specified the user and password details. The login screen shows up evertime with current user id in source system.
    Is there any configuration that needs to be done in source or target system so that the user details are passed correctly?

    >
    Matteo Montalto wrote:
    > Hello Wolfgang,
    > sorry for the stupid question... what does "destination" stands for?
    > Thanks for the help
    Hi ,
    they are two types of RFC calling is ther..
    1......
    CALL FUNCTION "function0module-name' DESTINATION "DEST" 
    --that means you are picking data from another r/3 sytem using detination from 'DEST'..
    2....
    CALL FUNCTION "function0module-name' IN BACKGROUND TASK DESTINATION "DEST" 
    --that means you are sending data to another r/3 sytem or any other sytem XI or and EDI
    using detination from 'DEST'..
    for 1 and 2..
    --go to t-code SM59 and see the DEST what type of connection is and what system it is connected..
    Regards,
    Prabhudas

  • How to call function module/ class method of another system.

    Suppose now i am working in System A. And i need to check the system Status of System B, System C, System D....
    my design is to provide an interface. and each system realize the interface individually.now my question is how cani call the interface, because they are in different systems.
    of course i know about the host name, port and logon information over these systems.
    who can give my some suggestions or other solutions.
    thanks in advance.
    Johnney.

    Hello,
    If u want to call a FM of the other system then that FM should be a RFC enable on one.
    <b>CALL FUNCTION func DESTINATION dest.</b>
    Effect
    Executes the function module from an external source (as a Remote Function Call or RFC); dest can be a literal or a variable.
    Depending on the specified destination, the function module is executed in another R/3 or R/2 System. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
    Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.
    To maintain existing destinations, choose Tools -> Administration, Administration -> Network -> RFC destinations
    Note
    Under certain circumstances, an RFC may trigger a database commit. For this reason, RFCs must not be used between pairs of SQL statements that open and close a database cursor (such as SELECT... ENDSELECT).
    Vasanth

  • Can we call Function Module from Process Chain?

    Hello experts,
    I have a small question.
    Can we call Function Module(SE37) from Process Chain?
    If yes can you please provide some example link?
    I m new to BI world.
    regards

    Hi,
    Create one ABAP program and call the function module from that program. Check the link to know how to call a function module from an ABAP program.
    http://help.sap.com/saphelp_wp/helpdata/en/d1/801edb454211d189710000e8322d00/content.htm
    http://help.sap.com/saphelp_wp/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm
    Then use process type "ABAP Program" in your process chain and add the program you have created. So then this program will be executed via process chain and this program will call the function module.
    Indrashis

  • Help in calling function module

    need to call a function module, for security purpose, do not want to show the name of function module,
    how it can be done ?
    Study SAP

    I think the responders so far don't understand the question.   But that's probably because you don't state it very well.  What you want is a way to call a function module without having the name of the function module in the program.  Easy.
    Create a table with one field, perhaps in an encrypted format.  Let's say you've a function module (DECRYPT) that decrypts the entry in the table to plain text.
    SELECT SINGLE field FROM my_table INTO my_field.
    CALL FUNCTION 'DECRYPT' exporting output = my_field
                            importing input = plain_text.
    CALL FUNCTION plain_text.
    You should have noticed that in most cases, where you see CALL FUNCTION, it is followed by a character literal.  CALL FUNCTION 'SOME_FUNCTION'.  You see, it's encased in quote.  That makes it a literal.  You can replace the name of the function module, with the quotes, with any character like variable that contains the function name.
    matt

  • Call function ZRV_BELEG

    Hello,
    We need to create a ZRV_BELEG number range, my question is if possible to call on function module RV_INVOICE_DOCUMENT_ADD, to this Z range:
    Neue Nummernvergabe außer im Simulationsmodus
          IF NOT kom-posting EQ 'H'.
            CALL FUNCTION 'NUMBER_GET_NEXT'
              EXPORTING
                nr_range_nr             = da_numki
                object                  = 'RV_BELEG'
                ignore_buffer           = no_buffer
              IMPORTING
                returncode              = ld_returncode
                number                  = xvbrk-vbeln
              EXCEPTIONS
    Analysing i have seen enhancement point,begore calling the FM  'NUMBER_GET_NEXT'
    ENHANCEMENT-POINT rv_invoice_document_add_15 SPOTS es_saplv60a.
        IF xvbrk-vbeln(1) = '$'.
          ADD 1 TO vbsk-vbnum.
    interne Nummernvergabe
          DATA: da_numki LIKE tvfk-numki.
    Can be set in userexit to turn off buffering for specific countries
          CLEAR no_buffer.
          da_numki = tvfk-numki.
          IF xvbrk-numki = tvfk-numki.
            PERFORM userexit_number_range USING da_numki.
            IF da_numki NE tvfk-numki.
              PERFORM tvfkd_lesen USING da_numki.
              IF NOT tvfkd-fkdat IS INITIAL AND
                xvbrk-fkdat NE tvfkd-fkdat.
                MESSAGE a145 WITH xvbrk-fkdat da_numki.
              ENDIF.
            ENDIF.
          ELSE.
    number_range changed in userexit number_range_inv_date
            da_numki = xvbrk-numki.
          ENDIF.
    Neue Nummernvergabe außer im Simulationsmodus
          IF NOT kom-posting EQ 'H'.
            CALL FUNCTION 'NUMBER_GET_NEXT'
              EXPORTING
                nr_range_nr             = da_numki
                object                  = 'RV_BELEG'
                ignore_buffer           = no_buffer
              IMPORTING
                returncode              = ld_returncode
                number                  = xvbrk-vbeln
              EXCEPTIONS
                interval_not_found      = 1
                number_range_not_intern = 2
                object_not_found        = 3
                quantity_is_0           = 4
                quantity_is_not_1       = 5
                interval_overflow       = 6
                OTHERS                  = 99.
    Is it possible to do in exit RV60AFZZ???
    I need advice on thah, many thakns in advance

    Hi,
    It's impossible. It's hardcoded in ABAP
            PERFORM userexit_number_range USING da_numki.
            IF da_numki NE tvfk-numki.
              PERFORM tvfkd_lesen USING da_numki.
              IF NOT tvfkd-fkdat IS INITIAL AND
                xvbrk-fkdat NE tvfkd-fkdat.
                MESSAGE a145 WITH xvbrk-fkdat da_numki.
              ENDIF.
            ENDIF.
          ELSE.
    * number_range changed in userexit number_range_inv_date
            da_numki = xvbrk-numki.
          ENDIF.
    * Neue Nummernvergabe außer im Simulationsmodus
          IF NOT kom-posting EQ 'H'.
            CALL FUNCTION 'NUMBER_GET_NEXT'
              EXPORTING
                nr_range_nr             = da_numki
                object                  = 'RV_BELEG'
                ignore_buffer           = no_buffer
              IMPORTING
                returncode              = ld_returncode
                number                  = xvbrk-vbeln
              EXCEPTIONS
                interval_not_found      = 1
                number_range_not_intern = 2
                object_not_found        = 3
                quantity_is_0           = 4
                quantity_is_not_1       = 5
                interval_overflow       = 6
                OTHERS                  = 99.
            IF sy-subrc NE 0.
              MESSAGE ID sy-msgid TYPE 'A' NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ELSE.
    After you return the number of range (da_numki), you call de FM number_get_next where RV_BELEG is hardcoded, it is not a variable.
    I'm sorry
    Regards
    Eduardo

Maybe you are looking for

  • Importing multiple images as inline objects

    I know Indesign allows for multiple images to be placed in a grid, but is there a way to import several images straight into a story as inline frames?

  • Blocking extensions in CUCM

    Hi, is it possible to restrict one extension added in CUCM to another extension added in same CUCM. Like 1234 is being used by one Manager. 1230 is used by staff. Manager doesnt want to talk woth staff. so he wants to block his extension. Cisco IP Ph

  • Oracle connection failing..URGENT-PLS HELP

    added these files in the classpath : using oracle 9i , jdk1.4.2 C:\Documents and Settings\Sampathkumar\Desktop>set CLASSPATH=c:\oracle\ora92\jdb c\lib\ojdbc14.jar;c:\oracle\ora92\jdbc\lib\nls_charset12.jar;%CLASSPATH%; submitted this code as a sample

  • Can I disable the ADF Rich client javascript?

    I would like to work around the ADF framework and use my own javascript. Is there a way to turn off the rich client libs so they are not downloaded to the client? I want to use jQuery and my own javascript. Thanks for any tips, tricks, links, or exam

  • TVARVC table entries

    Guys, I've created a variable entry in TVARVC table and want to access that variable name in Variant of a query. I created an entry in this table using STVARVC transaction and i can see this entry in SE16 list of TVARVC table. Somehow it's not availa