cancel
Showing results for 
Search instead for 
Did you mean: 

Printing PDF file data through ABAP program.

Former Member
0 Kudos

Hi Friends,

I've an requirment to print a PDF data through ABAP program and PDF data is in Binary format.

Could you please suggest me any function module realted to this!

I need to re-build the program in CRM box, Currently their is a program to get data from CRM box as per the GUI ID it will fetch all the attachments and we are fittering for PDF.

At the End of program we have final internal table with Binary formate and we are sending PDF through email. But, client is asking us for addtion future to Print PDF through ABAP Program as per the PDF.

Kinldy suggest me how to go about this.!!

Thanks in Advance!

Regards,

Mallik

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member205763
Active Contributor
0 Kudos

The method suggested by archana works but with a prerequisite that adobe reader needs to b installed on the system.

Former Member
0 Kudos

Kartik,

In case of Frondend services we need to have the local system installed/compatible with Adobe Acrobat reader.

Since we are not using SAP's compatbility.

Thanks,

Preyansh

Former Member
0 Kudos

Hi,

PDF printing is possible. But, for that when you convert your report output to PDF, you will have to download that PDF file to local system.

After downloading this file. You can use below FM to print that file, passing file path and file type as 'BIN'.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING 
  DOCUMENT   =  FILEPATH
  OPERATION  =  'PRINT'.

It worked in my case. It should work for you as well.

Thanks,

Archana

Former Member
0 Kudos

Hello,

SAP supports PDF conversion in 2 way's:

1. Convert using program RSTXPDFT4 , RSTXPDFT2 , RSTXPDF

2. Convert using printer device type ZPDF<x>

See SAP note 317851 - Creating PDF format using the SAP spooler

Regards.