Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from ABAPER on Jun 9 at 8:56 AM Hi Siva, Thanks for your help. I created a GUI Status as PRINT. On AT USER-COMMAND i am calling this following code. DATA: val(1) TYPE c, pripar TYPE pri_params, arcpar TYPE arc_params, lay TYPE pri_params-paart, lines TYPE pri_params-linct, rows TYPE pri_params-linsz. *pripar-PDEST = 'LP01' . lay = 'X_65_132'. lines = 350 . "255. rows = 86 . "65. CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING authority = space in_archive_parameters = arcpar in_parameters = pripar layout = lay line_count = lines line_size = rows immediately = 'X' * no_dialog = 'X' DESTINATION = 'LP01' user = sy-uname IMPORTING out_archive_parameters = arcpar out_parameters = pripar valid = val EXCEPTIONS archive_info_not_found = 1 invalid_print_params = 2 invalid_archive_params = 3 OTHERS = 4. " Add to IT0045 * PERFORM PRINT_REP. WHEN 'BACK' OR 'EXIT' OR 'CANCEL'. LEAVE PROGRAM. " Exit the report ENDCASE. so once i click our print custom button i am getting "Print Screen List" pop up with format, lines and rows whatever i specified. But when i click on ok it's not going to my physical printer(HP printer) nor it's creating a spool copy. I have to pint this on A3 paper with landscape format. where i have to assign my physical printer name and A3 paper type. Your response highly appreciated. Thanks you so much. With Regards, ABAPER
| | | ---------------Original Message--------------- From: siva sekhar Sent: Thursday, June 07, 2012 5:28 AM Subject: Making Print Parameters As Defaults Hello, Yours Assumtion is correct in ALV Functionmodule we need to Pass parameters like below. *In gs_print you have to pass the format.* ** gs_print-print_ctrl-pri_params-pdest = 'ZSPD1024'." 'LOCL'. "'ZSPD_1024'." 'LOCL'. gs_print-print_ctrl-pri_params-linct = '65'. gs_print-print_ctrl-pri_params-linsz = '132'. gs_print-print_ctrl-pri_params-paart = X_65_132. gs_print-no_change_print_params = ' '. call function 'REUSE_ALV_GRID_DISPLAY' exporting i_callback_program = sy-repid is_layout = gr_layout_bck i_callback_pf_status_set = 'SET_PF_STATUS' i_grid_title = text-024 it_fieldcat = gt_fcat is_print = gs_print tables t_outtab = gt_final exceptions program_error = 1 others = 2. if sy-subrc <> 0. * message id sy-msgid type sy-msgty number sy-msgno * with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. endif. Please let me know still your facing issues. Thanks, Kandula | | Reply to this email to post your response. __.____._ | In the Spotlight Become a blogger at Toolbox.com and share your expertise with the community. Start today. _.____.__ |