<?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 issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/9146777#M1709977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you producing the script outputs back to back within a single transaction execution?&amp;nbsp; If so, realize that the global declarations in the SAPScript driver program are not being refreshed....&amp;nbsp; SAP executes the global declarations &lt;EM&gt;&lt;STRONG&gt;only once for each first start of the SAPScript program&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; So, if you want to execute back-to-back as the data changes within your transaction, your ENTRY (first) subroutine needs to clear all appropriate global tables and structures and rebuild them every time the subroutine is entered!&amp;nbsp; If you do not, you will continue to report "stale" data and/or "double up" on the contents of your global tables, etc., if a routine in the program appends to global internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 18:34:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-04T18:34:02Z</dc:date>
    <item>
      <title>SAPSCRIPT issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/9146776#M1709976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a std driver program for Workorders which is getting triggered from Iw32&lt;/P&gt;&lt;P&gt;i have copied the script PM_COMMON to a Z ,still using the same std driver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hv to show the object list in the script.I hv added a zsubroutine and i am filling details inside the form into a text object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is , when i delete some objects in the object list (say 1 out of 5) , in SO10 it will show 4 lines &lt;/P&gt;&lt;P&gt;but in script it will show all 5 lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug mode i can see only 4 lines.SO10 also 4 lines.&lt;/P&gt;&lt;P&gt; on debuggging script 5 lines are thr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After saving the tcode its coming correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solutiuon?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 17:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/9146776#M1709976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-04T17:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSCRIPT issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/9146777#M1709977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you producing the script outputs back to back within a single transaction execution?&amp;nbsp; If so, realize that the global declarations in the SAPScript driver program are not being refreshed....&amp;nbsp; SAP executes the global declarations &lt;EM&gt;&lt;STRONG&gt;only once for each first start of the SAPScript program&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; So, if you want to execute back-to-back as the data changes within your transaction, your ENTRY (first) subroutine needs to clear all appropriate global tables and structures and rebuild them every time the subroutine is entered!&amp;nbsp; If you do not, you will continue to report "stale" data and/or "double up" on the contents of your global tables, etc., if a routine in the program appends to global internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 18:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/9146777#M1709977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-04T18:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSCRIPT issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/9146778#M1709978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since i am not touching the std part and i am dealing with my custom text object ..i have full control on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried COMMIT_TEXT inside the subroutine .still its not getting updated in the SAPSCRIPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i clear the global memory which hold the Text object details.&lt;/P&gt;&lt;P&gt;Actually on every execution my subroutine deletes the Text object and creates a new one(but with the same object name).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 19:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/9146778#M1709978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-04T19:06:30Z</dc:date>
    </item>
  </channel>
</rss>

