2005 Nov 30 9:28 PM
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.
2005 Nov 30 9:32 PM
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
2005 Nov 30 9:32 PM
SUBMIT zvtest
WITH s_vbeln = p_vbeln
WITH s_posnr = p_posnr
WITH p_create = 'X'
AND RETURN.
use this
regards
vijay
2005 Nov 30 9:32 PM
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
2005 Nov 30 9:36 PM
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
2005 Nov 30 9:47 PM