Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Submit command does not return to Zprgm

0 Kudos

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.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

SimoneMilesi
Active Contributor
0 Kudos

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.

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

Thanks all..
Issue is now resolved.