<?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: Looping in a SAP Script ?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038484#M85845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution was spot on. It solved the problem. 10 points coming your way &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2005 04:55:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-09T04:55:42Z</dc:date>
    <item>
      <title>Looping in a SAP Script ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038481#M85842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam hooked up with the following situation.&lt;/P&gt;&lt;P&gt;The user enters some text which can go upto multiple lines and then calls a correspondence request which will read the PARAM from BKORM table. This parameter is passed to the function module READ_TEXT and then the text entered by the user is printed on the SAP Script output. &lt;/P&gt;&lt;P&gt;To acheive this, iam using a subroutine pool whichi calls the subroutine from the SAP Script as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM &amp;lt;Subroutine name&amp;gt; IN PROGRAM &amp;lt;Prog.Name&amp;gt;&lt;/P&gt;&lt;P&gt;USING &amp;lt;par1&amp;gt;&lt;/P&gt;&lt;P&gt;USING &amp;lt;par2&amp;gt;&lt;/P&gt;&lt;P&gt;Changing &amp;lt;text&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem here is that this returns only one line of the trext entered by the user. And one cannot be sure about how many lines the user enters. Moreover, i cannot use Do or LOOP in an SAP Script.&lt;/P&gt;&lt;P&gt;Is there anyway by which i can print all the lines the user enters ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 12:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038481#M85842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T12:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Looping in a SAP Script ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038482#M85843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;I think it will be neccessary to use a custom print program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'READ_TEXT'...

loop at lines.
  call function 'WRITE_FORM'
  element = 'ZROW'
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 13:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038482#M85843</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2005-11-08T13:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Looping in a SAP Script ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038483#M85844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In which transaction the user enters text. And what is your message output. &lt;/P&gt;&lt;P&gt;Can you not use INCLUDE TEXT .... in your sapscript to print the text . You need to know the TEXT ID &amp;amp; TEXT NAME which I guess you know as you are using READ_TEXT. &lt;/P&gt;&lt;P&gt;So if you dont have the ID &amp;amp; NAME then you can get it using PERFORM in SAPSCRIPT and then use these values with INCLUDE TEXT .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 13:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038483#M85844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T13:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Looping in a SAP Script ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038484#M85845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution was spot on. It solved the problem. 10 points coming your way &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2005 04:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looping-in-a-sap-script/m-p/1038484#M85845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-09T04:55:42Z</dc:date>
    </item>
  </channel>
</rss>

