<?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: Delcare Internal Table in SAP script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399864#M193319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt; I don't think so. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But there is one more way to do so as to meet ur requirement as far as my understanding is concerned, &lt;/P&gt;&lt;P&gt;1)declare the internal table in driver program only&lt;/P&gt;&lt;P&gt;2)Pass the same in subroutine and let it get modified, the values will get reflected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u in some way..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Jun 2006 13:42:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-18T13:42:10Z</dc:date>
    <item>
      <title>Delcare Internal Table in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399863#M193318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i declare an internal table in SAP script and update it tru subroutines. i have a specific requirements so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jun 2006 12:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399863#M193318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-18T12:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare Internal Table in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399864#M193319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt; I don't think so. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But there is one more way to do so as to meet ur requirement as far as my understanding is concerned, &lt;/P&gt;&lt;P&gt;1)declare the internal table in driver program only&lt;/P&gt;&lt;P&gt;2)Pass the same in subroutine and let it get modified, the values will get reflected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u in some way..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jun 2006 13:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399864#M193319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-18T13:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare Internal Table in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399865#M193320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not declare an internal table in SAP Scripts. For this you will have to use smartforms. You have to create internal table in the print program and pass it to the script. You can access the variable by putting it in between  '&amp;amp;', say &amp;amp;itab-matnr&amp;amp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Navneeth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please reward point to all helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jun 2006 14:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399865#M193320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-18T14:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare Internal Table in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399866#M193321</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;just to point out the conceptual difference between SAPSCRIPT and SMARTFORMS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SAPSCRIPT, you will declare the internal table in the program calling the SAPSCRIPT form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After open and start of form, you will loop at the internal table and trigger a forms element (in window MAIN) in the form using function module WRITE_FORM for each loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SMARTFORMS, you will pass the internal table in the SMARTFORMS function interface. In the SMARTFORM, where ever you want, you declare a TABLE knot and loop at the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAPSCRIPT, you will use TABS to let the output look table-like, in SMARTFORMS you define the cell structure of an output line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is comparable if not the same because SMARTFORMS internally do nothing really different from SAPSCRIPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The (near) future will be ADOBE-interactive forms anyway but I doubt that this is the end of the line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jun 2006 17:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399866#M193321</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-06-18T17:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare Internal Table in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399867#M193322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; try using the FM WRITE_FORM_LINES this has an internal table and it can be passed to the sap script for writing the contents of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have used this many times and it helps to pass an internal table contenet to the sap acript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no other way to pass an internal ttable to a sapscript as it is not supported. You can alternatively use SMARTFORMS as described in above post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 01:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399867#M193322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T01:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare Internal Table in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399868#M193323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;I DONT THINK YOU CAN DECLARE AN INTERAL TABLE IN THE SAP SCRIPT AND CAN UPDATE IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 04:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399868#M193323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T04:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare Internal Table in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399869#M193324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u  can't do  that...&lt;/P&gt;&lt;P&gt;but  if  u don't  want  to change  ur  driver  program than  u  can use  perform  in sap script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex-&lt;/P&gt;&lt;P&gt;:PERFORM get_date IN PROGRAM zreport &lt;/P&gt;&lt;P&gt;/:USING &amp;amp;SALESORDER&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;S_DATE&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can print S_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write this code in the new ABAP program would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zreport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_date TABLES in_tab STRUCTURE ITCSY &lt;/P&gt;&lt;P&gt;out_tab STRUCTURE ITCSY .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE in_tab INDEX 1.&lt;/P&gt;&lt;P&gt;SELECT some_date FROM ztab &lt;/P&gt;&lt;P&gt;WHERE salesorder = in_tab-value.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;READ TABLE out-tab INDEX 1.&lt;/P&gt;&lt;P&gt;MOVE ztab-somedate TO out_tab-value&lt;/P&gt;&lt;P&gt;MODIFY out_tab INDEX 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 04:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399869#M193324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T04:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare Internal Table in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399870#M193325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nice try. But this is not at all related to internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 07:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-internal-table-in-sap-script/m-p/1399870#M193325</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-06-19T07:23:09Z</dc:date>
    </item>
  </channel>
</rss>

