Can we trigger other workflow from BADI- PT_GEN_REQ
Hi all,
I would like to know , if we can trigger other ( custom) workflows, using the badi - PT_GEN_REQ - method start_wf, instead of the standard workflow
( WS12300111).
Regards,
NR
Hi,
In the existing custom workflow ( WS20000081) which was modified earlier with some addditional 27 activities in it.
Now we are implementing EP7 , and in the standard leave request, uses standard WS12300111 worflow.
Is it possible that we can use old WF get triggered instead of the new one by using this BADI?
Regards,
NR.
Similar Messages
-
How can i trigger the workflow from REPORT
hi,
my requirement is, whenever Z... Report Is generated there is Icon called print. the write the code for printing icon. if printing Icon fails the workflow will be trigger.
how can i trigger this from report. and i send attachent of report with mail to next person to sap inbox.
pls let me know.
pls give any documentation if you have.
thanks & Regards
Sankar.Hi,
Workflow container
swc_container lt_container.
swc_create_container lt_container.
swc_set_table lt_container '<cont_name>' lit_int_tab.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = lc_objtyp
objkey = lv_objkey
event = lc_event_name
IMPORTING
event_id = lv_eventid
TABLES
event_container = lt_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
yv_err_flg = gc_true.
EXIT.
ENDIF.
Rgds,
Prakash -
Can we trigger a workflow from e-mail create event?
Hi Experts,
My scenario is very simple-Whenever a mail is send for approval to the approver,two workitems-Approve or Reject should be created in the Appover's inbox.On clicking on any one workitem, corresponding mail for approval/reject should be sent.
My only doubt is how to trigger an event which will start the workflow. Also it should be triggered only when the mail is sent to a particular person-say admin and not to every individual.
Can you please guide me on this since I am new to workflows?
What I am looking for here is:-
a) The definition of E-mail creation event, which can trigger my workflow.
b) This definition has to be specific. I mean workflow should trigger only when a mail is send to admin.It should not trigger everytime a new mail is created in the system.
c) I thought that the business object for E-mail is activity-BUS2000110.But again activity can be anything-E-mail,task,telephonic conversation.Which business object should be used here?
Please give me some pointers on this.
Thanks and Regards,
RohitHi Aditya,
Atlast somebody replied to my thread. Since yesterday I have created 3-4 threads and didn't got any single reponse.
Anyways, my query is:-
how to trigger the workflow? I know we need some event to trigger a workflow. Now how to generate this event, when the user is simply sending an e-mail to the admin for some approval request? How can an e-mail trigger an approval workflow in the background?
Any pointers/suggestions?
Thanks and Regards,
Rohit -
HOW TO TRIGGER AN WORKFLOW FROM A PROGRAM ?
HELLO THERE ,
CAN ANYBODY PLZ TELL ME HOW TO TRIGGER AN WORKFLOW FROM AN PROGRAM AND TO PAS THE VALUE TO THE CONTAINER ?Hello Neon,
If you want to trigger the workflow directly, use the FM, SWU_START_WORKFLOW
CALL FUNCTION 'SWU_START_WORKFLOW'
EXPORTING
task =
* LANGUAGE = SY-LANGU
user =
* SENDER_ID =
* IMPORTING
* RETURN_CODE =
* WORKITEM_ID =
tables
* CONTAINER =
* MESSAGE_LINES =
attachment_list =
A workflow can also be triggered by and event which is in turn triggered by a program.
By the FM, SWE_CREATE_EVENT
Example:
w_key = 'Connie'.
w_creator-otype = 'US'.
w_creator-objid = 'SAPDEV02'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'YH_BUDDIES'
objkey = w_key
event = 'event'
creator = w_creator
* TAKE_WORKITEM_REQUESTER = ' '
* START_WITH_DELAY = ' '
* START_RECFB_SYNCHRON = ' '
* NO_COMMIT_FOR_QUEUE = ' '
* DEBUG_FLAG = ' '
* NO_LOGGING = ' '
* IDENT =
* IMPORTING
* EVENT_ID =
* TABLES
* EVENT_CONTAINER =
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
WRITE: / 'EVENT TRIGGERED'.
ENDIF.
COMMIT WORK.
Hope it helps you.
Regards
Indu. -
Is i possible to trigger a workflow from the creation of an event in iCal
Is i possible to trigger a workflow from the creation of an event in iCal
Or is is possible to create a workflow to ad events to an iCal calendar which then triggers the workflow or is combined with the ad events workflow.
GraemeHmm, nope. Not that I'm aware of. Very few apps allow you to hook scripts directly to user activity. Finder* is a notable exception. iCal's "publish" feature has the ability to auto-update after user activity, but you'll either need dot mac accounts or your own webdav server to get that working.
I'd re-consider the idea of triggering a periodic workflow with iCal. That way if the computer is shut down or asleep, iCal will wait to run the workflow at its next opportunity. You could hide the unsightly repeating events in a second calendar so they're out of the way.
The next best thing is to write a faceless AppleScript application with a long-duration idle handler. The user would simply add it to their login items in System Preferences. This would also resume its cycle after sleep or shutdown.
Yet another option is to write an AppleScript that can register itself in the crontab. This has the advantage of running at a predictable time. If you're careful, you can even set the script to wake up or power on the computer as necessary.
* Folder action scripts can be triggered when files are created, moved, or deleted, but not when they're merely updated. This probably rules out much of iCal's activities in ~/library/application support/ical/. -
How to trigger the workflow from the excel sheet
hello friends,
my problem is that i should trigger the workflow from a excel sheet which contains a list of appraisers and appraisees.how to do this. can anyone help on this.
thanks.Hi Murthy,
If you are asking if a workflow can be started on R/3 while in Excel - may be possible if you can develop some fancy macros that can make RFC calls to an ABAP function module. I won't even attempt to travel that route.
Save the excel sheet as CSV or Tab delimited file and process it using ABAP. You can use the WAPI function module SAP_WAPI_CREATE_EVENT (Rel 4.7)to start the Workflow by raising the relevant event. In earlier releases, see FM SWE_EVENT_CREATE.
Please do keep in mind there could be performance and response time issues for dialog users of the system if you are going to start several workflows using a report program.
Cheers,
Ramki. -
How to trigger the workflow from RFC
Hi,
I need to trigger a workflow from a RFC.How can I call the event and start my workflow?
How can i do this?
please advice.
Thanks,
AnandHello Anand,
Goto swetypv transaction.Mention the abap class/bor object with the corresponding event.
In the receiver type, just mention some unique name.In the receiver function module mention the async RFC.
Mention the SENDER TYPE SIBFLPORB Local Persistent Object Reference - BOR Compatible
EVENT TYPE SIBFEVENT Event
RECTYPE TYPE SWFERECTYP Name of Receiver Type
HANDLER TYPE SIBFLPORB Local Persistent Object Reference - BOR Compatible
EXCEPTIONS_ALLOWED TYPE SWEFLAGS-EXC_OK SPACE Checkbox
XML_SIZE TYPE SWF_XMLSIZ Size in Bytes
EVENT_CONTAINER TYPE SWF_XMLCNT Container as XML Stream of Fixed Width
So that the guid can be used inorder to identify the instance.
you can use : "sap_wapi_start_workflow" fn module.
Hope this helps.
Best Regards,
Saujanya -
In crm 2007 two installed bases are there. one is customer ibase and the other is company ibase when the customer wants to transfer the component from company ibase to customer ibase(he simply drags the component from company ibase to his ibase) that needs to go for approval process. no event is triggering at this point. after he press save button 3 badis are triggering, i found one badi which suits me the problem is i will trigger workflow from badi if that approver approves that component should be saved in companys ibase if approver rejects that should not save anyone please guide me how to handle this ....
Hi Sunil,
To achieve this functionality, in t-code SE18 create a BADI implementation and add a function module call to SAP_WAPI_CREATE_EVENT. Trigger any BO event and associate the same event as the triggering event of your workflow.
Please note that direct workflow call is not an optimum approach so use BO events.
Create a workflow using t-code SWDD. Add a 'User Decision' step to send workflow task to the approver.
Add two branches in it one for 'Approve' other for 'Reject'. In the approve branch add the logic for saving the component in company ibase.
Hope this helps!
Regards,
Saumya -
Trigger an workflow from webdynpro abap.
hai
gurus!
iam new to webdynpro.iam femilier with workflow . can anybody explain me with an clear example, how to trigger an workflow from webdynpro abap.
regards
roseHi Rose
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Click</a> Here, to know the step by step procedure of using Webdynpro in Workflows
Use SAP_WAPI_START_WORKFLOW RFC
Regards
Abhimanyu L
Message was edited by:
Abhimanyu Lagishetti -
2013 Workflows - Trigger a workflow from a Content Type
So now that a workflow cannot be triggered from a Content Type, how are people doing this now?
Any suggestions appreciated.
Thanks
J SykesHi,
According to your description, my understanding is that you want to trigger a workflow from a Content Type.
As we all know, we can attach a workflow to a Content Type, but the workflow cannot run until the Content Type is added to a list or library.
The elements of a list content type include the columns of metadata that are associated with the content type and workflows that can run on items of that content type.
More information about the content type and workflow are provided in the link below:
http://technet.microsoft.com/en-us/library/cc262735.aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Want to trigger the workflow from MIGO
Hi Experts,
I want to trigger the workflow from MIGO transaction and should handle the created material document number (i.e. I am doing the goods receipt for the process order, when he post it, the material document details (material doc number) should be mailed immediately when it is created). Please give me the suggestions for the same.
Thanks & Regards,
Ravi.Dear Ravi,
Please refer this link [Trigger workflow from MIGO tcode|Trigger workflow in MIGO Tcode;.
KR,
Bharath -
Can i trigger jar app. from as3
Can i trigger jar app. from as3.
i'm trying like this..but i getting error.
var jarPath:String ="http://websitename.com/folder/JavaApplets/ScreenRecorder.jar";
record_btn.addEventListener(MouseEvent.CLICK, recordClick);
function recordClick(event:MouseEvent):void
var jarLoader:Loader = new Loader();
var jarRequest:URLRequest = new URLRequest(jarPath);
jarLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, jarError_Handler);
jarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, jarCompleteHandler);
jarLoader.load(jarRequest);
addChild(jarLoader);
function jarCompleteHandler(e:Event):void
function jarError_Handler(error_Event:IOErrorEvent):void
trace(error_Event);
Error:
[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2124: Loaded file is an unknown type. URL: http://sitename.com/folder/JavaApplets/ScreenRecorder.jar"]
or any other solution through flash button click.You cannot load Java applets into the Flash movie display list. I was going to test if Java applets run in a HTML loaded into a StageWebView (AIR only), but never got around to it Another approach is to let Flash call javascript to write the applet embed code in the HTML.
Kenneth Kawamoto
http://www.materiaprima.co.uk/ -
How to Trigger a Workflow from ABAP Webdynpro
Hi All Gurus,
I have the following urgent requirement, my client is implementing HR and there is a requirement, where is a ABAP Webdynpro component in which we have integrated a Adobe Interactive Form. When the user calls this from through Portal and fills out the relevant data and submits it, a Workflow in the backend ECC system should lauch,
I am not familiar with, this concept although I have worked in Workflow this is the first time I am interfacind with ABAP Webdynpro and Adobe Interactive From.
Can you please let me know in steps what needs to be done to make the workflow trigger for my scenario and also the specific settings to be done in the bacckend.
Regards,
Pratima JainHi,
If you are using HCM Processes and Forms, the Workflow and form are not directly related, thats true.
But the method in the task calls the corresponding webdynpro application which responds to the action triggered by the user in turn to trigger the workflow and update the data in the HR Master Data.
There are 3 layers 1. UI (webdynpro which launches Adobe Interactive form based on ISR Framework)
2. Workflow
3. Backend framework (used for retrieving F4 helps, default values, save data in the infotypes).
for more documentation, please refer it on help.sap.com.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/82/b6b94278560c31e10000000a1550b0/content.htm
hope this helps.
Best Regards,
Saujanya. -
How to trigger MDM Workflow from ABAP Program.
HI
I have requriment to trigger MDM Workflow(Design in MDM) from My Module pool program. Suggest how to do it?
Thanks in Advance.
Regards,
Shyam Babu Sah.Hi,
This question is for forum SAP Netweaver --> Workflow. There are functions and programmes that SAP delivers for this.
[Example here|Re: How can I trigger workflow from my report] -
Trigger a workflow from ABAP Webdynpro
My Scenario:
Step 1: When a user hits the SAVE button on the webdynpro form, check if that data is consistent only and trigger a message(I have a BAPI to handle this check).
Step 2: If the data is consistent, then trigger a workflow to send an alert to an agent along with the data user entered on the form.
Step 3: AGENT shall review the data(Same form from step 1 should appear here) and will have the option to SUBMIT / POST or REJECT. If SUBMITTED, data will be posted to R/3(I have a 2nd BAPI to handle this). If REJECTED, send an alert back to the USER who entered data in step 1.
I checked lots of threads from the forum, none gave me a complete idea. Can any one give me a good documentation to trigger workflow from webdynpro to handle my requirement.
I am new to webdynpro.
I checked this blogs & articles also...
/people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf
Thanks a lot in advance.
Best Regards,
KiranHello Kiran,
I slightly misunderstood you requirement earlier. But if I am not wrong this time, here is what you need to do:
1) The Web dynpro form that you are creating is only for data entry purpose. But the agent who is going to review the data will need an access to this form. So this means that you need to save the content of this form to the database and provide a URL in the workflow workitem which the agent can use to open the web dynpro application with the form data on it.
2) To access the correct form, you need to save the form data in a Z-table with a GUID attached to it. Generate this GUID using GUID_CREATE function module. In the window controller of the Web dynpro component, there will be a handleDefault method where you can read the parameter'GUID' from the incoming request and use it to read the form data from the database to display the form.
3) You can use Object Oriented programming approach for creating Workflow. Check the following article to learn how to do that:
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0409e6c-d213-2d10-3cb6-c12d417626c1?quicklink=index&overridelayout=true]
4) Create a Z-class and use this class as object type in your workflow (instead of BOR object).
5) In the constructor of this class, pass a parameter GUID, which would be passed when you create an object of this class in the Web Dynpro forms "OnActionSave" method.
6) Create a method in this class which will do the task of calling the BAPI to save the Acct Document. This method will be used in a Background task in a workflow step (after the agent approves the workitem).
7) Create a method in the class which generates the URL to the webdynpro application with the GUID passed as parameter.
(for eg: http://urltoserver/appname?GUID='guidoftheform').
8) In your save method of WD application, call the method to raise event that triggers the workflow (using OO)
lv_guid = '04AE4546EED7101DE10000000A424026'. "use GUID_CREATE
lv_objtype = 'ZWFCLASS'. " create a Z-class of your own
TRY.
CALL METHOD cl_swf_evt_event=>raise
EXPORTING
im_objcateg = 'CL'
im_objtype = lv_objtype
im_event = 'FORM_APPROVE' " this event needs to be defined in ZWFCLASS
im_objkey = lv_guid.
CATCH: cx_swf_evt_exception.
ENDTRY.
Please read through the workflow using Object Oriented document in the URL that I have mentioned above before you read through these instructions.
There would be a way to do this using BOR objects, but this is the way that I have tried and tested to use trigger workflows from Web dynpro applications.
Best Regards,
Gaurav
Edited by: Gaurav Salkar on Apr 6, 2010 6:13 PM
Maybe you are looking for
-
Attempting to Connect to Network Shuts down Internet Connection
I am setting up a G4 400 MgH Mac with AGP graphics to get on a network of computers. This originally came from a college where it was on a network running OSX and OS9.1, and I have added a 100 GB hard drive on which I installed OX10.4, and upgraded t
-
Problem in returning internal table from FM in ABAP Objects
Hi All, I have to return an internal table from one of the FM i created in the controller class (_IMPL) of a view. The problem here is, the internal table i m getting here is of type to a structure!. but i have to return it as type ref to DATA, which
-
Hi there. I recently bought a mac (first one) i don't seem to have iphoto there is a question mark over the icon on bottom tool bar does this mean i haven't installed it?
-
How to add a field that is not part of existing page attributes
Hi Experts, Can someone give step by step procedure for adding a field that is not part of IC web view page attributes. I mean the field that I want to add is in BOL entity BTSaleset which is linked to BTAdminH through BTHeadersaleset relation. I hav
-
Car camcorder bought in Asia, how to change to U.S. time/date?
Hi there, I bought the unit in Hong Kong and brought it back to the U.S.. After I programmed the time and date, everytime it starts it is synhronize to time and date in Asia which is 15 hours ahead. I tried to find it in the manuel on how to change