<?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/1125518#M110190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bernard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy new year to you too. Hopefully we will resolve this before the new year starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of things in the program that I think are an issue. Your ITAB-MTEXT is defined as TYPE C with no length specification. As a result, only one character of the text will be there in this field. Next, you are calling READ_TXT without a LOOP AT ITAB. So only the last IATB-MATNR is probably what you are fetching the PO text for. Please make the following changes and hopefully that resolves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how you want to manage the PO text length, because as you can see, it can one word or ten lines. Even if you want to concatenate, you need to define your field to the maximum possible over which you have no control. This is because someone can write a book in that PO text. What I would suggest is to define a new internal table that has three fields as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF MTXT_TAB OCCURS 0,
              MATNR LIKE MARA-MATNR,
              POSNR TYPE I,
              LINE  LIKE TLINE-TDLINE.
DATA: END OF MTXT_TAB.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then change your READ_TXT code as follows&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Change your FORM READ_TXT as follows.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;    FORM READ_TXT                                                    *
*&amp;amp;---------------------------------------------------------------------*
FORM read_txt.
 
  DATA: l_name LIKE thead-tdname.
 
  LOOP AT itab.
    CLEAR: mat_txt, mat_txt[].
    l_name = itab-matnr.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                  = sy-mandt
        id                      = 'BEST'
        name                    = l_name
        object                  = 'MATERIAL'
        language                = sy-langu
      TABLES
        lines                   = mat_txt
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
 
    LOOP AT MAT_TXT.
*--&amp;gt; Need move the text retrieved in MAT_TXT into ITAB-MTEXT
      MOVE: ITAB-MATNR TO MTXT_TAB-MATNR,
            SY-TABIX   TO MTXT_TAB-POSNR,
            MAT_TXT-TDLINE TO MTXT_TAB-LINE.
      APPEND MTXT_TAB.
      CLEAR MTXT_TAB.
    ENDLOOP.
  ENDLOOP.
 
ENDFORM.                    "READ_TXT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2005 16:09:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-30T16:09:19Z</dc:date>
    <item>
      <title>READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125472#M110144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been reading some of the earlier threads on READ_TEXT FM and so far i have only managed to find out what fields i need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;ID = 'BEST'&lt;/P&gt;&lt;P&gt;LANGUAGE = 'EN'&lt;/P&gt;&lt;P&gt;OBJECT = 'MATERIAL'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for NAME, i know that i want to send the Material Code (ITAB-MATNR) to the call function, but how do i do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is to extract the PO Material Text and be filled into ITAB-MAT_TXT which i have defined...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do i go from here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 06:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125472#M110144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T06:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125473#M110145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The main parameter is &lt;/P&gt;&lt;P&gt;    NAME	LIKE	THEAD-TDNAME&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;Amit M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 06:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125473#M110145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T06:42: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/1125474#M110146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you elaborate more on that abit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 06:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125474#M110146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T06:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125475#M110147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. It is nothing but a normal&lt;/P&gt;&lt;P&gt;   character value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ie. in your case it should be the&lt;/P&gt;&lt;P&gt;   material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Like in case of purchase order,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;      client                  = sy-mandt&lt;/P&gt;&lt;P&gt;      id                      = 'F96'&lt;/P&gt;&lt;P&gt;      language                = 'E'&lt;/P&gt;&lt;P&gt;      name                    = ITAB-EBELN&lt;/P&gt;&lt;P&gt;      object                  = 'EKKO'&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  NAME =  PURCHASE ORDER NUMBER&lt;/P&gt;&lt;P&gt;  ID = DIFFERENT KIND OF TEXTS IN A PURCHASE ORDER&lt;/P&gt;&lt;P&gt;       (eg. delivery text, terms and conditons,&lt;/P&gt;&lt;P&gt;       shipment remarks)&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;Amit M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 07:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125475#M110147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T07:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125476#M110148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernard, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For NAME ...&lt;/P&gt;&lt;P&gt;Goto the text editor, double click on it. &lt;/P&gt;&lt;P&gt;on the menu bar &lt;/P&gt;&lt;P&gt;GOTO-&amp;gt; header You will find the name there. &lt;/P&gt;&lt;P&gt;Use the same name to pass to the FM READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;P&gt;Pls. reward appropriate points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 07:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125476#M110148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T07:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125477#M110149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can check these tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STXL and STXH for tdid,tdaname,tdobject...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 07:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125477#M110149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T07:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125478#M110150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is the case, how do i move the text that was retrieved into ITAB-MAT_TXT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i do a LOOP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 07:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125478#M110150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T07:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125479#M110151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ur last statment is not clear&lt;/P&gt;&lt;P&gt;2. using READ_TEXT&lt;/P&gt;&lt;P&gt;  we will not get a single line text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The parameter in this FM&lt;/P&gt;&lt;P&gt;   LINES&lt;/P&gt;&lt;P&gt;  is/should be an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. All the data which has been entered&lt;/P&gt;&lt;P&gt;   (possible in more than one lines)&lt;/P&gt;&lt;P&gt;  will be retrieved in this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;(I hope u are not talking about the &lt;/P&gt;&lt;P&gt;   simple material decription text .  )&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 07:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125479#M110151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T07:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125480#M110152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'READ_TEXT'
         EXPORTING
              id       = 'Z001'
              language = sy-langu
              name     = name
              object   = 'VTTK'
         TABLES
              lines    = lines
         EXCEPTIONS
              OTHERS   = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;lines is internal table, so you need to loop and fill.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  LOOP AT lines.
    WRITE: 1   sy-vline,
           35  sy-vline,
           36  lines-tdline,
           109 sy-vline,
          /1   space.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 07:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125480#M110152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T07:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125481#M110153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then what about the SELECT statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've did a SELECT * FROM STXH before calling it. Should i add in some conditions to the SELECT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 07:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125481#M110153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T07:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125482#M110154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no need of select, why are you selecting,&lt;/P&gt;&lt;P&gt;and what for..? &lt;/P&gt;&lt;P&gt;if you are selecting for tdobject,tdname,tdid then ok.&lt;/P&gt;&lt;P&gt;pass then to FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and do the above..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 07:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125482#M110154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T07:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125483#M110155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since i want to retrieve the PO Material Text for each individual Material Number (ITAB-MATNR) that is in ITAB, would i need to do a LOOP to MOVE the PO Material Text that was retrieved into ITAB before the WRITE statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 08:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125483#M110155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T08:36: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/1125484#M110156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah exactly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you loop that and move the text for each material you need to repeat the same process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 08:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125484#M110156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T08:39: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/1125485#M110157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernard,&lt;/P&gt;&lt;P&gt;Try this example.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: BEGIN OF T_DET OCCURS 0,
       QMNUM LIKE QMEL-QMNUM,
       MBLNR LIKE QMEL-MBLNR,
       LOSMENGE LIKE QALS-LOSMENGE,
      END OF T_DET.


DATA:F_TDOBJECT LIKE THEAD-TDOBJECT,
     F_TDNAME   LIKE THEAD-TDNAME,
     F_TDID     LIKE THEAD-TDID,
     ITAB_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.

DATA:BEGIN OF ITAB OCCURS 10,
      DESC(72),
     END OF ITAB.

  SELECT QMNUM REFNUM QMDAT QMTXT OBJNR QMGRP QMCOD FROM QMEL
    INTO CORRESPONDING FIELDS OF TABLE T_DET
                              WHERE QMNUM IN S_QMNUM AND
                                    QMART IN S_QMART AND
                                    QMDAT IN S_QMDAT.

LOOP AT T_DET.

   F_TDID     = 'LTQM'.
    F_TDNAME   = T_DET-QMNUM.
    F_TDOBJECT = 'QMEL'.


    F_TDID     = 'LTQM'.
    F_TDNAME   = T_DET-QMNUM.
    F_TDOBJECT = 'QMEL'.

    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT                  = SY-MANDT
        ID                      = F_TDID
        LANGUAGE                = SY-LANGU
        NAME                    = F_TDNAME
        OBJECT                  = F_TDOBJECT
      TABLES
        LINES                   = ITAB_LINES
      EXCEPTIONS
        ID                      = 1
        LANGUAGE                = 2
        NAME                    = 3
        NOT_FOUND               = 4
        OBJECT                  = 5
        REFERENCE_CHECK         = 6
        WRONG_ACCESS_TO_ARCHIVE = 7
        OTHERS                  = 8.

    DESCRIBE TABLE ITAB_LINES LINES SY-TFILL.
    IF SY-TFILL &amp;gt; 0.
      LOOP AT ITAB_LINES.
        ITAB-QMNUM = T_DET-QMNUM.
        ITAB-DESC = ITAB_LINES-TDLINE.
        APPEND ITAB.
        CLEAR ITAB.
      ENDLOOP.
    ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 08:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125485#M110157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T08:43: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/1125486#M110158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i got a runtime error message...something about type conflict when calling function...any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 09:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125486#M110158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T09:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125487#M110159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use all exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT                  = SY-MANDT
        ID                      = F_TDID
        LANGUAGE                = SY-LANGU
        NAME                    = F_TDNAME
        OBJECT                  = F_TDOBJECT
      TABLES
        LINES                   = ITAB_LINES&amp;lt;b&amp;gt;
       EXCEPTIONS
        ID                      = 1
        LANGUAGE                = 2
        NAME                    = 3
        NOT_FOUND               = 4
        OBJECT                  = 5
        REFERENCE_CHECK         = 6
        WRONG_ACCESS_TO_ARCHIVE = 7
        OTHERS                  = 8.&amp;lt;/b&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 09:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125487#M110159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T09:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125488#M110160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. It simply means that&lt;/P&gt;&lt;P&gt;   the variable which u passed &lt;/P&gt;&lt;P&gt;   to the FM&lt;/P&gt;&lt;P&gt;   is not declared in the SAME WAY&lt;/P&gt;&lt;P&gt;   as declared in the FM definition se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Check out the way&lt;/P&gt;&lt;P&gt;   u have declared the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Also check the error message in detail.&lt;/P&gt;&lt;P&gt;  it will also tell which parameter/variable&lt;/P&gt;&lt;P&gt;   is not proper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 09:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125488#M110160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T09:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125489#M110161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi bernard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when callling the function module, ypou might be passing a text name TDNAME like material number, which should be declared like THEAD-TDNAME, declare a variable v_name like thead-tdname. Then move matnr to this field. Pass V_NAME to function module's name. &lt;/P&gt;&lt;P&gt;Similarly u will pass an object like VBBK or VBBP which should also declared as THEAD-OBJECTID . &lt;/P&gt;&lt;P&gt;Just declare all the fields that you are passing as type of the READ_TEXT FM values. This is a requisite for all FMs that u will use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 09:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125489#M110161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T09:10: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/1125490#M110162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just show the code &lt;/P&gt;&lt;P&gt;how you are calling FM ,&lt;/P&gt;&lt;P&gt;give declarations also..&lt;/P&gt;&lt;P&gt;just see my post and copy the FM and pass appropriate values.&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 09:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125490#M110162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T09:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125491#M110163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u describe ur error analuysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is with ur declarations. declare like below and use these variables to pass to read_text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:V_TDOBJECT LIKE THEAD-TDOBJECT,  &lt;/P&gt;&lt;P&gt;   V_TDNAME   LIKE THEAD-TDNAME, &lt;/P&gt;&lt;P&gt;    V_TDID     LIKE THEAD-TDID,  &lt;/P&gt;&lt;P&gt;   I_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move ur matne to the V_TDNAME , move the TDID appropriatelu and the TDOBJECt . these details u can pick up from the header of your long text. Click on the longtext and goto--&amp;gt; header, here you will find the id which will be client, TD object,tdid,tdname concatenated together... use these in the variuablkes and call the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 09:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/1125491#M110163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T09:16:01Z</dc:date>
    </item>
  </channel>
</rss>

