Application Development 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: 

FM or method to print PDF document

Former Member
0 Kudos

Hi,

We have created a program that downloads a pdf document from CV03n transaction. The filename and filepath of the file are known in the program.We immediately need to print this PDF document on execution of the program without opening the file at frontend.

Is there any FM or method that can directly fire the PDF print without opening the document?

Regards,

Simmi

2 REPLIES 2

Former Member
0 Kudos

I think u can use FM GUI_EXEC as shown below:

CALL FUNCTION 'GUI_EXEC'

EXPORTING

COMMAND = 'print command for your front end with the filename'

PARAMETER =

*IMPORTING

  • RETURNCODE =

for windows the COMMAND would be ' print C:\TEST.PDF' ie. your filepath + filename in the Program

Regards Deepak

0 Kudos

Hi Deepak,

It didn't work. Moreover this GUI_EXEC is obsolete in ECC 6.0.

Regards,

Simmi