<?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: loop at internal Table inside Script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014177#M79573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajitabh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With PERFORM inside SAPSCRIPT you can only pass individual fields and also get back individual fields .&lt;/P&gt;&lt;P&gt;Check This&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com//saphelp_470/helpdata/EN/d1/802fd3454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com//saphelp_470/helpdata/EN/d1/802fd3454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only "USING" and CHANGING" options are allowed and that too only symbols available / defined in sapscript can be passed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you populate an internal table in the program you are calling with "PERFORM" there is no way to pass this internal table back to sapscript , also in SAPSCRIPT there is no way to loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are sure about the no of lines you are going to populate and all lines have only one column ( only one field ) you can try something like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM GET_VALUE IN PROGRAM &amp;lt;ZNAME&amp;gt;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VAR2&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ITAB1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ITAB2&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ITAB3&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ITAB4&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anothe way is to loop in the main print program and call WRITE_FORM . But I guess your main print program is a SAP std program which you dont want to copy and change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2005 05:44:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-28T05:44:08Z</dc:date>
    <item>
      <title>loop at internal Table inside Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014173#M79569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;   I am filling a table in a subroutine in a program  and calling it through 'Perform' from my Script,now the main issue is , How to display the table in my script ?  &lt;/P&gt;&lt;P&gt;            I want to loop through an internal table &amp;amp; display its content on my script , but i can't make changes in the calling program by any means.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 05:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014173#M79569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T05:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal Table inside Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014174#M79570</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;Can go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/sapscripts.htm" target="test_blank"&gt;http://www.sap-img.com/sapscripts.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 05:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014174#M79570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T05:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal Table inside Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014175#M79571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajitabh,&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;I want to loop through an internal table &amp;amp; display its content on my script , but i can't make changes in the calling program by any means. &lt;/P&gt;&lt;P&gt;Can you elaborate your issue and your requirement more clearly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 05:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014175#M79571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T05:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal Table inside Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014176#M79572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting concept! I am very curious if you can make this work (and how).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only idea I have is to loop at the table in the external perform and write to another textelement (which you should create perhaps).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 05:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014176#M79572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T05:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal Table inside Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014177#M79573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajitabh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With PERFORM inside SAPSCRIPT you can only pass individual fields and also get back individual fields .&lt;/P&gt;&lt;P&gt;Check This&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com//saphelp_470/helpdata/EN/d1/802fd3454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com//saphelp_470/helpdata/EN/d1/802fd3454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only "USING" and CHANGING" options are allowed and that too only symbols available / defined in sapscript can be passed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you populate an internal table in the program you are calling with "PERFORM" there is no way to pass this internal table back to sapscript , also in SAPSCRIPT there is no way to loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are sure about the no of lines you are going to populate and all lines have only one column ( only one field ) you can try something like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM GET_VALUE IN PROGRAM &amp;lt;ZNAME&amp;gt;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VAR2&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ITAB1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ITAB2&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ITAB3&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;ITAB4&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anothe way is to loop in the main print program and call WRITE_FORM . But I guess your main print program is a SAP std program which you dont want to copy and change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 05:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014177#M79573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T05:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal Table inside Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014178#M79574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have got a solution for the above mentioned problem ..&lt;/P&gt;&lt;P&gt;I filled my internal table inside the perform in another program . Then in that perform i created a text object. &lt;/P&gt;&lt;P&gt;Now this text object is created using Function module &lt;/P&gt;&lt;P&gt;CREATE_TEXT ... using a object of the application i am working on , for eg QM(quality Management)...i usd QMEL..&lt;/P&gt;&lt;P&gt;then included that text object inside my script using &lt;/P&gt;&lt;P&gt;INCLUDE command directly... though there are limitations in the way it will be displayed on the script ... This might the only way to atleast get the data on the script correctly..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 09:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014178#M79574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T09:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal Table inside Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014179#M79575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great idea! I used it and it works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two fields with table FLINES; TDFORMAT and TDLINE. I set TDFORMAT to the paragraph format I'm using in my SAPScript i.e. 'T1'. For whatever reason though, it does not save 'T1', instead, it saves it as an asterick '*'. This is the default paragraph in SAPScript command. I simply set the default paragraph of my window in SAPscript to 'T1' to overcome this issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With TDLINE, I place the separator markers ',,' accordingly and print my dynamic table. The users will never tell the difference, if there is only one line to print, or several.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sean Machado&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2005 23:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014179#M79575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-07T23:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: loop at internal Table inside Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014180#M79576</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;Can you please elaborate on how you have used the function module create_text?&lt;/P&gt;&lt;P&gt;What values to be passed to the import/export parameters?I am also facing the same problem of passing an internal table to the script using subroutines.&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>Fri, 08 Jun 2007 06:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-internal-table-inside-script/m-p/1014180#M79576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T06:36:39Z</dc:date>
    </item>
  </channel>
</rss>

