<DIV>Thank you Jonson for your inputs.</DIV>
<DIV>I will work upon your suggestion and update to you.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV> </DIV>
<DIV><BR><B><I>"Zavier, Johnson" <JZavier@Suncor.com></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: <4ee33e6d05052917456a45f3ce@mail.gmail.com><BR>In-Reply-To: <4ee33e6d05052917354bb92a03@mail.gmail.com><BR>References: <4ee33e6d05052917354bb92a03@mail.gmail.com><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>>=20<BR>> Hi there,<BR>>=20<BR>> Can anyone please guide me on this.=20<BR>> We are trying to implement web-based approval mechanism for custom=20<BR>> business process.=20<BR>> 1. Requestor submits his request through a BSP page.<BR>> 2. A work item is should go to Manager for approv!
al.
Manger should be<BR>abl=<BR>e=20<BR>> to access/execute the work item from the workflow.=20<BR>> 3. When work item is executed/accessed by manger, Approval page of<BR>BSP=20<BR>> application should be opened up in the browser, where he will<BR>either=20<BR>> approval or reject after filling some more details on approval-page.<BR>> 4. Based on approval/rejection, process flow differs in workflow.<BR>[Means,=<BR>=20<BR>> information maintained by Manager on approval-page should be available<BR>ba=<BR>ck=20<BR>> in workflow.<BR>> Notes: No Custom business objects. No custom tables are being used to<BR>sav=<BR>e=20<BR>> the information maintained neither by requestor nor by approver. So,<BR>all=<BR>=20<BR>> details have to be saved into workflow container till the end of<BR>flow.=20<BR>> 1. Trigger the workflow from BSP page by calling a workflow. Std<BR>FM=20<BR>> SWU_START_WORKFLOW_TASK by passing workflow number [WS xxxxxxx]
&<BR>contain=<BR>er=20<BR>> table. Question: How to fill the container table. And will there be<BR>any=<BR>=20<BR>> issue because of not having business object as a element in the<BR>container=<BR>?=20<BR>> 2. Generate the tasks for approval page and use this task in<BR>workflow.[=<BR>=20<BR>> with the help of WF_EXTSRV ]=20<BR>> 3. RSWUWFML, I under this program can be used to send mails to for<BR>each=<BR>=20<BR>> work-item but am not sure whether work items can be executed from the<BR>mai=<BR>ls=20<BR>> even when there is no SAPGUI on Manager's Desktop. Can anyone confirm<BR>thi=<BR>s.=20<BR>> 4. How to get the results back into workflow, after manager is done<BR>with=<BR>=20<BR>> his job.<BR>> I have gone through SWXTRAREQ bsp application, but couldn't grasp.<BR>Can=20<BR>> anyone tell me how this can be done.<BR>> I have one more question wrt container which should filled and passed<BR>to=<BR>=20<BR>> std fm . How this table s!
hould be
populated if my container element is<BR>a=<BR>=20<BR>> table.<BR>>=20<BR>> Need pointers as early as possible.=20<BR>>=20<BR>> Thanks,<BR>> Pramod.<BR>><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 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>