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: 

MESSAGE_TYPE_UNKNOWN Error

Former Member
0 Kudos

Hi Friends,

When my HR consultant configuring some infotype updation for an employee,when he press F4 help, he gets Run time Error of MESSAGE_TYPE_UNKNOWN .

I've checked through debugging process, after some coding check, the sy-subrc calls an exception subroutine for Message popup , this one leads to runtime error as the said above.

Pls check the below detail description and reply.

***********************

Runtime Error Description

Short Text:

Message Type " " is unknown.

Error Ananlysis:

Only Message types A,E,I,W,S and X are allowed.

Module Name

Populate_F4Help.

***********************

My Question is, why the system is going dump instead of showing the error message and which part we have missed out. How to rectify or view the system message type and id.

Please advise.

thanks & regards

Sankar.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

The problem here is that there is no error message. This typically happens when generic error handling is used after a function module call, if a function module raises an exception it is typically followed by;


IF sy-subrc <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

However, if the function module has not raised an error message the SY fields are empty and the dump results.

As with any short dump, look at the code section. If it's a standard SAP program check for OSS notes, otherwise change the code to either check the SY fields are filled or code specific error handling.

Regards,

Nick

2 REPLIES 2

Former Member
0 Kudos

Hi,

The problem here is that there is no error message. This typically happens when generic error handling is used after a function module call, if a function module raises an exception it is typically followed by;


IF sy-subrc <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

However, if the function module has not raised an error message the SY fields are empty and the dump results.

As with any short dump, look at the code section. If it's a standard SAP program check for OSS notes, otherwise change the code to either check the SY fields are filled or code specific error handling.

Regards,

Nick

Former Member
0 Kudos

CLosed