<?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: Problems getting texts items in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953253#M696511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set a breakpoint when the function (READ_TEXT) is called into the user exit. When the flow has stopped, I executed READ_TEXT (in another session tx-se37). Results found:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ_TEXT of the user-exit returns GOODBYE.&lt;/P&gt;&lt;P&gt;READ_TEXT of the function returns HELLO.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are executed at the same time. I think the problem is that the READ_TEXT function of the user-exit is called in transaction (and then returns the uncommitted modification).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I execute READ_TEXT into the user-exit outside the transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ricard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 06:55:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T06:55:59Z</dc:date>
    <item>
      <title>Problems getting texts items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953249#M696507</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;How can I compare the old value of an item note (Text tab) with the new value item note at MV45AFZZ method USEREXIT_SAVE_DOCUMENT_PREPARE? I always get the new one (using READ_TEXT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example. Sales order number 0005000001 is created. It has one position (000010) and its text item (item note) is &amp;#147;HELLO&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using VA02 I modify the text item (item note) of the sales order 0005000001 / position 000010 as &amp;#147;GOODBYE&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the following code is executed at user exit MV45AFZZ method USEREXIT_SAVE_DOCUMENT_PREPARE:&lt;/P&gt;&lt;P&gt;&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                            = '0002'&lt;/P&gt;&lt;P&gt;      LANGUAGE                      = SY-LANGU&lt;/P&gt;&lt;P&gt;      NAME                          = 0005000001000010&lt;/P&gt;&lt;P&gt;      OBJECT                        = 'VBBP'&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                         = 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;LINES table contains "GOODBYE".&lt;/P&gt;&lt;P&gt;I don&amp;#146;t know how I can get the old value (HELLO), and I don&amp;#146;t understand why I get GOODBYE, because the new value has not been stored yet (commit comes later).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ricard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 15:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953249#M696507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T15:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting texts items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953250#M696508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I think you get goodbye because that text is modified before the user exit activates...so if you try to get "hello2, you will not be able to get it because is already modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 15:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953250#M696508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting texts items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953251#M696509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation of MV45AFZZ explains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/P&gt;&lt;P&gt;Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.&lt;/P&gt;&lt;P&gt;The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the value is still no changed....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ricard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 15:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953251#M696509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting texts items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953252#M696510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Oscar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the code you wrote before inside the user Exit?....check it....you are getting the text with READ_TEXT and getting goodbye....it seems to be  already modied...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this....just for testing:&lt;/P&gt;&lt;P&gt;Go to yout tcode and change the text but dont save....&lt;/P&gt;&lt;P&gt;Go to SE37 and execute READ_TEXT FM.....what do you get....is it modified?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 16:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953252#M696510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting texts items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953253#M696511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set a breakpoint when the function (READ_TEXT) is called into the user exit. When the flow has stopped, I executed READ_TEXT (in another session tx-se37). Results found:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ_TEXT of the user-exit returns GOODBYE.&lt;/P&gt;&lt;P&gt;READ_TEXT of the function returns HELLO.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are executed at the same time. I think the problem is that the READ_TEXT function of the user-exit is called in transaction (and then returns the uncommitted modification).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I execute READ_TEXT into the user-exit outside the transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ricard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 06:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953253#M696511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T06:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting texts items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953254#M696512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ricard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to be a strange behavior....I have never use it...but try to use this stament:&lt;/P&gt;&lt;P&gt;CALL FUNCTION - IN UPDATE TASK&lt;/P&gt;&lt;P&gt;Maybe will work....Im not sure....but give it a try!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 12:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953254#M696512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T12:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting texts items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953255#M696513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found the solution. To get the texts entered by the user (and still uncommitted) I use the READ_TEXT function. To get the texts from the database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA:&lt;/P&gt;&lt;P&gt;      BEGIN OF STXL_ID,&lt;/P&gt;&lt;P&gt;        TDOBJECT LIKE STXL-TDOBJECT,&lt;/P&gt;&lt;P&gt;        TDNAME   LIKE STXL-TDNAME,&lt;/P&gt;&lt;P&gt;        TDID     LIKE STXL-TDID,&lt;/P&gt;&lt;P&gt;        TDSPRAS  LIKE STXL-TDSPRAS,&lt;/P&gt;&lt;P&gt;      END OF STXL_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#133;.&lt;/P&gt;&lt;P&gt;&amp;#133;. Fill stxl_id fields with the same values used in READ_TEXT function&lt;/P&gt;&lt;P&gt;&amp;#133;&lt;/P&gt;&lt;P&gt;import tline to lines_bd&lt;/P&gt;&lt;P&gt;            from database stxl(tx)&lt;/P&gt;&lt;P&gt;                 client   SY-MANDT&lt;/P&gt;&lt;P&gt;                 id       stxl_id&lt;/P&gt;&lt;P&gt;                 IGNORING CONVERSION ERRORS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I have implemented this code in the USEREXIT_SAVE_DOCUMENT method of MV45AFZZ user exit (presentation behaviour, nothing related with this issue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ricard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 10:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-getting-texts-items/m-p/2953255#M696513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T10:22:05Z</dc:date>
    </item>
  </channel>
</rss>

