Creating Application Log

HI SAP Gurus,
Please let me know the purpose of application log and the creation of it.
I am strugling with one standard report which have a BADI to it. 
It is equipement status report(IW38).
In the production we find some equipments which are not serviceable even all the orders are done.
I need to find the reason for that.  So, i was sugested to create application logs. But i dont know about it.  Please let me know.
Will be rewarded with points.
Regards,
Kishore

Hi
Look at the Tcode <b>SLG1</b> which gives the application log
You have to create a Object, Subobject for your application to see your own tcode log
and you can use the following fun modules in your code as per the requirement
SBAL                           Application Log: Collect Messages                             
BAL_GLB_SEARCH_LOG             Application Log: Global: Find log(s) (in memory)              
BAL_GLB_SEARCH_MSG             Application Log: Global: Find message(s) (in memory)          
BAL_LOG_CREATE                 Application Log: Log: Create with Header Data                 
BAL_LOG_EXCEPTION_ADD          Application Log: Log: Add Exception                           
BAL_LOG_EXCEPTION_CHANGE       Application Log: Log: Exception: Change                       
BAL_LOG_EXCEPTION_DELETE       Application Log: Log: Delete Exception                        
BAL_LOG_EXCEPTION_READ         Application Log: Log: Exception: Read Data and Texts          
BAL_LOG_EXC_ADD                Application Log: Log: Exception: Add                          
BAL_LOG_HDR_CHANGE             Application Log: Log: Header data: Change                     
BAL_LOG_HDR_READ               Application Log: Log: Header Data: Read Data and Texts        
BAL_LOG_MSG_ADD                Application Log: Log: Message: Add                            
BAL_LOG_MSG_ADD_FREE_TEXT      Application Log: Log: Message: Insert as free text            
BAL_LOG_MSG_CHANGE             Application Log: Log: Message: Change                         
BAL_LOG_MSG_CUMULATE           Application Log: Log: Message: Add Cumulatively               
BAL_LOG_MSG_DELETE             Application Log: Log: Message: Delete                         
BAL_LOG_MSG_DELETE_ALL         Application Log: Log: Message: Delete All Messages            
BAL_LOG_MSG_READ               Application Log: Log: Message: Read data and texts            
BAL_LOG_REFRESH                Application Log: Log: Delete log from memory                                                                               
SBAL_DB                        Application Log: Database Interface                         
BAL_ARCHIVE_LOAD               Application Log: Archive: Load Logs                         
BAL_ARCHIVE_SEARCH                                                                         
BAL_DB_DELETE                  Application Log: Database: Delete Logs from Database        
BAL_DB_LOAD                    Application Log: Database: Load Logs                        
BAL_DB_SAVE                    Application Log: Database: Save logs                        
BAL_DB_SEARCH                  Application Log: Database: Find Logs         
Regards
Anji

Similar Messages

  • How to create application log in SAP

    According to my reqirement,I need to display messages in the application log whenever some updation is done.
    How to do create application log and display messages in the application log.

    Hello Smriti
    If you have interface IF_RECA_MESSAGE_LIST available on your system then I highly recommend to use as message collector.
    When you create an instance of the interface (CF_RECA_MESSAGE_LIST=>CREATE) you can provide an application log object.
    The collected messages can easily be saved as log.
    For an example have a look at my Wiki posting [Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
    Regards
      Uwe

  • What are F. M's used for creating application log in application server

    Hello
    plz suggest which F.M's i have to use to create application log
    Regards
    Kanth

    Hi Kanth,
    You can go through the following Function Modules :
    Application Log Maintenance
    (i)APPL_LOG_DELETE With this function module you delete logs in the database according to specified selection conditions
    (ii)APPL_LOG_DISPLAY With this function module you can analyze logs in the database.
    (iii)APPL_LOG_DISPLAY_INTERN With this function module you can analyze logs in local memory, e.g. when you have only collected log records at runtime and do not want to write to the database.
    (iv)APPL_LOG_INIT This function module checks whether the specified object or sub-object exists and deletes all existing associated data in local memory.
    (v)APPL_LOG_READ_DB With this function module you read the log data in the database for an object or sub-object according to specified selection conditions.
    (vi)APPL_LOG_READ_INTERN With this function module you read all log data whose log class has at least the specified value, from local memory, for the specified object or sub-object.
    (vii)APPL_LOG_SET_OBJECT With this function module, you create a new object or sub-object for writing in local memory. With a flag you can control whether the
    (viii)APPL_LOG_WRITE_u2026 messages are written in local memory or are output on the screen.
    (ix)APPL_LOG_WRITE_DB With this function module you write all data for the specified object or sub-object in local memory to the database. If the log for the object or sub-object in question is new, the log number is returned to the calling program.
    (x)APPL_LOG_WRITE_HEADER With this function module, you write the log header data in local memory.
    (xi)APPL_LOG_WRITE_LOG_PARAMETERS With this function module, you write the name of the log parameters and the associated values for the specified object or sub-object in local memory. If this function module is called repeatedly for the same object or sub-object, the existing parameters are updated accordingly. If you do not specify an object or sub-object with the call, the most recently used is assumed.
    (xii)APPL_LOG_WRITE_MESSAGE_PARAMS With this function module you write a single message, with parameters, in local memory. Otherwise the function module works like
    (xiv)APPL_LOG_WRITE_SINGLE_MESSAGE.
    (xv)APPL_LOG_WRITE_MESSAGES With this function module you write one or more messages, without parameters, in local memory.
    (xvi)APPL_LOG_WRITE_SINGLE_MESSAGE With this function module you write a single message, without parameters, in local memory. If no header entry has yet been written for the object or sub-object, it is created. If you do not specify an object or sub-object with the call, the most recently used is assumed.
    Regards,
    Swapna.

  • How to create Application Log

    Hi,
    I have written a report which gathers errors in a test data container.
    These errors are stored in a internal table of type stringtab.
    I want to create a Application Log of these errors so that the user can
    view it at a later time.
    Are there predefined function modules available in ABAP for creating and viewing log?
    Kindly provide me the details.
    Regards,
    Bikash.

    Hi Monika,
    Is it necessary to  add messages from message class in
    BAL_LOG_MSG_ADD --> Put message in log.
    Is there any way where a string can also be added and viewed from a application
    log?
    For my use case i actually have a stringtab for which i want to have a log.
    Regards,
    Bikash.

  • Application Log. Report

    Hi All,
    My task is. Develop a report, in background  it has to create a log with all details in report.
    ie online  display in screen, background put it in log file.
    How to create application log  with report informationt.
    Thanks,
    Balamurugan.R

    please follow the below stpes.
    you can create object and subobject in SLGO tcode
    you can able to see the log in SLG1 tcode 
    DATA: lt_obj_long_no TYPE STANDARD TABLE OF balnri,
                 lt_messages TYPE STANDARD TABLE OF balmi,
                 lwa_message TYPE balmi.
           REFRESH lt_messages.
           lwa_message-msgty  = 'E'.
           lwa_message-msgid  = 'YCA_DATA_MIGRATION'.
           lwa_message-msgno  = '110'.
           lwa_message-msgv1   = wa_as91-aibn1.
           lwa_message-msgv2   = wa_as91-aibn2.
           APPEND lwa_message TO lt_messages.
           CLEAR lwa_message.
           CALL FUNCTION 'APPL_LOG_WRITE_MESSAGES'
             EXPORTING
               object              = 'YFICC006'
               subobject           = 'YFICC006'
               update_or_insert    = 'I'
             TABLES
               messages            = lt_messages
             EXCEPTIONS
               object_not_found    = 1
               subobject_not_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.
           CALL FUNCTION 'APPL_LOG_WRITE_DB'
             EXPORTING
               object                = 'YFICC006'
               subobject             = 'YFICC006'
             TABLES
               object_with_lognumber = lt_obj_long_no
             EXCEPTIONS
               object_not_found      = 1
               subobject_not_found   = 2
               internal_error        = 3
               OTHERS                = 4.
           IF sy-subrc <> 0.
             MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
           ENDIF.

  • RE:application log

    Hi all,
    I was trying to create application log in ERP using the messages raised in SRM(messages from std SRM bapi) .Since the message class does not  exsits in ERP i am not getting correct messages in ERP(SLg1).And its not possible to create all the message class in SRM to ERP.Is there any other way to do this .IF yes please explain with a sample code or something..
    Rehards,
    Alex.

    u can try FM
    BAL_LOG_CREATE-->see its documentation.
    or
    sample program
    SBAL_DEMO_01
    regards
    Prabhu

  • Application Log - error in header

    Hi,
    I have created application log using BAL* FM's.
    Now in header part i am filing below columns:
    as_log-context-tabname = 'YCONTEXT'.
    as_log-context-value = ls_extnumber.
    When log is displayed, in header i am getting information:
    Interface type(custom field), Numb, date, Time, User, Tran, Program,Mode, Log number.
    Below Inrterface type there is a folder 'Inbound'(again name is as per requiernment).  Now this folder is a tree like structure.
    When this tree is expanded, fields Bumb, date,time,User.. gets there values.
    Now the problem is:
    below folder 'Inbound', there is a symbol indicating error messages. I want with this error message, some text should also come.
    How to do this?
    If someone can provide his/her email id, i can send the screen shots, which will be easier to understand.
    regards,
    Ashish

    Hi Sai,
    Is there any recent Kernal upgrade has happened in your project? the issue is happening in the VMC call as per the dump detail. I would suggest just ask the basis guys to check the VMC server wether it is up or down and also in case of any upgrade happen basis need to restart the VMC server may be they have forgotten to do so.please check the same and revert with your finding.
    Thanks
    Prem

  • Doubt in creating program to display application logs

    Hi,
    I have doubt in creating a program to display application logs.
    The standard transaction code SLG1 has been used to display Application logs till now by the user.
    They came up with the new requirement on this.
    <u>The requirements were:</u>
    1)New custom program shoud be created like SLG1 with limited selection fields( data from, date to, Program name and User)
    2) Detail list should be displyed immediately when this program is executed because SLG1 gives Basic list,Detailed list which is getting displayed when 'Detail view' is selected in the first list.
    I have created one program with limited selection fields as per the requirement using the below function modules .
    BAL_FILTER_CREATE
    BAL_DB_SEARCH
    BAL_DB_LOAD
    and BAL_DSP_LOG_DISPLAY
    <u>Issue :</u> still I am getting the firt list.
    both Basic and Detailled lists are getting triggered at the FM BAL_DSP_LOG_DISPLAY.
    Is it only the way to copy and modify this FM.
    Could you please suggest me?
    Thans in advace,
    babu.
    Message was edited by:
            babu v
    Message was edited by:
            babu v

    Hello All,
    Thanks for your valuable suggitions.
    I have seen most of the demo programs.
    I found one fm'BAL_DSP_PROFILE_NO_TREE_GET' which avoids the tree list which is getting listed above the profile list.
    I have been searching alot to omit the Profile list. I searched alot to find any function modules realted to that.
    The requirement was only the Detail list should only be listed.
    Could you please suggest me to avopid that profile list also?
    Thanks in advance,
    babu
    Message was edited by:
            babu v

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • Create Application specific Log under NetWeaver 7.1 SP3

    Hi
    I want to create application specific Log and read the following article https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f361cbea-0c01-0010-a3a0-8948bebb0a23
    But I use the NetWeaver 7.1 SP3 and I cannot find the Log-configuration.xml. Please tell me how i can create the application specific log under NetWeaver 7.1 SP3?
    And I find out the documents are not updated for Netweaver 7.1 SP3... It costs more time for me to find out a solution.
    Thanks in advance
    Kind Regards!
    Ping

    Hallo
    I think I find the solution
    start <SAP_install_dir>/<system_name>/<instance_name>/j2ee/configtool  and use the log configuration to change the settings..
    Please read http://help.sap.com/saphelp_nwce10/helpdata/en/45/6c9bfc02d81c90e10000000a11466f/frameset.htm
    Kind regards!
    Ping

  • Create Object and Subject for Application Log

    Hello Experts,
    Could anyone tell me how to create the Z Object and subobject for the Application Log.
    ie) <b>BALOBJ_D & BALSUBOBJ</b>
    Could you please tell me the Tcode for that.
    Since I have to save the application in the new object so that it can be displayed using this Key.
    Thanks & Regards,
    Vasanth

    Hello Vasanth
    The transaction is SLG0 (Object Maintenance).
    Regards
       Uwe

  • How to create performance counter based on no. of errors generated in application log

    i have written custom events into application log and am able to see those events as alerts in the scom console and now i want to see how many event errors are generated for every 15mins.(interval)performance counter with same event source or id. how can
    i get started with this 

    Hi,
    Please try to create event monitor Triggered on Count:
    Trigger on count consolidation of events lets a monitor require multiple occurrences of the same event in a specified time window before it changes the health state to an error. The time window can be rotating time duration of specified length or
    a specific window based on day of the week.
    Trigger on count consolidation resembles trigger on timer consolidation except that multiple occurrences of the event are required instead of just one. When the time window is reached, the event count is returned to zero, and the specific number of events
    must detected before the time window expires again for the health state to be changed.
    More details:
    Event Monitors
    http://technet.microsoft.com/en-us/library/ff629447.aspx
    Regards, Yan Li

  • Create Application specific Log under EP6 SP16

    Hello All
    I have a requirement that i have to configure a customized application log file for a flex application deployed at portal via Visual admin..
    How to go for it...?
    Can ne one tell me or guide me via a step wise procedure related to version of my portal.....
    Help will be appreciated...
    Thanks....
    Edited by: Chetna  Verma on Sep 30, 2008 11:14 AM

    m closing this thread..
    coz no replies...

  • Had this error msg in my application log:

    Had this error msg in my application log:
    [21/Feb/2002 10:16:20:7] info: REQ-012: thread add
    [21/Feb/2002 10:16:20:7] info: REQ-012: thread add
    [21/Feb/2002 10:16:20:7] info: ENGINE-ready: ready: 10820
    BASEURL: https://ssunp03.company.com:8081
    strURL: https://ssunp03.company.com:8081/cgi-bin/gx.cgi/AppLogic+EventServerManager
    EventServerHttpInvocation > java.net.MalformedURLException: unknown protocol: https
    **Out of memory, exiting**
    ld.so.1: /pimcreg5/imc/nas/40sp3/nas/usr/java/bin/sparc/native_threads/jre: fatal: /pimcreg5/imc/nas/40sp3/nas/us
    r/java/lib/sparc/native_threads/libjava.so: mprotect failed: Resource temporarily unavailable
    Killed
    Connected to LDAP server on ssunp03.company.com port 1390
    [21/Feb/2002 02:42:49:1] info: ENGINE-class_loader_created: New class loader com.kivasoft.engine.EngineClassLoade
    rNonVersionable@1c14d67f has just been created
    Can anyone share with me his experience about ld.so.1?? What is it and why does it cause my apps server to reboot?

    It looks like you might simply have run out of memory. It just looks like the JRE tried to adjust its memory map and run out space. When mprotect fails the problem probably isn't with the .so itself.
    What are the memory characteristics of your machine? Including the heap and stack space that you allocate for your JVM, as well as the actual physical and swap space available on the server.

  • How to write to application log at BBP_CREATE_BE_PO_NEW

    Dear all,
    I am running in a strange problem. I want to log to application log (SLG1) in BADI BBP_CREATE_BE_PO_NEW. As soon as I call a function from there I get an error at the shopping cart position. Changing values in the given data does work without any problems. In EBP 3.5 we used the BADI BBP_CREATE_PO_BACK and this worked with logging without any problems.
    Thanks for support.
    Regards
    Roman

    Hello , there is an example of application logging usage in report SBAL_DEMO_01.
    You need an application log instance to be created before you can add messages that will be displayed using tx SLG1. Maybe its because you dont have a logging object instance in your badi.
    Hope it helps.
    Regards, Luciano.

Maybe you are looking for

  • Problem with 3rd Gen Ipod Nano being recognized by Itunes

    I have a third generation Ipod Nano that was only used once. It takes a full charge and appears to be working fine. Problem is when I plug it into a computer it is not recognized by Itunes. The computer recognizes it but not Itunes. I have tried it o

  • How can I delete the Auto-Fill Cache For My Email in Snow Leopard?

    When I start to type an email in Snow Leopards Mail program I am getting the Auto-Fill selection but it contains email addresses that are no longer valid and have been deleted from my contacts.  It must be getting the information from a cache file is

  • Restrictive connection to SAP system from J2EE

    Hi, I am using NW04s SP15. I have a webservice defined in stateless session bean. In my web service I am connecting to SAP system and doing some processing. If there are too many invocations of this webservice all DIA workprocesses of backend system

  • Urgent Spry help!

    I work on a secondary school website and i am having trouble with the spry menu bar. I have created a horizontal menu bar, and i was wondering if anyone could help me with 2 problems i am having? 1. Can you change the speed in which the sub menus are

  • M650 Upgrade to 6.3.5-003

    After upgrading our M650 to 6.3.5-003 the Feature key for Centralized Spam Quarantine was only valid in 14 days. Why that? Can anyone give me a hint. Best regards Thorsten Laursen Region Midtjylland Denmark