2009 Mar 19 1:44 PM
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.
2009 Mar 19 2:04 PM
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®
2009 Mar 19 2:04 PM
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®
2009 Mar 20 4:48 AM
2009 Mar 20 5:47 AM
Hi,
Solvd
Regards,
Raghu.
Edited by: Raghu Devagiri on Mar 20, 2009 12:39 PM
2010 Dec 22 11:28 AM
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