<?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: Issue in SSF_OPEN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664160#M1574353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the following example to store data into OTF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname           = c_formname
  IMPORTING
    fm_name            = v_fm_name
  EXCEPTIONS
    no_form                    = 1
    no_function_module = 2
    OTHERS                    = 3.


CALL FUNCTION v_fm_name
  EXPORTING
    control_parameters       = st_control_parameters
    output_options              = st_output_options
  IMPORTING
    document_output_info  = st_document_output_info
    job_output_info            = st_job_output_info
    job_output_options      = st_job_output_options
  EXCEPTIONS
    formatting_error     = 1
    internal_error          = 2
    send_error              = 3
    user_canceled         = 4
    OTHERS                   = 5.


CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
      bin_filesize                 = v_bin_filesize
    TABLES
      otf                             = st_job_output_info-otfdata
      doctab_archive         = it_docs
      lines                          = it_lines
    EXCEPTIONS
      err_conv_not_possible     = 1
      err_otf_mc_noendmarker = 2
      OTHERS                            = 3.

*Convert into PDF
CONCATENATE 'smrt' '.pdf' INTO v_name.

  CREATE OBJECT v_guiobj.
  CALL METHOD v_guiobj-&amp;gt;file_save_dialog
    EXPORTING
      default_extension  = 'pdf'
      default_file_name  = v_name
      file_filter                 = v_filter
    CHANGING
      filename                 = v_name
      path                       = v_path
      fullpath                  = v_fullpath
      user_action            = v_uact.

  IF v_uact = v_guiobj-&amp;gt;action_cancel.
    EXIT.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 05:11:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-11T05:11:28Z</dc:date>
    <item>
      <title>Issue in SSF_OPEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664156#M1574349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a requirement for printing RANGE of documents which the user will put on selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to collect the OTF DATA and convert it in PDF format and send as email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_OPEN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_DATA INTO WA_DATA.&lt;/P&gt;&lt;P&gt;CALL FUNCTION GV_FM_NAME&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;control_parameters         = control&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt; job_output_info            = p_job_output&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_CLOSE''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is my OTFDATA table is blank.If i run these logic for a single document by removing SSF_OPEN and SSF_CLOSE and also not putting my logic in LOOP than it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest how to proceed on the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Chaudhary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 10:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664156#M1574349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T10:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in SSF_OPEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664157#M1574350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that IT_DATA is not containing any data within it. You can check that using debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because, otherwise, you are stating it is running for one value and does not run when you put that in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check that you may be flushing data from internal table before calling of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kumar Saurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 11:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664157#M1574350</guid>
      <dc:creator>former_member186491</dc:creator>
      <dc:date>2011-02-21T11:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in SSF_OPEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664158#M1574351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar,&lt;/P&gt;&lt;P&gt;The table has proper data.&lt;/P&gt;&lt;P&gt;The issue is when i use the FM SSF_OPEN only than the OTF DATA is coming as blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to understand the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 12:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664158#M1574351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T12:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in SSF_OPEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664159#M1574352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why dont you try keeping the loop outside the SSF_OPEN instead of keeping after SSF_OPEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SSF_OPEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SSF_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 11:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664159#M1574352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-10T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in SSF_OPEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664160#M1574353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the following example to store data into OTF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname           = c_formname
  IMPORTING
    fm_name            = v_fm_name
  EXCEPTIONS
    no_form                    = 1
    no_function_module = 2
    OTHERS                    = 3.


CALL FUNCTION v_fm_name
  EXPORTING
    control_parameters       = st_control_parameters
    output_options              = st_output_options
  IMPORTING
    document_output_info  = st_document_output_info
    job_output_info            = st_job_output_info
    job_output_options      = st_job_output_options
  EXCEPTIONS
    formatting_error     = 1
    internal_error          = 2
    send_error              = 3
    user_canceled         = 4
    OTHERS                   = 5.


CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
      bin_filesize                 = v_bin_filesize
    TABLES
      otf                             = st_job_output_info-otfdata
      doctab_archive         = it_docs
      lines                          = it_lines
    EXCEPTIONS
      err_conv_not_possible     = 1
      err_otf_mc_noendmarker = 2
      OTHERS                            = 3.

*Convert into PDF
CONCATENATE 'smrt' '.pdf' INTO v_name.

  CREATE OBJECT v_guiobj.
  CALL METHOD v_guiobj-&amp;gt;file_save_dialog
    EXPORTING
      default_extension  = 'pdf'
      default_file_name  = v_name
      file_filter                 = v_filter
    CHANGING
      filename                 = v_name
      path                       = v_path
      fullpath                  = v_fullpath
      user_action            = v_uact.

  IF v_uact = v_guiobj-&amp;gt;action_cancel.
    EXIT.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 05:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-ssf-open/m-p/7664160#M1574353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-11T05:11:28Z</dc:date>
    </item>
  </channel>
</rss>

