<?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: SAPScript output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009742#M78615</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 ryn your code and it didn't print the data, I believe the problem is in the print parameter you transfer to fm open_form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZPSAPSCRIPT.&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;ZOPTION-TDPROGRAM = 'ZPQRPRNT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your report is called ZPSAPSCRIPT, but you transfer ZPQRPRNT, so you should write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZOPTION-TDPROGRAM = 'ZPSAPSCRIPT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your sapscript'll work fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2005 20:59:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-27T20:59:59Z</dc:date>
    <item>
      <title>SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009733#M78606</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;This is my example.&lt;/P&gt;&lt;P&gt;In Sapscript the name of the form is Z_TESTSCRIPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text elements for following windows:&lt;/P&gt;&lt;P&gt;HEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element HEADER&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'&lt;/P&gt;&lt;P&gt;/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P2 ,,&amp;lt;B&amp;gt;TEST PURCHASE ORDER&amp;lt;/&amp;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;MAIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element MAIN&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Customer/Supplier:&amp;lt;/&amp;gt;,,&amp;amp;KNA1-NAME1&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;PO No:&amp;lt;/&amp;gt;,,&amp;amp;EKPO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Part No:&amp;lt;/&amp;gt;,,&amp;amp;MAKT-MATNR&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Description:&amp;lt;/&amp;gt;,,&amp;amp;MAKT-MAKTX&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Quantity:,,&amp;lt;/&amp;gt;&amp;amp;EKPO-MENGE&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Sign:&amp;lt;/&amp;gt;&amp;amp;uline(81)&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Date:&amp;lt;/&amp;gt;&amp;amp;EKKO-AEDAT&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOOTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element FOOTER&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'&lt;/P&gt;&lt;P&gt;/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P2 ,,&amp;lt;B&amp;gt;PLEASE SIGN THE PO BEFORE DISPATCH&amp;lt;/&amp;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;And the ABAP Program name is ZPSAPSCRIPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the code is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZPSAPSCRIPT.&lt;/P&gt;&lt;P&gt;TABLES : EKKO, &lt;/P&gt;&lt;P&gt;EKPO, &lt;/P&gt;&lt;P&gt;KNA1, &lt;/P&gt;&lt;P&gt;USR01, &lt;/P&gt;&lt;P&gt;MARA, &lt;/P&gt;&lt;P&gt;MAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ZOPTION.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE ITCPO.&lt;/P&gt;&lt;P&gt;DATA : END OF ZOPTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_EBELN LIKE EKKO-EBELN,&lt;/P&gt;&lt;P&gt;P_EBELP LIKE EKPO-EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR EKPO.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM EKPO&lt;/P&gt;&lt;P&gt;WHERE EBELN = P_EBELN AND&lt;/P&gt;&lt;P&gt;EBELP = P_EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR KNA1.&lt;/P&gt;&lt;P&gt;SELECT SINGLE NAME1 FROM KNA1&lt;/P&gt;&lt;P&gt;INTO KNA1-NAME1&lt;/P&gt;&lt;P&gt;WHERE KUNNR = EKPO-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR MAKT.&lt;/P&gt;&lt;P&gt;SELECT SINGLE MAKTX FROM MAKT&lt;/P&gt;&lt;P&gt;INTO MAKT-MAKTX&lt;/P&gt;&lt;P&gt;WHERE MATNR = EKPO-MATNR AND&lt;/P&gt;&lt;P&gt;SPRAS = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR USR01.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZOPTION-TDDEST = USR01-SPLD. "Output device (printer)&lt;/P&gt;&lt;P&gt;ZOPTION-TDIMMED = 'X'. "Print immediately&lt;/P&gt;&lt;P&gt;ZOPTION-TDDELETE = 'X'. "Delete after printing&lt;/P&gt;&lt;P&gt;ZOPTION-TDPROGRAM = 'ZPQRPRNT'. "Program Name&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;APPLICATION = 'TX'&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;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_PARAMS = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DEVICE = 'PRINTER'&lt;/P&gt;&lt;P&gt;DIALOG = ' '&lt;/P&gt;&lt;P&gt;FORM = 'Z_TESTSCRIPT'&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;OPTIONS = ZOPTION&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1.&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;ELEMENT = 'HEADER'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FUNCTION = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TYPE = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WINDOW = 'HEADER'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ELEMENT = 1.&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;ELEMENT = 'MAIN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FUNCTION = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TYPE = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WINDOW = 'MAIN'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ELEMENT = 1.&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;ELEMENT = 'FOOTER'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FUNCTION = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TYPE = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WINDOW = 'FOOTER'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ELEMENT = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;UNOPENED = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;But the output, if i click on print preview button then the output is like below, but i could not see the purchase order which i have selected in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element HEADER&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'&lt;/P&gt;&lt;P&gt;/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P2 ,,&amp;lt;B&amp;gt;TEST PURCHASE ORDER&amp;lt;/&amp;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;Element MAIN&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Customer/Supplier:&amp;lt;/&amp;gt;,,&amp;amp;KNA1-NAME1&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;PO No:&amp;lt;/&amp;gt;,,&amp;amp;EKPO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Part No:&amp;lt;/&amp;gt;,,&amp;amp;MAKT-MATNR&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Description:&amp;lt;/&amp;gt;,,&amp;amp;MAKT-MAKTX&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Quantity:,,&amp;lt;/&amp;gt;&amp;amp;EKPO-MENGE&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Sign:&amp;lt;/&amp;gt;&amp;amp;uline(81)&amp;amp;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P1 &amp;lt;B&amp;gt;Date:&amp;lt;/&amp;gt;&amp;amp;EKKO-AEDAT&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element FOOTER&lt;/P&gt;&lt;P&gt;/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'&lt;/P&gt;&lt;P&gt;/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;P2 ,,&amp;lt;B&amp;gt;PLEASE SIGN THE PO BEFORE DISPATCH&amp;lt;/&amp;gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Same as the coding done for the text element for the main, header and Footer.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sriram Ponna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sriram Ponna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sriram Ponna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 19:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009733#M78606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009734#M78607</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;How have you define your paragraphs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 19:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009734#M78607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009735#M78608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sriram - I think you need to call FM START_FORM after the call to OPEN_FORM and also END_FORM before CLOSE_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 19:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009735#M78608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T19:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009736#M78609</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;These is how i define the paragraphs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paragraphs    Attributes&lt;/P&gt;&lt;P&gt;  P1          Default Paragraph&lt;/P&gt;&lt;P&gt;              Standard attributes&lt;/P&gt;&lt;P&gt;              Line spacing      1.00 LN&lt;/P&gt;&lt;P&gt;              Left margin       1.00 CM&lt;/P&gt;&lt;P&gt;              Alignment         Left-aligned&lt;/P&gt;&lt;P&gt;              Font attributes&lt;/P&gt;&lt;P&gt;              Font family       TIMES&lt;/P&gt;&lt;P&gt;              Font size         12.0 Point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  P2          Header Paragraph&lt;/P&gt;&lt;P&gt;              Standard attributes&lt;/P&gt;&lt;P&gt;              Line spacing      1.00 LN&lt;/P&gt;&lt;P&gt;              Left margin       4.50 CM&lt;/P&gt;&lt;P&gt;              Alignment         Left-aligned&lt;/P&gt;&lt;P&gt;              Font attributes&lt;/P&gt;&lt;P&gt;              Font family       TIMES&lt;/P&gt;&lt;P&gt;              Font size         18.0 Point&lt;/P&gt;&lt;P&gt;              Bold              Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  P3          Undelined paragraph&lt;/P&gt;&lt;P&gt;              Standard attributes&lt;/P&gt;&lt;P&gt;              Line spacing      1.00 LN&lt;/P&gt;&lt;P&gt;              Alignment         Left-aligned&lt;/P&gt;&lt;P&gt;              Font attributes&lt;/P&gt;&lt;P&gt;              Font family       TIMES&lt;/P&gt;&lt;P&gt;              Font size         12.0 Point&lt;/P&gt;&lt;P&gt;              Underlined        Yes&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 19:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009736#M78609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T19:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009737#M78610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me what are the parameters i have to choose if i use the Start_from and end_form.&lt;/P&gt;&lt;P&gt;As I provided the  program names also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 19:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009737#M78610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T19:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009738#M78611</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;It usually use FM Start_form/end_form when you want to indicate to the system when print of document starts and when it finishes.&lt;/P&gt;&lt;P&gt;For example if you have to print many documents, you have a data of a document in avery record of internal table, so you print all document in a loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_DOCUMET.&lt;/P&gt;&lt;P&gt;  START_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE_FORM&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  WRITE_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  .....&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  END_FORM&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By START_FORM/END_FORM the system can understand the print of new document is beginning so it can initialize all system variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 19:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009738#M78611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T19:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009739#M78612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sriram -   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'START_FORM'
       exporting
            form      = layout
            language  = sy-langu
            startpage = 'PAGE1'
       exceptions
            form      = 01
            format    = 02
            unended   = 03
            unopened  = 04
            unused    = 05.

form form_end.
  call function 'END_FORM'
       exceptions
            unopened = 01.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where 'layout' is your SAPScript form and PAGE1 is the first page defined in that form. I'm not sure if you have to use them if you are sure you are only printing one form per run of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 19:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009739#M78612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T19:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009740#M78613</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 my example the output will be the only one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us assume that if i have many records and i didnot mention Open form/loop at, atleast either the last record or first should print, but in my output it is printing only the code for main, header and Footer as i mentioned above. Can u check my code for defining the Header, Main and Footer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 19:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009740#M78613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T19:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009741#M78614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing the print preview from the SAPScript screen (SE71) or after the execution of your program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 20:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009741#M78614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T20:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009742#M78615</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 ryn your code and it didn't print the data, I believe the problem is in the print parameter you transfer to fm open_form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZPSAPSCRIPT.&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;ZOPTION-TDPROGRAM = 'ZPQRPRNT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your report is called ZPSAPSCRIPT, but you transfer ZPQRPRNT, so you should write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZOPTION-TDPROGRAM = 'ZPSAPSCRIPT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your sapscript'll work fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 20:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009742#M78615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T20:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009743#M78616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the same even though the out put was the same no change in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 21:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009743#M78616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T21:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009744#M78617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run your code and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to delete the rows of code where you define print parameters and set the parameter DIALOG of OPEN_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this statament is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSITION XORIGIN 2 CM YORIGIN '-0.5' CM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 21:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-output/m-p/1009744#M78617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T21:47:25Z</dc:date>
    </item>
  </channel>
</rss>

