cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Smartform to PDF in wda

Former Member
0 Kudos

Hi,

How to use the "datasource" and "pdfsource" properties of interactive form component to convert smartform to pdf in wda?

can somebody help me pls?

Thanks.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you very much for all of your replies,

i solved my problem.

Former Member
0 Kudos

hi,

check this

[https://forums.sdn.sap.com/click.jspa?searchID=20808560&messageID=6676537]

[https://forums.sdn.sap.com/click.jspa?searchID=20808560&messageID=6463426]

[https://forums.sdn.sap.com/click.jspa?searchID=20808560&messageID=6448682]

[https://forums.sdn.sap.com/click.jspa?searchID=20808560&messageID=6663206]

Edited by: Neha Thukral on Jan 12, 2009 5:34 AM

saket_abhyankar
Active Participant
0 Kudos

Hi

Following are the steps.

1) Use the function module ''CONVERT_OTF' to convert otf data of any Smartform into PDF format.

call function 'CONVERT_OTF'

exporting

format = 'PDF'

importing

bin_filesize = size

bin_file = file

tables

otf = lt_otf[] "otf data of the smartform

lines = l_dummy

exceptions

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 3

others = 4.

2) Create attribute of type xstring in the context

3) Set the value of importing parameter 'file' of above fun mod to the attribute created in above step

4) Create 'interactiveform' UI element in the view

5) Map the 'pdfsource' property of above UI element with the attribute created in 2nd step

Regards,

Saket

arjun_thakur
Active Contributor
0 Kudos

Hi Nurullah,

Check this [link|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]

Refer to this [link|https://www.sdn.sap.com/irj/scn/interactiveforms-elearning] as well.

I hope it helps.

Regards

Arjun