How to trigger a workflow notification when DESADV reaches a status 51.
Hi,
A notification to the a user should be sent when DESADV goes to a error status 51.
I'm in SAP6.0 :
Basic type: DELVRY05
Message type: DESADV
Idoc: IDOCDESADV
Event: inputErrorOccurred
Task to be linked for the event : TS00008178
In SWETYPV the event is active, still this event is not getting triggered when the Idoc goes to 51 status.
What am I missing? Is there any configurations that I'm missing?
Can anyone please help me to fix this?
Thank you,
Renu
Renu,
Event "inputErrorOccurred" is still not getting triggered....
For this event there are many parameters, Do you think this may be the reason?
I DO NOT THINK SO.
In IDOCDESADV business object, I put a break point in the method INPUTFOREGROUND. When I tried to execute this I will get the required output but the control doesn't stop at the break point.
YOU'RE TRYING TO EXECUTE THE METHOD BUT THE ISSUE IS EVENT NOT RAISED WHEN IDOC ERRORS OUT(STATUS - 51).
Please try this and let me know.
Try to put a break point in the IDOC function module
and create the error IDOC using WE19.
Your function module should populate the workflow related parameters in the IDOC funtion module.
Thanks
Similar Messages
-
How to trigger a workflow when data inside a table changes
Hi
How to trigger a workflow when data inside a table changes ??
We need to trigger a workflow when STAT2 field value in PA0000 table changes.
rgds
ChemmanzMake use of Business Object BUS1065. In this business Object you have an attribute Status which you can use. There are a number of events that will get triggered when the status is changed.
Thanks
Arghadip -
How to trigger a workflow using generic object services?
Hi Experts,
Let me know on how to trigger a workflow using generic object services.
My requirement is to trigger the FI document reversal document using Object services.
Any info or docs relevant to this, please share with me..
Thanks,
Dinesh.Dinesh,
First of you need to check if the transaction has a BO (in released status) published to use the GOS.
These are the pre-requisites for GOS
http://help.sap.com/saphelp_46c/helpdata/en/94/aa532cddd511d289860000e8216438/content.htm
Once done.. check that you have valid workflow linkages active for this BO.
Now when you click on the 'start workflow' the system will show all relevant workflows for the BO to choose from and to start. -
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. -
How to trigger a workflow for DESADV when the IDOC reaches status 51
Hi,
A notification to the a user should be sent when DESADV goes to a error status 51.
I'm in SAP6.0 :
Basic type: DELVRY05
Message type: DESADV
Idoc: IDOCDESADV
Event: inputErrorOccurred
Task to be linked for the event : TS00008178
In SWETYPV the event is active, still this event is not getting triggered when the Idoc goes to 51 status.
What am I missing? Is there any configurations that I'm missing?
Can anyone please help me to fix this?
Thank you,
RenuHi Renu
There is two way to find the task and workflow....
In pftc tcode, you can check the task and where it is used by giving the task type as standard and task as 00008178.Display the task,then check where it is used.
Another way is:
1.Goto swdm tcode.
2.Select the Object tab.
3.Choose catagory as BOR object type and give the Object type as IDOCDESADV.
4.Then it'll display the task which is refering the method of the IDOCDESADV object.
5.Click on that task.It'll come to right window.Now select the where used icon...
6.If there is any workflow,then It'll display the workflow template number,name,step, and client.
Regards,
Hemalatha -
How to trigger a workflow when a bank record of an employee is delimited
Hi Friends,
I want to trigger a workflow when a bank record of an employee is delimited(Infotype IT0009). When delimiting the bank info, the old record's ENDDA is changed and a new record is created with the BEGDA. In this case two events are triggered one is BANKDETAIL-CREATED and other one is BANKDETAIL-DELETED.
Which one should i use to trigger my workflow.
Note : If we use the creation of new record for triggering workflow, then in case when the record is created for a new employee then the workflow will be triggered. To control this can we check whether there is an existing entry in IT009 for the employee or not. If an entry already exist then trigger the workflow else not. Is this ok? Please advice.Hi sapient,
Here i think none of the events would actually help you in achieving what you want because you want to trigger the workflow when the account is delimited not when the account is either created or deleted.Please look for some other information to trigger your workflow.Will get back to you if i had any ideas.
Thanks,
Bhumika -
How to trigger a workflow when a info record is changed?
Hello All,
I would like to trigger a workflow when the conditions from a info record are changed?
What business object should be used?
Thanks in Advance
RuiHi,
for these kinds of issues,
foirst check if a uefull event already exists in the system
for this you first actiave the event trace: SWELS.
Then you change the info record.
And then you read the event log with SWEL.
If there's no event, you may eventually have to create it in an exit with SAP_WAPI_CREATE_EVENT fm
Kind regards, Rob Dielemans -
How to trigger a workflow message through EXIT_SAPLCOBT_001 for PP Ord Chg
Hi Friends,
Pls advise me here, heard that through Exit 'EXIT_SAPLCOBT_001' (PPCO0001) we can inform an MRP controller or a Workflow message when a production order is changed. I've tried with that but none am getting it.
Pls help me how to use this exit and is there any other way to do a notification in my SWBP -Workflow?
for order changes.
regards
Sankar.
Edited by: sankar babu on Apr 10, 2009 9:03 AM
Edited by: sankar babu on Apr 17, 2009 7:29 AMHello,
please check this :
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPP/BCBMTWFMPP.pdf
Regards,
Martin -
How to trigger a workflow in webdynpro programs
Hi Experts,
I am new to SRM Workflow, and I need to trigger a workflow in my webdynpro programs.
But I don't know how to achieve it.
I am using SAP SRM 7.0, so I want to use Process Controlled workflow.
Any suggestions would be greatly appreciated.
Thanks and Regards
WeiHi, thank you for the attention, and my requirement is as below.
1. Creating a web dynpro program
2. User can execute the program and input data on it. Such as Expense application, Leave application...
3. When the user click the "Apply" button on the form, the application should be sent to the boss for approval.
*** I want to trigger a workflow when the user click the "apply" button.***
I have achieved the similar functions in SAP ERP systems, by generating Events in my custom programs.
But I don't konw how to do it in SRM 7.0.
Or it is impossible to achieve it, under Process Controlled workflow architecture.
Thanks and Regards
Wei -
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 GP workflow through ABAP Program.
Hi All.
i have one scnerio , i want to create BOM through Custom Ztransaction that will be developed in ABAP Modulepool.
User will create BOM from this ztransaction through Transactional Iview in PORTAL,Once the user save transaction , i want to trigger a GP(Guided Procedure ) workflow,from ABAP Program.
is it possible to trigger GP workflow?
if yes how to do it , please suggest the way out.
Regards,
Shyam.Hi lingana,
As u see in my requriment that, Workflow is not designed within SAP , But the Workflow will be designing
in SAP Netweaver, its a GP Workflow. And Ztransaction(Developed by ABAP) will be seen by user through portal and
he save transaction on PORTAL, In backend ABAP program will run , and after meeting certain condition, it should create
or(Initiate) GP workflow(process).
So my question is , how ABAP Program will call GP workflow, How the connection will be made in between ABAP Code and GP workflow framework.
If any doubt regarding requriment let me know,
Regards,
Shyam. -
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 -
How to trigger a workflow though a class event
Hi,
I have created a class and included interface IF_WORKFLOW in the interface. Also created a event 'START' with one parameter. I have created a workflow and assigned the class event 'START' as its triggerring event.
I want to trigger my workflow from a custom program. But I am not able to trigger the workflow by passing the event container.
How do I start trigger the class event with the req. container element?Hi
You could check the class CL_HRECM00_WORKFLOW_EVENT, together with the corresponding workflows of package
PAOC_ECM_ADM_PLANNING_OVERVIEW.
Best Regards
Raquel -
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]
Maybe you are looking for
-
Hi friends I am using weblogic,ejb ,XDoclet...Doing one CMR relation program I have tow tables 1.Order_detail 2.Order_header In order_detail table i have PK serial number and FK po_no In order_header table i have PK po_no It is like order has many it
-
When completing the software updates I can't remember always having to enter administrator name and password. Maybe it's just been automatic on my part but now I rethink the process when I am asked to enter this info since the Mac Defender malware be
-
Mbp late 2009- switching from 9600/9400
Is it not possible to set the graphics card to use the 9600 when connected to a power source and the 9400 when its on battery power I see the setting to allow me to change this- but whenever I switch one setting (the other one changes as well) cant f
-
hi, pls advice how to handle left over, we want to use simple way, just using movement type to issue the left over. pls advice which movement type i should copied from. thanks
-
Does anyone know if their is a way to leave out or delete the fill-in boxes when creating a form in the FREE version of Adobe Acrobat?