<?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: READ_TEXT but for command processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581533#M1080792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only if you thing it can be possible scenario.. and if yes you not loop and just go for one level check..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2008 19:21:34 GMT</pubDate>
    <dc:creator>messier31</dc:creator>
    <dc:date>2008-09-23T19:21:34Z</dc:date>
    <item>
      <title>READ_TEXT but for command processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581529#M1080788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting problem - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ_TEXT can return the contents of a standard text, however if the standard text has an include command - for example "INCLUDE STDTXTKEYxxxx OBJECT TEXT ID ST" then the command text will be returned and not the actual contents of STDTXTKEYxxxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function module that would return the full long text and process the commands and look their text up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help would be invaluable.  A solution would provide the most points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mantas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 16:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581529#M1080788</guid>
      <dc:creator>mantas_andriekus</dc:creator>
      <dc:date>2008-09-23T16:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT but for command processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581530#M1080789</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;I've not tried it but the method GET_TEXT of class CL_SAPSCRIPT_LONGTEXT looks like it will do the trick. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method get_text .
*-- returns the the text with placeholders like &amp;amp;V1&amp;amp; or &amp;amp;DATE&amp;amp;
*-- replaced by the corresponding texts as set by method
*-- ADD_PLACEHOLDER_VALUES

  data: c_line_width  type i value 80.

  result = me-&amp;gt;raw_text.
  me-&amp;gt;header-tdform = 'S_DOCU_PRINT'.
  call function 'PRINT_TEXT'
       exporting
            header = me-&amp;gt;header
            device = 'OTF_MEM'
       tables
            lines  = result
       exceptions
            others.

  call function 'CONVERT_OTF_MEMORY'
       exporting
            max_linewidth = 80
       tables
            lines         = result
       exceptions
            others.


endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 17:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581530#M1080789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-23T17:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT but for command processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581531#M1080790</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;What you should do is after calling READ_TEXT you check if you returned lines contains INCLUDE standard text. If yes then you call again READ_TEXT for this standard text and add lines retrieved from this call to original returned lines. Please also make note of line number where this is called because you will have to adust same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also consider going for loop logic so that you keep on call READ_TEXT untill the retuned lines doesn't contain any further include. But then then only if this can be a possible scenario in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any doubt on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 17:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581531#M1080790</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2008-09-23T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT but for command processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581532#M1080791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sounds kind of dangerous. What if you have a self-referencing include or include loops?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 19:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581532#M1080791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-23T19:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT but for command processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581533#M1080792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only if you thing it can be possible scenario.. and if yes you not loop and just go for one level check..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 19:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581533#M1080792</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2008-09-23T19:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT but for command processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581534#M1080793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good suggestions there.  Unfortunately I'm working with 4.6C and cannot find CL_SAPSCRIPT_LONGTEXT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 08:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-but-for-command-processing/m-p/4581534#M1080793</guid>
      <dc:creator>mantas_andriekus</dc:creator>
      <dc:date>2008-09-24T08:40:57Z</dc:date>
    </item>
  </channel>
</rss>

