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

Smartforms Printing

Former Member
0 Likes
505

Hi,

Could anyone suggest as how I can print a particular page

from a smartform output.

For eg. if I have a print preview of 10 pages , how do i select print out of page 5.

Regards

Rasheed

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
477

Hi Rasheed,

Go to Transaction SP01.

Goto - > Display Request - > Setting.

In the display Area tab Enter the from page 5

To page 5.

Print your transport request.It will print 5th pages of the total pages

3 REPLIES 3
Read only

Former Member
0 Likes
478

Hi Rasheed,

Go to Transaction SP01.

Goto - > Display Request - > Setting.

In the display Area tab Enter the from page 5

To page 5.

Print your transport request.It will print 5th pages of the total pages

Read only

Former Member
0 Likes
477

u have to two options - as per my knowledge.

1.In that Print Preview u have can give/ select.

2.U have to pass the these data thru FM by using FORM Interfacess.

Regards

Prabhu

Read only

Former Member
0 Likes
477

Hi Rasheed,

Check the code.Add this FM in your program.After executing the code it will ask you for the printer enter your printer name.

data : g_dest TYPE rspopname,

g_printer TYPE rspoptype.

*FM to accept the device type and returns the short name of the output device

CALL FUNCTION 'EFG_GET_PRINTER'

EXPORTING

x_no_dialog = ' '

x_obligatory = 'X'

IMPORTING

y_tddest = g_dest

EXCEPTIONS

cancelled = 1

failed = 2

OTHERS = 3.

*device type name for the output device

SELECT SINGLE patype "#EC CI_NOFIELD

FROM tsp03d

INTO g_printer

WHERE padest = g_dest.

output_options-tddest = g_dest.

output_options-tdprinter = g_printer.

Reward Points for the helpful solutions.

Regards,

Harini.S