Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CL_DD_DOCUMENT- Print_Document not working. Please Help

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.

Former Member
Not what you were looking for? View more on this topic or Ask a question