Application log ( Transaction slg1)

Hi,
This is suresh.
I got a requirement in that i need to send input values to application log. Am able to send four parameters using function module bal_log_msg_add(msgv1,msgv2,..) successfully. But in my requirement i need to send five parameters to application log. How can i do this. For which prameter i need to send using function module bal_log_msg_add. please help me in this.

Hi Suresh,
See the Function Module Documentation, It will help you.
Sets of logs can be created with the following methods.
Function modules: [ Some Additional Function Modules ] :
BAL_LOG_CREATE Create log with header data
BAL_LOG_MSG_ADD Log a message
BAL_LOG_MSG_CUMULATE Add a message cumulatively to the log
BAL_LOG_MSG_REPLACE Replace the last message
BAL_GLB_MSG_CURRENT_HANDLE_GET Get the current message handle
BAL_LOG_MSG_DELETE Delete message
BAL_LOG_MSG_CHANGE Change message
BAL_GLB_MSG_DEFAULTS_GET Get message data defaults
BAL_GLB_MSG_DEFAULTS_SET Set message data defaults
Types :
BAL_S_MDEF Message defaults
Example program :
Program SBAL_DEMO_02 simulates a flight check and outputs a check result log.
==>SBAL_DEMO_02 ==>SBAL_DEMO_02 coding
Add message to log :
This is the 'classical' way of logging messages with BAL_LOG_MSG_ADD.
==>Note
The log handle is optional for function modules such as BAL_LOG_MSG_ADD, BAL_LOG_MSG_CUMULATE, BAL_LOG_MSG_ADD_FREE_TEXT, etc.
If it is not specified, the default log, which can be set, with other default data, with BAL_GLB_MSG_DEFAULTS_SET is used. If no default log is defined, it is set automatically by BAL_LOG_CREATE (see here).
Add message cumulatively :
Functionality :
A message is added to the log with ( log handle) I_LOG_HANDLE cumulatively.
The message data is in the IMPORTING parameter I_S_MSG (structure BAL_S_MSG).
A message handle E_S_MSG_HANDLE, which uniquely identifies this message, is returned.
'Cumulative'
Some messages are sent several times by a program, without providing new information each time. Such messages can be cumulated with BAL_LOG_MSG_CUMULATE to save memory. When the same message is repeated, no new message is added, the counter MSG_COUNT for the old message is incremented.
You can specify when messages are the same in the function module interface. The T100 data must be identical, and you can specify that other data must also be the same:
I_COMPARE_ATTRIBUTES = 'X'
Message attributes (problem class PROBCLASS, level of detail DETLEVEL and sort field ALSORT) must be identical
I_COMPARE_CONTEXT  = 'X'
The context must be the same
I_COMPARE_PARAMETERS  = 'X'
The message parameters must be the same.
To find identical messages quickly for cumulation, the Application Log constructs a small index table containing as unambiguous a signature of a message as possible, at runtime. This index is only constructed if cumulation is used.
Thanks.

Similar Messages

  • How to use Application log (slg0 & slg1)

    Hi all,
    Can u please give me some hints to utilize Application log?
    Hope you will help me.
    Thanq in advance,
    Bye.

    hi John,
       Check these FM's out
    BAL_GLB_SEARCH_LOG            
    BAL_LOG_CREATE                
    BAL_LOG_EXC_ADD               
    BAL_LOG_HDR_CHANGE            
    BAL_LOG_HDR_READ              
    BAL_LOG_MSG_ADD               
    BAL_LOG_MSG_ADD_FREE_TEXT     
    BAL_LOG_MSG_CHANGE            
    BAL_LOG_MSG_CUMULATE          
    BAL_LOG_MSG_DELETE            
    BAL_LOG_MSG_DELETE_ALL        
    BAL_LOG_MSG_READ              
    BAL_LOG_REFRESH               
    SBAL_DETAIL                    Application Log: Display: Detail Screens                              
    BAL_DSP_LOG_PARAMETERS         Application Log: Display: Display log header parameter set            
    BAL_DSP_LOG_TECHNICAL_DATA     Application Log: Display: Display log header technical data                                                                               
    SBAL_DISPLAY                   Application Log: Display Log                                          
    BAL_DSP_LOG_DISPLAY            Application Log: Fullscreen log output                                
    BAL_DSP_LOG_PRINT              Application Log: Print log                                                                               
    SBAL_PROFILE                   Application Log: Display Profile                                      
    BAL_DSP_PROFILE_SINGLE_LOG_GET Application Log: Display profile: Standard profile (SLG1) for one log                                                                               
    SBAL_SERVICE                   Application Log: Service Functions                                    
    BAL_LOG_HDR_CHECK              Application Log: Log: Header data: Check                              
    BAL_LOG_MSG_CHECK              Application Log: Log: Message: Check                                                                               
    SBAL_TOOLBOX                   Application Log: Toolbox                                              
    BAL_DB_LOGNUMBER_GET           Application Log: Database: Get internal log number from number range  
    BAL_LOG_DELETE                 Application Log: Log: Delete log (from DB also at save)               
    BAL_LOG_EXIST                  Application Log: Log: Check existence (in memory)                     
    BAL_LOG_MSG_EXIST              Application Log: Log: Message: Check existence (in memory)            
    BAL_LOG_MSG_REPLACE            Application Log: Log: Message: Replace last                           
    BAL_STATISTICS_LOG_GET                                                                               
    BAL_STATISTICS_LOG_SET                                                                               
    Regards,
    Santosh
    Note: Reward Points if helpful

  • Application logging in SLG1..

    Hello Gurus,
    I want to know how can I insert message to application log through ABAP. In one of the programs following condition occurs. When this happens , I want the error message to be written to error log so that later it can be accessed by SLG1 T-code.
    IF SY-SUBRC <> 0.
            lv_error_msg = 'User Workitem creation failed'.
      ENDIF.
    Please help.
    Regards,
    Tushar.

    Please refer to the below thread and look for Sandra Rossi's answer
    Re: How to create info. bar/window which displays success and error messages

  • Application log

    Hello friends,
    I have a query regarding the application log ( Transaction SLG0, SLG1 etc ). I would like to be able to write to the application log and at the same time be able to read and siplay the application log. Want to know the function modules for doing the same. It would be nice if the same could be shown with some example.
    Useful answers will be rewarded.
    Cheers,
    Jaydeep.

    Hello,
    Take a look at the FMs in group SLG0:
    APPL_LOG_INIT
    APPL_LOG_INIT_MESSAGES
    APPL_LOG_READ_INTERN
    APPL_LOG_READ_INTERN_LONGTEXT
    APPL_LOG_SET_OBJECT
    APPL_LOG_WRITE_DB
    APPL_LOG_WRITE_HEADER
    APPL_LOG_WRITE_LOG_PARAMETERS
    APPL_LOG_WRITE_MESSAGES
    APPL_LOG_WRITE_MESSAGE_PARAMS
    APPL_LOG_WRITE_SINGLE_MESSAGE
    Regards,
    John.

  • Configure CCMS alert to Analyze Application log

    Hi ,
    Please provide the prodecure to configure CCMS alert for Applications logs from SLG1 tcode.
    If any error log(prefarably Important logs ) is created then a alert should be triggered .
    Background : We are using Solution Manager 7.0 as Central monitor system for Satellite systems of verions ECC6.0.
    Thanks & Regards
    ganesh

    this answer is no longer needed

  • Transaction for application log

    Using IDOCS.  One has errored but cannot get into application log as pop up not appearing (memory issue or something) for me to double click the log number and go into the application log to view it.  Does anyone know the transaction or menu path to access the application log direct so I can see what the error is about?
    Many thanks
    Larissa

    Hi,
    USE SLG1 Transaction.
    Thanks,
    Naga

  • Calling SLG1 for Application log creation

    Hi All,
    I have a requirement for writing logs in SLG1 transaction. I embedded the logic for creating log in a method of a class. The method is getting called in CRM inbound proxy where I would need to make mutiple calls to this log. If I use a call more than one time, I am getting only the log for the first call. The second and the rest of the calls are not throwing any message in SLG1 but shown as greyed out. Could we not call the log SLG1 more than one time in the same application?
    Any ideas would be appreciated.
    Thanks
    Anand

    Hi,
    did you have a look at my weblog:
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Error in application log for transaction FPSA

    Dear Colleagues,
    The application log for this transaction returns the following message,
    'Run SELA 15.01.2008 V00001 is not ready
    Message no. >REP 014
    Diagnosis
    The run was probably terminated as a result of an error
    System Response
    The interval was not processed.'
    How to view the error which resulted in termination of the run.
    Many thanks for your attention. Hoping an early reply to this problem
    Venkat
    +49 175 8916067

    Hi,
    If agent is installed on the VMM server, it will collect the information and send it to SCOM server. The event indicates the SCOM agent tried to access the registry key that was included in the User Profile but failed.
    Please specify a local account or domain account as the SCOM action account for a test.
    Niki Han
    TechNet Community Support

  • How to determine SLG1 Application Log Size

    Hi, Can anyone tell me how we might be able to determine the size of our SLG1 Application Logs on our BW System?
    We want to be sure they are not taking up too much space.  If they are we'll purge with SLG2, and if not then we will keep them around.
    Thanks!

    Hello,
    system does writes the application log in to the database.
    SAP_COLLECTOR_FOR_NONE_R3_STAT is designed to collect non ABAP Statistic Data in/for a central repository.
    look service.sap.com/notes and search for SAP_COLLECTOR_FOR_NONE_R3_STAT
    Hope it will hep you.
    Regards,

  • Table that stores the application logs messages for transaction CRMD_ORDER

    Hi Guru's,
    I would like to know which CRM table that is used to store application logs (consist of error / warning / information messages) in transaction CRMD_ORDER? I would like to retrieve the text messages of the application log.
    Thanks.

    Hi there,
    The logs are on tables BALHDR (header) and BALDAT (detail).
    In BALHDR you can fill OBJECT with 'CRM_DOCUMENT' and EXTNUMBER with the document GUID (you can obtain it in CRMD_ORDERADM_H table).
    The BALDAT is a cluster table, so the information is a little 'encoded' there for direct consulting without abap code.
    Alternatively, you can use FM APPL_LOG_READ_DB to read the messages that are contained in any CRM document.
    Kind regards,

  • Function Module for Application Log(SLG1)

    HI SapAll.
    may i know what is the Function Module  to read the data for Applicaiton Log (tcode-SLG1).
    waiitng for your response.
    regards.
    Varma

    Hi Danish.
    running the program 'SBAL_DISPLAY' is similar to running the FM'APPL_LOG_DISPLAY' .However when i run any one of these i have to manually press the 'Execute button' to display the log(there is no option to save the log into spool or to get into some Internal table)
    i have tried running the program 'SBAL_DISPLAY'  by putting the Break point at the line (  CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
          EXPORTING
            i_t_log_handle      = l_t_log_handle)
    ,while debugging the values are as below:
    L_T_LOG_HANDLE : Sorted Table[1x1(44)]
    1      ZoDNJw4vg3BX0000h1GOdm.
    could you please help me in getting the log into spool wihtout having to press the execute button and without having to look at the Log.
    regards.
    Varma

  • 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

  • Error/Application Logs

    I have a scenario in which I have to display error logs when exception occurs.
    There is a transaction SLG1 where you can see all the application log for a particular process. Has anyone worked on calling these types of transactions to display error or application logs. If so, please throw some light on this.
    Thanks a lot
    Deno

    Hi Deno,
    If you want to see the error message in SLG1. Follow the following steps:
    1.  Use the FM BAL_LOG_CREATE to create the application log.
    2.  Use the FM BAL_LOG_MSG_ADD to add the message to the application log.
    3. Save the application log using FM BAL_DB_SAVE.
    Now you can see your error message in the SLG1 transaction.
    <b>Reward points if it helps.</b>

  • CIF queues - Lock not possible error in application log

    hi,
    Below is the application error log from SLG1
    Looks when R3 is sent CIF queue, could not be processed at APO, due to lock not possible. It looks, the object is already locked.
    This happens only certain hours only. We searched in batch jobs etc across landscape, but no luck.
    We are currently checking, if this could be due to some issues with LiveCache processing.
    Any input would be helpful.
    SLG1 - Application log errror:
    Source system: sapapp80 user: R3CIFRFC transaction: function module: /SAPAPO/CIF_CLAF_INB
    Access block: data from system CLAF updated again
    Lock not possible for charc at FM claf_inb:000000000100020361G21C02244Z
    Object is locked at present
    Thanks,
    RajkS

    Hi Raj,
    Pls check the table CIF_IMOD details in R3 System,if 2 IM running with the same object we use to get these kind of
    locking issue.
    also check the workprocesses details during those time. whether you have enough space to process the reqd the
    t-data.
    Regards
    DPS

  • Messages from IDoc processing can be found in application log

    We are using the IDOC_INPUT_INVOIC_MRM Function Module to post Inbound Vendor EDI Invoices. During testing, we sometimes see the error "Messages from IDoc processing can be found in application log". We then have to check transaction SLG1 to ascertain the 'real' issue, e.g. "No GR documents found". In a Production environment however, this will be very inconvenient. Our business users process their own iDoc errors according to the iDoc Status, so to have to call up another transaction, and select the correct Application Log to find the true error, is not a process I would feel comfortable with for our users.
    My question is, can we configure/determine which messages are passed to the iDoc Status, or redirect Application Log messages ? Might a Z version of FM IDOC_INPUT_INVOIC_MRM be the way forward ?
    Many thanks,
    Paul.

    Hi,
       Just monitor your error idocs in WE20 transaction. Give idoc number here then execute, you can see the all three records(control, data, status). Click on status record node then double click
    on status number(e.g 51), it will take you to another screen there you click on "application log" button on application toolbar. This is the standard way finding the application log of an idoc, even i am finding the application log on production server like this.
    Thanks,
    Asit Purbey.

Maybe you are looking for

  • How to find the t-code for table (SM30 or SE16)

    Once I create a t-code though SE93. And I choose type: Transaction with parameters.  Then the Transaction is SM30,  But I forget the t-code, how do I find this t-code base on the table name. ep:

  • Mac driver for OS 10.6.8

    I just purchased HP Envy 7640 printer, and there are no drivers listed for MAC OS 10.6.8.I can  not upgrade the OS, as sever critical programs will not run on Mac OS 10.10. what recourse do I have?

  • J_security_check question

    Hello, I am using form based authentication with j_security_check and everything works fine as expected. But, in my web application i have different different roles. How do i specify the success url for these different roles? I have only one login pa

  • Can't make or receive calls, but can send SMS messages?

    Heyyy so a friend of mine, I was on the phone with her, and she dropped it. It's a 3G Curve on Verizon I believe. And now when I call her it gives me a fast busy tone. She can text me, but she can't call me. She's done a battery pull, turned on and o

  • PNPCE with Time Management   Urgent!!!

    Hi,    I got a Project using PNPCE LDB on Time Management.They  didn't mention Unicode any where in the Specs.   But, when I was trying to do a simple test program with PNPCE LDB mentioned in attributes and I didn't even check Unicode but it is givin