<?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 sap scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244391#M484288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; How to use tables in sap scripts ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 May 2007 15:22:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-20T15:22:17Z</dc:date>
    <item>
      <title>sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244391#M484288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; How to use tables in sap scripts ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2007 15:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244391#M484288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-20T15:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244392#M484289</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;Give me your mail id.&lt;/P&gt;&lt;P&gt;So that i ll send some attachments, which may be useful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 03:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244392#M484289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T03:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244393#M484290</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 can access structures and the tables tat are updated during runtime. Else you have to pass the structure values to the table in the print program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;For more info check this URL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/sapscripts/faq-for-sap-scripts.htm" target="test_blank"&gt;http://www.sap-img.com/sapscripts/faq-for-sap-scripts.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 04:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244393#M484290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T04:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244394#M484291</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 is not a problem to print table data in the main window of the script. Here is an example code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM &amp;lt;dbtab&amp;gt;&lt;/P&gt;&lt;P&gt;                INTO TABLE itab&lt;/P&gt;&lt;P&gt;                WHERE.................&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;...............................................&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;   ELEMENT                        = ' '&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;  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;   CODEPAGE                       = 9&lt;/P&gt;&lt;P&gt;   OTHERS                         = 10&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;P&gt;.................................................&lt;/P&gt;&lt;P&gt;.................................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script you can refer to this itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the same process will not work for a variable window in script. This is because unlike the main window, whenever we call write_form FM for variable window, values are not mapped to script from print program immediately, but when &lt;/P&gt;&lt;P&gt;close_form/end_form FM is called. This means if we loop at an internal table from print progeam and call a variable window inside the loop, only the last row of internal table will be mapped to that variable window of the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indrajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 07:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244394#M484291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T07:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244395#M484292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;This is BHAGAVAN BOPPA&lt;/P&gt;&lt;P&gt;email : bhagavan411@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 11:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244395#M484292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T11:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244396#M484293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u send me the processor for this question,&lt;/P&gt;&lt;P&gt;How touse the tables in scripts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2244396#M484293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:19:23Z</dc:date>
    </item>
  </channel>
</rss>

