WDA - Contrast Using Message Manager & Application Logs

Hi there, I'm trying to figure out when it is appropriate to use each.  Thus far, it seems that the conclusion that I am coming upon is that the message manager is used for issuing messages at an application user, whereas the application logs should be used to address issues meant for an administrator of the application - basically someone who may be more technical.  How is this assumption?  Can someone provide me with more inside.  I'd love to understand some real life usages.   I've read documentation after documentation, but in short, it would be great to leverage off of some who have actually used this in practice.
Thanks in advance.

Hi Michael
> Thus far, it seems that the
> conclusion that I am coming upon is that the message
> manager is used for issuing messages at an
> application user, whereas the application logs should
> be used to address issues meant for an administrator
> of the application - basically someone who may be
> more technical.
As I can see from my point of view the main area of using IWDMessageManager is to indicate to user what is wrong with data he or she is trying to change over UI. For example, to show message "The field XXX must not be empty" or to make another kind of validation of input data on UI level.
The main purpose of logging is to trace possible Java exceptions, to trace debugging information (with severity DEBUG), to log some critical errors for technical staff or administrators. The information from the logs can be unhelpful for end-user.
BR
Sergei

Similar Messages

  • 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.

  • Warning message into Application log of Service request

    Hi Experts,
    I have a requirement where I am using Event handlers(CRMV_EVENT) to redetermine partners of a service request whenever certain values are changed in the transaction CRMD_ORDER.
    Partners will be retrieved from a custom table.
    In any circumstances, if the partners cannot be determined then we need to push a WARNING message stating that "Partners can not be determined, pls maintain the values in the custom table'.
    For this purpose I am using the function module CRM_MESSAGE_COLLECT with the following parameters, but still I am not able to see the same into the Application log of the Service request that is going to be created.
    CALL FUNCTION 'CRM_MESSAGE_COLLECT'
      EXPORTING
        iv_caller_name         = 'ORDERADM_H'
        IV_REF_OBJECT          = iv_header_guid
        IV_REF_KIND            = 'A'
       IV_LOGICAL_KEY         = '0001'
        IV_MSGNO               = '001'
        IV_MSGID               = 'ZSP'
        IV_MSGTY               = 'W'
      IV_MSGV1               = SY-MSGV1
      IV_MSGV2               = SY-MSGV2
      IV_MSGV3               = SY-MSGV3
      IV_MSGV4               = SY-MSGV4
        IV_MSGLEVEL            = '1'
      IV_FIELDNAME           =
      IV_ACTION              =
        IV_LOG_HANDLE          = lv_log_handle
        IV_CUMULATE            = 'X'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Do I missed in passing of any additional parameters?
    Can any one of you have encountered the same problem and solved this, pls through some light on me too(if possible with block of code).
    Thanks in advance.

    Hi,
    Here is the block of code that I used to push a message in to Application log.
    Push your message into a variable called dummy and then call the below mentioned function module.
    DATA:        lv_dummy(254)    TYPE  c,            "#EC NEEDED
              MESSAGE w052(sppf_media) WITH text-001
                                            text-002
                                        INTO lv_dummy.
              CALL FUNCTION 'CRM_MESSAGE_COLLECT'
                EXPORTING
                  iv_caller_name = 'ORDERADM_H'
                  iv_ref_object  = iv_header_guid
                  iv_ref_kind    = lc_ref_kind_a
                  iv_msgno       = sy-msgno
                  iv_msgid       = sy-msgid
                  iv_msgty       = sy-msgty
                  iv_cumulate    = lc_x
                IMPORTING
                  ev_msgty       = lv_msgtyp
                  es_msg_handle  = gv_msghandle
                EXCEPTIONS
                  not_found      = 1
                  appl_log_error = 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.
            ENDIF.
    Hope this helps to resolve your issue.
    Regards,
    Usha.

  • Email portlet 9.0.4 shows error message in application.log

    Hi,
    I deployed the email portlet 9.0.4 on 10g portal. It works for some time but since an unknown point in time it shows the following in the portlet area: "Failed to get the ImapClient instance, either you are not authenticated to use the service or session is lost. Logout from portal and login again. ".
    And in the application.log I found the following:
    04/01/05 15:51:39 email: [instance=25024_EMAIL_PORTLET_71546261, id=94025627009,3] ERROR: oracle.portal.integration.email.imap.ImapException: Failed to get the ImapClient instance, either you are not authenticated to use the service or session is lost. Logout from portal and login again.
    oracle.portal.integration.email.imap.ImapException: Failed to get the ImapClient instance, either you are not authenticated to use the service or session is lost. Logout from portal and login again.
    at oracle.portal.integration.email.impl.ImapClient.getInstance(Unknown Source)
    at htdocs.message__header._jspService(_message__header.java:65)
    at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:251)
    at oracle.portal.provider.v2.render.http.AbstractResourceRenderer.renderBody(Unknown Source)
    at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
    at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    04/01/05 15:51:46 email: [instance=(null), id=(null)] ERROR: Request has exceeded its warning timeout Time[elapsed=1780171ms. Warning timeout=20000ms.] Request[id=(null) providerId=71546261 portletId=(null) portletName=(null) portletInstance=(null) user=PORTAL] Thread[ name=AJPRequestHandler-ApplicationServerThread-30 priority=5 alive=true interrupted=false groupName=main]
    04/01/05 15:51:48 email: [instance=(null), id=(null)] ERROR: Request has exceeded its warning timeout Time[elapsed=180699ms. Warning timeout=20000ms.] Request[id=(null) providerId=71546261 portletId=(null) portletName=(null) portletInstance=(null) user=PORTAL] Thread[ name=AJPRequestHandler-ApplicationServerThread-35 priority=5 alive=true interrupted=false groupName=main]
    04/01/05 15:51:50 email: [instance=(null), id=(null)] ERROR: Request has exceeded its warning timeout Time[elapsed=420954ms. Warning timeout=20000ms.] Request[id=(null) providerId=71546261 portletId=(null) portletName=(null) portletInstance=(null) user=PORTAL] Thread[ name=AJPRequestHandler-ApplicationServerThread-41 priority=5 alive=true interrupted=false groupName=main]
    04/01/05 15:51:52 email: [instance=(null), id=(null)] ERROR: Request has exceeded its warning timeout Time[elapsed=100902ms. Warning timeout=20000ms.] Request[id=(null) providerId=71546261 portletId=(null) portletName=(null) portletInstance=(null) user=PORTAL] Thread[ name=AJPRequestHandler-ApplicationServerThread-48 priority=5 alive=true interrupted=false groupName=main]
    The message "ERROR: Request has exceeded its warning timeout" repeats continually and frequently. The problem stops occuring after I restart the OC4J, but it occurs again after some time. Anybody encounter the same and has solution to it?
    Thanks.

    I found that Email portlet create a new SMTP connection to the SMTP server every time initSession is called(constructor of class Smtp). These increasing number of SMTP connection finally hit the limit of the SMTP server, leading to incomplete execution of initSession, which cause the problem.
    (call path: MailProviderInstance.initSession() -> MailAuthenticationModule.authenticate() -> Smtp())
    One thing to notice is that, when I test it no mail is to be sent. There should not be any open SMTP connection. Thus I wonder if it is a mistake in the program code that makes these unnecesssary SMTP connections.
    If so, would there be a new release of email portlet available?

  • How to Write Error messages to application.log file in OAS 10g.

    Hi All i am in urgent need of writing log messages to Oracle Application Server10g application.log file.
    Using JDeveloper 10.1.3.4.0.4270.
    Thanks & Regards,
    Renuka
    Edited by: Renuka on Jan 18, 2013 8:00 AM

    Zariel wrote:Boot from where? If you want the entire boot process you can use debug parameter. BUT I dont know what you will get becauseyour harddrive gets mounted during init, and during init it dumps dmesg to a log file, i guess dmesg gets its logs from minilogd which also gets started during init. The only way of doing it would be to get the kernel to log its output to ram then flush it to disk at the relevant time. Ive no idea if you can do this or not.
    I just boot normally from my hard disk, but all the messages between "INIT version 2.86 booting" and the output from /etc/issue (when login is started), is gone. It's not in /var/log/messages nor do I get it via dmsg.
    All the kernel messages BEFORE "INIT version 2.86 booting" are logged okay.

  • To add message in Application Log in Me2xn

    Hello Experts,
    This is my requirement.
    During creation of PO item it is required to put a check if the Vendor is one among the Vendors in the table: ZTABLE.
         If yes, it means that the PO is an internal order. Then you should check if the flag: GR Non-valuated is set for the newly added items.
         If not, send out an error into the application log when the document is saved, so that the user is notified and it has to be checked to make the document complete for further processing.
    I have implemented is check in the exit <b>EXIT_SAPMM06E_012</b>. But I don't know how to update the application log.
    Could you please send some sample code to update the application log saying that <b>the PO is inetrnal Order</b>
    Thanks in Advance.
    Regards,
    Vasanth

    Hi Vasanth,
    in this case u have to USE BADI only ,
    path-.Se18->f4--.SAP Application and check under ME package.
    Regards
    Prabhu

  • Add error message to application log from BADI

    Hi All,
    I am working on a BADI......
    As the txn is already adding its messges in log thru BAL_LOG_CREATE, BAL_LOG_MSG_ADD...etc......
    after that my badi comes into picture.....and it displays the message in POPUP
    Now i want to add my error message form BADI to this already created log .....
    Kindly suggest...
    Note..I tried to use BAL_LOG_MSG_ADD it got add but the display is in full screen...not in POPUP....
    CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
      EXCEPTIONS
        PROFILE_INCONSISTENT = 1
        INTERNAL_ERROR       = 2
        NO_DATA_AVAILABLE    = 3
        NO_AUTHORITY         = 4
        OTHERS               = 5.
    Thanks
    RK
    Edited by: Rahul Keshav on Sep 8, 2010 12:50 AM
    Edited by: Rahul Keshav on Sep 8, 2010 12:51 AM

    The scenario is.....
    we are in an appraisal form thru txn phap_admin...
    now for goal weightage.....there is a std check ...for entered value.....check value for multiple of 5.....
    if we enter weightage as 4 ...system will make it 5 and a std POPUP  will display stating that the value 4 has been changed....
    this is a std log....
    now i have to implement a badi HRHAP00_VAL_DET......for calculating the total weightage.....
    I have to throw an error if the total weightage is less then 100%....
    i cant use message type 'E'...in Badi...
    so i want to add my error message in the std log...so that both message comes in one log/popup only.....
    If you goto se80...and for function group HRHAP_UI_DOCUMENT....
    you can seen the subroutine...
    form f3100_popup_value_log_create
    here the std messages are adding to the log.....
    simillary i want to add my message too ..inside the badi....in the same log....
    thnx
    RK
    Edited by: Rahul Keshav on Sep 8, 2010 10:20 PM

  • ICWC: Getting messages from application log

    HI there,
    I'm trying to retrieve messages from the SAP GUI application log. Right now, the standard views do get the messages, but I have introduced a new viewset and view. These new viewsets and views do not seem to display the error messages.
    Any help is much appreciated.
    Cheers,
    J

    Hi Joshua,
        Application log messages do not appear by default in ICWC. Application developers have to add the appropriate messages in the global message container either in the GENIL implementation (where standard APIs are called) or in the UI of your custom-built views, wherever convenient.
      I hope this has given you some hints.
    Regards,
    Sudipta.

  • How to use Message FIlter to log postfix authenticated sender header

    I'm trying to log the username from the postfix authenticated sender header information.
    Here is an example of the header:
    Received: from [123.123.123.123] (client.domain.edu [234.234.234.234])
    (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client
     certificate requested) (Authenticated sender: [email protected]) by
     postfix.domain.edu (Postfix) with ESMTPSA id DE8A3E9429 for
     <[email protected]>; Thu, 12 Jun 2014 12:16:56 -0700 (PDT)
    And here is the message filter I'm working on:
    if (recv-int == "OutboundIP") {
    if(header('Received') == '\\(Authenticated sender: .+@ad\\.domain\\.edu\\)') {
    log-entry("Authenticated Sender: '$MatchedContent'");
    Everything is working except for the $MatchedContent variable.  It is creating the custom log entry but it is only showing as "Authenticated Sender: "
    Does anyone have any ideas on how to get the $MatchedContent variable to work or another way to log that username?

    Try taking out the ' from around your '$MatchedContent'...
    My example:
    dictionary_match:
    if (dictionary-match('not_allowed_words')){
    edit-header-text ("Subject", "^", "Notice Content Matched on: $MatchedContent");
    log-entry("#---# This email had: $MatchedContent #---#");
    notify('[email protected]');
    Sent an email with a known "secret" in the email body... and "secret" is in my "not_allowed_words" dictionary... so it'll trip my "dictionary_match" message filter...
    Mail logs --->
    Thu Jun 12 23:10:46 2014 Info: New SMTP ICID 181 interface Management (172.16.6.165) address 172.16.6.1 reverse dns host unknown verified no
    Thu Jun 12 23:10:46 2014 Info: ICID 181 ACCEPT SG UNKNOWNLIST match sbrs[none] SBRS rfc1918
    Thu Jun 12 23:10:46 2014 Info: Start MID 105 ICID 181
    Thu Jun 12 23:10:46 2014 Info: MID 105 ICID 181 From: <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 105 ICID 181 RID 0 To: <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 105 Message-ID '<[email protected]>'
    Thu Jun 12 23:10:46 2014 Info: MID 105 Subject 'This email has an issue'
    Thu Jun 12 23:10:46 2014 Info: MID 105 ready 561 bytes from <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 105 Custom Log Entry: #---# This email had: secret #---#
    Thu Jun 12 23:10:46 2014 Info: Start MID 106 ICID 0
    Thu Jun 12 23:10:46 2014 Info: MID 106 was generated based on MID 105 by notify filter 'dictionary_match'
    Thu Jun 12 23:10:46 2014 Info: MID 106 ICID 0 From: <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 106 ICID 0 RID 0 To: <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 106 DomainKeys: cannot sign - no profile matches [email protected]
    Thu Jun 12 23:10:46 2014 Info: MID 106 DKIM: cannot sign - no profile matches [email protected]
    Thu Jun 12 23:10:46 2014 Info: MID 106 ready 970 bytes from <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 106 queued for delivery
    Thu Jun 12 23:10:46 2014 Info: MID 105 matched all recipients for per-recipient policy mygmail_inbound in the inbound table
    Thu Jun 12 23:10:46 2014 Info: MID 105 queued for delivery
    Thu Jun 12 23:10:46 2014 Info: New SMTP DCID 53 interface 172.16.6.165 address 173.36.13.143 port 25
    Thu Jun 12 23:10:46 2014 Info: New SMTP DCID 54 interface 172.16.6.165 address 173.36.13.143 port 25
    Thu Jun 12 23:10:46 2014 Info: Delivery start DCID 54 MID 105 to RID [0]
    Thu Jun 12 23:10:47 2014 Info: DCID 53 TLS success protocol TLSv1 cipher RC4-SHA 
    Thu Jun 12 23:10:47 2014 Info: Delivery start DCID 53 MID 106 to RID [0]
    Thu Jun 12 23:10:47 2014 Info: Message done DCID 54 MID 105 to RID [0] 
    Thu Jun 12 23:10:47 2014 Info: MID 105 RID [0] Response '2.0.0 s5D3Aobe022251 Message accepted for delivery'
    Thu Jun 12 23:10:47 2014 Info: Message finished MID 105 done
    Thu Jun 12 23:10:47 2014 Info: Message done DCID 53 MID 106 to RID [0] 
    Thu Jun 12 23:10:47 2014 Info: MID 106 RID [0] Response '2.0.0 s5D3AoFH012632 Message accepted for delivery'
    Thu Jun 12 23:10:47 2014 Info: Message finished MID 106 done
    Thu Jun 12 23:10:52 2014 Info: DCID 54 close
    Thu Jun 12 23:10:52 2014 Info: DCID 53 close
    I hope this helps!
    -Robert
    (*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)

  • Displaying error messages from application log

    Hi,
    I am using the function module RV_DELIVERY_CREATE for creating delivery in my program. If the sy-subrc is not zero i.e if delivery is not created, i have to display error messages collected inside the application.How can i do this ?
    The object nd subobject are existing in SLG0 but when i
    tried to see the object and subobject in SLG1 transaction , no logs were found.
    Do we need to activate the object and sunobject somewhere before logging can take place??
    I am using the following code in my program to display the logs but it is displaying no logs found: 
    CALL FUNCTION 'APPL_LOG_SET_OBJECT'
          EXPORTING
            object                    = 'ZCH_SCL'
            subobject                 = 'DL'
      LOG_HANDLE                = ' '
      NO_LOG                    = ' '
    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_INIT'
    EXPORTING
    OBJECT                    = 'ZCH_SCL'
       SUBOBJECT                 = 'DL'
      LOG_HANDLE                = ' '
    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.
          PERFORM z_call_rv_delivery_create. " to call fm rv_delivery_create
          IF sy-subrc ne 0.
            CALL FUNCTION 'APPL_LOG_DISPLAY_INTERN'
      EXPORTING
        object                               = 'ZCH_SCL'
       subobject                            = 'DL'
       title_list_screen                    = 'Error Logs'
      COLUMN_SELECTION                     = '11112221122   '
      COLUMN_SELECTION_MSG_JUMP            = '1'
      EXTERNAL_NUMBER_DISPLAY_LENGTH       = 20
      I_S_DISPLAY_PROFILE                  =
    IMPORTING
      NUMBER_OF_PROTOCOLS                  =
    EXCEPTIONS
      OBJECT_NOT_FOUND                     = 1
      SUBOBJECT_NOT_FOUND                  = 2
      OTHERS                               = 3
    thanks,
    vartika

    Hi Vartika,
    you need to save that log after creating and appending to it.
    here is a code to save that log.
    If log created, save to database
      if e_bal_hndl is not initial.
        refresh: bal_hndl.
        append e_bal_hndl to bal_hndl.
        call function 'BAL_DB_SAVE'
          exporting
            i_client         = sy-mandt
           i_in_update_task = 'X'
            i_t_log_handle   = bal_hndl
          importing
            e_new_lognumbers = log_no
          exceptions
            log_not_found    = 1
            save_not_allowed = 2
            numbering_error  = 3
            others           = 4.
    u have to write this code after appending info to Log.
    hope this will help.
    regards,
    vikas

  • Transport takes a long time with 'file already in use' message in tp log

    Hello,
    We are implementing SAP ECC 6.0 on IBM iSeries, i5/OS V5R4.
    I am encountering the following problem when conducting an import on TQA system from a transport request done from DEV :
    The import takes a very long time without being implemented, with the following message in the tp system log :
    'WARNING: /usr/sap/trans/tmp/TQA.LOB is already in use (10), I'm waiting 1 sec (20080515222358). My name: pid 621 on MASAPTQA (tqa00)
    The message keeps repeating continuously, with the pid changed each time, and the waiting time (in seconds) also changed each time.
    In general, the pid does not even exist.
    What could be the cause of this problem ?
    Thank you in advance for your cooperation.
    Best regards.
    Reda Khalifa

    Hello Sally,
    Thank you for your interest.
    I've gone through SAP note 12746.
    I deleted the log file /usr/sap/trans/tmp/TQA.LOB after making sure that pid 640 which appeared in the old message in the tp system log did not exist.  But this resulted in the message :
    'WARNING: Cannot remove /usr/sap/trans/tmp/TQA.LOB : No such file or directory' to appear once in the tp system log and for a very long time.
    I re-generated the transport profile file, and released a new transport from DEV to TQA, and tried to import this new request, and now the message in the tp system log is :
    WARNING: /usr/sap/trans/tmp/DEVKK917158.TQA is already in use (20), I'm waiting 4 sec (20080516225456). My name: pid 663 on MASAPTQA', where DEVKK917158 is the transport request number generated from the DEV system.
    pid 663 now corresponds to an active job (I used command WRKPID)
    Any clues ?
    Thank you for your cooperation.
    Best regards.
    Reda Khalifa

  • Custom error message in SAP application log

    Is there a way to add a custom error message to the SAP application log without passing the message variables MSGV1, MSGV2, MSGV3, MSGV4 and the Message class and number. 
    We want to pass a custom message from the BAPIRET2-MESSAGE without giving it a Message class and number.  The reason for this is that  we are using class based exceptions instead of the traditional message class with errors.  When we catch the class based exception, we take the error text of the exception and put in in the BAPIRET2-message and set the BAPIRET2-TYPE as 'E'.  Now we want to add this to the SAP application log.
    The call to 'BAL_LOG_MSG_ADD' takes a structure BAL_S_MSG which is just like BAPIRET2.  However this function builds the entry to the application log use the message variables MSGV1, MSGV2, MSGV3, MSGV4.  There is no provision to pass in the BAPIRET2 message.
    Add message to application log
      CALL FUNCTION 'BAL_LOG_MSG_ADD'
        EXPORTING
         i_log_handle              = app_log_handle
         i_s_msg                   = log_message
    Thanks,
    Jay

    Hi Jay,
    Did you see <b>BAL_LOG_EXCEPTION_ADD</b>?
    This FM is represented by the structure <b>BAL_S_EXC</b>. This can have various versions as described below:
    <b>Data of BAL_S_EXC Structure  /     Use</b>
    <b>EXCEPTION</b>  /                              Exception class from which an exception text 
                                                       is added to the log. This field must be filled.
    <b>MSGTY</b>  /                                     Message type (MSGTY) of a T100 message.
                                                       This field must also be filled for exceptions.
    <b>PROBCLASS,
    DETLEVEL,
    ALSORT, TIME_STMP</b>  /                Message or exception attributes, such as
                                                        problem class (PROBCLASS, for
                                                        example, "very important"), level of detail
                                                        (DETLEVEL, from 1 to 9), sort criterion
                                                        (ALSORT, unrestricted) and timestamp
                                                        (TIME_STMP). These fields can be displayed
                                                        in the log (except TIME_STMP).
    <b>MSG_COUNT</b>   /                            This attribute is not used for exceptions.
    Follow the link below for more details:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/d6/5d7f38f52f923ae10000009b38f8cf/frameset.htm">SAP Help DOc</a>
    Hope this helps.
    Thanks
    Sanjeev

  • 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,

  • Domain user no longer exists but getting errors in application log

    Hi,
    We had a domin user with which SQL service and SQL agent is configured to start. But this account does not have access to that server in which SQL is installed now. I can see the follwing message in application log:
    Log Name:      Application
    Source:        MSSQLSERVER
    Date:          3/10/2014 2:00:00 PM
    Event ID:      18456
    Task Category: Logon
    Level:         Information
    Keywords:      Classic,Audit Failure
    User:          Domain \username
    Computer:      XXXX
    Description:
    Login failed for user 'Domain \username'. Reason: Failed to open the explicitly specified database. [CLIENT: <local machine>]
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSSQLSERVER" />
        <EventID Qualifiers="49152">18456</EventID>
        <Level>0</Level>
        <Task>4</Task>
        <Keywords>0x90000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-03T04:00:00.000000000Z" />
        <EventRecordID>20420597</EventRecordID>
        <Channel>Application</Channel>
        <Computer>XXXXXXX</Computer>
        <Security UserID="S-1-5-21-2091904384-3689332406-323980668-6522" />
      </System>
      <EventData>
        <Data>domain\usernamer</Data>
        <Data> Reason: Failed to open the explicitly specified database.</Data>
        <Data> [CLIENT: &lt;local machine&gt;]</Data>
        <Binary>184800000E000000100000004100550030003400550041005000300036003800510041004E00380032000000070000006D00610073007400650072000000</Binary>
      </EventData>
    </Event>
    How come this message is coming in the application log, since no one has tried to log in to the application?

    Hi Both are 2008R2 version. My doubt is I can see that login failed message in application log but how to find out which process is trying to use that login?
    First observe that this is something that runs on the same machine as SQL Server. (The error message says "CLIENT: <local machine>".) That may be a clue enough.
    If not, set up a includes Audit: Login Failed and no other event. Of interest are the columns ApplicationNmae and the the column ClientProcessID. ApplicationName may be sufficient, but if not you can use ClientProcessID and match this against the PIDs you
    see in Task Manager or Process Explorer. There is a risk it is a short-lived process and then you will have to look at Process Explorer and Profiler in parallel.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Idocs and the application log

    Hello there,
    i have a general question. I am about to integrate idocs into an interface managing program and i wanted to know if idocs are known to use the application log for writing (error) messages.
    I know they have the possiblity to do so, but i do not know if this is frequently used or even used at all. At least it is not on my system.
    Thanks in advance for your answers.
    Kind regards
    Jonas Liebstückel

    no, I am thinking this has to do with the IDOC-type - either you can flag the use of the application log somewhere in the IDOC-configuration or the processing funciton modules are doing it. I would have to dig around to find out, but so can you: just check along the WE* with MATMAS and look at the function modules that are behind the processing code ... WE41

Maybe you are looking for

  • I am trying to install a program...

    I am trying to install a program. When I insert the CD, nothing happens or comes up. I went to the finder, and cliked the setup and installoption and all I got was fancy computer text. What's up with this? Please and Thanks!

  • G505 How to do a Clean Install Windows 8.1 Core instead of Windows 8.0 Core?

    Hi, I have G505 with Widows 8.0 core installed. I would like to do a clean install of Windows 8.1 core. So I installed but it ask for the activation key which I do not have. I thought we can use the same activation key for Windows 8.1 core. How do yo

  • Issue with nonblocking_with_callback

    I am trying to open www.google.com from the form. I used WEBUTIL_HOST.nonblocking_with_callback( 'cmd /c start "/wait" http://www.google.com', 'callback' ). created callback trigger in form level. when the google.com is open, the item should be inact

  • Question about virus on a mac

    ive read posts about people saying that macs cant get virus's. but i was mainly jus wondering what would happen if u downloded something off limewire or the internet and it had a virus in it would it affect your mac? or because its a pc virus nothing

  • GL account has not been assigned for PLAAED in customization

    Dear Guru's, When i enter into the Transaction code J2IUN, system is giving following error message- GL account has not been assigned for PLAAED in customization     Message no. 8I447 Diagnosis      GL account has not been assigned for the excise a/c