<DIV>Thanks Nate for your inputs.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I agree with you, But here our&nbsp;process&nbsp;is not relavant SAP functionality. They are completely custom process. SAP's BSP &amp; WebFlow are being used as platforms to impliment as the client is looking for web-based interface for the existing request-approval process. No details about the "Request" are being saved with in SAP, SAP just provides BSP page to submit the request and triggers workflow. And workflow container holds the data[request &amp; approve data] till the end of workflow/process.&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hence&nbsp;no custom business objects( or tables) being created, there by no events associated with.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Yes, no hardcoding of Agents. They are being&nbsp;determined from Org. Structure or from Cusotm table.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I could trigger workflow with 'SAP_WAPI_START_WORKFLOW'.&nbsp;&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Pramod<BR><BR><B><I>Workflow &lt;nathanfox@swissinfo.org&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2>Hi Pramod</FONT></SPAN></DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2>I did this once for an invoice approval workflow.&nbsp; The approval took place in a web-based java application which connected to SAP via RFC:&nbsp; I tried to avoid as much as possible embedding the workflow logic in the external (for you BSP) application,&nbsp; that meant coupling the BSP page loosely to the workflow engine using as much as possible the raising of Business Object Events.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2>- could you start your workflow with the raising of an event instead of<FONT face="Times New Roman" color=#000000 size=3> 'SAP_WAPI_START_WORKFLOW'?</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3>- could you use a SAP rule for finding the agents instead of &nbsp;hard-coding them in the container?</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2>The danger is&nbsp; there that you end up reprogramming a lot of functionality that the workflow-engine already does.&nbsp; We ended up starting a full fledged SAP workflow in the background (no body actually used the SAP inbox) that was just event-triggered via the web-based screens, data was updated via&nbsp; BAPIs and&nbsp;the workflow via SAP_WAPIs.&nbsp;&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2>Just a few points you might consider which would make the design of your workflow more flexible.</FONT></SPAN></DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2>Yours truly</FONT></SPAN></DIV>
<DIV><SPAN class=076515305-31052005><FONT face=Arial color=#0000ff size=2>Nate</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]<B>Im Auftrag von </B>pramod reddy<BR><B>Gesendet:</B> Dienstag, 31. Mai 2005 00:49<BR><B>An:</B> SAP Workflow Users' Group; JZavier@Suncor.com<BR><B>Betreff:</B> Re: Triggering workflow from BSP<BR><BR></FONT></DIV>
<DIV>Thank you&nbsp;Jonson for your inputs.</DIV>
<DIV>I will work upon your suggestion and update to you.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><B><I>"Zavier, Johnson" &lt;JZavier@Suncor.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Pramod,<BR><BR>Here is some input for your questions.<BR><BR>1. I have triggered without any business objects. Container can be<BR>filled as below and call the workflow using the following sample code.<BR>C_WF_TASK is your task or workflow. Other elements are self explanatory.<BR>..<BR>Data: lt_input_container TYPE TABLE OF SWR_CONT.<BR>..<BR><BR>l_container-element = 'START_DATE'.<BR>l_container-value = is_event-EBEGD.<BR>append l_container to lt_input_container.<BR><BR>* start the workflow<BR>CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'<BR>EXPORTING<BR>TASK = c_wf_task<BR>LANGUAGE = SY-LANGU<BR>DO_COMMIT = 'X'<BR>USER = SY-UNAME<BR>START_ASYNCHRONOUS = 'X'<BR>* DESIRED_START_DATE =<BR>* DESIRED_START_TIME =<BR>IMPORTING<BR>RETURN_CODE = l_return_code<BR>WORKITEM_ID = l_workitem_id<BR>NEW_STATUS = l_new_status<BR>TABLES<BR>INPUT_CONTAINER = lt_input_container<BR>MESSAGE_LINES =
 lt_message_lines<BR>* MESSAGE_STRUCT =<BR>AGENTS = lt_agents<BR>.<BR><BR><BR>2. No idea..<BR>3. This program can be send a link to the portal if you do not have a<BR>SAPGUI at managers desktop. You need to maintain a new text with link<BR>init. Text can be maintained using se61 and use it in RSWUWFML for<BR>'Dialog Text'.<BR><BR>4. Normal object programming, I have used the 'result parameter'. I have<BR>not done it through BSP application. To populate a table container, just<BR>append the same container name with your individual table entries. Then<BR>in the workflow, it will appear as table container.<BR>l_container-element = 'AGENTS'.<BR>l_container-value = 'USXXXXXX'.<BR>append l_container to lt_input_container.<BR>l_container-element = 'AGENTS'.<BR>l_container-value = 'USYYYYYY'.<BR>append l_container to lt_input_container.<BR><BR>Hope it helps.<BR><BR>regards<BR>Johnson Zavier<BR>SAP ABAP/Workflow <BR>Suncor Energy Inc.<BR><BR><BR>Date: Sun, 29 May 2005 20:45:56 -0400<!
 BR>From: Pramod Reddy <RKPRAMOD@GMAIL.COM><BR>To: sap-wug@mit.edu<BR>Subject: Triggering workflow from BSP<BR>Message-ID: &lt;4ee33e6d05052917456a45f3ce@mail.gmail.com&gt;<BR>In-Reply-To: &lt;4ee33e6d05052917354bb92a03@mail.gmail.com&gt;<BR>References: &lt;4ee33e6d05052917354bb92a03@mail.gmail.com&gt;<BR>Content-Type: multipart/alternative; <BR>boundary="----=_Part_10012_399273.1117413956731"<BR>MIME-Version: 1.0<BR>Precedence: list<BR>Reply-To: SAP Workflow Users' Group <SAP-WUG@MIT.EDU><BR>Message: 1<BR><BR>------=_Part_10012_399273.1117413956731<BR>Content-Type: text/plain; charset=ISO-8859-1<BR>Content-Transfer-Encoding: quoted-printable<BR>Content-Disposition: inline<BR><BR>&gt;=20<BR>&gt; Hi there,<BR>&gt;=20<BR>&gt; Can anyone please guide me on this.=20<BR>&gt; We are trying to implement web-based approval mechanism for custom=20<BR>&gt; business process.=20<BR>&gt; 1. Requestor submits his request through a BSP page.<BR>&gt; 2. A work item is should go to Manager f!
 or
 approv! al. Manger should be<BR>abl=<BR>e=20<BR>&gt; to access/execute the work item from the workflow.=20<BR>&gt; 3. When work item is executed/accessed by manger, Approval page of<BR>BSP=20<BR>&gt; application should be opened up in the browser, where he will<BR>either=20<BR>&gt; approval or reject after filling some more details on approval-page.<BR>&gt; 4. Based on approval/rejection, process flow differs in workflow.<BR>[Means,=<BR>=20<BR>&gt; information maintained by Manager on approval-page should be available<BR>ba=<BR>ck=20<BR>&gt; in workflow.<BR>&gt; Notes: No Custom business objects. No custom tables are being used to<BR>sav=<BR>e=20<BR>&gt; the information maintained neither by requestor nor by approver. So,<BR>all=<BR>=20<BR>&gt; details have to be saved into workflow container till the end of<BR>flow.=20<BR>&gt; 1. Trigger the workflow from BSP page by calling a workflow. Std<BR>FM=20<BR>&gt; SWU_START_WORKFLOW_TASK by passing workflow number [WS xxxxxxx]
 &amp;<BR>contain=<BR>er=20<BR>&gt; table. Question: How to fill the container table. And will there be<BR>any=<BR>=20<BR>&gt; issue because of not having business object as a element in the<BR>container=<BR>?=20<BR>&gt; 2. Generate the tasks for approval page and use this task in<BR>workflow.[=<BR>=20<BR>&gt; with the help of WF_EXTSRV ]=20<BR>&gt; 3. RSWUWFML, I under this program can be used to send mails to for<BR>each=<BR>=20<BR>&gt; work-item but am not sure whether work items can be executed from the<BR>mai=<BR>ls=20<BR>&gt; even when there is no SAPGUI on Manager's Desktop. Can anyone confirm<BR>thi=<BR>s.=20<BR>&gt; 4. How to get the results back into workflow, after manager is done<BR>with=<BR>=20<BR>&gt; his job.<BR>&gt; I have gone through SWXTRAREQ bsp application, but couldn't grasp.<BR>Can=20<BR>&gt; anyone tell me how this can be done.<BR>&gt; I have one more question wrt container which should filled and passed<BR>to=<BR>=20<BR>&gt; std fm . How this table s!
 ! hould
 be populated if my container element is<BR>a=<BR>=20<BR>&gt; table.<BR>&gt;=20<BR>&gt; Need pointers as early as possible.=20<BR>&gt;=20<BR>&gt; Thanks,<BR>&gt; Pramod.<BR>&gt;<BR><BR><BR>------------------------------------------------------------------------<BR>This e-mail contains confidential information. If you are not the intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the e-mail or the information it contains, is strictly forbidden.<BR><BR><BR>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE>
<P>
<HR SIZE=1>
<FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A href="http://us.rd.yahoo.com/mail/uk/taglines/default/messenger/*http://uk.messenger.yahoo.com">Yahoo! Messenger</A> <FONT color=red>NEW</FONT> - crystal clear PC to PC <A href="http://us.rd.yahoo.com/mail/uk/taglines/default/messenger/*http://uk.beta.messenger.yahoo.com">calling worldwide with voicemail </A></FONT></BLOCKQUOTE>_______________________________________________<BR>SAP-WUG mailing list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE><p>
                <hr size=1><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://us.rd.yahoo.com/mail/uk/taglines/default/messenger/*http://uk.messenger.yahoo.com
">Yahoo! Messenger</a>
 <font color="red">NEW</font> - crystal clear PC to PC
<a href="http://us.rd.yahoo.com/mail/uk/taglines/default/messenger/*http://uk.beta.messenger.yahoo.com
">calling worldwide with voicemail
</a></font>