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

Printing a PDF document using SMARTFORMS

Former Member
0 Likes
1,419

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,253

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

Read only

0 Likes
1,253

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.

Read only

0 Likes
1,253

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.

Read only

0 Likes
1,253

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.

Read only

0 Likes
1,253

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.

Read only

Former Member
0 Likes
1,253

Hi,

Use OTF.

Regards

Sandipan

Read only

0 Likes
1,253

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

Read only

Former Member
0 Likes
1,253

refer to the following link..

it may solve ur problem.

Read only

Former Member
0 Likes
1,253

Hi Tony,

Refer the following thread:

Hope this will help.

Regards,

Nitin.