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

Skip Selection screen

Former Member
0 Likes
9,454

Hi Friends,

I need to run a report and before the report is generated i need to run a Extract program. So the screen sequence is goe like this.

1. The initial selection screen is the selection criteria for the report.

2. Once the criteria is given and executed it calls up another selection screen which forms the selection criteria for the extraction program.

3. Then the report is displayed.

My requirement is to suppress the selection screen for the extraction program ie the extraction program should run in the background with pre-defined selection criteria. How to go about it?

If i use SUBMIT .. VIA SELECTION SCREEN.. it still comes up with the selection screen with the pre-defined values.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
4,066

Submit your program like this......

SUBMIT program
        with p_field1 = a_parameter
        with p_field2 = b_parameter
        with s_field3 in c_select_Option
               and return.

Here you are passing values from varialble to the selection-screen fields, lets say they are P_FIELD1 and P_FIELD2. Using the WITH statement allows you to pass parameters as well as select-options. It will skip the selection screen and continue processing with the passed selection-screen values.

Regards,

Rich Heilman

4 REPLIES 4
Read only

Former Member
0 Likes
4,066
  SUBMIT zvtest
         WITH s_vbeln  =  p_vbeln
         WITH s_posnr  =  p_posnr
         WITH p_create = 'X'
           AND RETURN.

use this

regards

vijay

Read only

RichHeilman
Developer Advocate
Developer Advocate
4,067

Submit your program like this......

SUBMIT program
        with p_field1 = a_parameter
        with p_field2 = b_parameter
        with s_field3 in c_select_Option
               and return.

Here you are passing values from varialble to the selection-screen fields, lets say they are P_FIELD1 and P_FIELD2. Using the WITH statement allows you to pass parameters as well as select-options. It will skip the selection screen and continue processing with the passed selection-screen values.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
4,066

If you are submitting then you should pass the parameters to the selection screen of submit program .

i am setting the screen fields to avoid selection screen.

regards

vijay

Read only

0 Likes
4,066

Tom, these suggestions should have solved your problem. Please make sure to award points for helpful answers and mark you post as solved. Thanks.

Welcome to SDN!

Regards,

Rich Heilman