04-27-2006 8:36 AM
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!
04-27-2006 8:40 AM
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
04-27-2006 9:09 AM
"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.