cancel
Showing results for 
Search instead for 
Did you mean: 

internal table in pdf output

Former Member
0 Kudos

Hi All,

My requirement is on click of a button i need to opwn a new window and display the table output through pdf.

I am displaying a table through my bsp page using html code.

On click of a button i need to open a window and show up the table data in pdf which should be printable.

Am not using any iterator for my table. i just need transfer the internal table output to pdf and display.

Please help.

Thanks,

Sandeep.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member233090
Active Contributor
0 Kudos

Hi Sandep,

yes that is the blog where you can find your solution.

/people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp

cheers

Bhavana

Former Member
0 Kudos

Hi,

for that you need to work with forms (sapscript, smartforms, adobe forms). The last 2 offer functions that can generate the necessary code for the PDF output. In the case of smartform, the function has parameter job_output_info for that and you have to work additionally with function CONVERT_OTF.

[This blog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1002] [original link is broken] [original link is broken] [original link is broken]; tells you how to generate the PDF from your BSP.

For opening a window, you need javascript code. I am answering very recently a similar question [here|;.

Former Member
0 Kudos

Hi Alonso,

Am not able to get the solution for my requirement, could you please give me the detailed solution.

Can i go in this way.

What parameters should i use for otf FM



//...convert otf FM


CONCATENATE cl_abap_char_utilities=>byte_order_mark_little
                l_xstring
           INTO l_xstring IN BYTE MODE.

    CONCATENATE 'attachment; filename=NIM2_matter_Summary_'
                sy-uzeit
                '.pdf'
           INTO l_content.


    CALL METHOD cl_bsp_utility=>download
       EXPORTING
           object_s            = l_xstring
           content_type        = app_type
           content_disposition = l_content
           response            = _m_response
           navigation          = _m_navigation.

Thanks in advance.