<?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: Regarding  READ_TEXT Fm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185544#M1000511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are u passing the material number with leading zeros. This is mandatory. Check whether v_name contains leading zeros.(18 digit number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check whether it is maintained for that language(English) or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to get all the descriptions into single table then use one more internal table.&lt;/P&gt;&lt;P&gt;After getting data from FM put this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT...&lt;/P&gt;&lt;P&gt;CALL FM  READ_TEXT....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK NOT i_lines[] IS INITIAL.&lt;/P&gt;&lt;P&gt;APPEND LINES OF i_lines TO i_lines_final.&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;&lt;STRONG&gt;Noticed one more thing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to pass like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If material number is 12345 the &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;v_name = 000000000000012345CR 01&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So its combination of material number with leading zeros, sales org and distribution channel. Concatenate all these things and pass it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below on how to check these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open ur material in MM02, Select sales text view=&amp;gt;Click on editor icon=&amp;gt;Menu=&amp;gt;Header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here u will find what are all the details u need to pass to this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not only for this. For any other text also follow same procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Jul 12, 2008 10:47 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Jul 12, 2008 10:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Jul 2008 05:13:33 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-07-12T05:13:33Z</dc:date>
    <item>
      <title>Regarding  READ_TEXT Fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185541#M1000508</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;        i want to read the long text from sales text in material master . Iam using the read_text function module. I know the id i.e '0001' , and object is 'MVKE' . How to pass the value for the parameter name .&lt;/P&gt;&lt;P&gt;iam having the values of the materials in an internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_final INTO wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF wa_final-matnr IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;          MOVE wa_final-matnr  TO V_NAME.&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                            = '0001'&lt;/P&gt;&lt;P&gt;          language                      = 'E'&lt;/P&gt;&lt;P&gt;          name                          = V_NAME&lt;/P&gt;&lt;P&gt;          object                        = 'MVKE'&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                         = i_line&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;&lt;/P&gt;&lt;P&gt;      APPEND  i_line.&lt;/P&gt;&lt;P&gt;      CLEAR i_line.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 04:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185541#M1000508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T04:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  READ_TEXT Fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185542#M1000509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi A kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following modification in ur code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the comments which i made in the below code... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : V_NAME TYPE TDOBNAME. " Define Variable V_NAME  like this
DATA : I_LINE TYPE STANDARD TABLE OF TLINE WITH HEADER LINE.

LOOP AT I_FINAL INTO WA_FINAL.

  IF WA_FINAL-MATNR IS NOT INITIAL.
    MOVE WA_FINAL-MATNR TO V_NAME.

    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        ID                            = '0001'
        LANGUAGE                      = 'E'
        NAME                          = V_NAME
        OBJECT                        = 'MVKE'
*       ARCHIVE_HANDLE                = 0
*       LOCAL_CAT                     = ' '
*     IMPORTING
*       HEADER                        =
      TABLES
        LINES                         = I_LINE " it's internal table contains text u wanna read
*     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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    IF SY-SUBRC = 0.
      LOOP AT I_LINE. " use read statement of Loop at to read content of this internal table.
        WRITE : I_LINE-TDLINE.
* Write Ur Logic here..
      ENDLOOP.
    ENDIF.

  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 04:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185542#M1000509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T04:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  READ_TEXT Fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185543#M1000510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ilesh ,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;           Thanks for reply.   iam not geting the values in the internal table . Before psoting this thread itself i have checked in debugging . i was thinking as to what values should i move  to the variable v_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 05:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185543#M1000510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T05:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  READ_TEXT Fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185544#M1000511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are u passing the material number with leading zeros. This is mandatory. Check whether v_name contains leading zeros.(18 digit number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check whether it is maintained for that language(English) or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to get all the descriptions into single table then use one more internal table.&lt;/P&gt;&lt;P&gt;After getting data from FM put this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT...&lt;/P&gt;&lt;P&gt;CALL FM  READ_TEXT....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK NOT i_lines[] IS INITIAL.&lt;/P&gt;&lt;P&gt;APPEND LINES OF i_lines TO i_lines_final.&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;&lt;STRONG&gt;Noticed one more thing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to pass like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If material number is 12345 the &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;v_name = 000000000000012345CR 01&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So its combination of material number with leading zeros, sales org and distribution channel. Concatenate all these things and pass it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below on how to check these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open ur material in MM02, Select sales text view=&amp;gt;Click on editor icon=&amp;gt;Menu=&amp;gt;Header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here u will find what are all the details u need to pass to this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not only for this. For any other text also follow same procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Jul 12, 2008 10:47 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Jul 12, 2008 10:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 05:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185544#M1000511</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-07-12T05:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  READ_TEXT Fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185545#M1000512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the values of these fields.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Text Name
Language
Text ID
Text Object&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto the &lt;STRONG&gt;Sales text&lt;/STRONG&gt; Tab in Material Master transaction &lt;STRONG&gt;MM01&lt;/STRONG&gt;, at the left end bottom  you can find the Text Editor Push button. &lt;/P&gt;&lt;P&gt;Select the text and press the &lt;STRONG&gt;Text editor&lt;/STRONG&gt; push button now you can see the text editor. in that &lt;U&gt;Menu path&lt;/U&gt; &lt;/P&gt;&lt;P&gt;Goto ---&amp;gt; Header&lt;/P&gt;&lt;P&gt;Now  you get a Text editor  screen there you can find the the values of these fields.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Text Name
Language
Text ID
Text Object&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Generally you need to pass these values to the Function Module &lt;STRONG&gt;READ_TEXT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best reagards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 05:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185545#M1000512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T05:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  READ_TEXT Fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185546#M1000513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi A Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_NAME is combination of &lt;STRONG&gt;material number&lt;/STRONG&gt; with leading zeros (18 Char), &lt;STRONG&gt;sales org&lt;/STRONG&gt; and &lt;STRONG&gt;distribution channel&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;MATNR     CHAR      18&lt;/P&gt;&lt;P&gt;VKORG	CHAR	4	Sales Organization&lt;/P&gt;&lt;P&gt;VTWEG	CHAR	2	Distribution Channel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it will be like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find VKORG and VTWEG from Respective tables... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass MATNR to VBAP get the VBELN&lt;/P&gt;&lt;P&gt;Pass VBELN to VBAK and GET the VKORG and VTWEG..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or see as per ur configuration if any other table contains the value of VKORG and VTWEG...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use concatenate statement here to get the exact value of V_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE MATNR VKORG VTWEG INTO V_NAME.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now pass this V_NAME to FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to run READ_TEXT FM from SE37 and pass the values above...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto MM03&lt;/P&gt;&lt;P&gt;Enter Material no ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Sales Text.,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it will ask you to enter sales org and Dist Channel..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And modify your code accordingly as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 05:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-text-fm/m-p/4185546#M1000513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T05:27:52Z</dc:date>
    </item>
  </channel>
</rss>

