Get information for classes from call stack in abap (like java reflection)

Hi,
is there any possibilty to get following information:
I want to program a logging tool. You can create a logging object and use some methods like
xxxxx->add_msg(msg) to put logging information to the logging object.
but i also want to find out, from which class/object/runtime environment this msg comes.
example:
class CL_ABC uses the logging tool and does following call:
lo_logger = CL_logger->get_logger().
lo_logger->add_msg( 'test the code' ).
now the method ->add_msg() in logger object is called. inside this method, i want to have the information, from which class/object the ->add_msg() method is called. after the call, the logging object must have this information like:
CALL_CLASS: CL_ABC
CALL_LINE: 83
MSG: test the code
any ideas?

You can use the SYSTEM_CALLSTACK function module.
Read this thread, Uwe has given details on both getting the calling class and method: Re: How to determine current method / interface method that is running?
Most probably this solves your needs.
Regards

Similar Messages

  • Slmodem/wvdial: cannot get information for serial port

    Hi,
    I have the following problem when trying to set up my Intel WinModem with arch:
    After configuring wvdial I get an error when trying to launch it
    /dev/ttySL0: Cannot get information for serial port
    Does anybody know about this problem? There is absolutely no information about it on the internet.
    Thanks for any help!!!!!

    Hi,
    I have the following problem when trying to set up my Intel WinModem with arch:
    After configuring wvdial I get an error when trying to launch it
    /dev/ttySL0: Cannot get information for serial port
    Does anybody know about this problem? There is absolutely no information about it on the internet.
    Thanks for any help!!!!!

  • I want to change my Apple ID for IPad because forgot password and all email addresses changed so cannot get informations for password reset. What can I do?

    I want to change my Apple ID for IPad because forgot password and all email addresses changed so cannot get informations for password reset. What can I do?

    I was wondering if you ever figured this out. I have the same issue. When I try to use the support communities, there are so many with the same problems and never seem to be any replys?? Not very helpful and I can not get Apple to return my emails.

  • WUC-17 Information was missing from the supplied file download request java

    Dear Forms Guru,
    Can anybody help why i'm receiving this error using webutil.
    WUC-17 Information was missing from the supplied file download request java..
    the result in my jinitiator console are the ff:
    Loading http://oracleserver.hfgmgroup.hfgm:8889/forms90/webutil/webutil.jar from JAR cache
    Loading http://oracleserver.hfgmgroup.hfgm:8889/forms90/webutil/jacob.jar from JAR cache
    Loading http://oracleserver.hfgmgroup.hfgm:8889/forms90/java/f90all_jinit.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 1.0.5 Production
    Loading http://oracleserver.hfgmgroup.hfgm:8889/forms90/java/toolbar_images.jar from JAR cache
    connectMode=HTTP, native.
    Forms Applet version is : 90290
    2005-Feb-13 01:48:19.514 ERROR>WUC-17 [VBeanCommon.downloadFromURL()] Information was missing from the supplied file download request java.net.MalformedURLException: unknown protocol: c
    2005-Feb-13 01:48:33.504 ERROR>WUC-17 [VBeanCommon.downloadFromURL()] Information was missing from the supplied file download request java.net.MalformedURLException: unknown protocol: c
    2005-Feb-13 01:48:34.04 ERROR>WUC-17 [VBeanCommon.downloadFromURL()] Information was missing from the supplied file download request java.net.MalformedURLException: unknown protocol: c
    Many thanks in advance...
    benjie

    Benjamin,
    WebUtil tries to download the jacob.dll to the client. The error message you get is most likely caused by teh following section in teh webutil.cfg file
    install.syslib.location=/webutil
    ## Do not change the following lines unless instructed to do so
    install.syslib.0.7.1=jacob.dll|94208|1.0|true
    install.syslib.0.9.1=JNIsharedstubs.dll|65582|1.0|true
    install.syslib.0.9.2=d2kwut60.dll|192512|1.0|true
    ## But you can add your own libraries in here
    #install.syslib.0.user.1=testwebutil.dll|204872|1.0|true
    If you have all these files available on the PC, then most likely the problem can be found in the virtual path setting for this directory
    <virtual-directory virtual-path="/webutil"
    real-path="c:/webutil/lib" />
    in /j2ee/Oracle9iDS/application-deployments/forms/forms90web/orion-web.xml
    Pleae refer to the webutil documentation for teh exact configuration steps.
    Hope this helps
    Frank

  • Not getting values for HR_READ_SUBTYPE while calling from Webdynpro appl

    Hello,
    When we pass infotype,begda,endda and other required parameters and run this FM in standalone we are
    getting values however when same FM is called through Webdynpro ABAP application it is not returning values.
    I tried debugging and i found out that some buffer issue is there.
    But still my problem is not sloved.
    can anyone tell me what can be the reason?
    Regards,
    Mayank

    Hi Mayank,
    Can you tell me how much entries you are getting in return when you run FM standalone.
    there may be possiblility of huge amount of data returnning.
    If u can give more details that will be great!!
    Thanks

  • Get information about length of call outside of phone application

    Does anyone know if it is possible to get the length of a call outside of the calling application? I know mobile is in a sandbox, but is the call length stored somewhere I could extract the information from.
    thanks

    This is not standardized and will probably differ from phone to phone (and manufacturer to manufacturer). See certain device's docs - some might support it via J2ME APIs.
    Cheers!

  • How to get the root class in call heirarchy

    Hi,
    Is anybody have some idea regarding the getting name of a class whose, main method was called at the time of begining. In other words if we say, how can we get the invoker class of a java program with multiple level of inheritence.
    Regards

    DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
         DocumentBuilder db=factory.newDocumentBuilder();
         Document doc=db.parse(new File(ur xml file"));
         Element root=doc.getDocumentElement();
         System.out.println("root "+root.getNodeName());

  • How to get information about connections and calls?

    Hi everyone,
    I would like to know if there's a way to get informations like time spent and bytes transfered from connections* and callings made from the cellphone, not just from a midlet application?
    * Any type of connections like WAP, SMS, GPRS.
    tks

    As far as getting the time it takes, as i've previously seen responded to this type of problem you can get the time before and after the event that took place and do a subtraction to calculate the time it took.

  • Can't get rid of classes from JServer

    During the learning process, I created a World.java in directory hello, and following the examples in the online help, put this class in package hello. I found that if I did a loadjava from within the hello directory, the class is successfully loaded, but as hello.World; i.e., loadjava World.class produced an object hello.World in JServer. This class runs okay, but dropjava can't get rid of this class. I try both dropjava hello.World and dropjava World, and both of them say class not found. But the class is still there.
    If I do things the right way (i.e., loadjava hello\World.class from the directory above hello), then dropjava works properly. So finally, the question is: how can I get rid of this class which dropjava says isn't there but actually continues to exist?

    I found the answer by browsing. I am supposed to hold the Command key down and drag the item off the sidebar. It worked. I was trying to right click the item and remove it that way which didn't work.

  • HT4095 I recently purchased 2 movies ( the crooks and White House down) but was unable to watch them.  Every time I tried it said not loading.  So I would like to know how I get reimbursed for these from iTunes?

    I recently purchased 2 movies and was unable to view them.  It kept saying unable to load movie when it had clearly downloaded. How do I get reimbursed for these 2 movies as I was unable to watch them and am pretty fed up with iTunes right now?

    Depending upon what country that you are in (films can't be re-downloaded in all countries) then try deleting the films from your iTunes library and redownload them via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page on your computer's iTunes
    If you aren't in a country where you can re-download films or if they re-download with the same problem then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Disable Technical Information for UI Element in WEB DYNPRO ABAP

    Hi expert,
    I want to disable  Technical Information for UI Element in  my web-dynpro application i am alredy disable  in user setting by parameters WDDISABLEUSERPERSONALIZATION by i want to disbale other two options 1 Display quick help.
                2 More field help.
    KINDLY GIVE ME SUTIABLE SOULATION.
    REGARD'S
    Vikash

    Hi Vikash,
    Check this thread, may be you'll get some clues from here.
    [How to restrict right click to show user setting in WebDynpro ALV?;.
    Regards
    Manas Dua

  • ESS Business Package for ERP 6.0 is a ABAP or JAVA Web Dynpro

    Hi,
    We are trying to implement ERP 6.0 and ESS with the Portal.
    Is the ESS business package a ABAP or JAVA Web Dynpro????
    Thanks.
    Regards,
    Mike

    Hi Mike,
    ESS BP is a portal content (runs only on portal runtime) which can only be deployed and run on SAP J2EE server (So it is java based).
    http://help.sap.com/saphelp_erp2005/helpdata/en/f6/263359f8c14ef98384ae7a2becd156/frameset.htm
    From EHP2 for ECC 6.0, you have an option choose ABAP WebDynpro for Travel related services. However, the portal content (iViews) is still on SAP J2EE server.
    Thanks
    karthik

  • Get URL for class

    Is there any Java API that will allow me to get the URL of the JAR file or directory that contains a particular class? I'm looking for somrthing similar to getResource(String) in the Class class that will tell me which JAR file or directory the class loader is pulling stuff from.

    The URLClassLoader has a method called getURLs(). I hope this snippet of code could help!
    import java.net.URLClassLoader;
    import java.net.URL;
    import java.net.MalformedURLException;
    public class Main {
        public static void main(String[] args) {
            try {
                URL[] urls = new URL[3];
                urls[0] = new URL("file:p/");
                urls[1] = new URL("http://java.sun.com/");
                urls[2] = new URL("file:/tmp/c.jar");
                // Create URLClassLoader
                URLClassLoader cl = URLClassLoader.newInstance(urls);
                URL[] retUrls = cl.getURLs();
                for (int i = 0; i < retUrls.length; i++) {
                    System.out.println(retUrls[ i ]);
            } catch (MalformedURLException e) {
                e.printStackTrace();

  • NI Session Manager gets slower and slower from call to call!

    I have the following problem with NI-Session-Manager:
    I use Session Manager a lot on my test systems. Now that I have a test system running that makes many Session Manager Calls I noticed that after a while the system gets slower and slower. I�ve attached a Sequence File, which demonstrates this problem.
    This sequence file is based on the LV Session Manager Example, which ships with TestStand.
    Instructions: In the UI-Msg Field of the Sequence Editor you will see how long the actual run took to execute. Every run makes 500 calls to Session Manager. You will notice that every run takes a little bit longer than the previous. After 100 runs the difference is significant.
    Although my example uses a COM
    port to demonstrate the problem this problem is really related to Session Manager because the same happens if I use an IVI-Instrument (i.e. NI-DMM, NI-Switch, �)
    Any help appreciated!
    Regards
    Herbert
    Herbert Koltschik
    Sagem Communication Austria
    [email protected]
    Attachments:
    sessionmgr_-_slow_down_problem.zip ‏63 KB

    Herbert -
    Thanks for the feedback. I will look into item (1).
    The design of the session manager was to solve the problem of only having to share an instrument within a multithread application. If the session already exists, than you get the same session and thus the same handle, and the instrument is only initialize once and closed after the session no longer exists.
    In the case of a C++ based program you would have to add the session as a member variable that has a specific lifetime. When the object is release, so will the session.
    In the case of an application like TestStand, you just attach the session to the execution. Once the execution goes away, the session may go away if no other execution is using it.
    In the case of L
    abVIEW being called from TestStand, you are using VIs as subroutines, so either the application (TestStand) must manage the lifetime of the session, or the VI subroutine must deligate the lifetime control to a "global" VI. The item you attach to the global could be the refnum itself or the SMgr session. One way of doing this would be to create a VI that serves the refnum to you but internally manages the lifetime of the ActiveX references to the Session Manager sessions. This would be a simple vector of names and their sessions. When called the VI would lookup and return a refnum from an existing session or create a new session and return a refnum for it.
    Scott Richardson
    Scott Richardson
    National Instruments

  • Get updates for documentation from developers without redoing Javadocs

    I am new to Java. I have been tasked to create the documentation for our software project. hence I'm trying to use Javadoc for the technical documentation. The problem is if I run NetBeans IDE, and generate Javadocs today, then I will be missing all new Javadoc changes that developers put into the code in the next days and weeks ahead. Is there a way to get the Javadocs that exist today, and from here on out, to just get the updates to update to the Java docs? If not, is there a way that I can see the updates since a certain date, so that I only view updates?
    I've never posted to this forum. I tried yesterday, and thought it worked. But I can't see my entry in the forums.

    Is there a way to get the Javadocs that exist today, and from here on out,
    to just get the updates to update to the Java docs?Javadoc has no such option built-in.
    People typically just run the javadoc tool to rebuild the docs from scratch each time they want a version of the docs with the latest update.
    It has no "incremental build" where it updates only the minimum files necessary. A feature request exists for this:
    javadoc cannot incrementally generate docs for a single Java class
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4032755
    If not, is there a way that I can see the updates since a certain date,
    so that I only view updates?Also not built into Javadoc. The program JDiff does that -- it shows the
    diffs in context.
    http://javadiff.sourceforge.net/
    -Doug

Maybe you are looking for

  • Notebook connecting to TV

    I bought a display port (male) to HDMI (male) cable to connect my Elitebook 2560p to Samsung TV. Tv screen says "No Signal" please check cable connections, but everything is connected well. Still does not work after choosing 2nd screen and/or Fn f4.

  • Unable to create service user Installation

    Hi am unable to create PIAPPLUSER service user.Am installing NW2004s on AIX. Its using the BAPI_USER_CREATE1 to create the user, everything is successful but at last it gets a message RFC connection closed.Is this some thing to do with SLD? I created

  • What are these up and down arrows on a region?

    I'm having a problem with some regions in my project. First, I imported some wav files that were sent to me. These are audio tracks that were individually exported from Final Cut Pro 7. After importing them into Logic X, about 3 of them displayed the

  • How to restore an ipad in lost mode, how to restore an ipad in lost mode?, how to restore an ipad in lost mode?

    I got my iPad taken away recently and used my phone to find my ipad. I have now gotten back my ipad and can not unlock it because my passcode is no longer working. I have tried to restore it but am unable to because it is locked and in lost mode. I h

  • Urgent : Smartform text Display

    Hello All, In my main window I have text in which I have to display 3 fields material description, quantity, unit. Currently it displays like this: A 10 EA B 12 EA C 13 EA D 10 EA E 10 EA But I want to display it like this: A 10 EA      B 12 EA C 13