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

Branching problem using parameter ID

dev_parbutteea
Active Contributor
0 Likes
612

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.

4 REPLIES 4
Read only

Former Member
0 Likes
491

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.

Read only

Former Member
0 Likes
491

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.

Read only

Former Member
0 Likes
491

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.

Read only

dev_parbutteea
Active Contributor
0 Likes
491

hi rajnikanth, what does the selection table contain?