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: 

error messages in ABAP program are stored in which table

Former Member
0 Kudos

hi all,

Can anyone tell

error messages in ABAP program are stored in which table??

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

in table T100.

regards,

Santosh Thorat

5 REPLIES 5

Former Member
0 Kudos

Hi,

in table T100.

regards,

Santosh Thorat

Former Member
0 Kudos

HI,

Please refer to the table T100.

Thanks,

Sriram Ponna.

Former Member
0 Kudos

table T100

reward if useful

Former Member
0 Kudos

Hi Sir ,

Please have a look below .Hope it is suitable and simpler solution for your question.

Please do reward if useful.

Thankx.

Fuction module for storing error messages ->'format_message'

for example...

data : v_message(100) type c.

call transaction NNNN mode A update S messages into it_messages.

loop at it_messages where msgty = 'E'.

call function 'format_message'

exporting

*it_messages details

importing

v_message.

write 😕 v_message.

clear v_message.

endloop.

Anothe method - ->

Here is a sample of the program code for that:

LOOP AT it_messtab.

CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

id = it_messtab-msgid

lang = it_messtab-msgspra

no = it_messtab-msgnr

v1 = it_messtab-msgv1

v2 = it_messtab-msgv2

IMPORTING

msg = g_msg

EXCEPTIONS

OTHERS = 0.

IF it_messtab-msgtyp = 'S'.

it_sucess-sucess_rec = g_msg.

it_sucess-lifnr = it_header-lifnr." Based on your field

it_sucess-tabix = v_lines.

APPEND it_sucess.

ELSEIF it_messtab-msgtyp = 'E'.

it_error-error_rec = g_msg.

it_error-lifnr = it_header-lifnr.

it_error-tabix = v_lines.

APPEND it_error.

ELSE.

it_info-info_rec = g_msg.

it_info-lifnr = it_header-lifnr.

it_info-tabix = v_lines.

APPEND it_info.

ENDIF.

ENDLOOP.

0 Kudos

Maybe you are asking for error messages appearing when you check the syntax of an abap program. If so, table TRMSG has a lot of them, but I don't know if all the messages you are looking for are in this table.

If you are looking for error messages delivered by transactions such as SLIN, SCID among others, well, you will have a funny task analyzing the code of their respective programs. Let me know :o).

Greetings.

Lupe