<?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 Commit Work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/5145740#M1192504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I have created a smartform object, inwhich if I press print, It should save it as pdf file and if I press preview button, it should get print preview. I execute it through VF31. If I press preview preview comes, but when I come back and press print, pdf save as window doesn't come. The reason is the previous job(preview) is not getting committed and If I go in debug and if I delay the execution, it works properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that after preview I wrote 'commit work' statement which gives proper result. But I should not use commit work, as it may update some other data while executing in background and all. Can u sujjest any other solution for this. Should the process commitment be indicated in any of the printing form function module parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my FM call is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION lf_fm_name&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX = toa_dara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = &lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMETERS = arc_params&lt;/P&gt;&lt;P&gt;control_parameters = l_ctrl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAIL_APPL_OBJ = &lt;/P&gt;&lt;P&gt;MAIL_RECIPIENT = ls_recipient&lt;/P&gt;&lt;P&gt;MAIL_SENDER = ls_sender&lt;/P&gt;&lt;P&gt;output_options = l_device&lt;/P&gt;&lt;P&gt;user_settings = space&lt;/P&gt;&lt;P&gt;is_bil_invoice = ls_bil_invoice&lt;/P&gt;&lt;P&gt;IS_NAST = nast&lt;/P&gt;&lt;P&gt;is_repeat = repeat&lt;/P&gt;&lt;P&gt;w_total1 = l_total&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;document_output_info = l_document_output_info&lt;/P&gt;&lt;P&gt;job_output_info = l_job_output_info&lt;/P&gt;&lt;P&gt;job_output_options = l_job_output_options&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_rebate = t_rebate&lt;/P&gt;&lt;P&gt;&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;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;error handling &lt;/P&gt;&lt;P&gt;cf_retcode = sy-subrc.&lt;/P&gt;&lt;P&gt;PERFORM protocol_update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get SmartForm protocoll and store it in the NAST protocoll &lt;/P&gt;&lt;P&gt;PERFORM add_smfrm_prot.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I change any exporting parameter in this smartform call and can I get it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2009 06:47:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-10T06:47:18Z</dc:date>
    <item>
      <title>Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/5145740#M1192504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I have created a smartform object, inwhich if I press print, It should save it as pdf file and if I press preview button, it should get print preview. I execute it through VF31. If I press preview preview comes, but when I come back and press print, pdf save as window doesn't come. The reason is the previous job(preview) is not getting committed and If I go in debug and if I delay the execution, it works properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that after preview I wrote 'commit work' statement which gives proper result. But I should not use commit work, as it may update some other data while executing in background and all. Can u sujjest any other solution for this. Should the process commitment be indicated in any of the printing form function module parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my FM call is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION lf_fm_name&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX = toa_dara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = &lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMETERS = arc_params&lt;/P&gt;&lt;P&gt;control_parameters = l_ctrl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAIL_APPL_OBJ = &lt;/P&gt;&lt;P&gt;MAIL_RECIPIENT = ls_recipient&lt;/P&gt;&lt;P&gt;MAIL_SENDER = ls_sender&lt;/P&gt;&lt;P&gt;output_options = l_device&lt;/P&gt;&lt;P&gt;user_settings = space&lt;/P&gt;&lt;P&gt;is_bil_invoice = ls_bil_invoice&lt;/P&gt;&lt;P&gt;IS_NAST = nast&lt;/P&gt;&lt;P&gt;is_repeat = repeat&lt;/P&gt;&lt;P&gt;w_total1 = l_total&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;document_output_info = l_document_output_info&lt;/P&gt;&lt;P&gt;job_output_info = l_job_output_info&lt;/P&gt;&lt;P&gt;job_output_options = l_job_output_options&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_rebate = t_rebate&lt;/P&gt;&lt;P&gt;&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;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;error handling &lt;/P&gt;&lt;P&gt;cf_retcode = sy-subrc.&lt;/P&gt;&lt;P&gt;PERFORM protocol_update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get SmartForm protocoll and store it in the NAST protocoll &lt;/P&gt;&lt;P&gt;PERFORM add_smfrm_prot.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I change any exporting parameter in this smartform call and can I get it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 06:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/5145740#M1192504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T06:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/5145741#M1192505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   you need to check if the previous job has commited or not before printing new one&lt;/P&gt;&lt;P&gt;check for options like savepoint  timeout value &lt;/P&gt;&lt;P&gt;check this link &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/7.4/htmhelp/79/f47a4b66e3004ea5049ecca129a813/frameset.htm" target="test_blank"&gt;http://www.sapdb.org/7.4/htmhelp/79/f47a4b66e3004ea5049ecca129a813/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 07:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/5145741#M1192505</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-02-10T07:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/5145742#M1192506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with "wait up to 0 seconds" and the database fot committed without using "commit work"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 09:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work/m-p/5145742#M1192506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T09:10:02Z</dc:date>
    </item>
  </channel>
</rss>

