Application Development 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: 

How to read application log for a specific log number?

Former Member
0 Kudos

Hello

I am getting error message  MK 101 when posting a material idoc.   I can get the application log number from the idoc status record.  What I would like to do is use the application log to actually  go read the log and get the actual error messages associated with the MK101.

Does anybody have an example of using the log number to get to the actual error message in the application log.

1 ACCEPTED SOLUTION

Former Member

Did you explore FM APPL_LOG_READ_DB_WITH_LOGNO? Or APPL_LOG_READ_DB?

Do a where used on these FMs and you should find some sample code.

R

4 REPLIES 4

Former Member

Did you explore FM APPL_LOG_READ_DB_WITH_LOGNO? Or APPL_LOG_READ_DB?

Do a where used on these FMs and you should find some sample code.

R

0 Kudos

Hi,

in SLG1, you can not find logs by their lognumbe (just by the external-log-number).

in the DB-tables, the text is not visible, so you need to write your own programm, if you want to see the exact messages

in Table BALHDR, you find the log-handle for your lognumber.

now u can use the FM  BAL_GLB_SEARCH_MSG to get the msg-handle.

and finaly you can use BAL_LOG_MSG_READ  to get the messages.

maybe others know an easier way.

regards

Stefan Seeburger

0 Kudos

Hi,

I think I am able to find it. In SLG1 lognumbers are available to.

Please see below :

Also. the FM APPL_LOG_READ_DB_WITH_LOGNO is working fine as per me. Not sure what you meant by it is not possible.

R

0 Kudos

thanks this is what I was looking for.  I was not using the correct FM.