Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How Read data from application log

Former Member
0 Likes
8,786

Hi Guys,

I have a scenario in which one program writes data to application log.The log_handle number is stored in a table.Now using a second program I need to read the data from application log.But how do I read it.I used FM BAL_LOG_MSG_READ.But I am getting exception that no data is available in memory.I checked in slg1.The message is very much there...How do I read messages present in application log...If any one has any idea let me know.

Regards,

Raghu.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
4,787

Try this way


CALL FUNCTION 'BAL_DB_LOAD'
EXPORTING
i_t_log_header = handle_hdr
IMPORTING
e_t_msg_handle = msg_hdr.

loop at msg_hdr.
  CALL FUNCTION 'BAL_LOG_MSG_READ'
    EXPORTING
    i_s_msg_handle = msg_hdr
   IMPORTING
   e_s_msg = bal_s_msg
   e_txt_msg = text.
endloop.

a®

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
4,788

Try this way


CALL FUNCTION 'BAL_DB_LOAD'
EXPORTING
i_t_log_header = handle_hdr
IMPORTING
e_t_msg_handle = msg_hdr.

loop at msg_hdr.
  CALL FUNCTION 'BAL_LOG_MSG_READ'
    EXPORTING
    i_s_msg_handle = msg_hdr
   IMPORTING
   e_s_msg = bal_s_msg
   e_txt_msg = text.
endloop.

a®

Read only

0 Likes
4,787

Hi,

Thank u very much fir ur reply.

Regards,

Raghu.

Read only

0 Likes
4,787

Hi,

Solvd

Regards,

Raghu.

Edited by: Raghu Devagiri on Mar 20, 2009 12:39 PM

Read only

Former Member
0 Likes
4,787

Hi Raghu,

While searching through the forum I came across a question Where you had asked For a FM in which you enter the kunnr and you will get email id of the Contact Persons.Did you got any solution for that.If yes could you please help me.I am also facing a similar problem