‎2009 Jan 23 10:10 AM
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.
‎2009 Jan 23 10:20 AM
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
‎2009 Jan 23 10:20 AM
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
‎2009 Jan 27 6:53 AM