cancel
Showing results for 
Search instead for 
Did you mean: 

Open PDF document automatically after executing

Former Member
0 Kudos

Hi,

I am converting my smartform output to PDF within the program and now i donot want to show any dialog box to the user to save the pdf document on the harddisk. when the user calls this form from a SAP Standard transaction using "issue ouput to screen" option, the pdf document should directly open up on the screen immediately.

Can anyone let me know how to code this?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197281
Active Participant
0 Kudos

Hi,

you can use the file_open_dialog method of the class cl_gui_frontend_services

Reward points if helpful,

Regards,

jinesh.

Former Member
0 Kudos

Sorry for a very late reply. I was trying to see how i can use this method. But this method seems like doesn't work in the way i explained above.

I do not want the user to see any SAVE or OPEN file dialog box. The program should automatically open the document on the screen. If possible, without saving the document anywhere on the system. And if this is not possible (i.e., opening the document without saving) atleast it should automatically detect the temp directory on the user's system and then store it there.

If possible, could you please suggest to which parameters i need to pass the values?

Please let me know.

Message was edited by:

Aditya Atluri

laxmanakumar_appana
Active Contributor
Former Member
0 Kudos

This message was moderated.