cancel
Showing results for 
Search instead for 
Did you mean: 

Download PDF file from ALV

former_member205842
Participant
0 Kudos

Hi.

I have req that i want to display a table with records ..in last column i have to display a pdf file link when i click on that link i want to download  pdf file...Please help me how to achieve this req ...

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos
Former Member
0 Kudos

First, you need a clickable hotspot - you define it by setting the fieldname in your layout:

DATA:     lt_layout         TYPE          slis_layout_alv.

lt_layout-key_hotspot       = 'X'.
lt_layout-hotspot_fieldname = 'PDF'

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING

...
    is_layout                = lt_layout

...

In your fieldcatalog, you have to set hotspot = 'X'. When it's pressed, you can check the fieldname when sy-ucomm is '&IC1'. For displaying the PDF, there are several possibilities - where are the PDFs stored?

former_member187692
Participant
0 Kudos

Hi,

       In an ALV at output you can find an export button over the alv grid. By clicking that option we can download the output displayed into an excel sheet.

Hope this helps ?

former_member210252
Contributor
0 Kudos
former_member205842
Participant
0 Kudos

Hi Rafi,

           Thanks for replying ....But my req is, i want to  download PDF file from Webdynpro ALV Table not from normal table....

former_member210252
Contributor
0 Kudos

Hi,

Generally after you set the data into the internal table , then the same data of the internal table is set to ALV table in webdynpro. So it doesn't matter that data should come from ALV table only.

Regards,

Rafi