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 syntax-calling second program selection screen

former_member225134
Participant
0 Kudos

Hi,

     In my program am using submit syntax but it takes place to that programs selection screen.

Both program selection screens are same only so i dont want to re enter the same select options second time.

My code is submit zprogram with plant in so_plant

                                            with exnum in so_exno and return.

both selection screen and select options are same only..Then why it showing second

time (selection screen)???????????

2 REPLIES 2

GeorgeShlyakhov
Participant
0 Kudos

Hello Anitha!

Your code should work OK, but if it doesn't then try to use the code like this:


  DATA t_sscr TYPE TABLE OF rsparams.

  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

    EXPORTING

      curr_report     = 'ZCURRPROG'

    TABLES

      selection_table = t_sscr

    EXCEPTIONS

      not_found       = 1

      no_report       = 2

      OTHERS          = 3.

  IF sy-subrc = 0.

    SUBMIT zcallprog WITH SELECTION-TABLE t_sscr

                     AND RETURN.

  ENDIF.

ABAP source code in this document was coloured using the ABAP code lighter for SCN.

Best regards,

George Shlyahov

0 Kudos

Thanks for your reply,

  Now it is working fine