Skip to Content
avatar image
Former Member

Submit command does not return to Zprgm

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jan 13, 2015 at 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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2015 at 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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2015 at 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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 23, 2015 at 10:37 AM

    Thanks all..
    Issue is now resolved. 😊

    Add comment
    10|10000 characters needed characters exceeded