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: 

Skip Selection screen

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

former_member188685
Active Contributor
0 Kudos
  SUBMIT zvtest
         WITH s_vbeln  =  p_vbeln
         WITH s_posnr  =  p_posnr
         WITH p_create = 'X'
           AND RETURN.

use this

regards

vijay

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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

0 Kudos

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