<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265941#M1017848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_ekko.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;  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                            = it_ekko-ebeln&lt;/P&gt;&lt;P&gt;    LANGUAGE                      = sy-langu&lt;/P&gt;&lt;P&gt;    NAME                          = &amp;lt;text name&amp;gt;&lt;/P&gt;&lt;P&gt;    OBJECT                        = 'EKKO'&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;  LOCAL_CAT                     = ' '&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                         =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID                            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                      = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAME                          = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_FOUND                     = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT                        = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REFERENCE_CHECK               = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRONG_ACCESS_TO_ARCHIVE       = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the function module.  In exceptions "NOT FOUND".  sy-subrc value is 4.  after this catch the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write like this.&lt;/P&gt;&lt;P&gt;if sy-subrc = 4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handle the messages appropriately. Also take care of other exceptions based on the program requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santosh Kumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Aug 2008 06:58:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-09T06:58:44Z</dc:date>
    <item>
      <title>READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265939#M1017846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have developed one program to get purchase order with text.&lt;/P&gt;&lt;P&gt;taken purchase order number as input and PO number and text &lt;/P&gt;&lt;P&gt;as output.&lt;/P&gt;&lt;P&gt;For that i have used function module READ_TEXT.&lt;/P&gt;&lt;P&gt;Its shows error if text is not mentained for PO and program terminates.&lt;/P&gt;&lt;P&gt;My requirement is that how to handle such condition.&lt;/P&gt;&lt;P&gt;If i enter 10 po numbers and if text is mantained for only 8 po.&lt;/P&gt;&lt;P&gt;The function mudule should return that text only.&lt;/P&gt;&lt;P&gt;And prog should not terminate if text is not maintained for any of the purchase order number.&lt;/P&gt;&lt;P&gt;Please suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Aug 2008 06:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265939#M1017846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-09T06:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265940#M1017847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;For that i have used function module READ_TEXT.&lt;/P&gt;&lt;P&gt;&amp;gt;Its shows error if text is not mentained for PO and program terminates.&lt;/P&gt;&lt;P&gt;&amp;gt;My requirement is that how to handle such condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is no text then it will not return any text, but it never gives short dump. that means you are doing some thing wrong in your code. May be you are passing parameters wrongly. that might be causing the problem. show the code once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Aug 2008 06:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265940#M1017847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-09T06:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265941#M1017848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_ekko.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;  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                            = it_ekko-ebeln&lt;/P&gt;&lt;P&gt;    LANGUAGE                      = sy-langu&lt;/P&gt;&lt;P&gt;    NAME                          = &amp;lt;text name&amp;gt;&lt;/P&gt;&lt;P&gt;    OBJECT                        = 'EKKO'&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;  LOCAL_CAT                     = ' '&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                         =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID                            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                      = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAME                          = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_FOUND                     = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT                        = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REFERENCE_CHECK               = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRONG_ACCESS_TO_ARCHIVE       = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the function module.  In exceptions "NOT FOUND".  sy-subrc value is 4.  after this catch the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write like this.&lt;/P&gt;&lt;P&gt;if sy-subrc = 4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handle the messages appropriately. Also take care of other exceptions based on the program requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santosh Kumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Aug 2008 06:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265941#M1017848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-09T06:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265942#M1017849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the sample code.. use the Read text function&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Z_READ_TEXT.

* Internal table to hold text in the standard text
  DATA:
    BEGIN OF T_TEXT OCCURS 0.
      INCLUDE STRUCTURE tline.     " Text Lines
  DATA: END OF  T_TEXT.

DATA:  TDNAME type  THEAD-TDNAME,
           TDID type  THEAD-TDID,
           TDOBJECT  THEAD-TDOBJECT.

TDID = '0001'.
TDNAME = '0000023232'. "for header , for item concatenate Item number
TDOBJECT = 'EKKO'. " for header , for item it is EKPO.


   CALL FUNCTION 'READ_TEXT'
           EXPORTING
             client                        = sy-mandt
             id                            =  TDID
             language                      = sy-langu
             name                          = TDNAME
             object                        = TDOBJECT
           TABLES
             lines                         = t_text
           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 ne 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.                         " IF sy-subrc &amp;lt;&amp;gt; 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Aug 2008 07:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4265942#M1017849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-09T07:01:44Z</dc:date>
    </item>
  </channel>
</rss>

