<?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: Using Read_text with range for name without table reference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245552#M1985628</link>
    <description>&lt;P&gt;For your question; &lt;/P&gt;&lt;P&gt;Yes, using STXH to validate user input with whole Abap SQL options, then looping at the resulting internal table with READ_TEXT should be ok.&lt;/P&gt;&lt;P&gt;For my warning:&lt;/P&gt;&lt;P&gt;When you use field such as VBRK-VBELN for example, you provide a field of the correct length and conversion exit, so, for example, ALPHA conversion will adjust user input in accordance (right jusstified, leading zero) &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;user input : 123, internal value converted to 0000000123, move to NAME result in 0000000123 followed by 60 blanks, READ_TEXT success&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When using STXH or THEAD the field  wont be adjusted,&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;user input : 123, internal value not converted so 123 followed by 67 blanks, READ_TEXT failure&lt;/LI&gt;&lt;LI&gt;So user must input 0000000123 or you use LTRIM in the SELECT FROM STXH WHERE clause to remove leading space and zeroes. (but on some systems can cause performance problems)&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;  SELECT *
    FROM stxh
    WHERE tdobject EQ @object
      AND ltrim( tdname, '0' ) IN @name
      AND tdid     EQ @id
      AND tdspras  EQ @spras
    INTO CORRESPONDING FIELDS OF TABLE @text_headers.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Oct 2020 07:48:38 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2020-10-29T07:48:38Z</dc:date>
    <item>
      <title>Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245541#M1985617</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I have a requirement to use read_text FM but using select-options for name field. The issue is that, I'm not using any table like BSEG, MARA, etc. the requirement is to be able to put any document in the field without referencing the field to any table (ex: select-options docnam for table-field). I tried using:&lt;/P&gt;
  &lt;P&gt;select-options docnam for thead-tdname.&lt;/P&gt;
  &lt;P&gt;but when I clicked on selection screen Multiple selection button of the select-options for thead-tdname, it gave a dump: invalid_dynprofield.&lt;/P&gt;
  &lt;P&gt;All examples I checked used a table for the select-options. Any inputs is much appreciated.&lt;/P&gt;
  &lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;rich.heilman&lt;/SPAN&gt; - hope you can provide inputs.&lt;/P&gt;
  &lt;P&gt;Thank you,&lt;/P&gt;
  &lt;P&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 18:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245541#M1985617</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-27T18:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245542#M1985618</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;jeff.broodwar&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Hi Jeffrey, &lt;/P&gt;&lt;P&gt;I'm currently offline and cannot quickly check in a SAP-system but check out FMs READ_MULTIPLE_TEXTS and READ_TEXT_TABLE which allow wild-card searches for long texts. There's more information in &lt;A href="https://launchpad.support.sap.com/#/notes/2261311" target="_blank"&gt;OSS-Note 2261311 - Function module for reading multiple SAPscript texts&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bärbel&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 18:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245542#M1985618</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2020-10-27T18:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245543#M1985619</link>
      <description>&lt;P&gt;Thanks Barbel, although I would want to use READ_TEXT since I think it's possilbe. The main issue would be what select option declaration can I use to associate it with thead-tdname. Normally, programs use MARA like p_matnr, this time there's no specific table, it's as if the program is going to be used by different modules where they can input any document (material, accounting, etc..)&lt;/P&gt;&lt;P&gt;My functional mentioned, we can skip the HIGH value of the select options, they just need to be able to select the multiple button (select-options range) and paste there say 10 documents (can be material, accounting, etc.) then call read text. there are other mandatory fields in the screen such as OBJECT, ID. The thead-tdname (name) makes it challenging.&lt;/P&gt;&lt;P&gt; I can use BSEG then advise them that the high value will not work since I'll not use select statement to verify the documents, but using bseg-belnr, when I click on multiple button, there will be no dumps, I can paste say 10 documents then click on execute. I dont need to verify each document from bseg inside the code, just get the 10 documents inside the select-options variable range and process it in the READ_TEXT FM.. but then I think it's a bad design...&lt;/P&gt;&lt;P&gt;Is there a select-options data type I can use to allow me to paste multiple range of data then use it in read_text FM? If there's a way other than select-options to paste document numbers other than declaring 10 text fields in the screen then it's also a possible approach. as of now I'm stuck with select-options...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 19:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245543#M1985619</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-27T19:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245544#M1985620</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;I tried this code in  multiple systems (ECC &amp;amp; S/4)&amp;amp; it worked just fine. i.e. no dumps on multiple selection button.&lt;/P&gt;&lt;P&gt;REPORT ztest_001.&lt;/P&gt;&lt;P&gt;TABLES thead.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : doc FOR thead-tdname.&lt;/P&gt;&lt;P&gt;Are you trying to do the same thing  ? &lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 19:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245544#M1985620</guid>
      <dc:creator>former_member593648</dc:creator>
      <dc:date>2020-10-27T19:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245545#M1985621</link>
      <description>&lt;P&gt;Hi Jeffrey,&lt;/P&gt;&lt;P&gt;the READ_TEXT FM always only reads the texts for one "entity", be it a financial document, some long material text or whatever. And you also need to specify values for the other input parameters like TDID, TDOBJECT and SPRAS. There's no way to directly use a select-option to retrieve multiple texts via one call of READ_TEXT. This is where the FMs I mentioned come in. You can do a pre-selection from table STXH (where the text headers are stored) and look for whatever keys you want and then use the result you get from that to build the input parameters for FM READ_TEXT_TABLE (as explained in the OSS-Note). IIRC, there are also example programs available which you'll find when you do a where-used in SE37 for the two FMs. These might give you some ideas of how to tackle this. If this can wait until tomorrow, I can also look for some ABAP-code of how I implemented the FMs to retrieve generic long texts.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bärbel&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 20:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245545#M1985621</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2020-10-27T20:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245546#M1985622</link>
      <description>&lt;P&gt;Hello Piyush,&lt;/P&gt;&lt;P&gt;Yes sir I'm doing the same but I'm getting a dump:&lt;/P&gt;&lt;P&gt;Exception condition "INVALID_DYNPROFIELD" triggered.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 20:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245546#M1985622</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-27T20:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245547#M1985623</link>
      <description>&lt;P&gt;Thanks for your time barbel, yes we cannot use read text by just one call, I'm planning to loop through the select-options and pass each value inside readtext one at a time.&lt;/P&gt;&lt;P&gt;Regarding the FMs mentioned, None of them exist in our system..were using 740..&lt;/P&gt;&lt;P&gt;can you please take a look as well my question related to this, I'm looking for alternative way to declare select-options without table reference such as mara,bseg,etc. I tried thead-tdname, ztable but when I click on multiple button in selection screen of the select-options field it gives a dump.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13175157/selection-screen-field-for-multiple-entries-withou.html" target="test_blank"&gt;https://answers.sap.com/questions/13175157/selection-screen-field-for-multiple-entries-withou.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 04:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245547#M1985623</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-28T04:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245548#M1985624</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;jeff.broodwar&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;can you ask your basis team to have the OSS-Note checked and installed and then use one of the two provided FMs? It should be possible to add it to a 740 system according to the &lt;A href="https://launchpad.support.sap.com/#/corrins/2261311/41" target="_blank"&gt;correction instructions&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bärbel&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 05:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245548#M1985624</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2020-10-28T05:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245549#M1985625</link>
      <description>&lt;P&gt;Could you try something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: thead        TYPE thead,
      text_headers TYPE TABLE OF thead,
      text_table   TYPE text_lh.

PARAMETERS: object TYPE thead-tdobject.
SELECT-OPTIONS name FOR thead-tdname.
PARAMETERS: id    TYPE thead-tdid,
            spras TYPE thead-tdspras DEFAULT sy-langu.

START-OF-SELECTION.

  SELECT * INTO CORRESPONDING FIELDS OF TABLE text_headers
    FROM stxh
    WHERE tdobject EQ object
      AND tdname   IN name
      AND tdid     EQ id
      AND tdspras  EQ spras.

  CHECK sy-subrc EQ 0.

  CALL FUNCTION 'READ_TEXT_TABLE'
    IMPORTING
      text_table              = text_table
    TABLES
      text_headers            = text_headers
    EXCEPTIONS
      wrong_access_to_archive = 1
      OTHERS                  = 2.

  CHECK sy-subrc EQ 0.&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or paste the code you wrote that triggered the INVALID_DYNPROFIELD.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NB: You will get some problem if some of the fields have a conversion-exit and/or a different length, e.g. two fields with ALPHA conversion exit but different length will cause problems due to wrong number or trailing zeroes.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 08:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245549#M1985625</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2020-10-28T08:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245550#M1985626</link>
      <description>&lt;P&gt;Hello Piyush,&lt;/P&gt;&lt;P&gt;I tried to run several test programs with same declarations, etc. and noticed that these are all working without dumps. When I investigated further, the dump was caused by an invalid text symbol assigned to a list box I overlooked when I was changing the code. My bad, working without dump now. thanks for the input.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 17:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245550#M1985626</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-28T17:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245551#M1985627</link>
      <description>&lt;P&gt;Thanks Raymond,&lt;/P&gt;&lt;P&gt;I tried to run several test programs with same 
declarations, etc. and noticed that these are all working without dumps.
 When I investigated further, the dump was caused by an invalid text 
symbol assigned to a list box I overlooked when I was changing the code.
 My bad, working without dump now. thanks for the input.&lt;/P&gt;&lt;P&gt;Regarding the without table reference, the dump confused me and made me think that using thead must not be allowed so as using custom table(dummy) I was surprised when I used mara in the same program to test and the dump occured as well. that's when I began to check further for the culprit and found the misplaced text symbol. I'm using now thead structure.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your suggested solution, although I can't request for oss to implement the FM for now since I can use an alternative FM (READ_TEXT) and I'm a bit delayed. I have one question though..&lt;/P&gt;&lt;P&gt;In the solution you showed, my requirement is to use any document reason why I was confused cause I normally use a specific table (ex: mara) when getting values from the FM READ_TEXT. I checked STXH and it all came back to me. I remember using this table way back, With this type of requirement, I should be using STXH table right? &lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 17:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245551#M1985627</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-28T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245552#M1985628</link>
      <description>&lt;P&gt;For your question; &lt;/P&gt;&lt;P&gt;Yes, using STXH to validate user input with whole Abap SQL options, then looping at the resulting internal table with READ_TEXT should be ok.&lt;/P&gt;&lt;P&gt;For my warning:&lt;/P&gt;&lt;P&gt;When you use field such as VBRK-VBELN for example, you provide a field of the correct length and conversion exit, so, for example, ALPHA conversion will adjust user input in accordance (right jusstified, leading zero) &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;user input : 123, internal value converted to 0000000123, move to NAME result in 0000000123 followed by 60 blanks, READ_TEXT success&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When using STXH or THEAD the field  wont be adjusted,&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;user input : 123, internal value not converted so 123 followed by 67 blanks, READ_TEXT failure&lt;/LI&gt;&lt;LI&gt;So user must input 0000000123 or you use LTRIM in the SELECT FROM STXH WHERE clause to remove leading space and zeroes. (but on some systems can cause performance problems)&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;  SELECT *
    FROM stxh
    WHERE tdobject EQ @object
      AND ltrim( tdname, '0' ) IN @name
      AND tdid     EQ @id
      AND tdspras  EQ @spras
    INTO CORRESPONDING FIELDS OF TABLE @text_headers.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Oct 2020 07:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245552#M1985628</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2020-10-29T07:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245553#M1985629</link>
      <description>&lt;P&gt;Thank you Raymond, I'll keep this in mind. I actually have last question where the keys I use to read_text gives result of more than one line of TDline (ex: 3 rows: hello world1, hello world2 and hello world3).&lt;/P&gt;&lt;P&gt;Now, the requirement is to print tdname followed by tdline depending on which format user selected, there are 2 formats (horizontal and vertical).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if Vertical ooutput should be:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1001(tdname)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hello world1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hello world2&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hello world3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if Horizontal:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1001(tdname)(space)      hello world1(space)           hello world2 (space)       hello world3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Problem i have now is there is no key in tdline that will allow me to use parallel cursor. I don't see any solution that will allow me to print&lt;/P&gt;&lt;P&gt;TDLINE outside readtext without using loop within a loop cause I'm currently looping in read text based on the select-options input (say 10 documents)..&lt;/P&gt;&lt;P&gt;is this one of the scenario where we can't use parallel cursor?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 16:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245553#M1985629</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-29T16:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245554#M1985630</link>
      <description>&lt;P&gt;Before the multi-read-text FM, some trick was used, look at &lt;A href="https://answers.sap.com/questions/8178100/mass-reading-standard-texts-stxh-stxl.html"&gt;mass reading standard texts stxh stx&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 16:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245554#M1985630</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2020-10-29T16:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245555#M1985631</link>
      <description>&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;Thanks for the fast feedback, however, I think the approach will not give key to TDline...hence still loop within a loop without parallel cursor..&lt;/P&gt;&lt;P&gt;here are my steps:&lt;/P&gt;&lt;P&gt;1. Select from STXH  where TDNAME IN select-options, OBJECT =p_object, ID = p_id store in ITAB.&lt;/P&gt;&lt;P&gt;now my internal table structure is: tdobject,tdname,id,spras...&lt;/P&gt;&lt;P&gt;2. loop at itab  (looping each document used in TDNAM)&lt;/P&gt;&lt;P&gt;   call read_text.&lt;/P&gt;&lt;P&gt;          output table of read_text (tline) contain sometimes 3 for a loop ex: screenshot below.&lt;/P&gt;&lt;P&gt;   endloop&lt;/P&gt;&lt;P&gt;screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1856704-tdline.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example I have document 1001 and format is vertical, output should be:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1001&lt;/P&gt;&lt;P&gt;Reason for cancellation&lt;/P&gt;&lt;P&gt;(blank)&lt;/P&gt;&lt;P&gt;Tree Sap Error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if output is horizontal, output should be:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1001     reason for cancellation    (blank)    Tree Sap Error&lt;/P&gt;&lt;P&gt;hope you can clarify.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 17:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245555#M1985631</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-29T17:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245556#M1985632</link>
      <description>&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;I understand now, it's not calling read_text. Anyway will the 2 FMS (READ_TEXT_TABLE and READ_MULITPLE_TEXTS) avoid loop within a loop?&lt;/P&gt;&lt;P&gt;The example uses a table as export parameter containing all names,key fields which is different from FM read text where it accepts only 1 value of each key per execution.. does the return table contain key field or just TDLINE for these 2 FMs?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 06:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245556#M1985632</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-30T06:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245557#M1985633</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;jeff.broodwar&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;you'll always have to loop through the internal table TDLINE provided by READ_TEXT or one of the newer FMs where you'll end up with one entry per found TDNAME. This will be a deep structure as it also contains the TDLINE table. This however doesn't include something like a line number. &lt;/P&gt;&lt;P&gt;To make my own ALV-output sortable, I simply added a line number manually while building the internal table for the output:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1858723-longtext-addlinenumberoutput.jpg" /&gt;&lt;/P&gt;&lt;P&gt;The output then looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1858730-longtext-addlinenumberoutput-02.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Listing the text elements vertically with one row per text line is usually best as there can be many lines for one TDNAME and you therefore don't really know how many columns you'd need to provide in the ALV-output. Field TDTXTLINES in THEAD contains the number of lines for that entry. But, cutting it off at e.g. 3 or 5 won't assure that whatever is deemed important within the text will show up in the output. And making the output having a flexible number of columns depending on the TDNAME which has the most lines opens another "can of worms" so to speak!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bärbel&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 07:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245557#M1985633</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2020-10-30T07:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245558#M1985634</link>
      <description>&lt;P&gt;In my sample READ_TEXT_TABLE will return an internal table, each record of the internal will contain THEAD, a flag and an internal table of TLINE&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" ITCLH
" HEADER	Types	THEAD
" FUNCTION	Types
" LINES		Types	TEXT_LINE_TAB
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In  any case, feel free to convert index of tline into a new field in your own structure.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 07:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245558#M1985634</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2020-10-30T07:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Read_text with range for name without table reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245559#M1985635</link>
      <description>&lt;P&gt;Appreciate your inputs Raymond, also found the thread you shared interesting about decompressing and table STXL.&lt;/P&gt;&lt;P&gt; @Barbel, agree, can't avoid loop through TDLINE, thanks for sharing your ideas, appreciate it.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 15:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-text-with-range-for-name-without-table-reference/m-p/12245559#M1985635</guid>
      <dc:creator>jeff_broodwar</dc:creator>
      <dc:date>2020-10-30T15:42:33Z</dc:date>
    </item>
  </channel>
</rss>

