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.

Hi!
Check for DD_* sample reports.

Similar Messages

Maybe you are looking for

  • Rowid Problem in Forms 9i.

    Hi, I have uploaded some data through excel marcro to 10G database. When I am querying the data in my forms application based on Default_Where as if name_in('parameter.prm_rowid') is not null then           set_block_property( 'BLK_GL_DET', DEFAULT_W

  • Diamond Plus and shutdown problem *resolved*

    I am just wondering if anyone else is experiencing this.  There is one other fellow on another forum that just built a system around this board that is experiencing a similar situation. I am running windows (32 bit) and using the original bios (no is

  • Nanno won't connect to Stereo Dock

    I am having trouble getting my 5th gen nano to connect to my home stereo dock. It returns a message on the nano "Unrecognised Device" Older nanos 2nd & 3rd Gen work but my new one won't. Any suggestions how I fix this?

  • Hana cloud trial database as a datastore in Data Services

    Has anyone managed to connect a Hanatrial cloud database as a datastore in Data Services. What should I place in the 'Server' field? Or does it need to be Hana odbc with a tunnel setup? Any help appreciated. Colm.

  • Call a program of another  system from one system

    Hello Gurus, I have a module pool in R/3 in which i have a tab  which call a progam of another system. Actaully a screen is call, as the user which i hav to use is a system user i can not use call transtion. its gives me a error. Dynpro_send_in_backg