I am trying to trigger a printout from my ABAP code using "NEW-PAGE PRINT ON ...... NEW-PAGE PRINT OFF" statement.
I am passing the Print Parameters using the FM "GET_PRINT_PARAMETERS" as below:
CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING destination = ls_options-tddest copies = 1 list_name = 'Notification' list_text = 'ERROR NOTIFICATION' immediately = 'X' release = 'X' new_list_id = ' ' * expiration = line_size = 79 line_count = 23 layout = 'X_65_80' sap_cover_page = ' ' receiver = 'SAP*' department = 'System' no_dialog = 'X' IMPORTING out_parameters = lv_params.
But I am facing a problem. Though I am passing X_65_80 to the LAYOUT in the Function Module, it is trying to print in LETTER format. But the specified printer as the printer supports only A4 paper format and as a result, I am not getting any printout.
Kindly help me with your suggestions to resolve this.
Thanks in advance.