cancel
Showing results for 
Search instead for 
Did you mean: 

seeing the preview through reports

Former Member
0 Kudos

Hi All,

I want to dipslay the output through print preview.

i am using reports in which i have a radiobutton for print preview, when i click on this and execute i should get the print preview of smartforms.

how do i achieve this?

please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Poonam,

create the radiobutton as below in ur selection screen:

parameters: r1 as radiobutton group rb1 user command ucom.

start-of-selection.

if r1 eq 'X'.

call function 'ssf_function_module_name'.

......

......

endfunction.

from the above function module, will get function module name (generated by smartform).

store that name in one variable say var_fm_name.

call function var_fm_name.

.....

.....

endfunction.

endif.

So whenever that radiobutton is checked , you will get smartform preview.

Hope it helps!!!

Former Member
0 Kudos

Hi sarita,

i am getting this error :

The radio button group "G1" contains only one PARAMETER.

i guess we need not give this group as only one radio button is defined.

can you tell me how to proceed?

Former Member
0 Kudos

Hi Poonam,

Actually we cannot have single radio button in one radio button group. Instead of radio button , u can use check box .

Former Member
0 Kudos

but i have many other options in selection screen, so i dont think so check box ll be fine..

can we use any button ..?

Former Member
0 Kudos

yes u can use a push button on selection screen

see the code here:

[Pushbuttons on the Selection Screen |http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm]

кu03B1ятu03B9к