cancel
Showing results for 
Search instead for 
Did you mean: 

Need to create a pdf on click of link

divya_nayudu
Participant
0 Kudos
48

My requirement is to create a PDF file with some fixed amount of information being displayed in the PDF, on the click of a link...

Currently,ive created links on first column of table, and on click of which, a new page opens up (usnig factory method), i even pass parameter to the page. Now instead of a .htm file, i want a pdf file. How can i achieve this? Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

divya_nayudu
Participant
0 Kudos

avoided use of PDF

Former Member
0 Kudos

Hi,

By triggering some events, you can display a PDF file. Use the below piece of code for you requirement.


In the triggering event,
write the code for the smartform data to be displayed.
Ex: EXPORT <structure1> FROM <structure1> 
      TO MEMORY ID '<Memory>'.

 CALL METHOD current_activity_object->process_document
        EXPORTING
          channel  = '<Event ID>'
        IMPORTING
          document = lv_document.

Reward points if helpful.

Gokul.N