2006 Aug 08 7:22 AM
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..
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..
2006 Aug 08 7:29 AM
hi,
save your sel-criteria as variant and use fm
RS_VARIANT_CONTENTS
Andreas
2006 Aug 08 7:31 AM
<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>
2006 Aug 08 7:31 AM
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
2006 Aug 08 7:35 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |