<?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 with open_form in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716526#M630054</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 did that, why we comment the exceptions in the open_form , doesnot go for forward and open a start_form and where is the error coming from in the first case when we comment or delete the exception in open_form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2007 13:20:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-15T13:20:28Z</dc:date>
    <item>
      <title>Issue with open_form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716523#M630051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this piece of code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i click cancel win the pop window which shows me print,print preview and cancel with all other printer and print parametrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i click cancel i get a message saying &lt;/P&gt;&lt;P&gt;output was cancelled by the user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        device                            = 'PRINTER'&lt;/P&gt;&lt;P&gt;        dialog                            = 'X'&lt;/P&gt;&lt;P&gt;        form                              = space&lt;/P&gt;&lt;P&gt;        language                          = sy-langu&lt;/P&gt;&lt;P&gt;        options                           = itCTT&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       call function 'START_FORM'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         ARCHIVE_INDEX          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           form                   = 'ZFORM '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         LANGUAGE               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         STARTPAGE              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         PROGRAM                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         MAIL_APPL_OBJECT       =&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;         LANGUAGE               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         FORM                   = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         FORMAT                 = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         UNENDED                = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         UNOPENED               = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this piece of code the iam getting a mess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_FORM is invalid, OPEN_FORM is missing&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;call function 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        device                            = 'PRINTER'&lt;/P&gt;&lt;P&gt;        dialog                            = 'X'&lt;/P&gt;&lt;P&gt;        form                              = space&lt;/P&gt;&lt;P&gt;        language                          = sy-langu&lt;/P&gt;&lt;P&gt;        options                           = itcTT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MAIL_SENDER                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MAIL_RECIPIENT                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MAIL_APPL_OBJECT                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    RAW_DATA_INTERFACE                = '*'&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;    LANGUAGE                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    NEW_ARCHIVE_PARAMS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    RESULT                            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     canceled                          = 1&lt;/P&gt;&lt;P&gt;     device                            = 2&lt;/P&gt;&lt;P&gt;     form                              = 3&lt;/P&gt;&lt;P&gt;     options                           = 4&lt;/P&gt;&lt;P&gt;     unclosed                          = 5&lt;/P&gt;&lt;P&gt;     mail_options                      = 6&lt;/P&gt;&lt;P&gt;     archive_error                     = 7&lt;/P&gt;&lt;P&gt;     invalid_fax_number                = 8&lt;/P&gt;&lt;P&gt;     more_params_needed_in_batch       = 9&lt;/P&gt;&lt;P&gt;     spool_error                       = 10&lt;/P&gt;&lt;P&gt;     others                            = 11&lt;/P&gt;&lt;P&gt;            .&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;      call function 'START_FORM'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         ARCHIVE_INDEX          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           form                   = 'ZFORM '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         LANGUAGE               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         STARTPAGE              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         PROGRAM                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         MAIL_APPL_OBJECT       =&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;         LANGUAGE               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         FORM                   = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         FORMAT                 = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         UNENDED                = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         UNOPENED               = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;For the second case the sy-subrc is 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 20:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716523#M630051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T20:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with open_form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716524#M630052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try giving the form name in OPEN_FORM as ZFORM and uncomment the exceptions in the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 20:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716524#M630052</guid>
      <dc:creator>former_member192429</dc:creator>
      <dc:date>2007-08-14T20:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with open_form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716525#M630053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right, call OPEN_FORM specifying exceptions as in the second piece of code. Then check sy-subrc value and DON'T call START_FORM if it is 1 (or better, if it's not zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if sy-subrc &amp;lt;&amp;gt; 0.

	MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
	WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

Else.
	call function 'START_FORM'
	exporting
	* ARCHIVE_INDEX =
	form = 'ZFORM '
	* LANGUAGE = ' '
	* STARTPAGE = ' '
	* PROGRAM = ' '
	* MAIL_APPL_OBJECT =
	* IMPORTING
	* LANGUAGE =
	* EXCEPTIONS
	* FORM = 1
	* FORMAT = 2
	* UNENDED = 3
	* UNOPENED = 4
	.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please reward points if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 20:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716525#M630053</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2007-08-14T20:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with open_form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716526#M630054</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 did that, why we comment the exceptions in the open_form , doesnot go for forward and open a start_form and where is the error coming from in the first case when we comment or delete the exception in open_form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 13:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716526#M630054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with open_form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716527#M630055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must uncomment the exceptions in the OPEN_FORM call. That way you can capture errors and identify them according to SY-SUBRC value. In thes case, whatever error occurs, you must not call START_FORM, so you just evaluate SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you comment the exceptions, a dump will occur if an error does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please reward points if helpful.  &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 13:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-open-form/m-p/2716527#M630055</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2007-08-15T13:58:57Z</dc:date>
    </item>
  </channel>
</rss>

