<?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: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885897#M371577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;- USEREXIT_SAVE_DOCUMENT_PREPARE: it's triggered before saving document,&lt;/P&gt;&lt;P&gt;- USEREXIT_SAVE_DOCUMENT: it's triggered while saving document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to store your data in Z-TABLE, yous should use the userexit USEREXIT_SAVE_DOCUMENT instead of USEREXIT_SAVE_DOCUMENT_PREPARE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you have to insert all abap code you need to update your z-table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should consider all saving are made in update tusk, so it should be better you create a z-function to update your z-table and call that fm in update tusk into USEREXIT_SAVE_DOCUMENT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2007 14:00:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-17T14:00:26Z</dc:date>
    <item>
      <title>difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885895#M371575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 13:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885895#M371575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885896#M371576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exit USEREXIT_SAVE_DOCUMENT is used to change the SO when saving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U get the data which are all changes during saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 13:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885896#M371576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T13:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885897#M371577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;- USEREXIT_SAVE_DOCUMENT_PREPARE: it's triggered before saving document,&lt;/P&gt;&lt;P&gt;- USEREXIT_SAVE_DOCUMENT: it's triggered while saving document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to store your data in Z-TABLE, yous should use the userexit USEREXIT_SAVE_DOCUMENT instead of USEREXIT_SAVE_DOCUMENT_PREPARE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you have to insert all abap code you need to update your z-table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should consider all saving are made in update tusk, so it should be better you create a z-function to update your z-table and call that fm in update tusk into USEREXIT_SAVE_DOCUMENT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 14:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885897#M371577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885898#M371578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT is used to change the Sales Order while saving data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT_PREPARE is used to get the changes done during saving.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 14:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885898#M371578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885899#M371579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main difference is that in USEREXIT_SAVE_DOCUMENT_PREPARE you can change data in x* internal tables and these changes will be passed to DB, while in USEREXIT_SAVE_DOCUMENT - it's too late to change data in SAP internal tables (x* tables) since SAP has already passed these tables to update task FM... save_document can be used for triggering your own table (Z* table) updates, for triggering workflow events, for final validation of order info and raising error message to prevent order save.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 14:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885899#M371579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T14:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885900#M371580</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;Check the sap help ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT                                              &lt;/P&gt;&lt;P&gt;Use this user exit to fill user-specific statistics update tables.  &lt;/P&gt;&lt;P&gt;The user exit is called up by the FORM routine BELEG-SICHERN before &lt;/P&gt;&lt;P&gt;the COMMIT command.                                                 &lt;/P&gt;&lt;P&gt;Note                                                                &lt;/P&gt;&lt;P&gt;If a standard field is changed, the field r185d-dataloss is set to  &lt;/P&gt;&lt;P&gt;X. The system queries this indicator at the beginning of the safety &lt;/P&gt;&lt;P&gt;routine. This is why this indicator must also be set during the     &lt;/P&gt;&lt;P&gt;maintenance of user-specific tables that are also to be saved.                                                                                &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    &lt;/P&gt;&lt;P&gt;before saving a document. It is the last possibility for changing or&lt;/P&gt;&lt;P&gt;checking a document before posting.                                 &lt;/P&gt;&lt;P&gt;The user exit is carried out at the beginning of the FORM routine   &lt;/P&gt;&lt;P&gt;BELEG_SICHERN.                                                      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 15:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885900#M371580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T15:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885901#M371581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;Both are same both few things which needs to be changed between the two userexit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; USEREXIT_SAVE_DOCUMENT_PREPARE . : If you want to make the validation you use this userexti and this is the last time to do the changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT : If you want ot modify the code then you can use it for this userexit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 15:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885901#M371581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T15:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885902#M371582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you really want to see from where can you get the information regarding userexit then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SPRO --&amp;gt; Sales and Distribution  --&amp;gt;  System Modification  --&amp;gt; UserExits  --&amp;gt; UserExit in Sales  --&amp;gt;  UserExit in Sales Document Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go and check out all the userexit present for Sales  will find it in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 15:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885902#M371582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T15:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: difference between USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885903#M371583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!! I could'nt find the right user exit and after your post...it is working!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-userexit-save-document-or-userexit-save-document-prepare/m-p/1885903#M371583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:50:49Z</dc:date>
    </item>
  </channel>
</rss>

