Skip to Content
author's profile photo Former Member
Former Member

Read Application Log

Hi,

maybe someone knows how to do it.

when i call a progran with SUBMIT ... and the called program it´s saving the logs with functions BAL_* how can i read this log??

The programs use to open a protocol with FM MSG_OPEN and save the log messages with standards routines. At the end close the protocol with MSG_CLOSE.

when the control returns to my own program.. how can i read the message handle or the messages itself? .... i use the FM APPL_LOG_READ_DB passing OBJECT, DATE_FROM, DATE_TO, TIME_FROM, TIME_TO, USER_ID and returns me the table MESSAGES, But this is too slow. i would like to read the messages handle to go to the tables BALHDR...

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2004 at 11:21 AM

    It looks like you're doing stuff with IS-U, as I understand the MSG_* functions are specific to IS-U.

    Do you mean that your program is calling standard SAP logic and it is the standard logic that is opening the message object / application log?

    If so, it really depends on how the standard logic is coded. It might be possible for your program to open the message object beforehand and thus obtain access to the logs.

    Cheers,

    Scott

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yes, i´m with IS-U.

      Thanks for your answer.

      I´m calling to transaction E61M "Automatic Adjustment of Budget Billing Plans".

      The problem here is that in the Protocol Init routine, the system search if there is a log open, and if it is open then close it to open a new one.

      do you know some way to solve this.

      Cheers,

      Jose.

  • Posted on Jul 09, 2004 at 03:20 PM

    Look at Dev class SBAL. Lots of examples.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2004 at 05:33 PM

    Hi,

    I don't know which version of IS-U you are on? to read application log FI-CA core provides a solution called EMMA(4.64 and 4.71)/BPEM(renamed in 4.72). Have you ever looked into that? If you are on 4.64 or higher version you can check the transaction EMMA in your system.

    FI-CA core covers several industry solutions and IS-U is one of them.

    I would highly recommend you to look into this. and for details contact local SAP office or log an OSS message. and some one from will be reply you back.

    Hasnain

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      AS I have mentioned earlier the bets bet would be to first read BALHDR with your seelction criteria and then use function module to read to the messags for those lognumber.