How to know the name of the perform

I would like to have the name of the perform in an abap program.
Ex :
Form f333_form.
write: / 'I''m in the form', w_namef.
enform.
w_namef should contain f333_form.
Like in debug (stack list).
regards,
Christophe

Thank you for your answer.
Here is the code to put a trace on each perform.
REPORT  zzzcga012                               .
TYPES:
   BEGIN OF abap_call_stack_entry,
     mainprogram  LIKE sy-repid,
     include      LIKE sy-repid,
     line         TYPE i,
     eventtype    LIKE abdbg-leventtype,
     event        LIKE abdbg-levent,
     flag_system  TYPE c,
   END OF abap_call_stack_entry.
DATA:
  acse TYPE abap_call_stack_entry,
  tab  TYPE TABLE OF abap_call_stack_entry.
**** Definition of a macro in order not to put lines in each perform
define trace_perf.
CALL 'ABAP_CALLSTACK' ID 'DEPTH'     FIELD 2
                      ID 'CALLSTACK' FIELD tab.
read TABLE tab INTO acse index 1.
*-- Der Start ab dem zweiten Eintrag ist notwendig, weil in
*-- der ersten Tabellenzeile der aktuelle Eintrag steht, also
*-- diese FORM-Routine.
  WRITE:
  / 'Mainprog:', acse-mainprogram,
  / 'Include: ', acse-include,
  / 'Event:   ', acse-eventtype,
                 acse-event.
end-OF-DEFINITION.
START-OF-SELECTION.
  PERFORM f100.
END-OF-SELECTION.
*&      Form  f100
*       text
FORM f100.
  trace_perf.  "use of macro
  PERFORM f110.
ENDFORM.                                                    "f100
*&      Form  f110
*       text
FORM f110.
    trace_perf.  "use of macro
  PERFORM f111.
ENDFORM.                                                    "f110
*&      Form  f111
*       text
FORM f111.
    trace_perf.  "use of macro
ENDFORM.                                                    "f111

Similar Messages

  • How can I know the name of the file that the user has currently open ?

    Hello
    I'm developing a module for x3dv.
    http://hiperia3d.blogspot.com/search/label/X3DV%20Module%20For%20Netbeans
    I am going to add a button to open the files when I click it.
    I just need to know how can I know the name of the file that the user has currently open in the editor. What variable holds it in Netbeans?
    Thank you
    Jordi

    If you are using the JFileChooser to open the document, I would create another class with this included:
    //initiate class variables
    private File f;
    //create JFileChooser
    JFileChooser fc = new JFileChooser();
    fc.setMultiSelectionEnabled(false);
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY)
    //set the chooser to initialise File f with the file selected
    int status = fc.showOpenDialog(null);
    if (status == JFileChooser.APPROVE_OPTION)
         f = fc.getSelectedFile();
    public File getFile()
         return f;
    }

  • I have Lion software installed on my IMac (purchased IMac 2008). I need to know the names of the updates since Lion, and how to get them. Thanks,  Don

    I Need to know the names of the updates after Lion and how to get them.  Tanks,  Don

    Back up your data and download Mavericks from the Mac App Store. You don’t need to buy Mountain Lion to do this.
    (110438)

  • How to know the name of the PC and the user?

    I must get the name of the PC, the User with i have enter the system, and the IP address.
    how can i get this information?
    Thanks.

    i don't know for sure, but try System.getProperty( someproperty ). maybe you can find a property you can use.
    otherwise you can write a dll in c++ an use it in java.
    native method forum:
    http://forum.java.sun.com/forum.jsp?forum=52
    tobias

  • Anyone know how to change the name of the PDF after it's submitted via the "submit e-mail" button?

    Forgive me if I'm posting in the wrong section -
    I'm using Live Cycle v8.0 and I would like to know if I can change the name of the PDF that is being submitted via emai?
    For example -
    When I submit the form now it is named (12345abcd12345.pdf) and I would like it to read something like (memberapp.pdf)
    Any tips?

    I figured it out...thanks to anyone who may have been helping.

  • I know the name of an object - how do I get the name of the object that contains it?

    If I have a Movieclip, I can trace the name of the Movieclip
    that contains it using the _parent property.
    With a generic object, is there a way to trace the name of
    the object that contains it?
    Please, please tell me - this will be a huge help.
    Thanks

    Thanks for these comments - my problem isn't with MovieClips.
    I need to know if there is something which is the generic Objects
    equivalent to the MovieClips _parent property.
    Here's some code that hopefully will help explain further:
    class MyClass extends Object {
    var myObject:Object;
    function MyClass (){
    myFirstObject = new Object();
    myFirstObject.theParent = this;
    private function getNameOfParent(p_object:Object){
    // Some code to return the name of the object that contains
    p_object
    trace(p_object.__proto__); // Output: [object Object]
    trace(p_object._parent); // Output: undefined
    trace(p_object.theParent); // Output: [object Object]
    return ???
    public function doSomething(p_num:Number){
    var parentName = getNameOfParent(myObject);
    // do some more action...
    Timeline code:
    var myClass1 = new MyClass();
    myClass1.doSomething();

  • How to know the name of the local PC

    Hi all,
    Is there a way to find out in an ABAP program the name of the local PC from which the user is running this program? (it runs in foreground)
    An user can be logged on from several PC's at the same time so we need to know exactly from which PC he's working...
    thanks,
    Ioana

    Hi Ioana,
    I hope you had a chance to look at my answer to your VB script/Word template question... (I think it may be a cleaner way of solving your problem)
    Anyway, to answer this question, try the following:
    * Include at the top of your program:
      INCLUDE RSUSRCOM.
      INCLUDE TSKHINCL.
    * Direct kernel call to get user data.
      call 'ThUsrInfo' id 'OPCODE' field opcode_list
        id 'TAB' field usr_tabl-*sys*.
    * The table usr_tabl-*sys* will be populated with a list of users
    * and the terminal they are logged on with.
    This is quite a technical solution, and as its a direct kernel call, it may not be very upgrade compatible, but it will provide the data you are looking for.
    Cheers,
    Brad

  • How to change the name of the Mac I connect to in the drop-down window.

    Using my brand new MacBook, in the drop down menu when I connect to my iMac, it shows up as my name ( which is Derek Walton's Computer) ...... How can I change the name that shows up here? I have tried all areas that iI can think of and altered my name on the iMac but to no avail - e.g. - Network Sharing, Account Name, and so on.... anything anywhere I have changed... but it always shows up with my full name. I have however managed to get the name in the sidebar of the Leopard window to read as I want ( Derek's iMac) but that is all.
    Also, when I am using Airport on my MacBook, in the drop-down menu I see also other neighbours connections.... I am wondering therefore does it follow that they can see my wireless connection ( as Derel Waltons Computer)?
    This has been vexing me all night and I am geting very frustrated, but I bet there is a simple answer..... for those that know!
    Thanks in advance for any help you care to put my way.
    Derek

    It is not a simple issue. Not the same as changing a user account in Preferences. Ttry this link:
    http://docs.info.apple.com/article.html?artnum=106824

  • How to find out the name of the executable

    hi,
    say, i have an executable jar called Hello.jar. how do i know the name "Hello.jar" in main() when the executable jar is launched.
    that is, if i rename Hello.jar to HelloWorld.jar, how can main() know about this? this matters because i want to run the app
    in a separate process, which requires the name of the application.
    thanks

    yes to question 1: because i'm calling into a dll through jni to display a screensaver in the preview window. not spawning a separate process causes windows to hang for a while before
    the screensaver is displayed. the new process is passed arguments that are checked by main() so that another process won't be created (no infinite recursions).
    thanks.

  • How to get the name of the current tab.

    Hi Experts,
    I have two tabs in my tab strip and a button common to both the tabs.Can you please let me know how to get the name of the current tab in the event method of the push button.
    Thanks in advance.
    Regards,
    Arun

    1.Declare an Action for OnSelect event of Tabstrip. This event is triggered whenever any change in tab occurs.
    2. Declare an Import Parameter in this method
       Tab type String.
    3. This parameter has value of the selected TAB.
    4. You can set this value in some Attribute in Attribute Tab in this event only (OnSelect):
         wd_this->Att  = Tab.
    Att is the attribute created by you in Attributes Tab of View. ( of type String)
    5. Now the selected Tab ID is stored in this Attribute Att.
    6. In the Onaction of Button , retrieve the selected tab value from this attribute using :
               Data : lv type string.
                lv =  wd_this->Att
    Now lv has your selected TAB ID.
    I hope it would help you.
    Edited by: Saurav Mago on Oct 13, 2009 2:22 PM

  • How do I change the name of the Home folder OSX 10.9

    Hi there,
    I am trying to change the name of the Home folder on my Macbook Pro running OSX 10.9  I had a clean install of 10.9, and used migration assistant to restore my settings from a Time Machine Backup. 
    The problem is that the Home folder for my user is now named "Cody 1" when it used to be "Cody".  This seems like a minor issue, but all the programs that reference data in the old location, are forcing me to go and find the data manually.  Everything from iPhoto to VirtualBox, all files have to be found manually. 
    I have tried the instructions set forth in this article, http://support.apple.com/kb/ht1428, but the dialog that should, according to the article, allow me to redirect the account to the existing folder, returns an error saying that the user name is already in use.  There is no option to use the existing folder.  I have tried re-naming the folder to something different, to no avail. 
    Ideas?
    Thanks in advance. 
    -Cody

    The Apple Support document you referenced is cumbersome, outdated, buggy, and too likely to result in the sort of problems you described.
    It may be too late now but see the following:
    Niel's post here: How to change name of home folder
    and:
    Apple Support Communities contributor Pondini found an astonishingly simple way to accomplish what you seek. etresoft distilled that information into the following User Tip:
    Changing user account short name
    Note that he writes it has been tested on Mountain Lion but the procedure appears sound and should work equally well with Mavericks.
    Back up your system before doing either one.
    To fix what happened might be possible in Single user mode. I don't have specific instructions but you should be able to find and delete user accounts in the /Users directory.
    Type carefully and don't proceed without knowing the risks.

  • How to get the name of the selected building block in a building block content control?

    Hello,
    How can I obtain the name of the selected building block in a building block content control?
    I want to use this together with an on exit-event to populate other content Controls depending on the name of the selected building block item.
    Environment: Word 2010.
    Thanks,
    Peeter

    Hi Peeter,
    As far as I know the building block is the pre-built content, and the
    BuildingBlock object represents a building block in a template. After add the building block to the document, it inserts the content to the document.
    Building blocks are stored in the templates, therefore, to access the building blocks available for a document, we need to access an attached template.
    So, I think, we can’t obtain selected building block in the document.
    There are some links that may benefit you:
    # BdingBlock Object (Word)
    https://msdn.microsoft.com/en-us/library/office/ff192414.aspx?f=255&MSPPError=-2147217396
    # Working with Building Blocks
    https://msdn.microsoft.com/en-us/library/office/ff837878.aspx
    # Set the Building Blocks That You Can Use for a Content Control
    https://msdn.microsoft.com/en-us/library/office/ff197523.aspx
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get the name of the class which is currently in use

    Hi all,
    I have two classes Mother and Child, and I use this code to print the name of the class in use
      DATA m TYPE REF TO zmother.
      DATA class_name type string VALUE 'CHILD'.
      CREATE OBJECT m TYPE (class_name).
      CALL METHOD m->PrintName .
    So, what is the source code that I have to put in the PrintName methode?
    Thanks.

    Ok, but how can I get the name of the object class that calls the methode!
    REPORT  ztest_method.
    *       CLASS c1 DEFINITION
    CLASS c1 DEFINITION.
      PUBLIC SECTION.
        METHODS: get_data.
    ENDCLASS.                    "c1 DEFINITION
    *       CLASS c1 IMPLEMENTATION
    CLASS c1 IMPLEMENTATION.
      METHOD get_data.
    ****** What is the code to put here to know the name of this Class?*
      ENDMETHOD.                    "get_data
    ENDCLASS.                    "c1 IMPLEMENTATION
    DATA oref TYPE REF TO object.
    DATA: method TYPE string.
    DATA: cla_name(20).
    START-OF-SELECTION.
      cla_name = 'C1'.
      CREATE OBJECT oref TYPE (cla_name).
      BREAK-POINT.
      CALL METHOD oref->(method).

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • "Who ran me" - how to determine the name of the dbms_scheduler job that ran me

    Hi Community
    I can see plenty of examples out on the interweb which shows how you can use dbms_utility.format_call_stack to find the hierarchy of procs, functions and packages that got me to a particular point in my code.
    For example, if proc (procedure) A calls proc B, which in turn calls proc C, in the code for proc C, I can query the call stack to find out that proc C was called by proc B which in turn was called by proc A
    However, I want to extend this further.
    For example, using the example above, if proc A in turn was started by a dbms_scheduler job, I want to determine (within proc C) the name of the dbms_scheduler job which started the whole process off.
    The reason I want to do this is that I have inherited a (massive) system which is undocumented. In many places within the code, email alerts are sent out using a custom "MAIL" package to designated users (now including me) when certain long-running processes reach certain milestones and/or complete.
    I have added to the custom "MAIL" package a trailer on the mails to show the call stack. I also want to show the name of the dbms_scheduler job which started it all.
    Over time, this info may help me in building the "map" of how the whole undocumented system hangs together and in the meantime, to assist in troubleshooting problems
    Looking forward to hearing from you
    Alan

    Use USER_SCHEDULER_RUNNING_JOBS or DBA_SCHEDULER_RUNNING_JOBS there is column SESSION_ID and when you know your session ID build query is very simple.
    select owner, job_name
    into ...
    from dba_scheduler_runnig_jobs
    where session_id=sys_context('USERENV','SESSIONID');
    You must declare local variables in PL/SQL procedure to read owner and job_name into them. Second thing, you must handle possible exception no_data_found than can be raised when procedure is not run from job.

Maybe you are looking for

  • Moving Variable from one class to another.

    I need to get a Variable from one class to another how would I do this?

  • Reading a File by Knowing a part of the file name

    Hi Java Gurus, Can I copy a file to another location by knowing a part of the file name.I know the extension of the file and part of the file name.Can I copy such a file to another directory? Eg : 0099999999_JAPPLIC_20090320.pdf is the file name. I k

  • Anyone burning to Blu-ray?

    Trying to figure out if I can actually burn a Blu-ray DVD with FCP 7? Have you done it? Had One on One session and Apple person had no idea. I know you can export Blu-ray files out of FCP? What type of burner to use? and proper DVDs?

  • Depreciation Run Error (Message no. AA693)

    Hi, User has posted an entry to transfer an asset from one companyh code to the new company code into last FY 2010 in P13. This new company code do not have any asset prior to this. When perfomring the depreciation run, an error message was encounter

  • Distribution of InDesign CS3 Print Presets

    Is there a way to "mass" distribute InDesign Print Presets for InDesign CS3? Have a large list of Print Presets saved on a server. Would like to "push" them out to over 20 production Macs with CS3, using something like Apple Remote Desktop. Each Prin