cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform as PDF in Web Dynpro for ABAP

yadlarajesh
Explorer
0 Kudos

Hello Experts,

I have developed one Web Dynpro application in which i am trying to show PDF converting from smart from on button click.

I am seeing blank screen when i try to display PDF? But when i check i debugging data passed successfully to context element.

PDF source property mapped to review context element.

I used below code to show PDF in view method:

call function 'SSF_FUNCTION_MODULE_NAME'

call function lv_fm_name

call function 'SSFCOMP_PDF_PREVIEW'

call function 'CONVERT_OTF'

elem_pdf->set_attribute(

exporting

name = `SOURCE`

value = data ).

Thanks

Rajesh Yadla

Accepted Solutions (1)

Accepted Solutions (1)

Sm1tje
Active Contributor
0 Kudos

Looks quite alright, but since you only have provided a few function modules, there is 'no' way of telling what is going wrong. I can however give you a link and compare your coding with the one from the tutorial:

[How to display a smartform as PDF in WD4A|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]

Answers (2)

Answers (2)

yadlarajesh
Explorer
0 Kudos

issue reolsve by removing enabled check box in interactive form properties.

Thanks for all your help.

Thanks

Rajesh yadla

Former Member
0 Kudos

Hi Rajesh,

Have specified size for Interactiveform container?

If Not Specify height 1000px

width 1000px...

This could be the reason........