‎2009 Apr 16 8:27 AM
Hi all,
I have created 2 smartforms of different page size. One is of size (30 cm * 25 cm ) (l*b)
and the other one is of size (15 cm * 25 cm ) (l*b).Both the smartforms are called in the same program with different doc types.
My problem is now with the printer.. For one smartform, printer setting is different like skipping page and the other it is different. So each time, user has to change the setting in the printer and take printer.
Can we set the printer settings like page format in ABAP program itself ... Or call the printer in the smartforms or driver program.
Can u pls help me in this..
Cheers
Christina....
‎2009 Apr 16 9:16 AM
Use FM GET_PRINT_PARAMETERS to give print defaults
Hope this helps..
‎2009 Apr 16 9:20 AM
go to parameter CONTROL_PARAMETERS type SSFCTRLOP.
there is a parameter called DEVICE . pass your two deifferent printer name over there according to you program
hope this will help you. send me the reply whether this help you or not
‎2009 Apr 21 6:46 AM
Hi biswakalyana
i want to select different page format ....
Here my client takes all cash vouchers anf bank vouchers in the same printer... But both the forms in differnet formats..
for Cash Voucher they are using A4 size and for bank voucher they r using A5. Both A4 and A5 are differnet page size...
My problem is to select this page size in the program itself or to get it from the user duirng print..
I have assigned the correct paper size (layout) in the smartform, but while printing , if the printer is set default to A5 , then only A5 format is printed even for A4 format also...
If i have to print in A4 , then i have to change the printer setting to A4 and then i have to print.
Is there any possible that i can set the printer setting in smartform...?? ( not the layout , i have set the layout)
Cheers
Christina
‎2009 Apr 21 7:05 AM
Hi
You have to create ur own page format with required dimension in SPAD transaction and use this in smartform..For eg-Check printing.
Thanks
Lavanya
‎2009 Apr 16 9:30 AM
hi
use GET_PRINT_PARAMETERS fm.it wud give you all the values for a particular user.
hope this helps
Aakash Banga
‎2009 Apr 21 7:22 AM
Hi Lavanya,
In the driver program..create two radio buttons on the selection screen one for the A4 page format layout and other for the A5 page format layout ..based on the page formats call the layout and print the data on the page
formats accordingly..
Regards,
Sravanthi