07-21-2008 8:48 AM
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.
07-21-2008 9:03 AM
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
07-21-2008 8:53 AM
07-21-2008 8:56 AM
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
07-21-2008 9:03 AM
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
07-21-2008 9:04 AM
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
07-21-2008 9:07 AM