<?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: Userexit/Function after sales order save in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246786#M1382986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;INCLUDE MV45AOZZ.             " User-modules PBO&lt;/P&gt;&lt;P&gt;&amp;gt; INCLUDE MV45AIZZ.             " User-modules PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try these two exits&lt;/P&gt;&lt;P&gt;EXIT_SAPMV45A_003&lt;/P&gt;&lt;P&gt;EXIT_SAPMV45A_004&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Soumyaprakash Mishra on Oct 7, 2009 11:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2009 06:00:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-07T06:00:39Z</dc:date>
    <item>
      <title>Userexit/Function after sales order save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246784#M1382984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to get sales order and line item number, which I want to pass to function module immediately while sales order creation.&lt;/P&gt;&lt;P&gt;To get sales order and line item number after sales order save in VA01 is there any userexit or function?&lt;/P&gt;&lt;P&gt;I tried with userexit_save_document and userexit_save_document_prepare, but it did not solved my purpose.&lt;/P&gt;&lt;P&gt;Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 05:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246784#M1382984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T05:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Userexit/Function after sales order save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246785#M1382985</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;Just try this uerexits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V60F0001                                SD Billing plan (customer enhancement) diff. to billing plan&lt;/P&gt;&lt;P&gt;V46H0001                                SD Customer functions for resource-related billing&lt;/P&gt;&lt;P&gt;V45W0001                                SD Service Management: Forward Contract Data to Item&lt;/P&gt;&lt;P&gt;V45S0004                                Effectivity type in sales order&lt;/P&gt;&lt;P&gt;V45S0003                                MRP-relevance for incomplete configuration&lt;/P&gt;&lt;P&gt;V45S0001                                Update sales document from configuration&lt;/P&gt;&lt;P&gt;V45P0001                                SD customer function for cross-company code sales&lt;/P&gt;&lt;P&gt;V45L0001                                SD component supplier processing (customer enhancements)&lt;/P&gt;&lt;P&gt;V45E0002                                Data transfer in procurement elements (PRreq., assembly)&lt;/P&gt;&lt;P&gt;V45E0001                                Update the purchase order from the sales order&lt;/P&gt;&lt;P&gt;V45A0004                                Copy packing proposal&lt;/P&gt;&lt;P&gt;V45A0003                                Collector for customer function modulpool MV45A&lt;/P&gt;&lt;P&gt;V45A0002                                Predefine sold-to party in sales document&lt;/P&gt;&lt;P&gt;V45A0001                                Determine alternative materials for product selection&lt;/P&gt;&lt;P&gt;SDTRM001                                Reschedule schedule lines without a new ATP check&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;Srinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 05:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246785#M1382985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T05:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Userexit/Function after sales order save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246786#M1382986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;INCLUDE MV45AOZZ.             " User-modules PBO&lt;/P&gt;&lt;P&gt;&amp;gt; INCLUDE MV45AIZZ.             " User-modules PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try these two exits&lt;/P&gt;&lt;P&gt;EXIT_SAPMV45A_003&lt;/P&gt;&lt;P&gt;EXIT_SAPMV45A_004&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Soumyaprakash Mishra on Oct 7, 2009 11:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 06:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246786#M1382986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T06:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Userexit/Function after sales order save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246787#M1382987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didnt get you..could you please elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 06:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246787#M1382987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T06:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Userexit/Function after sales order save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246788#M1382988</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;Go to CMOD.&lt;/P&gt;&lt;P&gt;Create a project.&lt;/P&gt;&lt;P&gt;In the Enhancement tab, put V45A0003 as an entry in the change mode.&lt;/P&gt;&lt;P&gt;You will get two function exits in the components tab for this enhancement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPMV45A_003&lt;/P&gt;&lt;P&gt;EXIT_SAPMV45A_004&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPMV45A_003 will get trigger on save of VA01. Implement this exit. In include ZXVVAU05, code for your requirement. The exporting parameter XVBAK will contain the header information and table XVBAP will contain the item level information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Natasha Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 08:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246788#M1382988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T08:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Userexit/Function after sales order save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246789#M1382989</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;Apologies for the delayed reply - I've only just come across your post whilst looking for something else in the forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although there is no sales order number available in the USEREXIT_SAVE_DOCUMENT_PREPARE (it is called before the number is generated). you should definitely have the sales order number available in the later userexit USEREXIT_SAVE_DOCUMENT - in field VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done something pretty similar in the past, where I need to update some bespoke Z tables with the SD doc header, item + schedule line information.  All of this is passed to a new function which is called in the VA01 update task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USEREXIT_SAVE_DOCUMENT.
  CALL FUNCTION 'ZMY_FUNCTION'         
    in UPDATE TASK                                    
    EXPORTING                                           
      id_vbeln       = vbak-vbeln
      is_vbak        = vbak                          
      it_xvbap       = xvbap[]                      
      it_xvbep       = xvbep[].                                       
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 14:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246789#M1382989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T14:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Userexit/Function after sales order save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246790#M1382990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Hi , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Could you please let me know what you have written inside your FM which called in update task.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;I have same kind of requirement where i need to update soem custom fields of vbak tables. Here is the details given below .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'/LGC/SDFGWW_VBAK_UPDATE' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;update &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;task&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_vbak&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = vbak&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_sdtv45a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;/SPAN&gt;sdtv45a (Local structure which value i want to update in vbak)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_vbeln&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = vbak-vbeln.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Code inside the FM .&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i_vbak-/lgc/banknum&amp;nbsp; = I_SDTV45A-zcheqbsbno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i_vbak-/lgc/bankaccnum = I_SDTV45A-bankn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i_vbak-/lgc/cheqnum = I_SDTV45A-zcheqno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i_vbak-/lgc/cheqname = I_SDTV45A-zcheqna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look into it and let me know where i am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: satya pujahari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 08:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexit-function-after-sales-order-save/m-p/6246790#M1382990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-17T08:46:10Z</dc:date>
    </item>
  </channel>
</rss>

