<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515656#M237384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Divya,&lt;/P&gt;&lt;P&gt;there's no relation betwneen SELECT statements in your printing program and WRITE_FORM function.&lt;/P&gt;&lt;P&gt;In general you have to call WRITE_FORM when all data contained in an element are provided and that's all.&lt;/P&gt;&lt;P&gt;Please, note that if the scripting rows in the form are not contained in an element you don't need to call a WRITE_FORM function at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2006 10:40:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-09T10:40:44Z</dc:date>
    <item>
      <title>sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515651#M237379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having 1 header and 1 main window in my form(script)&lt;/P&gt;&lt;P&gt;for that i am writing 4 single select statemets for retrive data for header fields(for 7 fields in that some fields  having common tables ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my doubt is how many write_forms i need to write for 4 select statements in header.&lt;/P&gt;&lt;P&gt;is it need to create 4 individual elements or one element?&lt;/P&gt;&lt;P&gt;plz clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points sure&lt;/P&gt;&lt;P&gt;sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 10:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515651#M237379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T10:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515652#M237380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only ONE is enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call WRITE_FORM with the correct ELEMENT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'WRITE_FORM'
 EXPORTING
 &amp;lt;b&amp;gt;  ELEMENT                        = &amp;lt;ELEMENT NAME&amp;gt;&amp;lt;/b&amp;gt;*   FUNCTION                       = 'SET'
*   TYPE                           = 'BODY'
   &amp;lt;b&amp;gt;WINDOW                         = 'MAIN'&amp;lt;/b&amp;gt;* IMPORTING
*   PENDING_LINES                  =
 EXCEPTIONS
   ELEMENT                        = 1
   FUNCTION                       = 2
   TYPE                           = 3
   UNOPENED                       = 4
   UNSTARTED                      = 5
   WINDOW                         = 6
   BAD_PAGEFORMAT_FOR_PRINT       = 7
   SPOOL_ERROR                    = 8
   OTHERS                         = 9
          .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijayendra  Rao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 10:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515652#M237380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T10:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515653#M237381</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;The single WRITE_FORM will work.&lt;/P&gt;&lt;P&gt;Get the data in single internal table and loop at this table and write the WRITE_FORM using the text elelment.&lt;/P&gt;&lt;P&gt;In the script, write all the 7 fields in a text element that you have called in the driver program with tab separated. Like...&lt;/P&gt;&lt;P&gt;&amp;amp;X_VBAP-VBELN&amp;amp;,,&amp;amp;X_VBAP-POSNR&amp;amp;,,&amp;amp;X_VBAP-MATNR&amp;amp;,,&amp;amp;X_VBAP-brgew&amp;amp;,,&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;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 10:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515653#M237381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T10:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515654#M237382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya,&lt;/P&gt;&lt;P&gt; One would be sufficient ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 10:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515654#M237382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T10:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515655#M237383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; one WRITE_FORM for MAIN window is enough. remaining all other windows will be called automatically by the system.&lt;/P&gt;&lt;P&gt;so give the same varaibles in program &amp;amp; layout. system will print them directly on the layout.&lt;/P&gt;&lt;P&gt;normally how it works is, First MAIN window is called.once printing is completed in MAIN window of a page, then before going to 2nd page it will print data in all other windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 10:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515655#M237383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515656#M237384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Divya,&lt;/P&gt;&lt;P&gt;there's no relation betwneen SELECT statements in your printing program and WRITE_FORM function.&lt;/P&gt;&lt;P&gt;In general you have to call WRITE_FORM when all data contained in an element are provided and that's all.&lt;/P&gt;&lt;P&gt;Please, note that if the scripting rows in the form are not contained in an element you don't need to call a WRITE_FORM function at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 10:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/1515656#M237384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T10:40:44Z</dc:date>
    </item>
  </channel>
</rss>

