I need to write a program to fetch all the below mentioned fields from the system dump tables and insert into a user defind table. Please help me with the code. Thanks in advance....
ABAP runtime errors (also known as short-dumps) are kept in the system only for two days, mainly because every short-dump can use a lot of disk space depending on short-dump type. Problem is that this reduced time frame (two days) is not allowing us to focus in solve the more frequent ones and we do not have any statistic about:
how many are we getting
We need a program to be executed in a daily job right after midnight which will take the basic information of all todays short-dumps and store it in a custom table.
Information to be kept:
PROGRAM NAME VERSION (TRANSPORT REQUEST NUMBER)
PROGRAM NAME VERSION TIMESTAMP (transported to PPx)
MAIN PROGRAM NAME
MAIN PROGRAM NAME VERSION (TRANSPORT REQUEST NUMBER)
MAIN PROGRAM NAME VERSION TIMESTAMP (transported to PPx)
PROGRAM LINE NUMBER AT TERMINATION
The program must have archiving capabilities implemented. In the month end run it will also perform the table house-keeping accordingly with a parameter like this:
MONTHS TO KEEP
We need to have the possibility of defining different retention periods for different kind of errors, for example our friend GETWA_TOO_MANY_SEGMENT could be stored for a year and a simple CONVT_NO_NUMBER only for a month. One of the parameters should be the default one, something like
MONTHS TO KEEP 01.