Call Printing process
I've created a new button (using PF-STATUS), then I want to make it has the same functionality like print button.
It means :
When a user click the button = When a user click print button.
Please help me...
Thank you in advance,
kishan negi replied
Try to set your data before pushing icon print:
The function code for print is &RNT, so:
- active an exit event for it (perameter IT_EVENT_EXIT):
DATA: GT_EVENT_EXIT TYPE SLIS_T_EVENT_EXIT,
LT_EVENT_EXIT TYPE slis_event_exit.
LT_EVENT_EXIT-ucomm = '&RNT'.
LT_EVENT_EXIT-before = 'X'.
append LT_EVENT_EXIT to GT_EVENT_EXIT.
Now transfer it to fm ALV.
- Create a your routine for user-command:
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
if rs_selfield-before_action = 'X'.
Here insert the code to set your data for print