Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from sivasekhar on Jun 9 at 1:37 PM Hello instead of LP01 you have to give your Printer name(HP printer name) In user settings SU01 Make sure that give the same printer Name . Ask your Basis consultant (or) you can also check in Transaction SPAD what is the defulat set for out put basically it is A4 .. there you change it to A3 format. Please Try this and let me know still you are not able to get out put i will send you the document with source code by couple of days . Thanks, Siva kandula
| | | ---------------Original Message--------------- From: ABAPER Sent: Saturday, June 09, 2012 8:57 AM Subject: Making Print Parameters As Defaults 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 | | 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. _.____.__ |