Write error log to Application log

Hi All ,
I am new to APO area . I am writing a report in APO and the requirement here is to write the error log to the application log .  Can anyone help explain the process o hot to write the error log to  application log . If possible please help me with some code .
Thanks ,
Daniel.

Hi Daniel,
         Refer the below code for writing the application log.
.<a href="/people/kamalkumar.ramakrishnan/blog/2007/01/10/a-primer-on-using-and-creating-sap-application-log on Application Log</a>
Regards,
Siva.
Create a Application log
    CALL FUNCTION 'BAL_LOG_CREATE'
      EXPORTING
        i_s_log                 = g_bal_log
      IMPORTING
        e_log_handle            = g_log_handle
      EXCEPTIONS
        log_header_inconsistent = 1
        OTHERS                  = 2.
    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.
loop at g_return.
  g_log_mess-msgty     = g_return-type.
  g_log_mess-msgid     = g_return-id.
  g_log_mess-msgno     = g_return-number.
  g_log_mess-msgv1     = g_return-message.
  g_log_mess-msgv2     = g_return-message_v1.
  g_log_mess-msgv3     = g_return-message_v2.
  g_log_mess-msgv4     = g_return-message_v3.
  g_log_mess-probclass = 'Error Class'.
appemd g_log_mess.
endloop.
add this message to log file
  CALL FUNCTION 'BAL_LOG_MSG_ADD'                          
    EXPORTING
      i_s_msg       = g_log_mess
    EXCEPTIONS
      log_not_found = 0
      OTHERS        = 1

Similar Messages

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

  • Output log to application log in application server

    Hi Guys,
    I am pretty new on J2EE, I created a web application and deployed it on to the oracle application server. I found out that I can view the log file(application.log) for that particular web application on the application control page. What I want to achieve is outputing some custom log on to the same built-in log file. Could anyone please show me how to do that?
    Thanks advance
    James

    Hi, I figured out that ADF is a oracle's implementation of JSF, I tried above approach it did log to a log.xml in the particular folder. However, I would like to output to a log file that you can actually view in the Enterprise Manager Console...
    Into the log below:
    Log Text
    08/04/16 10:13:33.431 10.1.3.3.0 Started
    08/04/16 10:13:36.486 webapp: 10.1.3.3.0 Started
    (End of Log File) = entries updated since last refresh
    Is it possible?
    Cheers!
    James

  • Control the size of Essbase.log and application log

    Understand that there are many message were written to the Essbase.log and application log. Is there any method to control what kind of message to be written to the log file so as to reduce the IO frequency of the server disk folders?
    Thanks for your help!

    CL wrote:
    You might want to think about forcing your BSO/ASO PAG & IND/DAT files to go onto a separate drive volume from your base Essbase binaries. This can be tough to do in a SAN environment as it is difficult to know what is truly where.
    Another option would be to use CLEARLOGFILE to reset the logs (this will delete them every time you stop/restart Essbase, so make sure you archive them if you need log history).
    See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/config/clearlogfile.htm
    Yet another would be to set SSLOGUNKNWON to false to cut down on the log.
    See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/config/sslogunknown.htm
    Regards,
    Cameron LackpourThanks! We already separate the log files from the data files but they still in the same hardware server. Yes, in SAN environment we really don't know where it the physical drive.
    Essbase do not have log rotate option like Apache and maybe we should archive the essbase log regularly and clear it up.
    We don't have much unknown member case in our log. Anyway we will investigate the option SSLOGUNKNOWN
    Thanks again!

  • Errors in alert log fileand application log file

    Hi,
    Oracle EBS version 12.1.1
    RDBMS version 11.1.0.7.0
    OS RHEL 5.4
    All of a sudden I am not able to access my R12 system.It shows me 500 Internal server error.
    I am not able to connect to database from client either.(SQLPLUS or any other tools hangs while trying to connect to DB)
    Although I can connect to database from server.
    Errors in DB alert log file is :
    =================
    Fatal NI connect error 12547, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 30-JUL-2011 14:08:12
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12547
    TNS-12547: TNS:lost contact
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    ORA-609 : opiodr aborting process unknown ospid (12562_47163992198336)
    Sat Jul 30 14:10:12 2011
    Fatal NI connect error 12537, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 30-JUL-2011 14:10:12
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12537
    TNS-12537: TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    ORA-609 : opiodr aborting process unknown ospid (12599_47919733853376)
    Sat Jul 30 14:11:43 2011
    Incremental checkpoint up to RBA [0x137.8b97e.0], current log tail at RBA [0x137.8c0c4.0]
    Sat Jul 30 14:11:52 2011
    Fatal NI connect error 12547, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 30-JUL-2011 14:11:52
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12547
    TNS-12547: TNS:lost contact
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    ORA-609 : opiodr aborting process unknown ospid (12627_47439235198144)
    Sat Jul 30 14:14:32 2011
    Fatal NI connect error 12547, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 30-JUL-2011 14:14:32
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12547
    TNS-12547: TNS:lost contact
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    ORA-609 : opiodr aborting process unknown ospid (12890_47772667911360)
    Sat Jul 30 14:15:08 2011
    Beginning log switch checkpoint up to RBA [0x138.2.10], SCN: 10132185231186
    Thread 1 advanced to log sequence 312 (LGWR switch)
    Current log# 3 seq# 312 mem# 0: /u01/oracle/VIS/db/apps_st/data/log1.dbf
    Sat Jul 30 14:15:52 2011
    Fatal NI connect error 12537, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 30-JUL-2011 14:15:52
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12537
    TNS-12537: TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    ORA-609 : opiodr aborting process unknown ospid (13156_47242339073216)
    Sat Jul 30 14:20:15 2011
    Completed checkpoint up to RBA [0x138.2.10], SCN: 10132185231186
    Sat Jul 30 14:32:04 2011
    Incremental checkpoint up to RBA [0x138.5646.0], current log tail at RBA [0x138.6444.0]
    Sat Jul 30 14:40:33 2011
    Fatal NI connect error 12537, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 30-JUL-2011 14:40:33
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12537
    TNS-12537: TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    ORA-609 : opiodr aborting process unknown ospid (14536_47011734056128)
    Sat Jul 30 14:45:33 2011
    Fatal NI connect error 12537, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 30-JUL-2011 14:45:33
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12537
    TNS-12537: TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    ORA-609 : opiodr aborting process unknown ospid (14688_47186744614080)
    Sat Jul 30 14:47:13 2011
    Fatal NI connect error 12170.
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 30-JUL-2011 14:47:13
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12606
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    Client address: <unknown>
    ORA-609 : opiodr aborting process unknown ospid (14684_46999375879360)
    --Repeatedly getting this error.
    Error in application log is:
    ================
    11/07/30 14:45:53.449 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:60)
    at java.nio.channels.Channels.access$000(Channels.java:47)
    at java.nio.channels.Channels$1.write(Channels.java:134)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    11/07/30 14:49:53.591 html: Broken pipe
    11/07/30 14:49:53.591 html: Broken pipe
    11/07/30 14:49:53.592 html: Broken pipe
    11/07/30 14:49:53.592.592 html: Broken pipe
    11/07/30 14:49:53.592 html: Broken pipe
    11/07/30 14:49:53.592.592 html: Broken pipe
    11/07/30 14:49:53.593 html: Broken pipe
    11/07/30 14:49:53.593 html: Broken pipe
    11/07/30 14:49:53.594 html: Broken pipe
    11/07/30 14:49:53.594 html: Servlet error
    java.io.IOException: Broken pipe
    11/07/30 14:49:53.594 html: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:60)
    at java.nio.channels.Channels.access$000(Channels.java:47)
    at java.nio.channels.Channels$1.write(Channels.java:134)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    11/07/30 14:49:53.594 html: Servlet error
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:60)
    at java.nio.channels.Channels.access$000(Channels.java:47)
    at java.nio.channels.Channels$1.write(Channels.java:134)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    11/07/30 14:49:57.630 html: Broken pipe
    11/07/30 14:49:57.630 html: Broken pipe
    11/07/30 14:49:57.630 html: Broken pipe
    11/07/30 14:49:57.630 html: Broken pipe
    11/07/30 14:49:57.630 html: Broken pipe
    11/07/30 14:49:57.631 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:60)
    at java.nio.channels.Channels.access$000(Channels.java:47)
    at java.nio.channels.Channels$1.write(Channels.java:134)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    11/07/30 14:49:57.632 html: Broken pipe
    11/07/30 14:49:57.632 html: Broken pipe
    11/07/30 14:49:57.632 html: Broken pipe
    11/07/30 14:49:57.633 html: Broken pipe
    11/07/30 14:49:57.633 html: Broken pipe
    11/07/30 14:49:57.633 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:60)
    at java.nio.channels.Channels.access$000(Channels.java:47)
    at java.nio.channels.Channels$1.write(Channels.java:134)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:619)
    11/07/30 14:55:33.775 html: Broken pipe
    11/07/30 14:55:33.775 html: Broken pipe
    11/07/30 14:55:33.775 html: Broken pipe
    11/07/30 14:55:33.776 html: Broken pipe
    11/07/30 14:55:33.776 html: Broken pipe
    11/07/30 14:55:33.776 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:60)
    at java.nio.channels.Channels.access$000(Channels.java:47)
    at java.nio.channels.Channels$1.write(Channels.java:134)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    I tried to bounce the system.
    When I executed ./adstpall.sh it took a long time (about 15 mins) and exited with status 1.
    You are running adstpall.sh version 120.10
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE: adstpall.sh <appsusername/appspassword>
    adstpall.sh: exiting with status 1
    But I check from server that the database is up and running.
    Please help asap
    Thanks,
    Rushi

    Oracle support has given me two docs
    Note 550859.1 TROUBLESHOOTING GUIDE TNS - 12518 TNS listener could not hand off client connection
    Note 340089.1 New Connections to the Database lead to ORA-12518 or TNS-12518
    I do not any ORA-12518 or TNS-12518 errors in the log file entries you posted above. However, please see (ORA-00610 And/Or "unable to spawn jobq slave process " And/Or "Process(<>) creation failed" In The Alert Log And/Or TNS-12518/ TNS-12500 In Listener Log [ID 416244.1]).
    Thanks,
    Hussein

  • 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

  • Getting "Message callback is not set." error in Windows application log.  Cause?

    I am running a very low volume (3-4 simulaneous users) video chat application on FMS version 4 and am seeing the following error generated from FMS (Core) about once or twice a week.
    Message callback is not set.
    Any idea what the cause of this might be and whether or not it is impacting anything?
    Additional information from the event log is as follows....
    Log Name:      Application
    Source:        FMS (Core)
    Date:          1/12/2012 9:07:28 AM
    Event ID:      1531
    Task Category: (263)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      TACVID01.cyracom.com
    Description:
    Message callback is not set.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="FMS (Core)" />
        <EventID Qualifiers="49152">1531</EventID>
        <Level>2</Level>
        <Task>263</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2012-01-12T16:07:28.000000000Z" />
        <EventRecordID>104668</EventRecordID>
        <Channel>Application</Channel>
        <Computer>TACVID01.cyracom.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>(Adaptor: _defaultRoot_, VHost: _defaultVHost_, IP: 209.94.129.251, App: VRIServer/_definst_, Protocol: rtmp, Client: 4702111234542092655, Handle: 2147745794) : 97 g 00 E8 0 BF BE 7F BA A8 0E | 0D | F F8 18 BB 87 A2 &lt; n 01 15 Q ED + 98 AD AE Z 8E ( 06 97 F8 02 9E 14 F6 BD f F5 F3 A5 E2 B5 [ 15 ( 83 FB A0 ` BD ` h FF A5 D6 9C E7 85 = A5 B 3 k 9B U 8A e B4 o ^ 0D 3 F3 / T 18 p R 14 F2 E1 E8 D1 D2 AC E2 EE F9 " C6 K 8D 06 a O s BC D9 A7 00 P f 1B T 1E A5 = H z 8A = C0 ) EE s 9C 19 &lt; ( F7 9 C0 14 C6 F1 1F FD 4 7F 0D FD B7 06 B \ B8 E M J C5 00 } U Q DD CA D3 DC # DC E5 R 95 D9 R 99 p 05 05 1E E7 06 @ 14 F0 A2 C9 03 # ! 93 C5 X AD C2 ] D1 E1 90 S DD 0F ; D3 A9 09 CB 99 E0 D5 E1 O F0 I $ 14 F 8F 06 % D8 ! 93 BC E FB A4 84 - = C1 _ K 8 H E0 0A 0C C4 16 E7 06 B 0F s 83 / B5 9D 15 n &gt; % FC t 05 80 P 8F 84 $ B0 E0 d E1 F E7 0B DC / 0C 92 C6 g BA DD X EF 9E 14 F8 0A 1A D4 E4 L g C7 C2 11 z AA 0D 10 10 FB DD 0C 83 ' 88 F0 C9 C0 14 E0 C8 ( B7 8 F0 d F1 0B 8E 80 DA @ FB 01 8C 82 16 80 P 8F F0 0 EF C3 . 15 + + s a AF C3 % 81 84 FA , AE F7 14 CB 1A x S FD F6 AA E ` D3 01 AA e - FB   d 2 R C8 13 - 87 E6 v 01 R A0 C9 W 85 E1 98 S FC B3 ` C1 02 R C5 02 E8 85 A2 A0 CE t 0C FC F F0 4 BF D0 C6 1A w D0 C9 E1 O i AA D5 DE 01 W * DF 97 q B 91 F2 E0 D1 A 00 AB + C3 ' 88 FF 0F % 1D CA A5 D1 K 06   F2 F8 0E 8F 9A d | C5 09 $ CF B1 D6 \ E1 0F 8E F1 $ " p S FD a DF % E1 , t l DA AA Z O N 85 = CE F3 M 0D &amp; F4 \ \ 94 D3 C2 85 86 N F1 E7 85 . E7 8 2 x R EE A4 CE 00 A7 88 FD AA : V r O A8 03 AA 15 ~ P T C5 14 B7 F 94 DA B1 F0 90 0A 16 C6 " A9 E6 D4 8E 87 CA 92 AB A3 A0 C9 C1 O F7 T A9 9C S 8A S Q K 84 BB @ 1 V FB G E2 K ` j B E2 EA 91 ] B7 F4 1A H @ : A8 18 ( T % E0 D3 81 8 D8 8F s 9A ` t 94 D6 C3 C0 14 14 x e 8A $ AA D5 B5 9 15 02 9E AD 13 s BF 06 88 0A v F6 CC L D6 12 06 D C2 AD 9 13 82 9E E7 J 97 ` 0D 85 d EA BB H 9E ' E2 1 R v ] E8 x C C8 B4 ' 86 \ " b F3 02 80 C6 C8 , b 80 h 01 @ , * o p d F1 . E7 06 ] l 99 O DA | 0C Z L ( DC | K B8 F3 84 7F B0 A4 a 1A 8 - 8 19 05 8D CE &lt; 16 F7 9 E2 BD C1 90 _ 0C 9E * CE 06 B 1F 0D J ` 2 00 A0 AF 99 p d F0 A7 BB   0E t 1C 03 M FC 19 &lt; ) F3 BD H . 95 94 ` C2 FF 8 1A E0 / / D6 4 18 W B8 E9 87 0E 85 = : k 01 85 FD 7F 01 86 z 06 97 FA % L Z 0D 03 E4 1C 09 d C6 * BC " 10 86 a O A0 AE 82 DC ` 09 0C C6 E0 C3 01 1E X 1A H   0A x S E2 b E C8 E " 80 C9 E1 _ 83 88 1 s 9E 14 FC B6 04 @ r Q DF B9 F9 C8 F7 09 C3 ' 88 F9 A0 A7 1D } 8F B0 19 C3 D5 BE ^ C2 _ g FC D0 EF C0 D1 A 8 O BA N 9A p AB F3 C3   A4 FC # $ &amp; 8D 9A 96 G AA = O 85 = CE o 00 C9 1B 8B 9A 6 F1 6 19 06 B &lt; BD T S F4 D0 w @ A4 m E0 86 ? C6 05 0F &lt; : 12 15 03 03 08 &gt; 06 19 F5 X 17 % 80 A4 BE 03 8 02 8F 06 A O T ; 03 19 A9 DC E1 D8 F6 @ 9 $ M E3 { C2 00 C9 E1 O t F6 88 BD 1F q H 19 F4 AB ' 8D 9E F4 F2 9E B4 16 $ DD 0E C8 C ' 85 &lt; 14 ? 06 06 10 B9 BF x F N = E8 B3 C8 8F 0E E7 1A E0 C0 D4 = ^ ) C4 v 0F 13 B8 E C6 F9 12 F6 8B 89 F7 85 E3 E2 ED 1D CB U D9 AC ( F9 M </Data>
      </EventData>
    </Event>

    I also have this error, in AMS 5.0.3. If I look in the logs, in core.00.log for instance, I also have the following error:
    Assert failed in .\core\FcRecordedStream.cpp line 2420
    Freaks me out a little. I'm not sure what this error means. I've googled it and still no one talks about this one so I'm in the void right now. I get this error multiple times in the log file, every few seconds when it starts.

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

  • R12.1.3 throwing errors in oafm application.log

    Anyone know how to stop this error from filling my logs. Not sure if it is actually causing some of my issues. Seems to be looking for DB Time.
    java.lang.NullPointerException
          at oracle.apps.ecx.oxta.SystemProperties.getCurrentDBTime(SystemProperties.java:640)
          at oracle.apps.ecx.oxta.TransportAgentCore.doPost(TransportAgentCore.java:341)
          at oracle.apps.ecx.oxta.TransportAgentServer.doPost(TransportAgentServer.java:45)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
          at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
          at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
          at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
          at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
          at java.lang.Thread.run(Thread.java:662)

    Anyone know how to stop this error from filling my logs. Not sure if it is actually causing some of my issues. Seems to be looking for DB Time.
    java.lang.NullPointerException
          at oracle.apps.ecx.oxta.SystemProperties.getCurrentDBTime(SystemProperties.java:640)
          at oracle.apps.ecx.oxta.TransportAgentCore.doPost(TransportAgentCore.java:341)
          at oracle.apps.ecx.oxta.TransportAgentServer.doPost(TransportAgentServer.java:45)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
          at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
          at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
          at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
          at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
          at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
          at java.lang.Thread.run(Thread.java:662)

  • OC4J Logging into Application.log

    Hi someone,
    i try to log into the Application.log configure in the orion-application.xml.
    how can do this in Java?
    Thanks to all for help
    Matthias

    After 10 Hours i find the solution ;-(
    The Application.log can be write with this code:
    FacesContext fc = FacesContext.getCurrentInstance();
    ServletContext sc = (ServletContext) fc.getExternalContext().getContext();
    sc.log("My log message for Application.log");
    very simple but not find in the OC4J Doc's

  • View weblogic server logs and application logs

    Hi All,
    Is there any way to view log files of Weblogic Admin Server, managed server and application logs through OEM console. ( In text editor-- full file / tail -f output)..
    Thanks | Kranthi

    Thanks Rob.
    Even from Weblogic Admin console we cannot view complete log file only some components are shown.
    Just thinking will it be a good idea to execute shell script to view log file from Target-Execute Host Command.
    -Kranthi
    Edited by: 832458 on Feb 9, 2011 5:31 PM

  • 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

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

  • "Quartz Scheduler failed to initialize" error in application log

    We are BIPublisher 10.1.3.4 as J2EE app and I am getting this error in the application log. I have created myDS datasource to get rid of the following error. But no success..
    Please Help..
    Thanks!
    Srini
    09/01/09 15:13:43.298 [ecid: 10.39.38.45:96428:1231514019135:0,0] 10.1.3.3.0 Started
    09/01/09 15:13:46.492 [ecid: 10.39.38.45:96428:1231514019135:0,0] xmlpserver: QuartzInitializer: Quartz Initializer Servlet loaded, initializing Scheduler...
    09/01/09 15:16:55.835 [ecid: 10.39.38.45:96428:1231514019135:0,0] xmlpserver: QuartzInitializer: Quartz Scheduler failed to initialize: org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause: Io exception: The Network Adapter could not establish the connection [See nested exception: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause: Io exception: The Network Adapter could not establish the connection]]
    09/01/09 15:16:55.837 [ecid: 10.39.38.45:96428:1231514019135:0,0] xmlpserver: Error preloading servlet
    javax.servlet.ServletException: Failure occured during job recovery.
    at org.quartz.ee.servlet.QuartzInitializerServlet.init(QuartzInitializerServlet.java:170)
    at oracle.apps.xdo.servlet.scheduler.quartz.ExtendedQuartzInitializerServlet.init(ExtendedQuartzInitializerServlet.java:124)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4824)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4748)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4936)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1145)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
    at com.evermind.server.Application.getHttpApplication(Application.java:570)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:643)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
    at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
    at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
    at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2493)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1042)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    at java.lang.Thread.run(Thread.java:619)

    Pl see if ML Doc 738967.1 helps
    HTH
    Srini

Maybe you are looking for