<?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/2855006#M669150</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;try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform read_text using gt_itm_texts .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2007 10:15:08 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2007-09-28T10:15:08Z</dc:date>
    <item>
      <title>READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855004#M669148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have declared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_itm_texts in Global Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i have wrrite Routine in Form Routines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'READ_TEXT'
      EXPORTING
        id                      = 'BEST'
        language                = 'E'
        name                    = ls_text-tdname
        object                  = 'MATERIAL'
        archive_handle          = 0
      TABLES
        lines                   = lt_texts
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.

    CLEAR : ls_text,ls_text-tdname.

    LOOP AT lt_texts INTO ls_text.
      APPEND ls_text TO gt_itm_texts.
    ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives an error gt_itm_texts not declared ...&lt;/P&gt;&lt;P&gt;what can be the solution for this where i have declared it in Global Data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855004#M669148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T10:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855005#M669149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does gt_itm_texts refer to THEAD? If not, change it accordingly to refer to THEAD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855005#M669149</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2007-09-28T10:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855006#M669150</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;try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform read_text using gt_itm_texts .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855006#M669150</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-28T10:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855007#M669151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then how to use gt_itm_texts in read_text routine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855007#M669151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T10:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855008#M669152</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;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform read_text using ls_text,ls_text-tdname&lt;/P&gt;&lt;P&gt;                          changing gt_itm_texts .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855008#M669152</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-28T10:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855009#M669153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f_read_text
*&amp;amp;---------------------------------------------------------------------*
FORM f_read_text USING p_id p_name p_object
changing c_txt type ty_text.
  DATA : lt_texts  TYPE  TABLE OF ty_text.

  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      id                      = p_id
      language                = 'E'
      name                    = p_name
      object                  = p_object
    TABLES
      lines                   = lt_texts
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.

  LOOP AT lt_texts INTO ls_text.
      APPEND ls_text TO c_txt.
    ENDLOOP.
ENDFORM.                    "f_read_text&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used the above code but still giving error...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855009#M669153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855010#M669154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; go through this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code is a function that will return a customer comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_comment using cur_kunnr.&lt;/P&gt;&lt;P&gt;  call function 'READ_TEXT'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            id                      = '0002'&lt;/P&gt;&lt;P&gt;            language                = sy-langu&lt;/P&gt;&lt;P&gt;            object                  = 'KNA1'&lt;/P&gt;&lt;P&gt;            name                    = cur_kunnr&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            header                  = thead&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            lines                   = tlinetab&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 = 0.&lt;/P&gt;&lt;P&gt;    loop at tlinetab.&lt;/P&gt;&lt;P&gt;      write / tlinetab-tdline.&lt;/P&gt;&lt;P&gt;      add 1 to line_cnt.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above subroutine is called with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if p_cmnt = 'X'.&lt;/P&gt;&lt;P&gt;   tdname = cur_cust-kunnr.&lt;/P&gt;&lt;P&gt;   perform get_comment using tdname.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These data elements are defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of tlinetab occurs 100.    "table to process comments&lt;/P&gt;&lt;P&gt;        include structure tline.&lt;/P&gt;&lt;P&gt;data: end of tlinetab.&lt;/P&gt;&lt;P&gt;data: tdname           like thead-tdname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855010#M669154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T10:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855011#M669155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any clues ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 13:25:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855011#M669155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T13:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855012#M669156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your form interface as follows and change the corresponding perform accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_read_text &amp;lt;b&amp;gt;TABLES&amp;lt;/b&amp;gt; c_txt type ty_text USING p_id p_name p_object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 14:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855012#M669156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855013#M669157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used but it throws error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;@8O@	Global Definitions	"C_TXT" is not an internal table - the "OCCURS n" specification is missing.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f_read_text
*&amp;amp;---------------------------------------------------------------------*
FORM f_read_text USING p_id p_name p_object CHANGING c_flg
                TABLES c_txt TYPE ty_text.

  DATA : lt_texts  TYPE  TABLE OF ty_text,
         ls_text   TYPE  ty_text.

  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      id                      = p_id
      language                = 'E'
      name                    = p_name
      object                  = p_object
    TABLES
      lines                   = lt_texts
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.

  LOOP AT lt_texts INTO ls_text.
    APPEND ls_text TO c_txt.
    c_flg = 'X' .
  ENDLOOP.
ENDFORM.                    "f_read_text&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 08:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855013#M669157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T08:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855014#M669158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used but it throws error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;b&amp;gt;@8O@	Global Definitions	"C_TXT" is not an internal table - the "OCCURS n" specification is missing.&amp;lt;/b&amp;gt;

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f_read_text
*&amp;amp;---------------------------------------------------------------------*
FORM f_read_text USING p_id p_name p_object CHANGING c_flg
                TABLES c_txt TYPE ty_text.
 
  DATA : lt_texts  TYPE  TABLE OF ty_text,
         ls_text   TYPE  ty_text.
 
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      id                      = p_id
      language                = 'E'
      name                    = p_name
      object                  = p_object
    TABLES
      lines                   = lt_texts
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.
 
  LOOP AT lt_texts INTO ls_text.
    APPEND ls_text TO c_txt.
    c_flg = 'X' .
  ENDLOOP.
ENDFORM.                    "f_read_text&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 08:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855014#M669158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855015#M669159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: mara.                                                    
DATA: g_name   LIKE thead-tdname.                                
DATA: g_tline LIKE tline OCCURS 0 .                                                                 
PARAMETERS: p_matnr LIKE mara-matnr.                                                                      
CLEAR: g_name.                                                   
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'                      
     EXPORTING                                                   
          input        = p_matnr                                 
     IMPORTING                                                   
          output       = g_name                                  
     EXCEPTIONS                                                  
          length_error = 1                                       
          OTHERS       = 2.                                      
CALL FUNCTION 'READ_TEXT'                                        
     EXPORTING                                                   
*         CLIENT                  = SY-MANDT                     
          id                      = 'BEST'                       
          language                = 'D'                          
          name                    = g_name                       
          object                  = 'MATERIAL'                   
*         ARCHIVE_HANDLE          = 0                            
*    IMPORTING                                                   
*         HEADER                  =                              
     TABLES                                                      
          lines                   = g_tline                      
    EXCEPTIONS                                     
         id                      = 1               
         language                = 2               
         name                    = 3               
         not_found               = 4               
         object                  = 5               
         reference_check         = 6               
         wrong_access_to_archive = 7               
         OTHERS                  = 8               
          .                                        
     &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you see the long text in IntTab: g_tline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 09:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855015#M669159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T09:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855016#M669160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the definition of your "ty_text"? If it is not defined as table type, you can use TABLES c_txt TYPE ty_text OCCURS 0, or you can leave it untyped "TABLES c_txt".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES is now obsolete, you can use USING, and CHANGING to achieve the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 14:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2855016#M669160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T14:06:38Z</dc:date>
    </item>
  </channel>
</rss>

