<?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: Field Length Error while using READ_TEXT FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694305#M31318</link>
    <description>&lt;P&gt;Thanks Santos.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;It worked now.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;BR /&gt;Anurag&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2018 04:25:31 GMT</pubDate>
    <dc:creator>anurag_singh16</dc:creator>
    <dc:date>2018-08-06T04:25:31Z</dc:date>
    <item>
      <title>Field Length Error while using READ_TEXT FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694301#M31314</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I am getting an exception CX_SY_DYN_CALL_ILLEGAL_TYPE in my custom program when I call FM READ_TEXT to read the note from an Invoice Document.&lt;/P&gt;
  &lt;P&gt;I have declared variables with the same data types but dump is saying that the length is different. How?&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;Below is the code used by me:&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA:
	gv_key      TYPE tdobname, 
	gv_gjahr(4) TYPE c,
	wa_line     TYPE tline,  
	it_line     TYPE TABLE OF tline.

    gv_gjahr = &amp;lt;fs_blck&amp;gt;-gjahr.
    gv_belnr = &amp;lt;fs_blck&amp;gt;-belnr.
    CONCATENATE gv_belnr gv_gjahr INTO gv_key.

    CALL FUNCTION 'READ_TEXT'
      EXPORTING
*       CLIENT                  = SY-MANDT
        id                      = '0001'
        language                = 'E'
        name                    = gv_key
        object                  = 'RBKP'
*       ARCHIVE_HANDLE          = 0
*       LOCAL_CAT               = ' '
*       IMPORTING
*       HEADER                  =
*       OLD_LINE_COUNTER        =
      TABLES
        lines                   = it_line
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    IF sy-subrc &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
    ENDIF.

    IF it_line IS NOT INITIAL.
      LOOP AT it_line INTO wa_line.
        CONCATENATE &amp;lt;fs_blck&amp;gt;-note wa_line-tdline INTO &amp;lt;fs_blck&amp;gt;-note.
        CLEAR: wa_line-tdline.
      ENDLOOP.
    ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Aug 2018 05:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694301#M31314</guid>
      <dc:creator>anurag_singh16</dc:creator>
      <dc:date>2018-08-04T05:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field Length Error while using READ_TEXT FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694302#M31315</link>
      <description>&lt;P&gt;Hi Anurag, Can you attache abap dump ? Thanks&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 14:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694302#M31315</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-08-04T14:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field Length Error while using READ_TEXT FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694303#M31316</link>
      <description>&lt;P&gt;Hi Santos,&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;PFB the screenshot for the dump.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/183247-dump.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;BR /&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 16:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694303#M31316</guid>
      <dc:creator>anurag_singh16</dc:creator>
      <dc:date>2018-08-04T16:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field Length Error while using READ_TEXT FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694304#M31317</link>
      <description>&lt;P&gt;Hi Anurag, following correct ABAP statements example to figuring it out. Let me know!&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt; DATA: lt_lines  TYPE STANDARD TABLE OF tline,
       lw_lines  TYPE tline,
       lv_id     TYPE tdid,     "Text ID
       lv_object TYPE tdobject
       lv_name   TYPE tdobname. "Name
...
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      client                  = sy-mandt
      id                      = lv_id
      language                = sy-langu
      name                    = lv_name
      object                  = lv_object
    TABLES
      lines                   = lt_lines[]
...&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 18:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694304#M31317</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-08-04T18:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field Length Error while using READ_TEXT FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694305#M31318</link>
      <description>&lt;P&gt;Thanks Santos.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;It worked now.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;BR /&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 04:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694305#M31318</guid>
      <dc:creator>anurag_singh16</dc:creator>
      <dc:date>2018-08-06T04:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field Length Error while using READ_TEXT FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694306#M31319</link>
      <description>&lt;P&gt;Hi Anurag, Great, accept and close question, please! Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 14:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length-error-while-using-read-text-fm/m-p/694306#M31319</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-08-06T14:15:00Z</dc:date>
    </item>
  </channel>
</rss>

