<?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: SAP SCRIPTS???????????? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595291#M594394</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;We have to Use START_FORM and END_FORM to Call multiple forms in a print program. For a single Form we need not to call them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***For calling first form&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;    FORMNAME = 'ZFORM1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***For calling second form&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;    FORMNAME = 'ZFORM2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: When we call a single form we will pass the Formname in OPEN_FORM FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2007 08:39:06 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-08-01T08:39:06Z</dc:date>
    <item>
      <title>SAP SCRIPTS????????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595290#M594393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHAT IS THE USE OF START_FORM AND END_FORM IN A SCRIPT .........IT CAN BE RUN WITHOUT THE TWO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        BALAGOSWAMY GURU VENKET REDDY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 05:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595290#M594393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T05:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPTS????????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595291#M594394</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;We have to Use START_FORM and END_FORM to Call multiple forms in a print program. For a single Form we need not to call them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***For calling first form&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;    FORMNAME = 'ZFORM1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***For calling second form&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;    FORMNAME = 'ZFORM2'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'END_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: When we call a single form we will pass the Formname in OPEN_FORM FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 08:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595291#M594394</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-01T08:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPTS????????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595292#M594395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi balagoswamy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Normally, START_FORM&lt;/P&gt;&lt;P&gt;is not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(OPEN_FORM Is compulary in all cases)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Its only required,&lt;/P&gt;&lt;P&gt;when we want to different sapscript layouts,&lt;/P&gt;&lt;P&gt;to get merged,&lt;/P&gt;&lt;P&gt;and come in one output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. For this purpose,&lt;/P&gt;&lt;P&gt;we use START_FORM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to START layout 1,&lt;/P&gt;&lt;P&gt;then START Layout 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if we use start_form, then&lt;/P&gt;&lt;P&gt;we can use END_FORM for stopping this start)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 08:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595292#M594395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T08:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPTS????????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595293#M594396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;start form is used to include another form in u r driver program and also used to to start the form at a particular page number if u have n number of pages&lt;/P&gt;&lt;P&gt;if u open a form with start form then u have to close it with the end form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script driver program can be written without the start and end forms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 08:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595293#M594396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T08:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPTS????????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595294#M594397</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;In-between the function modules OPEN_FORM and CLOSE_FORM, you can use different forms. This allows you to combine several different forms into one print output. However, you can combine only those forms that have the same page format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To switch forms, you can use the function module START_FORM. If another form is still open, you must close it first using END_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alexandros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 08:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595294#M594397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T08:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPTS????????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595295#M594398</link>
      <description>&lt;P&gt;Hi BALA,&lt;/P&gt;&lt;P&gt;Go for this u can get clear idea about ur doubt&lt;/P&gt;&lt;P&gt;[Removed by the moderator.]&lt;/P&gt;&lt;P&gt;A Sample SAP Scripts Reports &lt;/P&gt;&lt;P&gt;Author: Mona &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  APPLICATION                       = 'TX'&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  ARCHIVE_INDEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  ARCHIVE_PARAMS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  DEVICE                            = 'PRINTER'&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  DIALOG                            = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  FORM                              = 'ZSCRIPT1'&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  LANGUAGE                          = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  OPTIONS                           =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  MAIL_SENDER                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  MAIL_RECIPIENT                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  MAIL_APPL_OBJECT                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  RAW_DATA_INTERFACE                = '*'&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  SPONUMIV                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  LANGUAGE                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  NEW_ARCHIVE_PARAMS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI&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;   CODEPAGE                          = 11&lt;/P&gt;&lt;P&gt;   OTHERS                            = 12&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&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;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&gt;
&lt;P&gt;  ARCHIVE_INDEX          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   FORM                   = 'ZFORM1'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;  LANGUAGE               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  STARTPAGE              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   PROGRAM                = 'ZSCRIPT1'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;  MAIL_APPL_OBJECT       =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  LANGUAGE               =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  FORM                   = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  FORMAT                 = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  UNENDED                = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  UNOPENED               = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  UNUSED                 = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  SPOOL_ERROR            = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  CODEPAGE               = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  OTHERS                 = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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&gt;
&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI&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 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;  ELEMENT                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  FUNCTION                       = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  TYPE                           = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WINDOW                         = 'HEADER'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;   TYPE                           = 3&lt;/P&gt;&lt;P&gt;   UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;   UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;   WINDOW                         = 6&lt;/P&gt;&lt;P&gt;   BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;   SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;   OTHERS                         = 9&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write:/ 'ERROR IN HEADER'.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI&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 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;  ELEMENT                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  FUNCTION                       = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  TYPE                           = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WINDOW                         = 'MAIN'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;   TYPE                           = 3&lt;/P&gt;&lt;P&gt;   UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;   UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;   WINDOW                         = 6&lt;/P&gt;&lt;P&gt;   BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;   SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;   OTHERS                         = 9&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write:/ 'ERROR IN HEADER'.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI&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 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;  ELEMENT                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  FUNCTION                       = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  TYPE                           = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WINDOW                         = 'FOOTER'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;   TYPE                           = 3&lt;/P&gt;&lt;P&gt;   UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;   UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;   WINDOW                         = 6&lt;/P&gt;&lt;P&gt;   BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;   SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;   OTHERS                         = 9&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write:/ 'ERROR IN HEADER'.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI&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 'END_FORM'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  RESULT                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  UNOPENED                       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  BAD_PAGEFORMAT_FOR_PRINT       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  SPOOL_ERROR                    = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  CODEPAGE                       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  OTHERS                         = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  RESULT                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  RDI_RESULT                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  OTFDATA                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  UNOPENED                       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  BAD_PAGEFORMAT_FOR_PRINT       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  SEND_ERROR                     = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  SPOOL_ERROR                    = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  CODEPAGE                       = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;  OTHERS                         = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;Can you explain the difference between &lt;/P&gt;&lt;P&gt; 1.open_form and Start form &lt;/P&gt;&lt;P&gt; 2.end_form and Close_form. &lt;/P&gt;&lt;P&gt;whether all 4 modules are required in the driver pgm . &lt;/P&gt;&lt;P&gt;Open_form =&amp;gt; It assign the form and printer, It should be first. &lt;/P&gt;&lt;P&gt;Start_form =&amp;gt;  It start Writing mode. You can use write_form  in loop to write more than one lines befor End_form.  &lt;/P&gt;&lt;P&gt;End_form =&amp;gt; It end writing mode of current page and will require to start again through Start_form. &lt;/P&gt;&lt;P&gt;Close_form=&amp;gt; it end the Form. After this you can not start again for created file. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naveen khan&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2007 08:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2595295#M594398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T08:52:30Z</dc:date>
    </item>
  </channel>
</rss>

