Skip to Content
0
Jul 02, 2009 at 01:28 PM

Print Popup should not come

35 Views

Hi,

I want to pass default printer Name, whenever user click on print u201CPRINTu201D printer should select and automatically gets print.

Without generating Spool Request.

*--


Call Smartforms--


CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZZMM_PURCHASE_ORDER'

IMPORTING

FM_NAME = L_FM_NAME

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 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.

CALL FUNCTION L_FM_NAME

TABLES

IT_IFINAL = IT_IFINAL

WA_HFINAL = WA_HFINAL.

*----