cancel
Showing results for 
Search instead for 
Did you mean: 

BSP-how to convert the text into pdf.

Former Member
0 Kudos

how to write the text by using function module to convert into the pdf on views.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184111
Active Contributor
0 Kudos

Hi Bala,

Check out the links below:

[Generate PDF Output from a BSP|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1002] [original link is broken] [original link is broken] [original link is broken];

[Using External Tools to Generate PDF Output from BSPs |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a9f3e590-0201-0010-4da9-c195623f88c3]

[BSP to PDF|]

[BSP and PDF|]

Regards,

Anubhav

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bala,

Did you search this query on SCN before posting??

[75 similar thread..|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=convertthetextintopdfinbsp&adv=false&sortby=cm_rnd_rankvalue]I got

Thanks

Former Member
0 Kudos

Hi

u can try with FM


call function 'CONVERT_OTF'
    EXPORTING
      format                = 'PDF'
    IMPORTING
      bin_filesize          = l_pdf_len
      bin_file              = l_pdf_xstring
    TABLES
      OTF                   = OUTPUT_DATA-OTFDATA
      LINES                 = LT_LINES
    EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      others                = 5.

Regards

Sachin