<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239156#M482608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the sppol of smartforms to convert to PDF&lt;/P&gt;&lt;P&gt; spoolid = spdel-rqident = sy-spono.&lt;/P&gt;&lt;P&gt;  spdel-sys = sy-sysid.&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            src_spoolid   = spoolid&lt;/P&gt;&lt;P&gt;            no_dialog     = 'X'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            pdf_bytecount = pdf_fsize&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            pdf           = pdf_table&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others        = 0.&lt;/P&gt;&lt;P&gt;reward points&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2007 11:44:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-26T11:44:47Z</dc:date>
    <item>
      <title>smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239155#M482607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the function module to convert pdf format in smartforms.?&lt;/P&gt;&lt;P&gt;and what are the parameter to pass that FM?&lt;/P&gt;&lt;P&gt;pls give one example with code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sasmita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239155#M482607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239156#M482608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the sppol of smartforms to convert to PDF&lt;/P&gt;&lt;P&gt; spoolid = spdel-rqident = sy-spono.&lt;/P&gt;&lt;P&gt;  spdel-sys = sy-sysid.&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            src_spoolid   = spoolid&lt;/P&gt;&lt;P&gt;            no_dialog     = 'X'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            pdf_bytecount = pdf_fsize&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            pdf           = pdf_table&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others        = 0.&lt;/P&gt;&lt;P&gt;reward points&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239156#M482608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239157#M482609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONVERT_OTF, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to pass OTF data of that SF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please dont post duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239157#M482609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239158#M482610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Use These FMs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Convert_otf_2_pdf   or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;convert_abapspooljob_2_pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239158#M482610</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-04-26T11:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239159#M482611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u explain detail.. how to get spoolid ? i am confusing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239159#M482611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239160#M482612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; Check the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type for binary attachment table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  types: l_ty_tab_objbin type solisti1 occurs 0.&lt;/P&gt;&lt;P&gt;  data: l_objbin type l_ty_tab_objbin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tables to hold PDF data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: t_doctab type docs occurs 0,&lt;/P&gt;&lt;P&gt;        t_line  type tline occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  tables : soli.             "SAPoffice: line, length 255&lt;/P&gt;&lt;P&gt;  tables : zpsdsalrep.       "ZPSDSALREP&lt;/P&gt;&lt;P&gt;  data: l_email type soli-line.&lt;/P&gt;&lt;P&gt;  data: l_email1 type soli-line.&lt;/P&gt;&lt;P&gt;  data: l_adrnr like kna1-adrnr.&lt;/P&gt;&lt;P&gt;  data: l_objky type nast-objky.&lt;/P&gt;&lt;P&gt;  data: l_zzterrmg type zpsdsalrep-zzterrmg.&lt;/P&gt;&lt;P&gt;  data: l_zsupervisor type zpsdsalrep-zsupervisor.&lt;/P&gt;&lt;P&gt;  data: l_kunnr type kna1-kunnr.&lt;/P&gt;&lt;P&gt;  data: l_kunnr1 type vbak-kunnr.&lt;/P&gt;&lt;P&gt;  data: l_reclist like somlreci1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;  data: l_objtxt    like solisti1 occurs   0 with header line.&lt;/P&gt;&lt;P&gt;  data: l_objpack   like sopcklsti1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;  data: l_doc_chng  like sodocchgi1.&lt;/P&gt;&lt;P&gt;  data: l_objhead   like solisti1 occurs   0 with header line.&lt;/P&gt;&lt;P&gt;  data: l_tab_lines like sy-tabix.&lt;/P&gt;&lt;P&gt;  constants: k_true type boolean_flg value 'X'.&lt;/P&gt;&lt;P&gt;  data: l_mail type somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  data: l_mail1 type somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;l_l_mail2 TYPE somlreci1-receiver.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; l_l_mail type somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  data: l_zzsalesrep type zpsdsalrep-zzsalesrep.&lt;/P&gt;&lt;P&gt;  data: l_recipents type somlreci1-receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USE_OTF_MC_CMD               = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      otf                          = t_otfdata&lt;/P&gt;&lt;P&gt;      doctab_archive               = t_doctab&lt;/P&gt;&lt;P&gt;      lines                        = t_line&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;     err_conv_not_possible        = 1&lt;/P&gt;&lt;P&gt;     err_otf_mc_noendmarker       = 2&lt;/P&gt;&lt;P&gt;     others                       = 3.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    write: / 'error', sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***/ Convert the PDF format to the table type required for the&lt;/P&gt;&lt;P&gt;**attachment.&lt;/P&gt;&lt;P&gt;  call function 'QCE1_CONVERT'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_source_tab         = t_line&lt;/P&gt;&lt;P&gt;      t_target_tab         = l_objbin&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      convert_not_possible = 1&lt;/P&gt;&lt;P&gt;      others               = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    write: / 'error', sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here in TLINE you will get the PDF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239160#M482612</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-04-26T11:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239161#M482613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;chek the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_otf   TYPE STANDARD TABLE OF itcoo,&lt;/P&gt;&lt;P&gt;      it_docs  TYPE STANDARD TABLE OF docs,&lt;/P&gt;&lt;P&gt;      it_lines TYPE STANDARD TABLE OF tline,&lt;/P&gt;&lt;P&gt;      st_job_output_info      TYPE ssfcrescl,&lt;/P&gt;&lt;P&gt;      v_bin_filesize          TYPE i,&lt;/P&gt;&lt;P&gt;     v_filename              TYPE string value 'c:\smart.pdf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS c_formname          TYPE tdsfname VALUE 'ZRAMI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*get the FM name for the smartform&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    formname           = c_formname&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    fm_name            = v_fm_name&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    no_form            = 1&lt;/P&gt;&lt;P&gt;    no_function_module = 2&lt;/P&gt;&lt;P&gt;    OTHERS             = 3.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*call the samrtform FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION v_fm_name&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    control_parameters   = st_control_parameters&lt;/P&gt;&lt;P&gt;    output_options       = st_output_options&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    document_output_info = st_document_output_info&lt;/P&gt;&lt;P&gt;    job_output_info      = st_job_output_info&lt;/P&gt;&lt;P&gt;    job_output_options   = st_job_output_options&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    formatting_error     = 1&lt;/P&gt;&lt;P&gt;    internal_error       = 2&lt;/P&gt;&lt;P&gt;    send_error           = 3&lt;/P&gt;&lt;P&gt;    user_canceled        = 4&lt;/P&gt;&lt;P&gt;    OTHERS               = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.........................CONVERT TO OTF TO PDF.......................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize           = v_bin_filesize&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      otf                    = st_job_output_info-otfdata&lt;/P&gt;&lt;P&gt;      doctab_archive         = it_docs&lt;/P&gt;&lt;P&gt;      lines                  = it_lines&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      err_conv_not_possible  = 1&lt;/P&gt;&lt;P&gt;      err_otf_mc_noendmarker = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Download the file&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize            = v_bin_filesize&lt;/P&gt;&lt;P&gt;      filename                = v_filename&lt;/P&gt;&lt;P&gt;      filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = it_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;rami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 11:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239161#M482613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T11:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239162#M482614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SmartForms Output to PDF &lt;/P&gt;&lt;P&gt;There is a way to download smartform in PDF format. &lt;/P&gt;&lt;P&gt;Please do the following: &lt;/P&gt;&lt;P&gt;1. Print the smartform to the spool. &lt;/P&gt;&lt;P&gt;2. Note the spool number. &lt;/P&gt;&lt;P&gt;3. Download a PDF file (Acrobat Reader) version of the spool by running Program RSTXPDFT4 and entering the noted spool number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 20:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2239162#M482614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T20:52:32Z</dc:date>
    </item>
  </channel>
</rss>

