Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.