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

FM 'RS_REFRESH_FROM_SELECTOPTIONS'

Former Member
0 Likes
3,664

Hi, Can anybody please help me out in how to use the FM

'RS_REFRESH_FROM_SELECTOPTIONS' in my report? I want to display all the slection criteria from the input screen to my downloaded text file. Thanks..

4 REPLIES 4
Read only

andreas_mann3
Active Contributor
0 Likes
1,182

hi,

save your sel-criteria as variant and use fm

RS_VARIANT_CONTENTS

Andreas

Read only

0 Likes
1,182

<b>FM "RS_REFRESH_FROM_SELECTOPTIONS</b>" to pass the program name and get the selection screen elements into an internal table.

DO a search on RSSELECT you will get a huge list of usefull function modules which can be used for working with selection screen.

You can also use <b>"RS_SELECTIONS_DESCRIPTION".</b>

Read only

Former Member
0 Likes
1,182

Hi Sagar

You can use this FM in the report to know the values keyed in as input in selection-screen.

Eg:

tables: t001, mara, marc, mard.

parameters: p_matnr like mara-matnr,

p_burks like t001-bukrs.

select-options: s_werks for marc-werks,

s_lgort for mard-lgort.

data: it_sels like RSPARAMS occurs 0 with header line.

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

CURR_REPORT = sy-repid

  • IMPORTING

  • SP =

TABLES

SELECTION_TABLE = it_sels

  • EXCEPTIONS

  • NOT_FOUND = 1

  • NO_REPORT = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Place a break-point after the FM execution and see the values populated in it_sels.

For more information you can refer to the documentation provided within the FM. Thatz more clear.

Kind Regards

Eswar

Note: Reward for helpful answers

Read only

Former Member
0 Likes
1,182

Hi,

Usage is:

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

CURR_REPORT = 'SDLIPL01'

TABLES

SELECTION_TABLE = SELECTION_TABLE

EXCEPTIONS

NOT_FOUND = 01

NO_REPORT = 02.

Curr_report is the current report name and you can clear/refresh the selection_table before calling the FM.

Rgds,

HR