Call function inside of call function in back ground task

Hi Friends,
   I am calling one function in back ground task. that is executing after save of the transaction. And inside of that transaction i am calling one more function but in debugging the cursor is not going inside of that function. What could be the reason. Please help me.
Thanks a lot in advance.

Hi,
    Inside of the first function any way i will come after save
using update task debugging. Once it reach inside of firt function and if i press f5 then second function is coming and if i press f5 there then it is coming out of the function and it is not going inside. The second function is called directly not in back ground.
Thanks..

Similar Messages

  • Call transaction inside of call function in back ground task

    Hi,
        Is it possible to use call transaction statemement inside of call function in back ground task. I am getting error if i use the same. Any help will be highly appreciated.

    Hi,
    I don't think this is possible. The call goes into error in SM58, what you can try to do is after the function is called, you can submit the program RSARFCEX by setting the user name as sy-uname and other parameters as * and set all the checkboxes.
    regards,
    Advait

  • UPDATE and BACK GROUND TASK

    What is the diffarence between call function in back ground task and call function in update task?  Can we do the same functionality by using any one of the above function?

    Calling a FM in background task will call FM in background work process as tRFC while calling in update task will call the FM in update work process. The update task will be executed after COMMIT WORK statement. The tRFC FM are will be no. of times (BASIS Settings) till the process executes correctly.

  • How To Finish a back ground task

    Hi
    I have created a back ground task which mark attendance of specific type in pa30 .what i do is  created a bapi and submit that bdc report in it  using call transaction. It is working fine . when i see in pa30 after its execution it is marking attendance  but in log it shows that step is under process. how can i finish it so that workflow move to next step
    Regards
    Ammad

    Hi,
    when a background task is in process for a long time then probably the method raised a short-dump somewhere.
    So investigate this first.
    For continuing the flow manually you can use the technical workitem display in the workflow log, put it to change and manually complete that workitem.
    Kind regards, Rob Dielemans

  • Debugg a back ground task in production

    Hi All,
    I would like to know what are the different techniques to debugg a back ground task in production? I heard that changing WF_BATCH to dialog user and then dubugg is not a best option since we have limited authorizations in production.
    Regards
    RK

    Hi Ramakrishna,
    IN general the approach what I follow is I create a copy of the work flow  which I want to debug and transport it to the PROD system. But the difference would be that in the copied work flow I make all the steps as foreground steps. For this work flow I maintain the agent assignment to user I.e. WF_ADMIN.
    Or the person who is holding the role of WF_ADMIN.
    The second point here is how do I start the debug work flow instead of main or original work flow. while starting work flow either by using event or directly I would populate a flag into one of container elements.
    I check for this flag and if it is true then I raise an event to start test work flow.
    This kind of approach can help us in so many ways
    1. Without disturbing the original work flow you can change a the steps associated with work flow which is used just for testing and bug fixing.
    2. You don't' have to change Work flow customizations , as you mentioned that changing WF-BATCH to some dialogue user. This kind of change can be ignored.
    I would recommend that you create a separate package and create a test workflow and move the request to PROD. but make sure you don't trigger test workflow instead of original workflow.
    Regards,
    Pavan

  • Native call crashes inside event call.

    When I use this interface without a JFrame, simply calling "goToFilter(5)", it works perfectly. When I call it within the ActionListener, it crashes.
    * @author Jason Thomas
    * @version 1.0
    * Test program for the Java interface to my C++ FilterWheel object.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class FilterWheel
    static
         System.loadLibrary("filterwheel");
    FilterWheel()
         FilterInterface.initialize();
         final JTextField myField = new JTextField();
         JFrame myFrame = new JFrame("Filter Wheel.");
         myFrame.setSize(500,500);
         myField.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent evt)
              String myText = myField.getText();
              try
              FilterInterface.goToFilter(Integer.parseInt(myText));
              catch(NumberFormatException myExtp)
              System.err.println("Invalid Numerical value!");
         myFrame.getContentPane().add(myField, BorderLayout.SOUTH);
         myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         myFrame.setVisible(true);
         FilterInterface.goToFilter(1);
    public static void main(String args[])
         new FilterWheel();
    Exception:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x4C85A87F
    Function=(null)+0x4C85A87F
    Library=/home/jason/FWheel/Bakup/libfilterwheel.so
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    at FilterInterface.goToFilter(Native Method)
    at FilterWheel$1.actionPerformed(FilterWheel.java:32)
    at javax.swing.JTextField.fireActionPerformed(JTextField.java:489)
    at javax.swing.JTextField.postActionEvent(JTextField.java:670)
    at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:784)
    at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1502)
    at javax.swing.JComponent.processKeyBinding(JComponent.java:2422)
    at javax.swing.JComponent.processKeyBindings(JComponent.java:2457)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2385)
    at java.awt.Component.processEvent(Component.java:4830)
    at java.awt.Container.processEvent(Container.java:1525)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1582)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1700)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:568)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:740)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:673)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:534)
    at java.awt.Component.dispatchEventImpl(Component.java:3396)
    at java.awt.Container.dispatchEventImpl(Container.java:1582)
    at java.awt.Window.dispatchEventImpl(Window.java:1581)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Dynamic libraries:
    08048000-0804d000 r-xp 00000000 03:05 659493 /usr/java/j2sdk1.4.0_01/bin/java
    0804d000-0804e000 rw-p 00004000 03:05 659493 /usr/java/j2sdk1.4.0_01/bin/java
    40000000-40012000 r-xp 00000000 03:05 426018 /lib/ld-2.2.93.so
    40012000-40013000 rw-p 00012000 03:05 426018 /lib/ld-2.2.93.so
    40013000-4001c000 r-xp 00000000 03:05 53552 /usr/java/j2sdk1.4.0_01/jre/lib/i386/native_threads/libhpi.so
    4001c000-4001d000 rw-p 00008000 03:05 53552 /usr/java/j2sdk1.4.0_01/jre/lib/i386/native_threads/libhpi.so
    4001d000-4001e000 r--p 00281000 03:05 659901 /usr/lib/locale/locale-archive
    4001e000-40027000 r-xp 00000000 03:05 426054 /lib/libnss_files-2.2.93.so
    40027000-40028000 rw-p 00008000 03:05 426054 /lib/libnss_files-2.2.93.so
    40028000-4002a000 r--s 00000000 03:05 675301 /usr/java/j2sdk1.4.0_01/jre/lib/ext/dnsns.jar
    4002c000-40039000 r-xp 00000000 03:05 245766 /lib/i686/libpthread-0.10.so
    40039000-4003c000 rw-p 0000d000 03:05 245766 /lib/i686/libpthread-0.10.so
    4005d000-4005f000 r-xp 00000000 03:05 429411 /lib/libdl-2.2.93.so
    4005f000-40060000 rw-p 00001000 03:05 429411 /lib/libdl-2.2.93.so
    40060000-40326000 r-xp 00000000 03:05 545074 /usr/java/j2sdk1.4.0_01/jre/lib/i386/client/libjvm.so
    40326000-4048f000 rw-p 002c5000 03:05 545074 /usr/java/j2sdk1.4.0_01/jre/lib/i386/client/libjvm.so
    404a3000-404b5000 r-xp 00000000 03:05 429413 /lib/libnsl-2.2.93.so
    404b5000-404b6000 rw-p 00012000 03:05 429413 /lib/libnsl-2.2.93.so
    404b8000-404ec000 r-xp 00000000 03:05 639250 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    404ec000-404f8000 rw-p 00033000 03:05 639250 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    404fa000-4051b000 r-xp 00000000 03:05 245764 /lib/i686/libm-2.2.93.so
    4051b000-4051c000 rw-p 00021000 03:05 245764 /lib/i686/libm-2.2.93.so
    4051c000-4052d000 r-xp 00000000 03:05 348487 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libverify.so
    4052d000-4052f000 rw-p 00010000 03:05 348487 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libverify.so
    4052f000-40551000 r-xp 00000000 03:05 348475 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libjava.so
    40551000-40553000 rw-p 00021000 03:05 348475 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libjava.so
    40555000-40569000 r-xp 00000000 03:05 348488 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libzip.so
    40569000-4056c000 rw-p 00013000 03:05 348488 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libzip.so
    4056c000-41be9000 r--s 00000000 03:05 675348 /usr/java/j2sdk1.4.0_01/jre/lib/rt.jar
    41c2b000-41c42000 r--s 00000000 03:05 675355 /usr/java/j2sdk1.4.0_01/jre/lib/sunrsasign.jar
    41c42000-41cb0000 r--s 00000000 03:05 675315 /usr/java/j2sdk1.4.0_01/jre/lib/jsse.jar
    41cb0000-41cc3000 r--s 00000000 03:05 675314 /usr/java/j2sdk1.4.0_01/jre/lib/jce.jar
    41cc3000-41f44000 r--s 00000000 03:05 675292 /usr/java/j2sdk1.4.0_01/jre/lib/charsets.jar
    41fec000-41ffa000 r--s 00000000 03:05 675302 /usr/java/j2sdk1.4.0_01/jre/lib/ext/ldapsec.jar
    41ffa000-42000000 r--s 00000000 03:05 983258 /usr/lib/gconv/gconv-modules.cache
    42000000-42126000 r-xp 00000000 03:05 245762 /lib/i686/libc-2.2.93.so
    42126000-4212b000 rw-p 00126000 03:05 245762 /lib/i686/libc-2.2.93.so
    4c333000-4c533000 r--p 00000000 03:05 659901 /usr/lib/locale/locale-archive
    4c533000-4c560000 r--p 0024b000 03:05 659901 /usr/lib/locale/locale-archive
    4c764000-4c807000 r--s 00000000 03:05 675303 /usr/java/j2sdk1.4.0_01/jre/lib/ext/localedata.jar
    4c832000-4c83a000 r--s 00000000 03:05 674028 /usr/java/j2sdk1.4.0_01/jre/lib/ext/comm.jar
    4c83a000-4c857000 r--s 00000000 03:05 675304 /usr/java/j2sdk1.4.0_01/jre/lib/ext/sunjce_provider.jar
    4c857000-4c85e000 r-xp 00000000 03:05 905031 /home/jason/FWheel/Bakup/libfilterwheel.so
    4c85e000-4c860000 rw-p 00006000 03:05 905031 /home/jason/FWheel/Bakup/libfilterwheel.so
    4c860000-4c862000 r-xp 00000000 03:05 510719 /usr/X11R6/lib/X11/locale/common/xlcDef.so.2
    4c862000-4c863000 rw-p 00001000 03:05 510719 /usr/X11R6/lib/X11/locale/common/xlcDef.so.2
    4c879000-4c8f6000 r-xp 00000000 03:05 641516 /usr/lib/libstdc++.so.3
    4c8f6000-4c90f000 rw-p 0007c000 03:05 641516 /usr/lib/libstdc++.so.3
    4c910000-4c917000 r-xp 00000000 03:05 426049 /lib/libgcc_s-3.2-20020903.so.14c917000-4c918000 rw-p 00007000 03:05 426049 /lib/libgcc_s-3.2-20020903.so.14c918000-4c91a000 r-xp 00000000 03:05 983203 /usr/lib/gconv/ISO8859-1.so
    4c91a000-4c91b000 rw-p 00001000 03:05 983203 /usr/lib/gconv/ISO8859-1.so
    4c91b000-4cbdc000 r-xp 00000000 03:05 348467 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libawt.so
    4cbdc000-4cbf0000 rw-p 002c0000 03:05 348467 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libawt.so
    4cc15000-4cc66000 r-xp 00000000 03:05 348483 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libmlib_image.so
    4cc66000-4cc67000 rw-p 00050000 03:05 348483 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libmlib_image.so
    4cc67000-4cc6e000 r-xp 00000000 03:05 329064 /usr/X11R6/lib/libXp.so.6.2
    4cc6e000-4cc6f000 rw-p 00006000 03:05 329064 /usr/X11R6/lib/libXp.so.6.2
    4cc6f000-4ccbd000 r-xp 00000000 03:05 328621 /usr/X11R6/lib/libXt.so.6.0
    4ccbd000-4ccc1000 rw-p 0004d000 03:05 328621 /usr/X11R6/lib/libXt.so.6.0
    4ccc1000-4ccce000 r-xp 00000000 03:05 328605 /usr/X11R6/lib/libXext.so.6.4
    4ccce000-4cccf000 rw-p 0000c000 03:05 328605 /usr/X11R6/lib/libXext.so.6.4
    4cccf000-4ccd3000 r-xp 00000000 03:05 328623 /usr/X11R6/lib/libXtst.so.6.1
    4ccd3000-4ccd4000 rw-p 00004000 03:05 328623 /usr/X11R6/lib/libXtst.so.6.1
    4ccd4000-4cdaf000 r-xp 00000000 03:05 328596 /usr/X11R6/lib/libX11.so.6.2
    4cdaf000-4cdb2000 rw-p 000da000 03:05 328596 /usr/X11R6/lib/libX11.so.6.2
    4cdb2000-4cdba000 r-xp 00000000 03:05 328592 /usr/X11R6/lib/libSM.so.6.0
    4cdba000-4cdbb000 rw-p 00007000 03:05 328592 /usr/X11R6/lib/libSM.so.6.0
    4cdbb000-4cdcf000 r-xp 00000000 03:05 328550 /usr/X11R6/lib/libICE.so.6.3
    4cdcf000-4cdd0000 rw-p 00013000 03:05 328550 /usr/X11R6/lib/libICE.so.6.3
    4cdd2000-4ce97000 r-xp 00000000 03:05 348471 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libfontmanager.so
    4ce97000-4ceb1000 rw-p 000c4000 03:05 348471 /usr/java/j2sdk1.4.0_01/jre/lib/i386/libfontmanager.so
    4cf54000-4cf70000 r-xp 00000000 03:05 510718 /usr/X11R6/lib/X11/locale/common/ximcp.so.2
    4cf70000-4cf72000 rw-p 0001b000 03:05 510718 /usr/X11R6/lib/X11/locale/common/ximcp.so.2
    Local Time = Thu Feb 13 15:49:51 2003
    Elapsed Time = 8
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode)
    # An error report file has been saved as hs_err_pid2843.log.
    # Please refer to the file for further information.
    Any help would be greatly appreciated.
    -Jason Thomas.

    Gdb's trace of the cause of all of my problems:
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 90124 (LWP 11810)]
    0x4c85a89f in outb () from /home/jason/FWheel/libfilterwheel.so
    This is what I get from the debugger. I'm using the function outb to write to the parallel port address 0x378, which I've used the function ioperm to permit read/write access to. The program works just fine if I call the "stepFilter" function (that calls outb) outside of the ActionListener's actionPerfomed method. Like if I'm probing for keboard input inside the constructor:
    * @author Jason Thomas
    * @version 1.0
    * Test program for the Java interface to my C++ FilterWheel object.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class FilterWheelTest
    static
         System.loadLibrary("filterwheel");
    FilterWheelTest()
         BufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));
         String inString;
         try
         while((inString = myReader.readLine()) != null)
              myWheel.goToFilter(Integer.parseInt(inString));
         myWheel._delete();
         catch(IOException e)
         e.printStackTrace();
         System.exit(-1);
    public static void main(String args[])
         new FilterWheelTest();
    The program above works fine, the one I posted previously does not. The only difference is that the one I first posted is inside of an ActionListener, and this one is not.
    -Jason Thomas.

  • Count function inside a decode function,

    Hi All,
    I've a requirement where I've to fetch a value depending on the count of a column. In that query, I'm using multiple table joins.
    For example, if more than one employee's is working for a particular department, then I've to say 'Yes' otherwise 'No'. For this first we have to fetch the count and then we must use decode. So can anyone help me how to do this.
    Any help highly appreciated.
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I think the following query gives some hint to you
    SQL> select d.dname,
      2  (case
      3  when count(a.ename)<10 then 'B'
      4  when count(a.ename) between 10 and 20 then 'A'
      5  else 'A+'
      6  end)
      7  from emp a,dept d
      8  where a.deptno=d.deptno
      9  group by d.dname;
    DNAME          (C
    ACCOUNTING     B
    RESEARCH       B
    SALES          B

  • How To Write Mysql Function Inside A SelfMade Function or Void ? ?

    My Problem Is something Like This :
    public void mysql_select_db(String db_name){
         DB_NAME=db_name;
                         Class.forName("com.mysql.jdbc.Driver").newInstance();
         Connection connection = DriverManager.getConnection("jdbc:mysql://"+HOST_PORT+"/"+DB_NAME+"?user="+DB_USER+";password="+DB_PASS, "", "");
         Statement statement = connection.createStatement();     
    }becuase The server doesn't know "DriverManager.getConnection" i guess or "Class.formName" I don't know ..
    What i think i need is something to be written after public void mysql_......(.)
    like when we write :  "throws java.io.IOException"in
    public void something(String str,JspWriter out) throws java.io.IOException {....}

    You want to handle exceptions? Just read the API documentation which exceptions those methods can throw :)
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html
    http://java.sun.com/j2se/1.5.0/docs/api/java/sql/DriverManager.html
    Or read the compilation errors.

  • Call transaction inside Update task

    <b>Is it possible to use call transaction inside an update function module?</b>
    My requirement is like this.
    When I execute LB10 storage units will be created..then we have to go to lt09 and then create a TO's there for all these Storage units..
    Now, when I try to call a bdc session from an exit, the storage units are not  updated there. so the BDC is getting failed..
    To resolve this, I kept all the BDC code in to a Zfunction module and made it an update funtion module. I am calling this function module form the exit IN UPDATE TASK.
    But the call transaction is not working....
    I have tried with L_TO_CREATE_MOVE_SU inside the Z function module..Still no use..
    is there any other way that I can solve this?

    Hi,
       Calling a FM in Update Task is one of the bundling techniques used in ABAP to avail functionality provided by SAP Update System. Here all database updates are processed at the end of the SAP LUW in contrast to normal FM call where the database updates are done and commited at the time of call (Database LUW). It is necessary to bundle all your database updates in an SAP LUW e.g. all database updates in a transaction (like VA01) should be bundled. Almost all standard SAP transactions use bundling techniques.
    This technique separates the dialog process and update process. The dialog part of the transaction can span more than one screen(one dialog step) and can be processsed by more than one dialog work process. A work process is released when the dialog step changes (screen changes) and the work process sends a database commit (called Implicit Database LUW). So with each screen change there is a database commit and database remains in consistent state.
    Now when using bundling technique, when a COMMIT WORK is encountered, system ends the dialog process with a dialog work porcess and starts the update process using an update work process.
    The dialog step containing the COMMIT WORK is considerd as the last dialog step of the transaction and all the update function modules are processed now in the last dialog step by the update work process though they were called earlier during the earlier dialog steps.
    It is necessary to create update FMs to take advantage of this technique. The update FM is created FM by setting the Update moduleradiobutton in the Attributes tab in SE37.
    In a normal FM call, if there are database updates (UPDATE, INSERT, MODIFY, DELETE) than database is commited after the FM processing is over as the FM starts its own Database LUW and ends it too.
    <b>Reward Points</b>
    Regards

  • Getting the caller address inside kernel

    How to get the caller address inside a kernel ? I mean address of a kernel
    function x, calling other kernel function y.
    Currently I am doing the following to get the caller address inside a
    kernel function(Sol7, 64-bit sparc). This is not wrong, but may be a
    problem if we turn on compiler optimizations.
    <PRE>
    kernel_func_y(someargs_t *args)
    int x;
    /* get the caller address into args->cl_addr */
    asm("stx %i7, [%i0 + 8]");
    /* use the caller address, here for some reason */
    some_operation(args->calleraddr);
    </PRE>
    Is there any DDI/DDK function/macro available to do this ? If not won't it
    be nice to have such a DDI/DDK macro/function ?
    Thanks

    Hi Sini
    Good question! I dont think there is any library which provides
    this functionality. And yes it might be helpful under some special
    circumstances. Although I think you might be able to get it from
    the stack.
    My 2 cents.
    -Manish

  • Calling a function inside a symbol?

    Hi there,
    I'm one of those flash-devs that are trying to get Edge Animate to do what I usually do in Flash, so I might be doing this the wrong way, but I've got a symbol with a function "inside" on my stage, and I wanna call that function from the stage.
    I've been trying to use sym.getComposition().getStage().getSymbol("symbolName").functionName(); but it doesn't work.
    I don't have any problems manipulating the symbol itself by calling .play() or .hide() so I know the path works....can anyone show me the right syntax to call a function inside a symbol?
    Thx in advance

    Hi Abnesher,
    An important principle to grasp is that symbols (and the stage is one of them) lies in parallel, despite the fact of instances of different symbols being nested one in another (and all in fine nested in the stage).
    The consequence is that from inside your nested symbol you have no direct visibility of the function defined inside the stage symbol !
    Inside the Stage symbol, in the document.compositionReady event handler :
    sym.yourGlobalFunction = function( firstParameter)
      // your stuff
    Inside another symbol, in one of its events handlers :
    sym.getComposition().getStage().yourGlobalFunction( 5);
    Gil

  • Function call from inside an onEnterFrame action

    I have a class file called MonsterGame. Inside of it, one of
    the methods called "queueAnim" creates an onEnterFrame function to
    wait till the current movie is done playing before making the next
    one visible.
    That works just fine, but I have certain conditions set up so
    that the function Main() will get called just after a certain movie
    gets played (called "eatMovie"). Everything works except the call
    to Main();
    I think it's some issue with referencing the wrong place, but
    I don't know why.
    The trace for "this should be the name of root" returns
    "MonsterGame", which is the name of the class where the Main()
    method is found. So if this._name returns MonsterGame, and
    MonsterGame has Main() in it, why wont Main() or this.Main() run
    the function???
    PS: It's NOT because I delete the onEnterFrame before calling
    Main(), at least I'm pretty sure it isn't because I have put a
    trace there, and it runs just fine, proving that lines after the
    delete are still executed.
    PM me if you want the link to the source code and the swf
    file

    Thank you very much LuigiL!
    I don't think I would have ever thought of that. I tried all
    sorts of complicated things to get around this problem (including
    using the .watch() method) but none of them worked.
    This was the final puzzle piece to making my program run
    properly. Yet I have no idea WHY it works. Does "this" refer to
    something else when used inside of an onEnterFrame? I even tried
    _root, and that didn't work either.

  • How to call a function inside a class? 

    Hello, i am trying to fire a function onPress .. this
    function is inside a class.
    In this function i refer to another function inside the calss
    to call a Tween. It never arrives in the second function.
    I tried to make an example.
    In the fla file i have:
    var test:makeMovie = new makeMovie(this);
    You will see a red squere and you can press on it. It should
    run the tween class. Am i using the delegate class wrong?

    I always have to use test movie and trace a couple of times
    each time I start to use Delegate.
    It wraps function.apply I think, which I tend to use more
    often.
    try using:
    Container.onPress = Delegate.create(this,setAlpha);
    and then just
    setTween()
    inside your setAlpha....
    That's conceptually how I think I would try it above if I was
    doing something similar.
    I'm not sure it would have the desired effect even if the
    delegate was executed as you have it coded. Unless you want
    setTween's execution scope to be the Container clip in which case
    you might need to do what kglad said and change the Container
    reference to 'this'.
    The way you have it at the moment inside setAlpha the
    Delegate.create is simply creating a function...and not excuting
    it.
    its like : function something(){trace('what')}
    and not like : something();
    Below is some quick code that helps show how things work.
    Notice that I assigned the delegate function to mainFunc....so that
    along with the last example might provide a clue. Just paste it on
    a frame and take a look at what's happening.

  • Call a function inside a package from a stored procedure

    Hello:
    I am kind of new to the stored procedure. Does anyone know how to call a function inside a package from another stored procedure?
    I have a existing function (func_b) inside a package (pack_a) and it returns a cursor. I want to call this function from a stored procedure (proc_c) so that I use the data inside the cursor.
    can I do the following in proc_c:
    my_cursor1 SYS_REFCURSOR;
    begin
    my_cursor1 := exec pack_a.func_b
    end
    It will be very helpful if anyone can point me to any reading or example. Thank you very much for your information.

    guys:
    Thank you for your information so far. I need some more help here. I was able to run the function in my stored procedure. However, I was not able to print the result on the screen to view the cursor result, although I am using dbms_output.put_line statement inside my stored procedure.
    I use the following statement to execute my stored procedure on sql*plus. I can tell the stored procedure is executed successfully, but I did see anything printed:
    DECLARE TEMP VARCHAR2(100);
    BEGIN PROC_LAWS_CAD_NAME_SEARCH('LPD', 'TEST DEVICE ID', 'TEST LAST NAME', 'TEST FIRST NAME', 'F', '11112009', TEMP); END;
    I tried to use 'set serveroutput on' and got the following error:
    ERROR:
    ORA-06502: PL/SQL: numeric or value error: host bind array too small
    ORA-06512: at line 1
    I am kind of confused now. thank you for your help.
    Jack
    Here is my procedure:
    create or replace
    PROCEDURE PROC_SEARCH
    ( AGENCY_ID IN VARCHAR2,
    DEVICE_ID IN VARCHAR2,
    L_NAME IN VARCHAR2,
    F_NAME IN VARCHAR2,
    SEX IN VARCHAR2,
    DOB IN VARCHAR2,
    CAD_NAME_SCH_RESULT_STR OUT VARCHAR2)
    AS
    v_agy_id varchar2(10);
    v_device_id varchar2(20);
    v_l_name varchar2(25);
    v_f_name varchar2(15);
    v_sex varchar2(1);
    v_dob date;
    -- this cursor is going to be used to store a list of warrant matching
    -- name search criteria
    cad_srch_cursor sys_refcursor;
    objSrch SEARCH_RESULT_TEMP%ROWTYPE;
    BEGIN
    cad_srch_cursor := SEARCH_PKG.SEARCH('TESTING', 'TESTER', null, null,null, null, getPhonetic('TESTING'));
    LOOP
    FETCH cad_srch_cursor INTO objSrch;
    EXIT WHEN cad_srch_cursor%NOTFOUND;
    --insert into SEARCH_RESULT_TEMP (name_last) values (objSrch.name_last);
    CAD_NAME_SCH_RESULT_STR := objSrch.name_last;
    dbms_output.put_line('First:'||objSrch.name_first||':Last:'||objSrch.name_last||':Middle:'||objSrch.name_middle);
    end LOOP;
    END PROC_LAWS_SEARCH;
    -----------------------------------------

  • Call library function inside a conditiona​l disable bug

    i'm trying to call a function in a dll using the call library function inside a conditional disable structure.
    one of the parameters is a pointer to a C structure.
    here is the prototype:
    short in myfunction(short in DevNum, void *pMetrics);
    outside of the conditional disable, LabVIEW allows me to wire the pMetrics parameter to a cluster.
    if i put the function inside the conditional disable, LabVIEW doesn't allow me to wire it.
    as a workaround, i put the cluster inside the conditional disable as well.
    any ideas?

    Simply create a constant of the cluster and and put it outside the disable structure. Wire this constant to all inputs (left side terminal) of the Call Library Node. A Call Library Node (CLN) set to Adapt to Type does need a valid datatype to adapt too. This works from the outside side (right side terminal) of the CLN only if the according indicator is inside the same data structure. In older LabVIEW versions you actually had to always define the left side by wiring a constant or a dummy control to it.
    This has to do with the algorithme that evaluates datatypes along wires. Making that algorithme go backwards (against the natural dataflow) inside one subdiagram without causing circular references or similar is already a challange. Doing that across diagram boundaries (case, disable, loop, etc. structures) is basically impossible without causing the entire edit operation to get very slow.
    Message Edited by rolfk on 10-20-2009 08:28 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • New Zen need a new firmware upd

    I was looking for some solution to some problems I encounter with the new Zen 8gb . I notice that when you turn on the device it flicker and the Zen display Flicker after it is on. But here is a list of suggestion I found on line that I agree needed

  • Warning message of password expire

    Hi All, I have a requirement. When user password is going expire in 5 days, there should be warning message when user logs into portal  which says "your password is going expire in 5 days, please change". How achieve this functionality in portal, ple

  • Refuses to play DVDs

    My i5 iMac refuses to play or even accept DVDs. Music CDs and applications disks are fine, but whenever I insert a DVD the drive spins and ejects it automatically. This happens even if I have DVD Player open. Anyone have any idea why its doing this o

  • VA01-STRANGE PROBLEM

    Hello everyone.. I am facing a very strange problem.. while using VA01, a mail is sent to receivers when SO is created.. what is happening is that in development server it is working absolutely fine.. but when we transport it to production server the

  • Rework batches stock not propose in delivery document & only propose in SO,

    Hi, Experts, I have face one issue at a time of delivery creation: Issue : All FG stock availbale in table MSKA , that all stock prapose in availibility run in SO but the same quantity not prapose in delivery document, For example : In table MSKA , I