<?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 Material Long Text Issue while reading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579394#M1660658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am looking to read Material Long text and push it to the legacy system with the material details. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever i save the message am getting alll the details except Basic Data Text (Long Text). When i debug the code using the debugger(Classic/New) am getting the Long Text details. But am not able to find why the system is not fetching the Material Long Text in direct update(Without debugging).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using the FM READ_TEXT to read the Long Text and placing the code in the Enhancement Spot ES_SAPLMGMU in program SAPLMGMU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 12:49:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-13T12:49:02Z</dc:date>
    <item>
      <title>Material Long Text Issue while reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579394#M1660658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am looking to read Material Long text and push it to the legacy system with the material details. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever i save the message am getting alll the details except Basic Data Text (Long Text). When i debug the code using the debugger(Classic/New) am getting the Long Text details. But am not able to find why the system is not fetching the Material Long Text in direct update(Without debugging).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using the FM READ_TEXT to read the Long Text and placing the code in the Enhancement Spot ES_SAPLMGMU in program SAPLMGMU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 12:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579394#M1660658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-13T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Material Long Text Issue while reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579395#M1660659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Have you tried to do a update debugging ? I am not sure what is the code that you are using but sometimes it might happen that when you are using debugging there might be enough time for the system to update and then you are able to retrieve the value from the table. Try to see if that is the issue else explain in detail what exactly  you are trying to achieve in this enhancement spot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 16:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579395#M1660659</guid>
      <dc:creator>vijaymanikandan</dc:creator>
      <dc:date>2012-02-13T16:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Material Long Text Issue while reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579396#M1660660</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;Can you post some of your codes here for us to analyze if it code error or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;iostreamax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 06:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579396#M1660660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T06:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Material Long Text Issue while reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579397#M1660661</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;Below is the sample code used. My requirement is to fetch the Material details with Long text (Basic text) during material save and push it to legacy system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

L_NAME = MARA-MATNR.
      
      CALL FUNCTION 'COMMIT_TEXT'
       EXPORTING
         OBJECT                         = 'MATERIAL'
         NAME                             = L_NAME
         ID                                    = 'GRUN'
         LANGUAGE                    = SY-LANGU
         SAVEMODE_DIRECT       = 'X'
*         KEEP                  = ' '
*         LOCAL_CAT             = ' '
*       IMPORTING
*         COMMIT_COUNT          =
*       TABLES
*         T_OBJECT              =
*         T_NAME                =
*         T_ID                  =
*         T_LANGUAGE            =
                .
      

      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                          = 'GRUN'
          LANGUAGE          = SY-LANGU
          NAME                    = L_NAME
          OBJECT                 = 'MATERIAL'
        TABLES
          LINES                     = IT_LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
      CASE SY-SUBRC.
        WHEN '4'.
*          MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
*        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        WHEN OTHERS.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 09:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579397#M1660661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Material Long Text Issue while reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579398#M1660662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try to put a wait command  and see after your commit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579398#M1660662</guid>
      <dc:creator>vijaymanikandan</dc:creator>
      <dc:date>2012-02-14T10:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Material Long Text Issue while reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579399#M1660663</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;After calling the COMMIT_TEXT FM, try using the below statement before calling READ_TEXT FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
WAIT UP TO 5 SECONDS. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also try by changing the seconds value greater than 5 also. Please don't give any big value for seconds because it may cause the program to hang.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 06:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579399#M1660663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-15T06:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Material Long Text Issue while reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579400#M1660664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys, issue solved by giving wait command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points rewarded !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 11:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-long-text-issue-while-reading/m-p/8579400#M1660664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-15T11:45:20Z</dc:date>
    </item>
  </channel>
</rss>

