cancel
Showing results for 
Search instead for 
Did you mean: 

how to take print out of a smart form?

Former Member
0 Kudos

Hi all,

how to take print out of a smart form?

Title was edited by:

Alvaro Tejada Galindo

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

As others have mentioned already, we can take printout using code.

Also, when u select the output type of the smartform, there also a print icon is available using this icon also, we can take printout.

Former Member
0 Kudos

Thanks all

Former Member
0 Kudos

hi

good

go through this code,this might help you to solve your prob

**Set Print control

PERFORM frm_set_print_control USING g_lines g_index.

&----


*& Form frm_set_print_control

&----


  • text

----


  • -->P_G_LINES text

  • -->P_G_INDEX text

----


FORM frm_set_print_control USING p_lines

p_index.

CASE p_lines.

WHEN 1.

gfc_control-no_open = space.

gfc_control-no_close = space.

WHEN 2.

CASE p_index.

WHEN 1.

gfc_control-no_open = space.

gfc_control-no_close = 'X'.

WHEN 2.

gfc_control-no_open = 'X'.

gfc_control-no_close = space.

ENDCASE.

WHEN OTHERS.

CASE p_index.

WHEN 1.

gfc_control-no_open = space.

gfc_control-no_close = 'X'.

WHEN p_lines.

gfc_control-no_open = 'X'.

gfc_control-no_close = space.

WHEN OTHERS.

gfc_control-no_open = 'X'.

gfc_control-no_close = 'X'.

ENDCASE.

ENDCASE.

ENDFORM. " frm_set_print_control

thanks

mrutyun^

Former Member
0 Kudos

DATA : W_OUTPUT_OPTIONS TYPE SSFCOMPOP,

W_CONTROL_PARAMETERS TYPE SSFCTRLOP.

START-OF-SELECTION.

W_CONTROL_PARAMETERS-NO_DIALOG = 'X'. 'skip dialog screen

W_OUTPUT_OPTIONS-TDDEST = 'FRT'. 'set print

W_OUTPUT_OPTIONS-TDIMMED = 'X'. ' set print immed