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: 

convert alv to pdf output

Former Member
0 Kudos
2,542

HI Experts i am converting alv  to pdf output .i am getting pdf file but without any records.can u say where is the problem.

1 ACCEPTED SOLUTION

uppu_narayan
Active Participant
0 Kudos
905

Hi Subrat,

      create a spool job for your alv  output and then convert the spool output to pdf using the following function module    CONVERT_ABAPSPOOLJOB_2_PDF

        for more information follow the below guide

             http://www.slashsap.com/2011/12/convert-alv-grid-output-into-pdf-in-sap.html

regards,

narayan

12 REPLIES 12

PeterJonker
Active Contributor
905

You are doing something wrong 

0 Kudos
905

u r a expert 🙂

uppu_narayan
Active Participant
0 Kudos
906

Hi Subrat,

      create a spool job for your alv  output and then convert the spool output to pdf using the following function module    CONVERT_ABAPSPOOLJOB_2_PDF

        for more information follow the below guide

             http://www.slashsap.com/2011/12/convert-alv-grid-output-into-pdf-in-sap.html

regards,

narayan

0 Kudos
905

This message was moderated.

Former Member
0 Kudos
905

Hi,

Please refer this.

this might help.

http://scn.sap.com/thread/1407223

Regards,

Amit

bastinvinoth
Contributor
0 Kudos
905

Former Member
0 Kudos
905

This message was moderated.

Former Member
0 Kudos
905

This message was moderated.

Former Member
0 Kudos
905

I am getting alv pdf but data are not coming.only it s creating an pdf inside a folder .

Former Member
0 Kudos
905

Hi Subrat,

1. Display ALV output as usual using factory method .

2. Create a Button 'Download to PDF' in the GUI status

3. Set the Sy-batch as 'X'.

4. Call the Factory method for list display

5. Catch the sy-spono

6. Use the FM CONVERT_ABAPSPOOLJOB_2_PDF  to convert alv data to PDF.

7. Use the FM GUI_DOWNLOAD  to dowload the above PDF file

Former Member
0 Kudos
905

Thnks expert .I got it.

SwadhinGhatuary
Active Contributor
0 Kudos
905

Hello subrat,

first check  that in alv proper data are displayed.if proper data are come in alv ,then the internal table are fill properly .then check wheather after alv display the internal's data are cleared or refreshed. if so then remove that code line.by using break point you debug your code.

hope this will help you to solve your issue..