Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Printer Setting In smartforms

Former Member
0 Likes
4,409

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....

6 REPLIES 6
Read only

Former Member
0 Likes
1,711

Use FM GET_PRINT_PARAMETERS to give print defaults

Hope this helps..

Read only

Former Member
0 Likes
1,711

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

Read only

0 Likes
1,711

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

Read only

0 Likes
1,711

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

Read only

Former Member
0 Likes
1,711

hi

use GET_PRINT_PARAMETERS fm.it wud give you all the values for a particular user.

hope this helps

Aakash Banga

Read only

Former Member
0 Likes
1,711

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