Application Development and Automation 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: 
Read only

Problem with the selection screen in submit program

Former Member
0 Likes
3,371

Hi Friends,

i am facing the problem wih the selection screen in submit program. in my Module pool program i am using the submit program statement, When i execute the program , The module program display the submit program selections creen.

I have implemented the code same as below.

submit ztest with tknum =p_tknum and return.

Can you pleaes help me how to avoid the submit program selection screen.

Thanks,

Charan

5 REPLIES 5
Read only

Former Member
0 Likes
1,416

Check using:

submit ztest with tknum INCL p_tknum and return

Read only

Former Member
0 Likes
1,416

Hi Charan,

You have to give the selection screen values when you submit a job.

Press F1 on submit and you will see more details.

Here is an example from ABAP Documentation.

Program accessed

REPORT report1. 

DATA text(10) TYPE c. 

SELECTION-SCREEN BEGIN OF SCREEN 1100. 
  SELECT-OPTIONS: selcrit1 FOR text, 
                  selcrit2 FOR text. 
SELECTION-SCREEN END OF SCREEN 1100.

Calling program

REPORT report2. 
     DATA: text(10)   TYPE c, 
      rspar_tab  TYPE TABLE OF rsparams, 
      rspar_line LIKE LINE OF rspar_tab, 
      range_tab  LIKE RANGE OF text, 
      range_line LIKE LINE OF range_tab. 

... 

rspar_line-selname = 'SELCRIT1'. 
rspar_line-kind    = 'S'. 
rspar_line-sign    = 'I'. 
rspar_line-option  = 'EQ'. 
rspar_line-low     = 'ABAP'. 
APPEND rspar_line TO rspar_tab. 

range_line-sign   = 'E'. 
range_line-option = 'EQ'. 
range_line-low    = 'H'. 
APPEND range_line TO range_tab. 

range_line-sign   = 'E'. 
range_line-option = 'EQ'. 
range_line-low    = 'K'. 
APPEND range_line TO range_tab. 

SUBMIT report1 USING SELECTION-SCREEN '1100' 
               WITH SELECTION-TABLE rspar_tab 
               WITH selcrit2 BETWEEN 'H' AND 'K' 
               WITH selcrit2 IN range_tab 
               AND RETURN.

Regards,

Jovito.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,416

As you don't use the [VIA SELECTION-SCREEN |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_INTERFACE.htm#&ABAP_ADDITION_2@2@] addition, the selection-screen should not be displayed, perhaps some parameter is not passed, or the called report logic force the redisplay of the selection-screen, is the called report executed once before display of the selection-screen, if yes this report should be corrected, else fill every required parameter.

Regards,

Raymond

Read only

Former Member
0 Likes
1,416

Try it like this.....

SUBMIT yhrin_rpclga09_01

WITH pnpxabkr = p0001-abkrs

WITH pnptimra = 'X'

WITH pnppabrp = gt_temptab-fperiod

WITH pnppabrj = gv_year

WITH pnppernr-low = gt_temptab-pernr

WITH pnpabkrs-low = p0001-abkrs

WITH s_lgart-low = gv_3fc AND RETURN.

IMPORT satz FROM MEMORY ID 'HK'. " Import the /3FC Total result

Read only

Former Member
0 Likes
1,416

Hi,

try thios way..



This way show the output the below program if the selection parameters are properly passed else it will stop you at selectrion
    submit rswiwils
             with id    = wa_display-wi_id
             with state = wa_display-wi_stat
             with task  = wa_display-wi_rh_task
             with cd    = wa_display-wi_cd
             with ct    = wa_display-wi_ct
             and return.
    if sy-subrc = 0.
    endif.

*   Submit report in background and creating spool
  submit (w_rname) using 
             with id    = wa_display-wi_id
             with state = wa_display-wi_stat
             with task  = wa_display-wi_rh_task
             with cd    = wa_display-wi_cd
             with ct    = wa_display-wi_ct
      to sap-spool without spool dynpro
      spool parameters wa_pri_params and return.
  commit work and wait.


The above will not stop at any screen directly it will execute the and stay in the dialog program screen only but the submit program is executed

Prabhudas