CL_DD_DOCUMENT- Print_Document not working. Please Help
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:
CALL METHOD do->print_document
reuse_control = 'X'
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'.