Application Development and Automation 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: 
Read only

How to convert a SAP Script to PDF using Webdynpro???

Former Member
0 Likes
865

How to convert a SAP Script to PDF using Webdynpro???

How to convert a SAP Script to PDF using Webdynpro???

4 REPLIES 4
Read only

Patrick_vN
Active Contributor
0 Likes
832

Trigger your sapscipt print program. The function module CLOSE_FORM can return the sap script in OTF format.

Using the function module CONVERT_OTF you can transform that to an internal table with the contents of the pdf.

I believe you'll have to transform that internal table to a string, and that you can use in a WDA view to show the original form as a pdf

Read only

0 Likes
832

Hi Patrick van Nierop,

you have any sample program related to my scenario?

Read only

0 Likes
832

I don't have any sample progam lying around that does all that no. A lot can be found on google though.

I suggest you check our the print program first. Once you have that, you can easily adapt/recreate it to return the otf. Converting it to an internal table and a string should be easy.

Then look around on the internet on how to show a pdf in webdynpro (and again, there are a lot of tutorials on de subject around)

Read only

Juwin
Active Contributor
0 Likes
832

What do you mean by saying "using Webdynpro"?


SAP Script to PDF, doesn't require Webdynpro at all. It just needs a call to function module CONVERT_OTF_2_PDF.

What is the relevance of the word "Webdynpro" here?

Thanks,

Juwin