<?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: Workflow: Purchase Order in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437304#M208372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you do not enter any field restrictions the custom event should be triggered. Is this happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want the custom event to be triggered when the PO is released then enter the field restriction, OldReleaseCode = NewReleaseCode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field restrictions are to be used only when you want to trigger events for specific field changes. For e.g. Trigger an event if the item category of a field is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2006 12:33:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-21T12:33:17Z</dc:date>
    <item>
      <title>Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437296#M208364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm creating a workflow that will perform the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Triggered at: Change of PO&lt;/P&gt;&lt;P&gt;Steps&lt;/P&gt;&lt;P&gt;1) Check if the PO is released.&lt;/P&gt;&lt;P&gt;2) If the PO is not released then do nothing and Stop.&lt;/P&gt;&lt;P&gt;3) If PO has been released, then reset the PO Release and send a mail to an user.&lt;/P&gt;&lt;P&gt;4) Stop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the workflow is working fine except for a small issue. This change is getting triggered even when a PO is released. due to this the PO can never be released. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How to overcome this?&lt;/P&gt;&lt;P&gt;Any pointers highly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 13:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437296#M208364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T13:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437297#M208365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP program treats the PO release as a CHANGE and triggers the CHANGED event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a custom event for the business object i.e. ZCHANGED and trigger ZCHANGED using change documents. Transactions SWED and SWEC are to be used to do these settings. ZCHANGED can be used as a triggering event for your workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had adopted the above approach for a similar requirement for requisitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 13:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437297#M208365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437298#M208366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thanks Kiran.&lt;/P&gt;&lt;P&gt;Can you please give me a step by step procedure of links that can help me on doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 13:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437298#M208366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T13:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437299#M208367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a subtype of the PO business object and add the custom event.&lt;/P&gt;&lt;P&gt;Enter a delegation entry using the option &lt;/P&gt;&lt;P&gt;Settings-&amp;gt;Delegate on the initial screen in SWO1&lt;/P&gt;&lt;P&gt;In SWED make an entry for the change object EINKBELEG and select the checkbox CHANGE.&lt;/P&gt;&lt;P&gt;In SWEC create a new entry with the below details&lt;/P&gt;&lt;P&gt;EINKBELEG&lt;/P&gt;&lt;P&gt;BO BOR Object Type&lt;/P&gt;&lt;P&gt;BUS2012&lt;/P&gt;&lt;P&gt;ZCHANGED&lt;/P&gt;&lt;P&gt;Select the On Change Radiobutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have to restrict the ZCHANGED event to specific field changed then enter the field restrictions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Detailed help from SAP at the below link: &lt;A href="http://help.sap.com//saphelp_erp2004/helpdata/EN/c5/e4aeef453d11d189430000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com//saphelp_erp2004/helpdata/EN/c5/e4aeef453d11d189430000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 14:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437299#M208367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T14:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437300#M208368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kiran,&lt;/P&gt;&lt;P&gt;Thanks dude. It works well. But just one more small issue....&lt;/P&gt;&lt;P&gt;I have to trigger my WF only when a released PO is changed and not while actually releasing the PO. &lt;/P&gt;&lt;P&gt;So in the field restrictions, I have to put all the fields of the tables EKKO,EKPO and one more excluding the field that corresponds to that released status flag. This is very tedious. Can i do it in any other way in the field restriction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 09:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437300#M208368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T09:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437301#M208369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the field restrictions only maintain those fields which when changed should trigger the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check the PO release logic there is something called as check function module you can define in the event linkages (SWETYPV). This function is processed after the event is created and before the workflow is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write a check function module to check if the PO is released. If the PO is not released raise an exception in the function and the workflow will not be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a template check function module called SWE_CD_TEMPLATE_CHECK_FB in the function group SWE_TEMPLATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 09:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437301#M208369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T09:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437302#M208370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another easy way out can be use the &amp;lt;b&amp;gt;Start condition&amp;lt;/b&amp;gt; for workflow.&lt;/P&gt;&lt;P&gt;In this start condition check that Attribute &amp;lt;b&amp;gt;ReleaseStatus&amp;lt;/b&amp;gt; of BUS2012 object is initial/blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So workflow will be triggered only when PO has status as released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Akshay Bhagwat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 10:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437302#M208370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437303#M208371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Akshay &amp;amp; Kiran,&lt;/P&gt;&lt;P&gt;I think I've not put the question in the right way. &lt;/P&gt;&lt;P&gt;I've already done the WF so that it gets triggered only for Release PO when changed. It is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the WF was getting triggered even when the PO was released since SAP considers it also as changed. So as Kiran had suggested, I had created a ZCHANGED event and linked it with BUS2012. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my only concern was that I need to put all the fields of table in EKKO,EKPO excluding the ones that correspond to Release Status flag in EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to exclude only those fields but consider all the other default fields???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 11:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437303#M208371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T11:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437304#M208372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you do not enter any field restrictions the custom event should be triggered. Is this happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want the custom event to be triggered when the PO is released then enter the field restriction, OldReleaseCode = NewReleaseCode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field restrictions are to be used only when you want to trigger events for specific field changes. For e.g. Trigger an event if the item category of a field is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 12:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437304#M208372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T12:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437305#M208373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all! A special thanks to Kiran too. &lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 15:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437305#M208373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T15:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: Purchase Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437306#M208374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Samuel Zakster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 14:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-purchase-order/m-p/1437306#M208374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T14:48:53Z</dc:date>
    </item>
  </channel>
</rss>

