How to run a function i a parent class?

Hi!
Is�t possible to run a function i parent class from the child class?
if so how to implement it?
please give an example if it�s possible.

your question is off topic !
correct forum would be: Java Programming
what you are looking for is probably 'super'. The stuff is covered by java beginner's books, e.g.
Thinking in Java
downloadable at
http://www.mindview.net/Books/TIJ/

Similar Messages

  • How to run ABAP Function Module in Background Wchich Takes Long Time to Run

    How to run ABAP Function Module in Background FOR LONG TIME
    I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
    RSDRT_INFOCUBE_DATA_COPY.
    I used SE37 and then executed the module, I supplied  the parameters on the form which opped-up and then  program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run  it in background without interruption?
    THANKS A LOT.

    Hi,
    You can call this FM in a program and run that program in background.
    Regards,
    Raju

  • How to run a function

    Hi,
    can anyone tell me how to run this functions while generating reports for labels.
    please i need some guidance.
    create or replace function get_label_nextval(p_label varchar2) return integer
    is
    l_last_num integer;
    cursor c_label is
    select last_num from label_id where label = upper(trim(p_label)) for update wait 10;
    pragma autonomous_transaction;
    begin
    open c_label;
    fetch c_label into l_last_num;
    if l_last_num is not null then
    l_last_num := l_last_num + 1;
    update label_id set last_num = l_last_num where current of c_label;
    commit;
    end if;
    close c_label;
    return l_last_num;
    end;
    Thanks and Regards

    ORA-06519: active autonomous transaction detected and rolled back
    Cause: Before returning from an autonomous PL/SQL block, all autonomous transactions started within the block must be completed (either committed or rolled back). If not, the active autonomous transaction is implicitly rolled back and this error is raised.
    Action: Ensure that before returning from an autonomous PL/SQL block, any active autonomous transactions are explicitly committed or rolled back.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/e4100.htm#sthref2110
    I think your COMMIT should be moved outside your IF.
    Commit just before your RETURN, after your CLOSE CURSOR statement.
    Edited by: hoek on Jan 4, 2010 1:28 PM typo

  • How to run ABAP Function Module in Background FOR LONG TIME?

    I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
    RSDRT_INFOCUBE_DATA_COPY.
    I used SE37 and then executed the module, I supplied  the parameters on the form which opped-up and then  program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run  it in background without interruption?
    THANKS A LOT.

    Change parameter rdisp/max_wprun_time.
    Default value for this is 600 seconds (10minutes).Change it to a time which you think you need for copying infocube data.
    May be 5 hours.
    PS:You can not run Function Module in background directly,but you can create a Z* program and call that FM from within that program and then run the program in background.
    Hope this answers your query. Best of Luck!
    Thanks and Regards
    Anindya
    Edited by: Anindya Bose on Jun 30, 2009 1:24 PM

  • How to run a function from a scripted MC

    I haven't used AS1 in a while and I do not know why my code isn't working and I don't knnow how to fix it, I have been playing around with it and trying to figure out how to get to a function or run a function which is on the main timline from an mc or even just skip to that code (since its the last frame of my MC) the MC includes nothing but actionscript to gather information to save/create a .txt file.
    Basically how can I run a function on the main timeline from where I am now?
    if (_root.ssFileSave != "?") {
    _root.filename = _root.ssFileSave;
    _root.onsaver();
    onsaver is the function I am trying to run and I have tried all sorts to get it working properly :S
    win 7 cs5 as1 (+using SWF studio which I am using to create and save file(s))

    if onsaver is defined on the _root timeline AND it has been defined when that code executes (use trace functions to confirm), then
    _root.onsaver();  // is correct coding

  • How to get the function name in controller class

    Hi experts ,
    I am new to the OAF framework.
    i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
    can you please let me know how to get the function id or function name in the controller class.

    Hi apurba,
    Thanks for the quick reply.
    i am trying to get the function name from the FunctionSecurity class,
    However in FunctionSecurity class there is no such method defined as getFunctionName();
    my requirement is ,i have two functions functionA and functionB defined.
    both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
    i will redirect the page to respective page.
    looking forward for you response.
    appreciate your help
    Thanks,
    KT

  • Running a function in a parent at the end of a child.swf

    question: How do I call a function that is inside a
    parent.swf from a child external swf (class Loader)?
    In my menu.swf, there is a child (Loader class) of a
    content.swf that gets loaded below it on run. Then when a button is
    clicked, it makes a string that contains the name of the content
    file to load next, then initiates an ending function on the child,
    which does some outro animation.
    function buttonClick(event:MouseEvent):void
    nextContent = event.target.name + ".swf";
    MovieClip(newContent.contentLoaderInfo.content).endSequence();
    after the ending sequence has executed in the ccontent.swf I
    need to know how to make a call to a function back in the menu.swf
    so that I can load the nextContent

    quote:
    Originally posted by:
    abeall
    Where is the function, on the timeline? You could try:
    MovieClip(parent).functionName()
    Thank you for the help.
    It compiles but I get a runtime error: TypeError: Error
    #1034: Type Coercion failed: cannot convert
    flash.display::Loader@248b5791 to flash.display.MovieClip.

  • How to run the Function module Parallelly at a time.

    Hi all,
    LOOP AT ITAB.
    call function 'Z_SAMPLE'
    ENDLOOP.
    Here if ITAB is having 4 records, Function module Z_SAMPLE will be runned 4 times one by one .
    My requirement is If ITAB is having 4 record ,Function module should be runned 4 times parallely(parallel process) .
    Please tell me how i can do this  Can i run that statement 4 times by removing the loop or
    Can i Create 4 different jobs and run that jobs at a time if yes please tell me how to creat the jobs and run parallelly.
    Please suggest me the solution
    Please do ask  me if question is not clear
    Thanks in Advance
    Ajay

    Is it possible ?
    DATA : f1 TYPE string VALUE '1',
           f2 TYPE string VALUE '2',
           f3 TYPE string VALUE '3',
           f4 TYPE string VALUE '4'.
    DATA : f1o TYPE string ,
           f2o TYPE string ,
           f3o TYPE string,
           f4o TYPE string.
    PERFORM call_fm USING f1 CHANGING f1o.
    PERFORM call_fm USING f2 CHANGING f2o.
    PERFORM call_fm USING f3 CHANGING f3o.
    PERFORM call_fm USING f4 CHANGING f4o.
    WRITE f1o.
    WRITE f2o.
    WRITE f3o.
    WRITE f4o.
    *&      Form  CALL_FM
    *       text
    *      -->P_F1  text
    FORM call_fm  USING f1 CHANGING f1o.
    * FUNCTION Z_TEST_MULTI.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(A) TYPE  STRING OPTIONAL
    *"  EXPORTING
    *"     VALUE(B) TYPE  STRING
    *b = a.
    *ENDFUNCTION.
      CALL FUNCTION 'Z_TEST_MULTI'
        EXPORTING
          a = f1
        IMPORTING
          b = f1o.
    ENDFORM.                    " CALL_FM

  • How to run planing function automatically by using planing folder (UPSPL)

    Hi All,
    We have 2 planing packges one for local currency and one for global currency  in the planing folder .We have exit function to upload the file from work ststion  for both local and global currency packages .
    Now we have Requiremnt to distribute or calaculat the remaning keyfigure values based on planned keyfigure in the planing package .We created one more exit function to allocate or calculate the amounts for remaning keyfgire.
    Everything works fine.But issue is how to execute the planing function 2 after saving the data in planing folder ?. is there any possiblity.Attribtues options of Execute when saving was disbaled .So i have option to choose execute function before layout change .But when i choose this option data is getting ovewrtied with old values. because last daya in the planing  was executing before layout change or before selecting file.
    Can anyone let me know how to solve this,
    Thanks in advance,

    Yes that right.but when i place these functions  in the layout section and give attribute as run before layout change.
    While writing the data to cube its also picking up the previous plan values from the layout with new values.
    I have another function also which will upload the file from desktop to layout .While i choose this file planing function running autoamtiaclly in the background becuase of settng we made (run before layout change).I
    I think this time planing function  executing 2 times .One is when i choose the file into the layout and at the time of save the data.
    This way old plan and new plan data getting into the cube and getting enermous results.
    How can i achieve this.If i create global planing sequence how can i exeute that while user save the data from planing folder ?.Can you explain the possble senaios step by step.

  • How to run new function from IW32, IW31 (button?)

    Hi,
    I need to run raport in new screen from IW31, IW32 on user's action.
    I don't know how to call it from those transactions. I thought about an action on button but is it possible to add it? Or is it possible to run it on double click on order numer?
    Thanks for any ideas.
    Regards,
    Kaz

    Hi
    It is easy to call that transaction when you click on a button.
    Only thing is that you need to change the Std code of that IW32 program
    and to pass the selection screen fields of that Transaction to be called and use the statement SUBMIT <program> with SELECTION-SCREEN fields and return.
    Reward points for useful Answers
    Regards
    Anji

  • Running copy functions in the background

    Hello,
      Does anyone know how to run copy functions in the background?  I am having an issue because you have to save after the CF are done..  How can you do this in the background?
    Thanks,

    Hi Matthew,
    You can use program UPC_PLANFUNCTION_EXECUTE to execute planning function.
    Also take a look at Function modules
    UPC_FUNCEXEC
    UPC_FUNCEXEC_COMMIT
    Hope it helps.
    Cheers
    Anurag

  • How to run WMI class.method?

    How to run Enable()/Disable() methods using Win32_NetworkAdapter class?
    Method link: http://msdn2.microsoft.com/en-us/library/aa390385(VS.85).aspx
    This only part of solution. http://forums.ni.com/ni/board/message?board.id=170&message.id=165837&query.id=73951#M165837
    Thanks.

    You should be able to do this using a .vbs script and labview.
    See this thread for some .vbs examples.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=144519#M144519

  • Calling a Function Pool inside a Class

    Hi,
        I want to call a Function Pool inside a Class Method. I am getting an Error that 'Report or Program Statement already exists' when I call the function pool in the method. can anybody help me on how to call a Function Pool inside a class method.

    Hello Krish
    Based on your error description I assume that you have tried to "insert" the function pool program (e.g. function group ZFUNC -> SAPLZFUNC) into your class.
    You cannot do that. The explanation for the error message is a following:
    - The class contains already a program statement (CLASS-POOL). If there is somewhere in the class an additional program statement (e.g. FUNCTION-POOL) you will get the error.
    In addition, you cannot "call" a function pool. Instead you can always call the function modules of your function group.
    Regards
      Uwe

  • Call function defined in other class

    Hi..
    I am new to Java programing .
    I want to know how to call a function defined in second class from first class.
    Please help me.

    Hi..
    If both the classes are in same package, and the function is not private, u can call the function by using an object of the second class. If they r in separate packages, u have to import the package in which the second class is. In any case, public methods are allowed and private methods are not allowed to be invoked.
    Hope this info may help u..

  • How can a custom class call a function in "parent" class?

    Say I have an application (ultrasimplified):
    public class myApp {
    myClass mc;
    boolean foo=false;
    public static void main(String[] args) {
    mc = new myClass();
    public static void myFunc(boolean blah) {
    foo=blah;
    in a separate .java file where my questions lie:
    public class myClass {
    boolean bar=true;
    public void myClass() {
    // this is wrong, but how would I do this:
    foo = bar; // foo in myApp set to true
    // or how would I call "myFunc()" in myApp from this class:
    myFunc(bar);
    my problem is that I've created a new class that I share between two applications so I could share the code. However, I want this class I created to call a function in the application class that instanciated it. Or alternatively, I would like to set a variable in the class that instanciated myClass.
    How would go about this? I've used the "this" parameter in applets to pass the parent class to an inner class, but main() in applications doesn't allow the non-static "this":
    myClass my = new myClass(this);
    Is there something similar I can do?

    You can let MyApp implement an interface and refer to that object in MyClass:
    class MyApp implements Something {
    main() {
    MyApp app = new MyApp();
    MyClass mc = new MyClass(app);
    public void foo() { }
    class MyClass {
    Something app;
    MyClass(Something app) {
    this.app = app;
    app.foo();
    interface Something {
    public void foo();
    Better yet, you can let MyApp extend an abstract class that defines foo(). Then MyApp can override the foo() method. If later on, the abstract class needs to add a bar() method then default implementation can be done in the abstract class. If you make it an interface then all implementing classes will have to be updated to implement the new method.

Maybe you are looking for

  • Follow up to apps wont update.

    Well, I finally found a way to update the apps. I went into purchased and found the apps and then pressed update. All apps loaded as smoothly but after they were done they disappeared. I can find them anywhere. Spotlight search wont even pick up. Whe

  • Call DLL from PL-SQL block

    Hello all, I want to call a function located in an external DLL from a PL-SQL block. I execute the followin steps : 1. Create a database library pointing to the external DLL : create or replace library libstk as 'C:\SUMMIT\libstkdte_s_trade1.dll' 2.

  • Ipod nano 2nd Gen - iTunes 7 - error 1453

    Hello, Each time I connect my ipod to my macbook, I receive a message asking if I want to update my ipod to version 1.0.1. If I click "install", i receive an error message : "the ipod could not be updated. An unknown error occured (1453) PS: accordin

  • Watermark not showing up in L4

    I tired adding my watermark last night, as i always do when I export photos.  (yes, the box was checked for watermark) When I viewed the exported file (not the original), it didn't show up. I'm using a custom logo, not text. i also tried creating a n

  • HT5961 I want to receive the verification code for the keychain but I was sent to unknown number because the last two digits do not represent my phone number

    I want to receive the verification code for the keychain but I was sent to unknown number because the last two digits do not represent my phone number, so how can I change it to receive it on my cell phone ?