2009 Jan 06 6:20 AM
What is the easiest way to print a PDF document from an ABAP program? I have the data in the following formats:
Binary (XSTRING)
String (from function module HR_KR_XSTRING_TO_STRING)
OTF
What format can I use in a smartform to print the PDF in the background?
Thanks in advance.
2009 Jan 06 6:21 AM
u can easily convert otf to pdf.
check this wiki
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/smartform%2boutput%2bto%2bpdf%2bformat
кu03B1ятu03B9к
Edited by: kartik tarla on Jan 6, 2009 11:51 AM
2009 Jan 06 7:49 AM
kartik,
The link you provided saves the PDF to a file. I can do that just fine and open it in Adobe Reader. However, I need to print this PDF to a printer.
2009 Jan 06 7:49 AM
kartik,
The link you provided saves the PDF to a file. I can do that just fine and open it in Adobe Reader. However, I need to print this PDF to a printer.
2009 Jan 06 7:50 AM
kartik,
The link you provided saves the PDF to a file. I can do that just fine and open it in Adobe Reader. However, I need to print this PDF to a printer.
2009 Jan 06 7:56 AM
kartik,
The link you provided saves the PDF to a file. I can do that just fine and open it in Adobe Reader. However, I need to print this PDF to a printer.
2009 Jan 06 6:22 AM
2009 Jan 06 7:22 AM
Sandipan,
If I use the UTF format, what do I use for the device type? PDF1? Also, I have the OTF data in an internal table which has to fields (TDPRINTCOM and TDPRINTPAR). I pass this table into the smartform function module but what do I do with the 2 fields when I loop through the internal table in the smartform? Do I just output a text node with TDPRINTPAR and ignoreTDPRINTCOM?
TDPRINTCOM TDPRINTPAR
========== ==========
// XHPLJ4 0700 00000000001
IN 04E/ERPIS/CARRIERLABEL
IN 05%PAGE1
OP DINA4 P 144 240 1683811906000010000100000
IN 06MAIN
IN 03TABLE_BEGIN
MT 0141701657
CP 41030000E
FC COURIER 120 00144 SF012SF012410300144E
2009 Jan 06 6:22 AM
2009 Jan 06 6:23 AM