<?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: Exit using Cancel button from form preview. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-using-cancel-button-from-form-preview/m-p/7058454#M1502984</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;Regarding your qusetion about the preview.: In case you are calling the smartform inside a loop, the preview is going to get called. Incase you want just the 1st form to be shown, you could hardcode it in the program. Your logic could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its print preview, then exit in the 2nd pass of the internal table by checking the sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if this suits your need. If it doesnt then throww more light on your question so that we cud suggest better!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 09:20:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-13T09:20:36Z</dc:date>
    <item>
      <title>Exit using Cancel button from form preview.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-using-cancel-button-from-form-preview/m-p/7058453#M1502983</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;I am looping into internal table and printing a smartform for every line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do the preview, and press back button, it takes me through the preview of all the items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to come out of this preview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the cancel button in at user-command, but the program doesnot seem to recognise it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 23:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-using-cancel-button-from-form-preview/m-p/7058453#M1502983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-07T23:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exit using Cancel button from form preview.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-using-cancel-button-from-form-preview/m-p/7058454#M1502984</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;Regarding your qusetion about the preview.: In case you are calling the smartform inside a loop, the preview is going to get called. Incase you want just the 1st form to be shown, you could hardcode it in the program. Your logic could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its print preview, then exit in the 2nd pass of the internal table by checking the sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if this suits your need. If it doesnt then throww more light on your question so that we cud suggest better!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 09:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-using-cancel-button-from-form-preview/m-p/7058454#M1502984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T09:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exit using Cancel button from form preview.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-using-cancel-button-from-form-preview/m-p/7058455#M1502985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your response.&lt;/P&gt;&lt;P&gt;I am using a similar logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the loop i am reading sy-ucomm and exit if it is SCAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is when users press cancel button then it exits from the loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 02:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-using-cancel-button-from-form-preview/m-p/7058455#M1502985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-15T02:59:48Z</dc:date>
    </item>
  </channel>
</rss>

