Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect "printing of abap report " and proceed?

Former Member
0 Kudos

Hello good day,

I have to do a little project where in, a user views a report in abap. Once he/she prints a report (via menu path <b>List -> Print</b>), once the user agrees to print and it starts to print to a printer, the program returns to the genrated report(as I belive it should annyways) and continues with another proccess (as a result of printing).

Thank you every one, hope to hear from you soon and take care!

2 REPLIES 2

vinod_gunaware2
Active Contributor
0 Kudos

HI CHECK BELOW CODE

IT WILL BE USEFULR

CALL FUNCTION <b>'GET_PRINT_PARAMETERS'</b> EXPORTING

destination = w_destination

layout = 'X_58_170'

no_dialog = 'X'

IMPORTING

out_parameters = params

valid = valid.

  • ALL DISPLAY PARAMETER RIGHT ON PRINTER

<b> NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.</b>

  • PRINT IS OFF AND DISPLAY REPORT ON SCREEN.

PERFORM display_list.

  • OFF THE PRINTING AFTER REPORT IS DISPLAY

<b>NEW-PAGE PRINT OFF.</b>

PERFORM display_list.

NEW-PAGE.

REGARDS

VINOD

0 Kudos

"HI CHECK BELOW CODE

IT WILL BE USEFULR

CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING

destination = w_destination

layout = 'X_58_170'

no_dialog = 'X'

IMPORTING

out_parameters = params

valid = valid.

  • ALL DISPLAY PARAMETER RIGHT ON PRINTER

NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.

  • PRINT IS OFF AND DISPLAY REPORT ON SCREEN.

PERFORM display_list.

  • OFF THE PRINTING AFTER REPORT IS DISPLAY

NEW-PAGE PRINT OFF.

PERFORM display_list.

NEW-PAGE.

REGARDS

VINOD"

________________________________________________________

Sorry I not familiar with this, also it appears to be asking for the parameters I want to pass for a print job.

Sorry If my question was vauge (it was hard for me to explain ), but what I was hoping for is it return to the report page after selecting the print job. upon return I want to check if the print job was successful printing to a printer. Thanks again and take care.