<?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 Save document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947952#M390622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement of writing a user exit for T-code VA11 ie., Before saving a document, the system has to check for some condition.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Include program MV45AFZZ, it is written as Form USEREXIT_SAVE_DOCUMENT_PREPARE and in the other Include program MV45AF0B_BELEG_SICHEN, it is written as Perform USEREXIT_SAVE_DOCUMENT_PREPARE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On checking the user exit for this T-code, I find around 15 user-exit, which are listed herebelow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SDTRM001            Reschedule schedule lines without a new ATP check&lt;/P&gt;&lt;P&gt;V45A0001            Determine alternative materials for product selection&lt;/P&gt;&lt;P&gt;V45A0002            Predefine sold-to party in sales document&lt;/P&gt;&lt;P&gt;V45A0003            Collector for customer function modulpool MV45A&lt;/P&gt;&lt;P&gt;V45A0004            Copy packing proposal&lt;/P&gt;&lt;P&gt;V45E0001            Update the purchase order from the sales order&lt;/P&gt;&lt;P&gt;V45E0002            Data transfer in procurement elements (PRreq., assembly)&lt;/P&gt;&lt;P&gt;V45L0001            SD component supplier processing (customer enhancements)&lt;/P&gt;&lt;P&gt;V45P0001            SD customer function for cross-company code sales&lt;/P&gt;&lt;P&gt;V45S0001            Update sales document from configuration&lt;/P&gt;&lt;P&gt;V45S0003            MRP-relevance for incomplete configuration&lt;/P&gt;&lt;P&gt;V45S0004            Effectivity type in sales order&lt;/P&gt;&lt;P&gt;V45W0001            SD Service Management: Forward Contract Data to Item&lt;/P&gt;&lt;P&gt;V46H0001            SD Customer functions for resource-related billing&lt;/P&gt;&lt;P&gt;V60F0001            SD Billing plan (customer enhancement) diff. to billing plan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide me as to how to find the correct User_exit and the procedure to code the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2007 04:46:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-09T04:46:50Z</dc:date>
    <item>
      <title>Save document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947952#M390622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement of writing a user exit for T-code VA11 ie., Before saving a document, the system has to check for some condition.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Include program MV45AFZZ, it is written as Form USEREXIT_SAVE_DOCUMENT_PREPARE and in the other Include program MV45AF0B_BELEG_SICHEN, it is written as Perform USEREXIT_SAVE_DOCUMENT_PREPARE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On checking the user exit for this T-code, I find around 15 user-exit, which are listed herebelow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SDTRM001            Reschedule schedule lines without a new ATP check&lt;/P&gt;&lt;P&gt;V45A0001            Determine alternative materials for product selection&lt;/P&gt;&lt;P&gt;V45A0002            Predefine sold-to party in sales document&lt;/P&gt;&lt;P&gt;V45A0003            Collector for customer function modulpool MV45A&lt;/P&gt;&lt;P&gt;V45A0004            Copy packing proposal&lt;/P&gt;&lt;P&gt;V45E0001            Update the purchase order from the sales order&lt;/P&gt;&lt;P&gt;V45E0002            Data transfer in procurement elements (PRreq., assembly)&lt;/P&gt;&lt;P&gt;V45L0001            SD component supplier processing (customer enhancements)&lt;/P&gt;&lt;P&gt;V45P0001            SD customer function for cross-company code sales&lt;/P&gt;&lt;P&gt;V45S0001            Update sales document from configuration&lt;/P&gt;&lt;P&gt;V45S0003            MRP-relevance for incomplete configuration&lt;/P&gt;&lt;P&gt;V45S0004            Effectivity type in sales order&lt;/P&gt;&lt;P&gt;V45W0001            SD Service Management: Forward Contract Data to Item&lt;/P&gt;&lt;P&gt;V46H0001            SD Customer functions for resource-related billing&lt;/P&gt;&lt;P&gt;V60F0001            SD Billing plan (customer enhancement) diff. to billing plan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide me as to how to find the correct User_exit and the procedure to code the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 04:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947952#M390622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T04:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Save document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947953#M390623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write your code in MV45AFZZ, in Form USEREXIT_SAVE_DOCUMENT_PREPARE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before checking the condition write a code to check transaction as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-tcode = 'VA11'.&lt;/P&gt;&lt;P&gt;&amp;lt;Your condition&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 04:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947953#M390623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T04:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Save document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947954#M390624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not allowing to make changes in MV45AFZZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 04:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947954#M390624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T04:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Save document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947955#M390625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go to smod tcode give the nehancement names you are listing press F8 it will show some fn module exit like EXIT_SAPM...  just dbl click it it will go to se37 fn module builder . there you can find an include program. dbl click on the include it will go to abap editor go to change mode and put a break point or message and test for evry enhancement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will satisfy your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check&lt;/P&gt;&lt;P&gt;V45A0002&lt;/P&gt;&lt;P&gt;V45A0003&lt;/P&gt;&lt;P&gt;V45A0004&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 05:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947955#M390625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T05:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Save document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947956#M390626</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;The Form USEREXIT_SAVE_DOCUMENT_PREPARE should be ok, you need to amke sure you're elaborating a request and not a sales order or contract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This exit can be triggered by all kind of sales document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can check the value of field TVAK-KOPGR is  'AG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The include MV45AFZZ is std object so you have to get the access key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to register that object in OSS in order to get the key. If you haven't a OSS account you should ask an help to your basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 05:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947956#M390626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T05:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Save document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947957#M390627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to change any of the user exit for the respective tcode than you have to undertand first which userexit ll allow you to do the modification,than you can do the changes accordingly,all the user exits wont allow you to do the changes,so it would be better if you consult your functional consultant who can help you in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 05:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947957#M390627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T05:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Save document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947958#M390628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all the exits mentioned earlier, as per ur guidelines, ie., in all the includes I have added a 'break-point' and checked  one by one.  But, nowhere, it is poping at the break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check and guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947958#M390628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Save document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947959#M390629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you activated all the screen . i.e after giving the enhancement name one screen will come with fn module names just there you have to activate that . primarily it will be red but when you will activate that those thing will be green. just check.( if any thing dowes not work again deactivate that) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-document/m-p/1947959#M390629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:49:39Z</dc:date>
    </item>
  </channel>
</rss>

