on 11-13-2003 12:51 PM
hi,
how to code for print button in a dialog program, that is in PAI event.
thanks
patrick
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you're putting a button on your dynpro, yoo'll have to give a status to the program that deals with that button. You'll have to use the menu painter for that. Then you'll have to ask in PAI if the button has been pressed (i.e. the status has been set) and then you write a routine with the content what to do if this button was pressed.
Kind regrads Axel Kiltz
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
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.