Skip to Content
0
Former Member
May 18, 2009 at 07:01 AM

CL_DD_DOCUMENT- Print_Document not working. Please Help

56 Views

Hi,

I am testing on CL_DD_DOCUMENT and i found that my print_document is doing nothing. No error prompt even i catch the exceptions, no short dump and no printing window prompt to me. Please help.

The display part is working fine though.

The code as below:

when 'PRT'.

CALL METHOD do->print_document

EXPORTING

reuse_control = 'X'

EXCEPTIONS

html_print_error = 1

OTHERS = 2.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

MESSAGE 'Printing not working' TYPE 'E'.

ENDIF.