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,
Anand
Hello 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
Similar Messages
-
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 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. -
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 -
APD process is active, How to trigger the data from BI to CRM table
Hi All,
I want to send data from BI system(using APD method) to CRM table (ADS method).
I am able to see the table for e.g ABCD in CRM system , i can open using SE11 , but data is 0.
In BI , i have data in DSO and i have mapped it in APD process to data Target to CRM system and APD is active.
Now i want to know how to trigger the data from BI to CRM table? (e.g ABCD).
Please let me know the steps.
Regards.
Nithi.Hi
Just create a Process Chain to execute this APD method, if the process Chain is already available, then just insert this Process in to the process Chain and execute the Process Chain by normal process, by hoe we do in general.
Hope it solves... -
How to Initiate the Workflow from Java webdynpro?
Hi All,
I am developing Customized WD application for ESS, which in turn having integration with Workflow.
Now How to Initiate the Workflow coding part in Webdynpro Development.
Through Adaptive RFC Model, i created model using sap_wapi_start_workflow RFC
Can anybody provide the sample code on this!!!
What are the stpes i have to follow to this Workflow Initiation from WD Java..
Thanks In Advance
KrishnaKrishna,
What Alejandro is mentioning that create a RFC which accesses you workflow on ABAP end. At your Java side just make the call the BAPI.
So you need a BAPI say ZMYBAPI which accesses your ZWORKFLOW. Now on Java side create a WD project which accesses ZMYBAPI.
For information on how to connect to a BAPI please refer this [link|https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15]
Chintan -
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 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 -
How to initiate the workflow from pa40?
dear experts
I wanted to know how to trigger or initiate my workflow from PA40. in PA40 if i givet he hiring process then the empid given there has to be passed to my customised workflow & ini tiate my workflow.
please help me out.
Thanks & regards
Nigeshcheck this answer to a previous question of you:
how to initiate workflow from PA30
basically it's the same, procedures are infotype 0.
Kind regards, Rob Dielemans -
How to trigger the step1 from step 4
hi ,
im using Documwent Management System for workflow.
im triggering the workflow with DRAW CREATE event.
firstly i will create the document the with status 1.
then i will trigger mails using different tasks for changing the
status sequentially to status2 ,status3, status4 so on.....
At status 4, i have to check the condition basing on that i have to .
1)in one condition i dont have to carry out the further process and i have to stop/ terminate the workflow.
2) in second condition i should allow the document from status 4 to again status 1 and again it has to folow the noraml procedure (statsus1 .. statsus2 .. statsus3.....).
how this second condition can be met ?
please suggest me with which i can achiieve this.IF i have to use any step type , how to adoptto this second condition.
please help me.
RaghuYou must use a Loop control to send the approvals one by one from 1 to 4.
Within Loop also use a Condition statement & check if it is '4'
If not it will go with normal loop.
If yes, use an other Multiple Condition statement where you can provide different conditions & outcomes
depending on the outcome, change the value from '4' to '1' and on the other outcome use a Loop Control to Complete the workflow.
Hope this helps. -
How to get the data from RFC ?
Hi,
I am using the Import Adaptive RFC Model, where the RFC display the amatrial Information date.
But when I deploy the application I am not getting the data.
How to test the bindings are correct as well as is any lines of code has to be written in the Implementation part?
Please suggest
regards,
CSPHi,
First, drag and drop the Z<RFCNode>_Input node from model to custum controller.
From there, u can select both input and output parameters.
After that, Make sure that In custom controller's init(), the following code is present
Z<RFCNode>_Input input=new Z<RFCNode>_Input();
wdContext.nodeZ<RFCNode>_Input().bind(input);
Create execute() method in custom controller and in execute method, check whether u added
wdContext.currentZ<RFCNode>_InputElement().set<InputParam>(inputparametervalue); // If any i/p parameter is there. You can set this from view also if u mapped the RFC node to view
wdContext.currentZ<RFCNode>_InputElement().modelObject().execute();
Also check all mappings are done correctly.
After saving all, Call execute() method from view as wdThis.wdget<custcontroller>().execute();
After execute(), u will get the output from node Output, which is inside Z<RFCNode>_Input node.
Regards
Fahad Hamsa -
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] -
How to trigger a workflow from event - newbie question
Hi,
I have a simple workflow, with the start node triggered by an XML event.
What JMS destination I am supposed to send the XML document to in order for
the workflow to be triggered. I thought that it was the wlpiEvent, but the
workflow doesn't start. Also tried WLI_BPM_EVENT, with no joy.
If anyone can point me in the right direction, then I would be grateful
LucyIf it is one workflow sending a message to another, you can use internal destination.
If it is another application then it would be WLI_BPM_EVENT ( which goes by the
jndi name com.bea.wli.bpm.EventQueue in default installation ).
"Lucy Collins" <[email protected]> wrote:
Hi,
I have a simple workflow, with the start node triggered by an XML event.
What JMS destination I am supposed to send the XML document to in order
for
the workflow to be triggered. I thought that it was the wlpiEvent, but
the
workflow doesn't start. Also tried WLI_BPM_EVENT, with no joy.
If anyone can point me in the right direction, then I would be grateful
Lucy -
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 -
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
Maybe you are looking for
-
IPhoto '11 works on one user account but not the other
I upgraded to iPhoto '11 from iPhoto '08 a couple of weeks ago using the MacApp store. After doing so, I opened the application on my main user account, received a message that the library had to be updated, the application did so, and it has been wo
-
Why are my events in iCal NOT sorted by calendar? (in the month view))
I use 5 calendars in iCal (iCloud). Even in iCloud beeing opened in a browser, the events are all mixed up. The events of "Calendar 1" are sometimes above those of "Calendar 2", sometimes below. Same thing with the other calendars. This causes much b
-
So i tried upgrading my hard drive to a new hitachi HD and when i tried using the mac osx dvd it doesn't find the hard drive in the destination page. i formatted it to mac os extended journaled with 1 partition and nothing i'm stuck.... here is a pic
-
We need to access stored Java classes inside the Oracle 8i (8.1.7) database using RMI from a remote machine. Is this possible? How? Basically we have stored PL/SQL procedures/packages we want to create interfaces for (Using JPiblisher) and access the
-
Photoshop CS6 64 bit will not open Bridge C6
Hi, Anyone help a fairly first poster? (hopefully in the right forum) I just upgraded from CS4 direct to CS6, all looked fine until yesterday When attempting to open Bridge CS6, the CS4 version kept opening. After2 hours 'Talking' to Adobe (remote) i