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: 

sap script otf to pdf

former_member800409
Discoverer
0 Kudos
748

Hi,

I'm working on a report where both smartform and scripts need to be downloaded in PDF format. In case of smartform, I get the OTF data using the function module and then use `CONVERT_OTF_2_PDF` for conversion.

In the case of SAP Scripts, the function module CLOSE_FORM has a table called otfdata which can be converted to PDF using the above mentioned module. But, do we need to call OPEN_FORM and WRITE_FORM before CLOSE_FORM, if so we need to call WRITE_FORM for every windows? What's the suitable way to do this?

Please provide suggestions.

5 REPLIES 5

Sandra_Rossi
Active Contributor
670

Smart Form: exporting parameter JOB_OUTPUT_INFO, component OTF_DATA, of function module:

  • either the generated one (explicit open and close)
  • or SSF_CLOSE

SAPScript:

  • Parameter OTFDATA of function module CLOSE_FORM.

0 Kudos
670

Why can we create an answer but not edit anymore !!!???

I meant:

  • either the generated one (implicit open and close)

670

Hi, sandra.rossi :

The issue has been reported, and we are currently investigating.

Kind regards,

--Jerry

Make sure to subscribe to What's New!

0 Kudos
670

Hi sandra.rossi,

Just like I call the function module of smart forms, can I call the CLOSE_FORM of the particular sap script ? I'm new to this, and I'm not sure how the above way works.

0 Kudos
670

Are you asking a very specific question about SAPScript but you don't know how it works? Please explain the context by editing your question then. Or ask a new question.