‎2008 Jun 24 8:37 AM
Hello , i am branching from one program to another. the problem is that i have a select options on the second screen.I need to pass two values in each box , the low and the high.Any idea on how to do it?
CALL TRANSACTION rep002 AND SKIP FIRST SCREEN.
‎2008 Jun 24 8:43 AM
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.
‎2008 Jun 24 8:44 AM
One way is that you could SUBMIT the second program from the first using "Selection screen options".
Otherwise, you have to assign parameter ids at the data element level with the fields of the transaction (if not assigned.
For creating a parameter id - execute function module "RS_PARAMETER_ADD".
It will generate a parameter id and you can assign this to the data element. )
set those parameter ids and call the transaction skipping first screen.
‎2008 Jun 24 8:45 AM
If you are calling a transaction od an executable program.. make use of the submit statement , through this we can pass the select options.
SUBMIT rm07docs
WITH SELECTION-TABLE i_seltab
AND RETURN.
Thanks,
Rajinikanth.
‎2008 Jun 24 8:58 AM