<?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: Function SAVE_TEXT in transaction VA01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392125#M1841771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paulo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Did you fix the issue? I have tried to create order and replicate the scenario what you have mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the time of order creation, you will not get text name so either you need to use XTHEAD internal table as this table has all the text or you need to create implicit enhancement in routine MV45AF0B_BELEG_SICHERN after FM sd_commit_text as this FM is called after all user exits and at this point you have sales order number available to pass in TDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 11:59:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-23T11:59:07Z</dc:date>
    <item>
      <title>Function SAVE_TEXT in transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392120#M1841766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i have a requirement to add a new text in sales order header when saving the document (transaction VA01). I use the SAVE_DOCUMENT userexit in program MV45AFZZ to do this. I loop at xvbap table and retrieve some texts in a Z table to fill the 'IT_LINES' required by the function 'SAVE_TEXT'. It works fine if I don't type anything directly on the text before saving (id 0001, object VBBK). But if something is inputed on the text during sales order creation, I lost the texts I have in the Z table, the only text saved is the text I inputed manually. Curiously, if I call transaction VA02 to change the sales order ( I have to change at least one field, like customer purchase order number), then all texts are saved. I have tried several different options with many functions related to text as SAVE_TEXT, INIT_TEXT, READ_TEXT, DELETE_TEXT and CREATE_TEXT bu with no success. The last code I have is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_lines[] is initial.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call function 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; exporting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; header&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = st_thead&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; save_mode_direct = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lines&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = it_lines&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bla bla bla&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a suggestion that may help me?&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;Paulo Café.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 11:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392120#M1841766</guid>
      <dc:creator>former_member574375</dc:creator>
      <dc:date>2014-07-21T11:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function SAVE_TEXT in transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392121#M1841767</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;&lt;/P&gt;&lt;P&gt;did you try code like this to check if text have been updated :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;* Read the old text (before saving)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; DATA:&amp;nbsp; BEGIN OF STXL_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TDOBJECT LIKE STXL-TDOBJECT,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TDNAME&amp;nbsp;&amp;nbsp; LIKE STXL-TDNAME,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TDID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LIKE STXL-TDID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TDSPRAS&amp;nbsp; LIKE STXL-TDSPRAS,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF STXL_ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; STXL_ID-TDOBJECT = STXH-TDOBJECT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; STXL_ID-TDNAME&amp;nbsp;&amp;nbsp; = STXH-TDNAME.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; STXL_ID-TDID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = STXH-TDID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; STXL_ID-TDSPRAS&amp;nbsp; = STXH-TDSPRAS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IMPORT TLINE TO T_OLD_LINES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM DATABASE STXL(TX)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLIENT&amp;nbsp;&amp;nbsp; SY-MANDT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STXL_ID.&lt;/SPAN&gt;&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;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 12:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392121#M1841767</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2014-07-21T12:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function SAVE_TEXT in transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392122#M1841768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paulo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess first you have to read out all the text using READ_TEXT , then append your internal table with new text , use EDIT_TEXT and last SAVE_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 12:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392122#M1841768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-21T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function SAVE_TEXT in transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392123#M1841769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frédéric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks for you reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have tried your sugestion but it didn't work. The time we create the sales order, this command doesn't retrive anything. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I use the READ_TEXT function to do this, and it works fine, getting the text I typed manually. But, as I said,, the Z texts are lost.after saving the order. The system keeps the text I typed, but not the complemente (my Z text wich i added to the existing text).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paulo Café&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392123#M1841769</guid>
      <dc:creator>former_member574375</dc:creator>
      <dc:date>2014-07-21T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function SAVE_TEXT in transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392124#M1841770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i do exactly as you said (and&amp;nbsp; many other variants...) but it really doesn't work during creation. As I said before, if i change the order, then all texts are saved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paulo Café&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392124#M1841770</guid>
      <dc:creator>former_member574375</dc:creator>
      <dc:date>2014-07-21T13:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function SAVE_TEXT in transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392125#M1841771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paulo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Did you fix the issue? I have tried to create order and replicate the scenario what you have mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the time of order creation, you will not get text name so either you need to use XTHEAD internal table as this table has all the text or you need to create implicit enhancement in routine MV45AF0B_BELEG_SICHERN after FM sd_commit_text as this FM is called after all user exits and at this point you have sales order number available to pass in TDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 11:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392125#M1841771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-23T11:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function SAVE_TEXT in transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392126#M1841772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I took another way to solve the problem and gave up saving all texts in one text ID. The Z texts are now saved in other text ID and this worked fine for my purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for you help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paulo Café&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 16:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392126#M1841772</guid>
      <dc:creator>former_member574375</dc:creator>
      <dc:date>2014-07-24T16:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function SAVE_TEXT in transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392127#M1841773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, great..good to know that Issue has been fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 06:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-save-text-in-transaction-va01/m-p/10392127#M1841773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-29T06:55:09Z</dc:date>
    </item>
  </channel>
</rss>

