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: 

select-options

Former Member
0 Kudos

Hi Friends,

I need to call select-options parameters into another report.

Thanks

5 REPLIES 5

Former Member
0 Kudos

if you want to export that from one report and import that in another report

use

EXPORT s_field to memory id 'MID'.

and in the other report use

IMPORT s_field from memory id 'MID'.

suresh_datti
Active Contributor
0 Kudos

Did you check the function module RS_REFRESH_FROM_SELECTOPTIONS ?

~Suresh

Former Member
0 Kudos

Hey, Asha.

The following will probebly solve your problem:

DATA: rspar_tab TYPE TABLE OF rsparams,

rspar_line LIKE LINE OF rspar_tab.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-selname = 'SCHEMA'.

rspar_line-kind = 'P'.

rspar_line-low = 'ZM00'.

APPEND rspar_line TO rspar_tab.

SUBMIT rptime00 WITH SELECTION-TABLE rspar_tab

EXPORTING LIST TO MEMORY AND RETURN.

Plz reward if it'll help you ...

R.R.

raymond_giuseppi
Active Contributor
0 Kudos

The way to pass parameter and select-options are

1. ... USING SELECTION-SET vari

2. ... WITH p op f SIGN s

3. ... WITH p BETWEEN f1 AND f2 SIGN s

4. ... WITH p NOT BETWEEN f1 AND f2 SIGN s

5. ... WITH p IN sel

6. ... WITH SELECTION-TABLE seltab

7. ... WITH FREE SELECTIONS texpr

You have to choose the way depending on the data you have on your caller.

If you have the same select-options or parameters use option 2 for parameter and option 5 for select-options.

For more complex selection, you can use option 6, you fill the table SELTAB with the data needed :

for example :


DATA: SELTAB     TYPE TABLE OF RSPARAMS, 

SELTAB_WA LIKE LINE OF SELTAB.

MOVE: 'LANGU' TO SELTAB_WA-SELNAME,
'S' TO SELTAB_WA-KIND, " SELECT-OPTION
'I' TO SELTAB_WA-SIGN,
'BT' TO SELTAB_WA-OPTION,
'D' TO SELTAB_WA-LOW,
'I' TO SELTAB_WA-HIGH.
APPEND SELTAB_WA TO SELTAB.

MOVE: 'E' TO SELTAB_WA-SIGN,
'EQ' TO SELTAB_WA-OPTION,
'F' TO SELTAB_WA-LOW,
SPACE TO SELTAB_WA-HIGH.
APPEND SELTAB_WA TO SELTAB.

CLEAR SELTAB_WA.
MOVE: 'ARBGB' TO SELTAB_WA-SELNAME,
'P' TO SELTAB_WA-KIND, " PARAMETER
'XX' TO SELTAB_WA-LOW.
APPEND SELTAB_WA TO SELTAB.


SUBMIT REPORT00
USING SELECTION-SET 'VARIANT1'
WITH ARBGB CP 'A*'
WITH SELECTION-TABLE SELTAB
AND RETURN. 

Regards.

Former Member
0 Kudos

Hi

Use RS_REFRESH_FROM_SELECTOPTIONS this FM.

pass CURR_REPORT name.

Thanks

Sasmita