<?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: Write_form issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-form-issue/m-p/4452191#M1055654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why are you using start_form, it is not required. use open_form, write_form, close_form.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST'
LANGUAGE = SY-LANGU
.
loop at it_mara.

CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
ELEMENT = 'TEST'

EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
.

endloop.

CALL FUNCTION 'CLOSE_FORM'


IMPORTING 
RESULT = 
RDI_RESULT = 
TABLES 
OTFDATA = 
EXCEPTIONS

UNOPENED = 1 
BAD_PAGEFORMAT_FOR_PRINT = 2 
SEND_ERROR = 3 
SPOOL_ERROR = 4 
CODEPAGE = 5 
OTHERS = 1.

. 
IF SY-SUBRC NE 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO 
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 14:51:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-17T14:51:39Z</dc:date>
    <item>
      <title>Write_form issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-form-issue/m-p/4452190#M1055653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i am getting an error in script as &lt;STRONG&gt;WRITE_FORM is invalid, START_FORM&lt;/STRONG&gt; is missing for my output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created very simple print progm. Bt its showing this error. can any one help this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTESTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mara, makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : begin of it_mara occurs 0,&lt;/P&gt;&lt;P&gt;       matnr like mara-matnr,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      maktx like makt-maktx,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       end of it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select   matnr from mara into table it_mara.&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;   FORM                              = 'ZTEST'&lt;/P&gt;&lt;P&gt;   LANGUAGE                          = SY-LANGU&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;P&gt;   FORM                   = 'ZTEST'&lt;/P&gt;&lt;P&gt;   LANGUAGE               = sy-langu .&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;loop at it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   WINDOW                         = 'MAIN'&lt;/P&gt;&lt;P&gt;   ELEMENT                        = 'TEST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ELEMENT                        = 1&lt;/P&gt;&lt;P&gt;   FUNCTION                       = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;UL&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;  RESULT                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RDI_RESULT                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTFDATA                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNOPENED                       = 1&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  BAD_PAGEFORMAT_FOR_PRINT       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  SEND_ERROR                     = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  SPOOL_ERROR                    = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  CODEPAGE                       = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   OTHERS                         = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 14:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-form-issue/m-p/4452190#M1055653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T14:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Write_form issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-form-issue/m-p/4452191#M1055654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why are you using start_form, it is not required. use open_form, write_form, close_form.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST'
LANGUAGE = SY-LANGU
.
loop at it_mara.

CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
ELEMENT = 'TEST'

EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
.

endloop.

CALL FUNCTION 'CLOSE_FORM'


IMPORTING 
RESULT = 
RDI_RESULT = 
TABLES 
OTFDATA = 
EXCEPTIONS

UNOPENED = 1 
BAD_PAGEFORMAT_FOR_PRINT = 2 
SEND_ERROR = 3 
SPOOL_ERROR = 4 
CODEPAGE = 5 
OTHERS = 1.

. 
IF SY-SUBRC NE 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO 
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 14:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-form-issue/m-p/4452191#M1055654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T14:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Write_form issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-form-issue/m-p/4452192#M1055655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the layout in se71 -&amp;gt;Pages-&amp;gt;Standard attributes tab-&amp;gt;If Next Page is Maintained Or not ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 15:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-form-issue/m-p/4452192#M1055655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T15:09:17Z</dc:date>
    </item>
  </channel>
</rss>

