Skip to Content
author's profile photo
Former Member

how to code for print operation in dialog programs

hi,

how to code for print button in a dialog program, that is in PAI event.

thanks

patrick

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Nov 20, 2003 at 06:43 PM

    It depends on what you want to print. Do you want to print the screen-shot? If so, you don't need a button - just use SAP's menu Alt+F12 -> Hard copy.

    Do you want to print the contents of a ALV grid control? Still you can use ALV's print button.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Sorry!

      My previous answer was only half the truth! You do so if you use a function key, pushbutton on top or menu entry in the top menu.

      You can put a big fat pushbutton in the middle of your dynpro or wherever you want. Then you have to give a character identifier (f.e. "my_p") with that pushbutton. If the pushbutton is pressed in PAI the action is taken that is coded under:

      if sy-ucode = 'MY_P'.

      • action

      endif.

      Regards Axel Kiltz