<?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 Create Purchase order while saving Sales Order. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709903#M1671821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have business requirement to generate PO while saving sales order in VA01. I have called the Bapi (bapi_po_create1) in user exit&lt;/P&gt;&lt;P&gt;User_save_document and generated PO successfully but i am not able to capture account assignment category into PO..When i tried to pass Category &lt;/P&gt;&lt;P&gt;i got error saying Sales Doc number is deleted or archived. after analysis i found out reason of error cause sales Doc no which is generated&amp;nbsp; in VA01 but not committed in Table during exit...I tired both option also by calling Bapi in 1. Perform XXX ON Commit 2. FM in Update Task..but still getting error..&lt;/P&gt;&lt;P&gt;Kindly suggest any other logic if any one has worked on same issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2012 09:35:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-04-09T09:35:09Z</dc:date>
    <item>
      <title>Create Purchase order while saving Sales Order.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709903#M1671821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have business requirement to generate PO while saving sales order in VA01. I have called the Bapi (bapi_po_create1) in user exit&lt;/P&gt;&lt;P&gt;User_save_document and generated PO successfully but i am not able to capture account assignment category into PO..When i tried to pass Category &lt;/P&gt;&lt;P&gt;i got error saying Sales Doc number is deleted or archived. after analysis i found out reason of error cause sales Doc no which is generated&amp;nbsp; in VA01 but not committed in Table during exit...I tired both option also by calling Bapi in 1. Perform XXX ON Commit 2. FM in Update Task..but still getting error..&lt;/P&gt;&lt;P&gt;Kindly suggest any other logic if any one has worked on same issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 09:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709903#M1671821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-09T09:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase order while saving Sales Order.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709904#M1671822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the BTE 00501014: ( Sales order was created, changed, deleted ) for your purpose. The sample interface is available in function SAMPLE_INTERFACE_00501014( which you can copy to your Z function &amp;amp; wrap the bapi in it ). Please search in SCN for details of how to use BTE and activate it through FIBF.This function is an update function which gets called in the end.You can try calling the bapi in background task inside this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 09:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709904#M1671822</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-04-09T09:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase order while saving Sales Order.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709905#M1671823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call bapi_po_create1 in background .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cal bapi_po_create1 in background task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 09:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709905#M1671823</guid>
      <dc:creator>former_member16553</dc:creator>
      <dc:date>2012-04-09T09:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase order while saving Sales Order.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709906#M1671824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option would be create Z function module inside it call bapi_po_create1. Put wait statement in Z function module for few seconds to make sure sales order is saved in database. And then call this Z FM in background task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 11:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709906#M1671824</guid>
      <dc:creator>former_member189779</dc:creator>
      <dc:date>2012-04-09T11:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase order while saving Sales Order.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709907#M1671825</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;Use below user-exit to create PO which will trigger after SO creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZXVEDU06&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 11:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709907#M1671825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-09T11:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase order while saving Sales Order.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709908#M1671826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can still use&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;FORM USEREXIT_SAVE_DOCUMENT&amp;nbsp;&amp;nbsp; in the include MV45AFZZ.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;Create a z- update FM . Put your code to create the PO. and try calling this FM in update task.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;If it doesn't work Call the FM in bacground task. Put some wait in loop to check if the sale order is commited to db and procedd to create PO&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 11:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709908#M1671826</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-04-09T11:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase order while saving Sales Order.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709909#M1671827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can still use&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;FORM USEREXIT_SAVE_DOCUMENT&amp;nbsp;&amp;nbsp; in the include MV45AFZZ.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;Create a z- update FM . Put your code to create the PO. and try calling this FM in update task.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;If it doesn't work Call the FM in bacground task. Put some wait in loop to check if the sale order is commited to db and procedd to create PO&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 11:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-order-while-saving-sales-order/m-p/8709909#M1671827</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-04-09T11:45:16Z</dc:date>
    </item>
  </channel>
</rss>

