Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Call Printing process

Dear All,

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,

Sandi

Tags:
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.

CASE R_UCOMM.

WHEN '&RNT'.

if rs_selfield-before_action = 'X'.

  • Here insert the code to set your data for print

endif.

WHEN OTHERS.

ENDCASE.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question