01-13-2015 10:05 AM
Hi Experts
I have created one z program to extract the short dumps for the current date and append into excel. I have used submit command which calls the below program
SUBMIT rsshowrabax WITH s_datum EQ sy-datum AND RETURN.
The problem is where there are no dumps, system displays the error message "No short dump matches the selection criteria". and control does not return to my zprgm.
I have also tried using EXPORTING LIST TO MEMORY like below.
SUBMIT rsshowrabax WITH s_datum EQ sy-datum EXPORTING LIST TO MEMORY AND RETURN .
But it is also not working. As the control is not returning, I'm not able to execute other piece of code in my zprogram.
Kindly assist me.
01-13-2015 11:02 AM
So just check existence of dump yourself (read SNAP or SNAP_BEG) and only submit standard report when some dumps are to be extracted.
Regards,
Raymond
01-13-2015 10:51 AM
Hi,
My advice would be to make the same check in your calling program that generates the message in rsshowrabax and if the check fails don't call rsshowrabax.
It seems to be this code;
SELECT datum FROM snap_beg UP TO 1 ROWS INTO wa_datum
WHERE seqno = '000'
AND datum IN s_datum
AND uzeit IN s_uzeit
AND ahost IN s_ahost
AND modno IN s_wpid
AND uname IN s_uname
AND mandt IN s_mandt
AND xhold IN s_xhold .
ENDSELECT.
IF sy-dbcnt > 0.
CALL SCREEN 100.
ELSE.
MESSAGE e404(sn).
ENDIF.
Regards,
Nick
Edit to format the code.
01-13-2015 10:52 AM
Debug should be your holy word.
If you debug RSSHOWRABAX when called you can see
**** Button Start selektion
WHEN 'START' OR 'ONLI'.
SELECT datum FROM snap_beg UP TO 1 ROWS INTO wa_datum
WHERE seqno = '000'
AND datum IN s_datum
AND uzeit IN s_uzeit
AND ahost IN s_ahost
AND modno IN s_wpid
AND uname IN s_uname
AND mandt IN s_mandt
AND xhold IN s_xhold .
ENDSELECT.
IF sy-dbcnt > 0.
CALL SCREEN 100.
ELSE.
MESSAGE e404(sn).
ENDIF.
01-13-2015 11:02 AM
So just check existence of dump yourself (read SNAP or SNAP_BEG) and only submit standard report when some dumps are to be extracted.
Regards,
Raymond
01-23-2015 10:37 AM