‎2006 Aug 08 12:47 PM
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
‎2006 Aug 08 1:02 PM
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
‎2006 Aug 08 1:02 PM
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
‎2006 Aug 08 1:04 PM
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
‎2006 Aug 08 1:10 PM
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