<?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: Call same smartform in program with different text -&amp;gt; same result in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689891#M622232</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;You can use COMMIT_TEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system keeps all text modules for which you defined 'storage in update task' in the corresponding text object in the text memory. As soon as it updates the corresponding application object, it must also place the text modules into the log file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module COMMIT_TEXT generates for the text modules in the text object a CALL FUNCTION... IN UPDATE TASK statement in accordance with the action to be executed (delete, create, change).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No COMMIT WORK is created. This must be executed by the application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not specify OBJECT, NAME, ID, and LANGUAGE, the system transfers all texts from the text memory. To limit the function to certain texts, enter values (fully or generically) in the above fields. The system then selects all texts that match the selections in the fields up to the first ' * '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, the system deletes texts from the text memory as soon as they are written to the log file. If you want to keep updated texts in the text memory, call the function module with the parameter KEEP = 'X'. The system then keeps the texts in the text memory and flags them as updated. When calling COMMIT_TEXT again, the system ignores these texts. If you change such a text again during the transaction (for example, using SAVE_TEXT or DELETE_TEXT), the system deletes the flag. However, you need another COMMIT_TEXT to update the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 10:52:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-14T10:52:36Z</dc:date>
    <item>
      <title>Call same smartform in program with different text -&gt; same result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689888#M622229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a program, a certain smartforms form can be called multiple times. Only the text can change, depending on the user action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the resulting form does not show different text for the different actions. The first time it is used, the text is correct, but from the second time onwards, the text in the form will still be same than the first time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text type in the smartform is 'include text', so I can see in the standard text transaction (so10) that the text was indeed changed correctly. But still it shows the same text in the result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some option I have missed? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689888#M622229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Call same smartform in program with different text -&gt; same result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689889#M622230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well how do you change your text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with FM save_text? and do you afterwards call the FM commit_text ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689889#M622230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call same smartform in program with different text -&gt; same result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689890#M622231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I save the text with fm save_text yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not use commit_text though. I will try that!&lt;/P&gt;&lt;P&gt;(what does that fm do?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689890#M622231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Call same smartform in program with different text -&gt; same result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689891#M622232</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;You can use COMMIT_TEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system keeps all text modules for which you defined 'storage in update task' in the corresponding text object in the text memory. As soon as it updates the corresponding application object, it must also place the text modules into the log file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module COMMIT_TEXT generates for the text modules in the text object a CALL FUNCTION... IN UPDATE TASK statement in accordance with the action to be executed (delete, create, change).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No COMMIT WORK is created. This must be executed by the application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not specify OBJECT, NAME, ID, and LANGUAGE, the system transfers all texts from the text memory. To limit the function to certain texts, enter values (fully or generically) in the above fields. The system then selects all texts that match the selections in the fields up to the first ' * '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, the system deletes texts from the text memory as soon as they are written to the log file. If you want to keep updated texts in the text memory, call the function module with the parameter KEEP = 'X'. The system then keeps the texts in the text memory and flags them as updated. When calling COMMIT_TEXT again, the system ignores these texts. If you change such a text again during the transaction (for example, using SAVE_TEXT or DELETE_TEXT), the system deletes the flag. However, you need another COMMIT_TEXT to update the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689891#M622232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call same smartform in program with different text -&gt; same result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689892#M622233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling COMMIT_TEXT after SAVE_TEXT does not do anything, it seems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is still the same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 11:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689892#M622233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T11:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call same smartform in program with different text -&gt; same result</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689893#M622234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The program flow is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM READ_TEXT&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Code to change the text *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FM SAVE_TEXT&lt;/P&gt;&lt;P&gt;FM COMMIT_TEXT&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FM SSF_FUNCTION_MODULE_NAME&lt;/P&gt;&lt;P&gt;FM fm_name&lt;/P&gt;&lt;P&gt;FM HR_EFI_SHOW_PDF_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I exit the program and restart it, the text will be changed, but again, only the first time. So it seems I'm missing something, perhaps an option when I call the smartform fm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that the otf table that is returned is always the same, which shouldn't be the case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 11:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-smartform-in-program-with-different-text-gt-same-result/m-p/2689893#M622234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T11:49:22Z</dc:date>
    </item>
  </channel>
</rss>

