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: 

How to display the selection screen fields on reprt output

Former Member
0 Kudos

Hi,

I would like to know, which function module is use to diplay the selction scrren fields on the report output.

For e.g:

on selction scren I have two select options.

1. Company Code : 0000 to 9999

2. Fiscal Year : 2005 to 2008

I need to display these fields on the Report ouput, so that I can know that what selection criteria I have entered on selction screen.

Thanks & Regards

Chetan Chauhan.

1 ACCEPTED SOLUTION

former_member705122
Active Contributor
0 Kudos

Hi,

You can use the function module RS_REFRESH_FROM_SELECTOPTIONS to read the contents of the parameters and selection options of the current program into an internal table seltab with the structure RSPARAMS .

Check this link :

http://members.tripod.com/sap_abap/submit_i.htm

Regards

Adil

5 REPLIES 5

Former Member
0 Kudos

Please check the FM RS_REFRESH_FROM_SELECTOPTIONS

Former Member
0 Kudos

Hi Chetan,

Lets say u have selection criterion as

*SELECTION SCREEN

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS : pa_werks LIKE vlcvehicle-werks DEFAULT 'XXX' OBLIGATORY,

pa_date LIKE sy-datum DEFAULT sy-datum.

SELECT-OPTIONS : so_vbeln FOR vbrk-vbeln.

SELECTION-SCREEN END OF BLOCK b1.

Put a selection on that criterion according to selection screen,

Fill in a internal table.

Write itab-field1, field2.

Also use ABAPDOCU a tcode where u can find many demo programmes for all topic.

Reward points if useful.

cheers

Mohinder Singh

Cheers

Mohinder Singh Chauhan

former_member705122
Active Contributor
0 Kudos

Hi,

You can use the function module RS_REFRESH_FROM_SELECTOPTIONS to read the contents of the parameters and selection options of the current program into an internal table seltab with the structure RSPARAMS .

Check this link :

http://members.tripod.com/sap_abap/submit_i.htm

Regards

Adil

former_member787646
Contributor
0 Kudos

Hi

You can display the values on the report as...

WRITE:/ 'Company Code:', <company_code_select_option>-low, <company_code_select_option>-high.

WRITE:/ 'Fiscal Year:', <fiscal_year_select_option>-low, <fiscal_year_select_option>-high.

Hope this would help you.

Murthy

Former Member
0 Kudos

use FM : PRINT_SELECTIONS