<?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: a serious problem with read textpool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559740#M1268764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the same error occured like yesterday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line type of "TXT_SEL" must be compatible with one of the types "TEXTPOOL".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 09:36:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T09:36:20Z</dc:date>
    <item>
      <title>a serious problem with read textpool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559734#M1268758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: txt_sel type textpool occurs 20 with header line. &lt;/P&gt;&lt;P&gt;                                      &lt;/P&gt;&lt;P&gt; LOOP AT TXT_SEL                                        &lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;WHERE ID+1 EQ INP_SEL-SELNAME.&lt;/STRONG&gt;                     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           ASSIGN (TXT_SEL-ID+1) TO &amp;lt;PM_NAME&amp;gt;.&lt;/P&gt;&lt;P&gt;           IF NOT &amp;lt;PM_NAME&amp;gt; IS INITIAL.&lt;/P&gt;&lt;P&gt;              DSP_SEL-TEXT = TXT_SEL-TEXT+8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;somehow this part of the codes returns a serious error stating:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Offset specification "+1" is greater than or equal to field length ("1").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: soo hing hoh on May 21, 2009 10:36 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: soo hing hoh on May 21, 2009 10:37 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: soo hing hoh on May 21, 2009 10:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 08:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559734#M1268758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T08:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: a serious problem with read textpool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559735#M1268759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This problem is because of the statement &lt;/P&gt;&lt;P&gt;LOOP AT TXT_SEL&lt;/P&gt;&lt;P&gt;WHERE ID+1 EQ ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you coding as 'WHERE ID+1' ?&lt;/P&gt;&lt;P&gt;What does that signify? What is your objective of the where clause?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 08:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559735#M1268759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T08:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: a serious problem with read textpool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559736#M1268760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;Textpool first field ID is one character field (CHAR 1 )&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In the that case when you are assigning the You need to write like --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: txt_sel TYPE textpool OCCURS 20 WITH HEADER LINE.

LOOP AT txt_sel
WHERE id+1 EQ inp_sel-selname.

  ASSIGN (txt_sel-id+0) TO &amp;lt;pm_name&amp;gt;. " Instead +1 , use +0
  IF NOT &amp;lt;pm_name&amp;gt; IS INITIAL.
    dsp_sel-text = txt_sel-text+8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 08:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559736#M1268760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T08:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: a serious problem with read textpool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559737#M1268761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*DATA: BEGIN OF TXT_SEL OCCURS 20, &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ID(9),                                              &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TEXT(40),                                          &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     END OF TXT_SEL.  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                                      &lt;/P&gt;&lt;P&gt;data: txt_sel type textpool occurs 20 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TXT_SEL                                        &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WHERE ID+1 EQ INP_SEL-SELNAME.                       "HGC154389&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         WHERE ID EQ INP_SEL-SELNAME.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          ASSIGN (TXT_SEL-ID+1) TO &amp;lt;PM_NAME&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           ASSIGN (TXT_SEL-ID) TO &amp;lt;PM_NAME&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           IF NOT &amp;lt;PM_NAME&amp;gt; IS INITIAL.&lt;/P&gt;&lt;P&gt;              &lt;STRONG&gt;DSP_SEL-TEXT = TXT_SEL-TEXT+8.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now another error occured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data object "TXT_SEL" does not have a component called "TEXT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i believe it is the declaration. the commented part of the delcaration is the initial way how i declare txt_-sel..but it has errors saying about the type doesnt match textpool type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i posted that issue here yesterday and the solution i get from th forumers here is the delcaration im using now..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz advice..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 09:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559737#M1268761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T09:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: a serious problem with read textpool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559738#M1268762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have declared TXT_SEL of type TEXTPOOL.&lt;/P&gt;&lt;P&gt;But it does not contain any component named 'TEXT'&lt;/P&gt;&lt;P&gt;So you are bound to get the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 09:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559738#M1268762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T09:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: a serious problem with read textpool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559739#M1268763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Would you please check the following code  - -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF txt_sel OCCURS 20,
 id(9),
 text(40),
 END OF txt_sel.

*data: txt_sel type textpool occurs 20 with header line.


LOOP AT txt_sel
* WHERE ID+1 EQ INP_SEL-SELNAME. "HGC154389
WHERE id EQ inp_sel-text.
* ASSIGN (TXT_SEL-ID+1) TO &amp;lt;PM_NAME&amp;gt;.
  ASSIGN (txt_sel-id) TO &amp;lt;pm_name&amp;gt;.

  IF NOT &amp;lt;pm_name&amp;gt; IS INITIAL.
    dsp_sel-text = txt_sel-text+8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 09:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559739#M1268763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: a serious problem with read textpool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559740#M1268764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the same error occured like yesterday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line type of "TXT_SEL" must be compatible with one of the types "TEXTPOOL".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 09:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559740#M1268764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: a serious problem with read textpool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559741#M1268765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Declare the table like - -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF txt_sel OCCURS 20,
ID type	TEXTPOOLID ,
KEY type	TEXTPOOLKY,
ENTRY type	TEXTPOOLTX,
LENGTH type	TEXTPOOLLN,
* id1(9),
 text(40),
 END OF txt_sel.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the link -&lt;/P&gt;&lt;P&gt;[https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/how&lt;EM&gt;to&lt;/EM&gt;create&lt;EM&gt;internal&lt;/EM&gt;table+dynamically]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If  still that issue is there you please Give me the entire code and you requirement,&lt;/P&gt;&lt;P&gt;I will try my level best to resole it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 09:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-serious-problem-with-read-textpool/m-p/5559741#M1268765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T09:50:01Z</dc:date>
    </item>
  </channel>
</rss>

