<?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: problem with read text FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925618#M689186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Which means the FM is capturing the full text but when you move it in the internal table you are only getting one line this is because probably the second line is overwriting the first line try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'READ_TEXT' exporting &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;id = 'GRUN' &lt;/P&gt;&lt;P&gt;language = 'E' &lt;/P&gt;&lt;P&gt;name = w_tdname &lt;/P&gt;&lt;P&gt;OBJECT = 'MATERIAL' &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_HANDLE = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;lines = ltext &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read second line of long description.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if sy-subrc = 0. &lt;/P&gt;&lt;P&gt;read table ltext index 1. &lt;/P&gt;&lt;P&gt;if sy-subrc = 0. &lt;/P&gt;&lt;P&gt;i_e1maram-normt = ltext-tdline. &lt;/P&gt;&lt;P&gt;append i_e1maram.&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;read table ltext index 2.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_e1maram-normt = ltext-tdline.&lt;/P&gt;&lt;P&gt;append i_e1maram.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the internal table would have both the lines of text with all the other fields with same values for both of them.If you which you can further supress the values coming in the second field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 05:29:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T05:29:22Z</dc:date>
    <item>
      <title>problem with read text FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925613#M689181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;              I am using Read_Text FM to read header text.but it is taking only the first line entered in the text window.&lt;/P&gt;&lt;P&gt;what shall i do for it to get the second and third line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 06:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925613#M689181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T06:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read text FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925614#M689182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call function 'READ_TEXT'                                      exporting                                        &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            CLIENT                  = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                id                      = 'GRUN'            &lt;/P&gt;&lt;P&gt;                language                = 'E'               &lt;/P&gt;&lt;P&gt;                name                    = w_tdname          &lt;/P&gt;&lt;P&gt;                OBJECT                  = 'MATERIAL'        &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            ARCHIVE_HANDLE          = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            HEADER                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           tables                                           &lt;/P&gt;&lt;P&gt;                lines                   = ltext             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    read second line of long description.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if sy-subrc = 0.                               &lt;/P&gt;&lt;P&gt;        read table ltext index 2.                           &lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.                                  &lt;/P&gt;&lt;P&gt;          i_e1maram-normt = ltext-tdline.                  &lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 07:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925614#M689182</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-09T07:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read text FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925615#M689183</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;have you used loop to display the text. loop at the itab from read_text and dsiplay the wa-tdline &lt;/P&gt;&lt;P&gt;CONSTANTS: c_id  TYPE thead-tdid VALUE 'Z001',&lt;/P&gt;&lt;P&gt;           c_obj TYPE thead-tdobject VALUE 'VBBK',&lt;/P&gt;&lt;P&gt;           c_lan TYPE thead-tdspras VALUE 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: c_nam TYPE thead-tdname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_nam = is_bil_invoice-hd_gen-bil_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   client                        = sy-mandt&lt;/P&gt;&lt;P&gt;    id                            = c_id&lt;/P&gt;&lt;P&gt;    language                      = c_lan&lt;/P&gt;&lt;P&gt;    name                          = c_nam&lt;/P&gt;&lt;P&gt;    object                        = c_obj&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    lines                         = i_lines&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;     id                            = 1&lt;/P&gt;&lt;P&gt;     language                      = 2&lt;/P&gt;&lt;P&gt;     name                          = 3&lt;/P&gt;&lt;P&gt;     not_found                     = 4&lt;/P&gt;&lt;P&gt;     object                        = 5&lt;/P&gt;&lt;P&gt;     reference_check               = 6&lt;/P&gt;&lt;P&gt;     wrong_access_to_archive       = 7&lt;/P&gt;&lt;P&gt;     OTHERS                        = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-  MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; loop at i_lines into wa_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: wa_lines-tdline.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 07:00:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925615#M689183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T07:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read text FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925616#M689184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  It would be reading all the line but when you are write the lines you might only be writing the first line debug and see if you have the full text in the internal table as output from the FM.&lt;/P&gt;&lt;P&gt; then you can loop at the internal table to get the full text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 07:05:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925616#M689184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T07:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read text FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925617#M689185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hyma thanx for ur reply&lt;/P&gt;&lt;P&gt;the ltext is capturing the full text but when i move it to  i_e1maram-normt  &lt;/P&gt;&lt;P&gt;only the first line alone is coming to my text field.what shall i do for it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 07:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925617#M689185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T07:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with read text FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925618#M689186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Which means the FM is capturing the full text but when you move it in the internal table you are only getting one line this is because probably the second line is overwriting the first line try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'READ_TEXT' exporting &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;id = 'GRUN' &lt;/P&gt;&lt;P&gt;language = 'E' &lt;/P&gt;&lt;P&gt;name = w_tdname &lt;/P&gt;&lt;P&gt;OBJECT = 'MATERIAL' &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_HANDLE = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;lines = ltext &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read second line of long description.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if sy-subrc = 0. &lt;/P&gt;&lt;P&gt;read table ltext index 1. &lt;/P&gt;&lt;P&gt;if sy-subrc = 0. &lt;/P&gt;&lt;P&gt;i_e1maram-normt = ltext-tdline. &lt;/P&gt;&lt;P&gt;append i_e1maram.&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;read table ltext index 2.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_e1maram-normt = ltext-tdline.&lt;/P&gt;&lt;P&gt;append i_e1maram.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the internal table would have both the lines of text with all the other fields with same values for both of them.If you which you can further supress the values coming in the second field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 05:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-text-fm/m-p/2925618#M689186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T05:29:22Z</dc:date>
    </item>
  </channel>
</rss>

