<?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: linkage problem to trigger workflow in background? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/linkage-problem-to-trigger-workflow-in-background/m-p/2065222#M427290</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;You need not fiddle around with the function module for this.&lt;/P&gt;&lt;P&gt;Let me explain this to you with an example:&lt;/P&gt;&lt;P&gt;Scenario: I want the vendor to be blocked automatically once the vendor is created in the SAP system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;1. Create subtype of BO LFA1 to ZLFA1.&lt;/P&gt;&lt;P&gt;2. Delegate the subtype to the supertype.&lt;/P&gt;&lt;P&gt;3. Record a BDC for transaction XK05 which blocks the vendor.(SHDB)&lt;/P&gt;&lt;P&gt;4. Create a function module from the recording which accepts the vendor number as the import and blocks the vendor.&lt;/P&gt;&lt;P&gt;5. Create a method in ZLFA1 from the function module and uncheck the Dialog checkbox in the method properties.&lt;/P&gt;&lt;P&gt;6. Have a workflow that starts once the vendor is created&lt;/P&gt;&lt;P&gt;7. Do the binding from the event to the workflow container&lt;/P&gt;&lt;P&gt;8. Include a step in the workflow to call this new method from ZLFA1 and pass the parameters through the binding from Workflow -&amp;gt; task container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create the vendor and go to transaction XK05 to check te status and it will be blocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might have done this workflow in different systems for about 25 times and it has worked for me forever!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sudhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2007 20:50:08 GMT</pubDate>
    <dc:creator>sudhindra_chandrashekar</dc:creator>
    <dc:date>2007-03-13T20:50:08Z</dc:date>
    <item>
      <title>linkage problem to trigger workflow in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/linkage-problem-to-trigger-workflow-in-background/m-p/2065221#M427289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;to trigger a workflow on a specific event, i want the workflow to be a background one, that works without user intervention. In SWE2 linkage table , to which function module should i like the event ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was linking it to FM: sww_wi_create_via_event_ibf       but this did not work, i guess this is for creating workitems and i do not want that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i do not want my workflow to be a workitem, i want it to start executing by itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points are awarded, &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 20:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/linkage-problem-to-trigger-workflow-in-background/m-p/2065221#M427289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T20:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: linkage problem to trigger workflow in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/linkage-problem-to-trigger-workflow-in-background/m-p/2065222#M427290</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;You need not fiddle around with the function module for this.&lt;/P&gt;&lt;P&gt;Let me explain this to you with an example:&lt;/P&gt;&lt;P&gt;Scenario: I want the vendor to be blocked automatically once the vendor is created in the SAP system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;1. Create subtype of BO LFA1 to ZLFA1.&lt;/P&gt;&lt;P&gt;2. Delegate the subtype to the supertype.&lt;/P&gt;&lt;P&gt;3. Record a BDC for transaction XK05 which blocks the vendor.(SHDB)&lt;/P&gt;&lt;P&gt;4. Create a function module from the recording which accepts the vendor number as the import and blocks the vendor.&lt;/P&gt;&lt;P&gt;5. Create a method in ZLFA1 from the function module and uncheck the Dialog checkbox in the method properties.&lt;/P&gt;&lt;P&gt;6. Have a workflow that starts once the vendor is created&lt;/P&gt;&lt;P&gt;7. Do the binding from the event to the workflow container&lt;/P&gt;&lt;P&gt;8. Include a step in the workflow to call this new method from ZLFA1 and pass the parameters through the binding from Workflow -&amp;gt; task container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create the vendor and go to transaction XK05 to check te status and it will be blocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might have done this workflow in different systems for about 25 times and it has worked for me forever!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sudhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 20:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/linkage-problem-to-trigger-workflow-in-background/m-p/2065222#M427290</guid>
      <dc:creator>sudhindra_chandrashekar</dc:creator>
      <dc:date>2007-03-13T20:50:08Z</dc:date>
    </item>
  </channel>
</rss>

