<?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: print multiple records using sapscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899872#M681904</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;1.Place this Element in MAIN window ...Hope u have done it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E ELE1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EID : &amp;amp;ZEMP-EID&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENAME : &amp;amp;ZEMP-ENAME&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the Print program . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    There is no need to Call Start_Form and End_form inside the Loop.&lt;/P&gt;&lt;P&gt;    You have to call the WRITE_FORM inside the Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;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 = 'ELE1'&lt;/P&gt;&lt;P&gt;        FUNCTION  = 'SET'&lt;/P&gt;&lt;P&gt;        TYPE = 'BODY'&lt;/P&gt;&lt;P&gt;         WINDOW = 'MAIN'&lt;/P&gt;&lt;P&gt;        .&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;P&gt;Then it will print all the lines stored in ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2007 04:06:42 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-10-24T04:06:42Z</dc:date>
    <item>
      <title>print multiple records using sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899868#M681900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai gurus,&lt;/P&gt;&lt;P&gt;     I am new to SAPSCRIPT.   and My probelm is printing only one record in a window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    My code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    In window i have written :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   /E  ELE1&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EID : &amp;amp;ZEMP-EID&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENAME : &amp;amp;ZEMP-ENAME&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND IN SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select eid ename from zemp into table itab.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;AND IN the loop i have written START_FORM,WRITE_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT IT DISPLAYS ONLY ONE RECORD ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW CAN I DISPLAY MULTIPLE RECORDS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP ME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 03:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899868#M681900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T03:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: print multiple records using sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899869#M681901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SCRIPTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html" target="test_blank"&gt;http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.ittoolbox.com/index.php/Sap_script#7.6.7.09Space_Compression" target="test_blank"&gt;http://wiki.ittoolbox.com/index.php/Sap_script#7.6.7.09Space_Compression&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCRIPT OUTPUT TO PDF &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPScripts:&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/abap/" target="test_blank"&gt;http://sappoint.com/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.henrikfrank.dk/abapuk.html" target="test_blank"&gt;http://www.henrikfrank.dk/abapuk.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf" target="test_blank"&gt;http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf" target="test_blank"&gt;http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf" target="test_blank"&gt;http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf" target="test_blank"&gt;http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf" target="test_blank"&gt;http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm" target="test_blank"&gt;http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP SCRIPT FIELDS&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;scripts easy material&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/sap_script_made_easy.html" target="test_blank"&gt;http://www.allsaplinks.com/sap_script_made_easy.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;SAP Scripts&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=1811669&amp;amp;messageID=2969311" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=1811669&amp;amp;messageID=2969311&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=1811669&amp;amp;messageID=2902391" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=1811669&amp;amp;messageID=2902391&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=1811669&amp;amp;messageID=3205653" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=1811669&amp;amp;messageID=3205653&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=1811669&amp;amp;messageID=3111402" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=1811669&amp;amp;messageID=3111402&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 03:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899869#M681901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T03:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: print multiple records using sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899870#M681902</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 the print program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;    .............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&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;               ............&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;also make sure to have the following code in the main window of the sapscript form..&lt;/P&gt;&lt;P&gt;/E ELE1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EID : &amp;amp;ZEMP-EID&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENAME : &amp;amp;ZEMP-ENAME&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 03:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899870#M681902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T03:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: print multiple records using sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899871#M681903</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;You need to make following change to your layout code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E ELE1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EID : &amp;amp;ITAB-EID&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENAME : &amp;amp;ITAB-ENAME&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are getting data from Z table to internal table ITAB and you will be calling WRITE_FORM in LOOP ENDLOOP of ITAB, you need to make above change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 03:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899871#M681903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T03:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: print multiple records using sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899872#M681904</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;1.Place this Element in MAIN window ...Hope u have done it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E ELE1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EID : &amp;amp;ZEMP-EID&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENAME : &amp;amp;ZEMP-ENAME&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the Print program . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    There is no need to Call Start_Form and End_form inside the Loop.&lt;/P&gt;&lt;P&gt;    You have to call the WRITE_FORM inside the Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;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 = 'ELE1'&lt;/P&gt;&lt;P&gt;        FUNCTION  = 'SET'&lt;/P&gt;&lt;P&gt;        TYPE = 'BODY'&lt;/P&gt;&lt;P&gt;         WINDOW = 'MAIN'&lt;/P&gt;&lt;P&gt;        .&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;P&gt;Then it will print all the lines stored in ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 04:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-multiple-records-using-sapscript/m-p/2899872#M681904</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-24T04:06:42Z</dc:date>
    </item>
  </channel>
</rss>

