RFC error message “The current application triggered a termination with a short dump”
Question
SAP is backend and .Net is frontend of my application. I am getting an exception that says "the current application triggered a termination with a short dump" while executing a RFC call. I used SAP.Net connector for building dll's.
GetConnection objCon = new GetConnection();
Utilities objUtil = new Utilities();
ZZZZ_Z.ZZZZ_Z_MOVEMENT objSave = new ZZZZ_Z.ZZZZ_Z__MOVEMENT();
ZZZZ_Z.ZST_MESSAGETable objMessageTable = new ZZZZ_Z.ZST_MESSAGETable();
ZZZZ_Z.ZST_MESSAGE1Table objMsgTableNew = new ZZZZ_Z.ZST_MESSAGE1Table();
objSave.Connection = objCon.setConnection();
objSave.ZZZZ__Movement(ID,names, out EX_FLAG, out RETMSG, ref objMessageTable, ref objMsgTableNew);
DataTable MESSAGE_TABLE = new DataTable();
MESSAGE_TABLE = objMsgTableNew.ToADODataTable();
objSave.Connection.Close();
return objMessageTable.ToADODataTable();
What is the cause of this error message and how can I find out more about the problem?
Solution
This is a very generic error message that only says "Something went wrong, but I can't tell you what, at least not through the current communication channel. However, I left a short dump to examine." To do so, use transaction ST22
in the backend system. This can be anything - a temporary issue, a programming error, data inconsistencies, you name it - anything that caused the program to bail out completely.