Skip to Content
author's profile photo Former Member
Former Member

problem when transform a smartform to pdf

Hi all:

When I run the program to dispaly pdf transformed from smartform,

the IE explorer is busy dead, have you ever met the same problem?

thank you very much

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 01, 2010 at 11:28 AM

    Do a trace and find out which part of the code is taking too much time. Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Interesting!

      the article would appear to be wrong!

      You don't need to call this FM at all - indeed - as it is only called with exporting parameters it is not going to change your form at all!

      in the code:

      lt_otfdata[] = lv_ssf_output-otfdata[].
      call function 'SSFCOMP_PDF_PREVIEW'
      exporting
      i_otf = lt_otfdata
      exceptions
      convert_otf_to_pdf_error = 1
      cntl_error = 2
      others = 3.
      .
      if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      data: l_dummy type standard table of tline,
      pdf_data type xstring,
      pdf_size type i.
      

      remove the section:

      call function 'SSFCOMP_PDF_PREVIEW'
      exporting
      i_otf = lt_otfdata
      exceptions
      convert_otf_to_pdf_error = 1
      cntl_error = 2
      others = 3.
      .
      if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      

      hopefully you can now generate your PDF.

      Let us know if you have any further problems.

      Chris

  • Posted on Jul 01, 2010 at 06:14 AM

    Hi,

    What is the size of the pdf getting generated out of the smartform? You may face this issue when the size of pdf is large and

    takes time to get downloaded. This should not be an issue with the code. Try waiting for sometime and check if it gets loaded.

    Regards,

    Sagar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      sorry for not explaining it clearly, the data to be diplayed is an internal table with only four lines, I think maybe PDF's size is big even data transfered to it is not so much. how to concol the size of the file of PDF. for example, the picture of BMP type is big,

      but jpg type of the same picture is much less big. I am not sure the comparision here is plausible.

      ***********************

      You may face this issue when the size of pdf is large and takes time to get downloaded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.