Workflow not getting triggered from webdynpro event

Hello gurus,
I have a requirement in which if an employee changes his own information on the ESS portal, then an approval should be done by HR. For this i created a custom webdynpro application in which i fetch the employee data and check it with old data in one view and when user clicks save button the approval workflow should be triggered.
For this i created a custom BO using transaction SWO1. I added a 'CHANGE' event and 'send_data_to_wf' method.
In SWDD i created the workflow which is working fine when i test it in SWDD only. But when i trigger it using FM 'SWE_CREATE_EVENT', only the event is getting triggered and not the workflow. I checked the trace in transaction SWEL in which i can see the 'CHANGE' event under Event column but Name of Reciever Type column is emty. It should display my custom workflow ID. Please let me know where i m lacking or going wrong.
Regards,
Yayati Ekbote

Hello Ricardo,
Thanks for immediate reply. Yes, the linkage is active in SWE2. My custom object type is ZHRAD and event is change. I also tried the FM 'SAP_WAPI_CREATE_EVENT'. But in this FM the event also doesn't get triggered. Using FM 'SWE_CREATE_EVENT' atleast triggers the event. I debugged the FM. The container inside the FM is remaining initial. I am posting my code which i am using.
DATA: pernr TYPE pa0001-pernr VALUE '40000001'.
  DATA: objtype   TYPE swr_struct-object_typ VALUE 'ZHRADCHO',
        objkey    TYPE sweinstcou-objkey,
        event     TYPE swr_struct-event VALUE 'CHANGE',
        it_wfcont TYPE STANDARD TABLE OF swcont,
        wa_wfcont TYPE swcont,
        event_id  TYPE swedumevid-evtid,
        ret_code  TYPE swedumevid-evtid.
  wa_wfcont-element = 'PERNR'.
  wa_wfcont-value = '40000001'.
  APPEND wa_wfcont TO it_wfcont.
  wa_wfcont-element = 'SUBTY'.
  wa_wfcont-value = '1'.
  APPEND wa_wfcont TO it_wfcont.
  wa_wfcont-element = 'ENDDA'.
  wa_wfcont-value = sy-datum.
  APPEND wa_wfcont TO it_wfcont.
  wa_wfcont-element = 'BEGDA'.
  wa_wfcont-value = sy-datum.
  APPEND wa_wfcont TO it_wfcont.
  objkey = pernr.
CALL FUNCTION 'SWE_EVENT_CREATE'
  EXPORTING
    objtype                       = objtype
    objkey                        = objkey
    event                         = event
*   CREATOR                       = ' '
*   TAKE_WORKITEM_REQUESTER       = ' '
*   START_WITH_DELAY              = ' '
*   START_RECFB_SYNCHRON          = ' '
*   NO_COMMIT_FOR_QUEUE           = ' '
*   DEBUG_FLAG                    = ' '
*   NO_LOGGING                    = ' '
*   IDENT                         =
* IMPORTING
*   EVENT_ID                      =
*   RECEIVER_COUNT                =
TABLES
   EVENT_CONTAINER               = it_wfcont
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.
ENDIF.
COMMIT WORK.

Similar Messages

  • Workflow not getting triggered from MM01

    Hi,
    I understand there is a similar post but the solution is not so clear there.
    I wish to trigger a workflow whenever a material is created using tcode MM01.
    For which i am using BUS1001. (In the header data > start events tab > BO/BUS1001/CREATED binding exists and activated)
    whenever i am creating a material using MM01, and check the trace in SWEL i am getting the following info:
    BUS1001006     VIEWCREATED     25.03.2011     13:00:12          @AI@     No receiver entered
    BUS1001006     CREATED     25.03.2011     13:00:12     WS99900237     @5B@     SWW_WI_CREATE_VIA_EVENT_IBF
    Can someone please help where to enter the receiver.
    regards
    abhishek

    Hi sanju,
    I have created the event as per your suggestions but the workflow is not yet triggered from mm01.
    the event stack trace is as follows :-
    BUS1001     CREATED     28.03.2011     08:28:42     WS99900237     @5B@     SWW_WI_CREATE_VIA_EVENT
    BUS1001006     VIEWCREATED     28.03.2011     08:33:03     WS99900237     @5B@     SWW_WI_CREATE_VIA_EVENT_IBF
    BUS1001006     CREATED     28.03.2011     08:33:03     WS99900237     @5B@     SWW_WI_CREATE_VIA_EVENT
    BUS1001     CREATED     28.03.2011     08:33:03     WS99900237     @5B@     SWW_WI_CREATE_VIA_EVENT
    Linkage is activated in SWE2 and the receiver  FM is SWW_WI_CREATE_VIA_EVENT.
    still unable to get the workflow triggered.
    Secondly as per SAP suggestion the BO BUS1001006 should be used for std material master. But while i enter BUS1001006 no such methods are available in F4. (refer atttachment)
    I have checked in the BOR and i see that BUS1001006 is released and active.

  • Workflow not getting triggered from Z inbound FM

    Hi
    I have created a simple workflow with start events
    Object Type IDOCAPPL EVENT - INPUTERROROCCURRED
    activated the binding and activate the linkage
    also in the idoc inbdound FM i put workflow_result = 99999 also added the object and the start and end event in process code link
    however the workflow is not getting triggered do i need to trigger it manually using swe_event_create....
    what is the miostake

    Hello,
    Even if the event linkage is configured correctly, you have to trigger an event with the FM swe_event_create to run your workflow.
    You have a transaction SWU0 that can simulate an event => then you can check if your event linkage is correct.
    Please reward if useful.
    René

  • Workflow not getting triggered from Action definition in CRMD_ORDER

    Hello Experts,
    I have created a workflow which should send mail to partner team in a Change Request.This workflow should be triggered when a particular Zaction is performed on the CR.Zaction is created properly and my workflow is also assigned to it.I have also followed OSS note-733675 and created a workflow container with name "BUSINESSOBJECT" to get the application data into my workflow when the action is performed.My workflow is a background processing one.
    I have tested it separately by providing GUID foreground and it works perfectly fine and mail is sent to partner team.But when i perform the action,mails are not getting triggered nor the workflow.I am not even able to check the logs.I am not even able to know if all the action has triggered my workflow.Kindly help.Would appreciate your contribution.
    Regds
    VLP

    Please check in SWI2_FREQ whether the Workflow is really getting triggered.
    Thanks
    Arghadip

  • Treasury workflow  not getting triggered .

    I have done all as given in the SAP doc ...
    The release procedure for the business partner has been set up using a Business Workflow, for
    which SAP has defined the standard role 20000053 'TRLOAPPROVAL' and the Workflow
    template WS20000263 'WSTRLOAPPROV'.
    Procedure
    In order to use the release workflow for the business partner, you are also required to make
    settings in Customizing for the Basic Functions area in Treasury in the following IMG activities:
      By choosing u2019Activate Releaseu2019, you can activate the release for the business partner.
      By choosing u2018Maintain and Activate Release Parametersu2019, you can specify the number of
    release steps you require for each role category.
      By choosing 'Adjust/Copy Workflow Template', make the following settings:
      By choosing 'Define Standard Roleu2019, you create the responsibilities for the standard roles
    delivered with the system, to which you assign users, positions, organizational units,
    work centers, jobs, or people. Using the settings you make here, the system determines
    the Responsible Agent [Ext.] during the workflow run.
      By choosing 'Adjust Workflow Template', you then have to activate the event linkage.
    but its not getting triggered ..  the event which is gettting triggered is not the  one whcih is used in the workflow
    Thanks for help .
    Naval Bhatt

    Naval,
    Either you can check SAP notes for the same or you can customize the workflow. If the event being triggered is different then copy the workflow and change the workflow start condition.

  • OIM 11gR2 Approval workflow not getting triggered

    I created an approval workflow by following the 11gR2 developer's guide and deployed it. then created an app instance and also an approval policy for operational level which is auto approved and for request level with this composite. when i raise a request for this app instance in the catalog the SOA composite is not getting triggered. I am able to see a task in pending approval of system admin whenever i raise request for any user and if i complete that pending approval the app gets provisioned directly. Also i do not see any request ID also. please help to find out whats going wrong

    Now i tried raising a request from another user who is not a member of SYSADMIN role. This time the request id is generated and a task 'Manual Task for Provision operation for Beneficiary X' is generated in pending approvals of xelsysadm user. When completed the app instance gets provisioned. So this means operational level approval task is triggered? and it has auto-provisioning?
    why my custom approval workflow is not getting triggered?
    I have created 2 approval policies, one for request level which is auto approval and other for operational level where i have selected the deployed composite name.In both the approval policies i have selected the request type as Provision ApplicationInstance. There is no error also while deploying the composite. Am i missing any step? please help.
    Edited by: 955932 on Jan 10, 2013 10:19 PM

  • Issue in Production for Workflow not getting Triggered .

    Hi Guys,
    I have a workflow, which is properly triggering in the development and Quality but not getting triggered in the Production. Can't get the Exaact reason because by using T-code PFTC when i test the workflow independantly its working properly and even BOR does not have any problem. Please Help me guys as this is a issue in Production.
    The workflow is a customized one, It getting triggered throught the funtion call in User Exit of MM01.
    Thanks

    It getting triggered throught the funtion call in User Exit of MM01.
    1. I hope the workflow customization is done properly in production system, as you stated that if you are trying to trigger from PFTC then it is working fine, can you please try to Refresh Organizational Environment  from SBWP ---> On MEnu  ---> Settings  --> Workflow Settings  ---> Refresh Organizational Environment and  secondly try to refresh the buffer from txn SWU_OBUF
    2. Make sure the user exit is transported to Production.
    3. Check the workflow log from the txn SWIA  if you have proper authorizations for the userid.

  • Alerts not getting triggered from Adapter Framework

    Hi,
    I have done the following steps for the Alerting:-
    1. In configuration of RWB, activated monitoring for XI integration server & XIAdapterFramework and set the monitoring level to 'HIGH'.
    2. Scheduled the Report 'SXMSALERT_PROCESS_DATA_GET' on ABAP stack.
    3. In the 'further settings' link in End-to-End monitoring, activated the monitoring and set the frequency.
    4.Created an alert category using t-code 'ALRTCATDEF' and assigned fixed users(myself) to it.
    5.Defined an alert rule with '*' in all conditions and 'No restrictions' for the question 'Where did the error occur'.
    Finally after all the steps:-
    I am able to receive the alerts in the inbox -
      a) by running the test report 'RSALERTTEST'
      b) from a control step in BPM.
    <b>However, alerts are not getting triggered for an error in the Adapter Framework. (an exception in the Adapter Channel)</b>
    When i debugged the SXMSALERT_PROCESS_DATA_GET report, there was step where it was looking for process instances in table 'SSPICSPRHD' which was empty and the alert error log said -
    <i> No process instances found for process type ID: 26460B43EB934C4C9ABBE9627380A89E ( XIDomain: domain.00.hqdvsapxi01 )</i>
    Any help/hint is welcome !!!
    Thanks & Regards,
    Renjith.

    Hi,
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1382. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    I think this blog will be of help to you..
    Cheers,
    Divya

  • Workflow not getting triggered on status change

    Hiii Everyone
    Workflow is not getting triggered whenever I change the status of the Order (Lead).  When we create a lead a workflow is triggered.
    1. If the status is Open a mail is sent.
    2. Then the status is checked for in process. And whenever the  status is changed to inprocess it is assigned to the agent by   the  rule attached to the workflow.
    3. And again when the status is changed to sanctioned a mail is sent.
    Now problem is if I create a lead and change its status to inprocess and then save , then the mail is sent and it is assigned to the agent properly. But when I change the status to sanctioned , then the mail is not sent for sanctioned(i.e. no worklfow step is shown in swel).
    If I open the lead and save it then the mail is sent properly. But then after that when I change the status to inprocess, the workflow is not showing agent assignment (jn swel).
    Summary: Whenever I cahnge the status after saving the order , the workflow is not showing any further step .
    Please suggest the solution.
    Regards
    Shafali

    Hi,
    Your workflow has been triggered when the status is open and then when change the status to in process,it is not sending mail as there is no agent assignment.
    That means, workflow triggered, but it is not going to the next step.
    Is it a standard or custom one?
    Can you post the workflow log screenshot over here?
    Cheers,
    Raja.D

  • RSR_OLAP_BADI  or RSR00002 --not getting triggered from RSRT --Please Help

    Hi All
    Quick reposnse is highly Appreciated and rewarded.
    I wanted to implement a Virtual Key Figure .I have implemented RSR_OLAP_BADI .But when i execute query through RSRT .This BADI is not getting triggered infact its not reaching the Break Point which i have set in DEFINE and COMPUTE methods. I tried setting break point in user exit RSR00002 too but not working.
    Is there any attribute or properties or any technical setting that have to be done for Query to trigger this BADI.Or any settings in BADI required ?
    I am using infocube 0SD_C03 as the filter in BADI attributes.

    Hi!
    Check attributes for you implementation class.
    In DEFINE method set rrke_c_mode-no_selection for your virtual char.
    after that generate query in rsrt (if you set break in INITIALIZE method - you can debug)
    then run the query (if you set break in COMPUTE method - you can debug if query return some data).

  • Workflow not getting triggered

    Hi All,
    We are having issue in Claims and Leave Encashment workflow. From Portal side we are able to create the request successfully with requets numbers being generrated but nothing is triggered in SWI1. Here we are using standard workflow WS18900023 and we have activated the same in SAP.
    Although our Leave and Travel workflows are working fine and getting completed as well.
    When I reregister the UWL system I am getting followowing warning for few tasks,
    WebDynproApplication value not found for task TS18900010 in system SAP_Webdynpro_UWL
    WebDynproApplication value not found for task TS20000118 in system SAP_Webdynpro_UWL
    WebDynproApplication value not found for task TS20000130 in system SAP_Webdynpro_UWL
    WebDynproApplication value not found for task TS20000131 in system SAP_Webdynpro_UWL
    WebDynproApplication value not found for task TS20000135 in system SAP_Webdynpro_UWL
    WebDynproApplication value not found for task TS20000139 in system SAP_Webdynpro_UWL
    WebDynproApplication value not found for task TS20000189 in system SAP_Webdynpro_UWL
    First task is of claims which is not getting trigered and rest of tasks relates to Travel which is working fine.
    We have recently upgraded both HR and Portal systems. Before upgdare all the workflows were working fine.
    HR system is upgraded from release 604 SP 31 to SP 33.
    Portal 7.01 SP3 to SP8.
    I have seached in xmls as well, tasks TS20000118,TS20000131, TS20000135  are there in xml but I am not able to find other task in any of xmls.
    These tasks are present in SWFVISU as well.
    Please advise on this issue, IS the warning the cause of the issue or there is something on workflow side.
    Thanks,
    Honey

    hi,
    use your callback url to trigger events:
    call method cl_swf_ifs_ws_export=>launch_callback
    exporting
    callback_url = lv_url
    http_method = cl_swf_ifs_ws_export=>c_http_method_get
    this will advance your workflow to next step
    grtz,
    Koen

  • Mail not getting triggerred from Alerts in PI 7.1

    Dear Freinds,
    We have created alert categories and based on that created numbers of alert rules. Alerts are getting triggered and we recieve them in the Alert Inbox. We have also maintained user id's in Fixed Reciepents. But we want the same to go to email based on the user profile.
    Please let us know what has to be done in order to recieve email as soon as alerts are getting triggered.
    Thanks & Regards
    John

    Hi Kroninjer,
    To send an EMAIL, assign an EMAIL ID to the corresponding user in the transaction SU01 and then set up SCOT and you can send emails when the ALERT is triggered..
    Once you have configure Alerts, you will get the Alerts into ALERT INBOX in RWB of the user. To also get the email, the following needs to be done,
    1. In SU01 -- Assign the Email ID for the Recipient of the ALERT.
    2. In , RWB>ALERT INBOX> PERSONALIZATION--> Time Independent Delivery and Email are selected.
    3. Finally, SCOT needs to be set up to send Emails. Check this for the same. You can ask your BASIS team to do this step.
    http://help.sap.com/saphelp_nw04/helpdata/en/23/1edf098ea211d2b47300609419ed29/frameset.htm
    Also, In ALRTCATDEF, go to SETTINGS--> CONFIGURATION. By default, the option selected is INTERNAL PROCESSING. Select the option SMTP FORWARDING AS XML and give the email id. This will enable you to send an email alert whenever an error occurs in XI.
    4) Notes:
    750287 XI 3.0 Runtime Workbench: Alert configuration does not start
    768456 Troubleshooting Runtime Workbench XI 3.0
    813703 XI RWB alert configuration is incompletely displayed
    840849 XI 3.0 Runtime Workbench: SSO2 is not active in this system
    824039 XI30 Runtime Workbench: Display of XI alerts in CCMS
    0000906044 XI30 Alerting: Wrong hostname in the URL of the XI Alert
    0000905896 XI30 Alerting: Message without recipient creates no alert
    0000904825 Synchronous message processing: Error in CCMS connection
    0000902022 XI30 Alertrule insensitive to Receiver Interface
    0000882215 XI 3.0 Runtime Wkbnch: Java Adaptr does not generate alerts
    0000876546 XI 3.0 Runtime Workbench: Missing alerts
    0000870232 XI 3.0 Runtime Workbench: New Alerting functionality
    But start with this one!!!
    913858 XI3.0 Alerting: Troubleshooting
    Hope all these will help you.....Though assuming that you have configured alerts correctly it should work as it worked for me :-).
    Regards,

  • Exit in CNEX0009 not getting triggered from CJ20n

    Dear All,
    I am trying to use the exit ( EXIT_SAPLCOMK_001) present in enhancement package CNEX0009.
    This exit description says that we can modify Material Components in Networks'.
    But when we create a new material component in CJ20n, this exit is not getting called.
    Has anyone implemented or used this exit anytime before. Any type of information regarding this exit will be helpful.
    Points will be awarded for the replies given if found useful.
    Regards,
    rijuraj

    Thanks for the replies
    Hi Stu,
    Yes I have done all the CMOD related steps properly.
    Hi Amit,
    It is mentioned in the enhancement documentation that we can use this exit to 'PROCESS MATERIAL components in network orders).
    Also the exit EXIT_SAPLCOMK_001 contains the entries related to the material component that can be edited under a particular network(As per the enhancement documentation).
    Please correct me if I am wrong
    Regards,
    Rijuraj

  • Error handling workflow not getting triggered

    Hi all,
    I'm creating a outbound IDoc. And for error handling workflow.. I created a organization structure in PPOME and assigned users. I gave this position number thus created in the partner profile in post processing permitted agent tab.
    But when the Idoc is in error, this is not coming to my inbox.
    Can someone please help me with this.. and let me know what went wrong.
    Thanks in advance.

    Here you need to be careful,
    if the agent assignment is not maintained properly, there may be a chance everyone in the organization will get the item.
    I hope you have created a single workitem for error handling. goto additional data-> agent assignment-> maintain. make sure the attribute is defined as general forwarding allowed. or you maintain the role/position/user/whatever.as the possible agents. still you dont get the result, debugging the default rule in the task ->default rule -> agent.
    hope this helps.
    with regards,
    Sudhahar R

  • Event not getting triggered for a few users in production

    Hi Experts!!
    We have a workflow that gets triggered on the event REQUESTCREATED of BUS2089. In production, we see that for a few users the event is getting triggered and even the workflow is. But for a few users, the workflow is not getting triggered. However, we didn't check SWEQADM yet and are waiting to get auth to check the same. But before that, I need your valuable suggestions on this.
    When I check SWEL, I cannot see any entries at all. Not even for the successfully processed ones.
    Auth objects cannot be a reason, as all the users have same auth. Please suggest me on what else can be the reasons.
    Your help is highly appreciable.

    Hello Srinivas !
                  Check in SWEQADM to know whether the event is on queue.If so, redeliver it.
                  If there is no event on queue, check the RFC queue( transaction SWU2 ) and ST22 for possible ABAP dumps.
                  Call work item list report (transaction SWI1) and check event linkages (transaction SWETYPV )of the users for whom the event is not triggered.Are you using BAdI or user- exit to trigger the workflow ? If so, check whether those are in active state.
                 Refresh the workflow buffers(transaction SWU_OBUF).Check either of the workflow versions are in active state.
    Regards,
    S.Suresh

Maybe you are looking for

  • How to get photos off an iPad 2 that are not from the camera roll?

    I have photos from previous iPhones and digital cameras on my iPad 2. I do not have the original laptop I used to put them on the iPad. How can I transfer them from this iPad to a different laptop? I do not want to lose them.

  • Lack of variability in report total in analysis

    First off, sorry if this is a repetitious post. But, when creating new applications and building analysis into them at startup, I have found that Oracle adds a row at the bottom titled "report total". The problem is that all this does is add the tota

  • How to run stored procedure in DOS command line????

    Hi, I want to run a stored procedure in DOS command line? (My_Stored_Procedure is the stored procedure that I want to run ) This is what I did in DOS prompt C:\>sqlplus scott/tiger exec lMy_Stored_Procedure <Return> Obviously it is NOT working. Pleas

  • What is the best practice to "Disable Smartlists"

    What is the best way to "disable" smarlists. For example: i have company A, company B, and Company C as the vendors. Vendor (account) (smartlist) --- i can choose A, B, or C However: i don't want users to choose vendor C because they are not our vend

  • Selecting an option in a SELECT feild

    lets say i have a form which allows me to edit details of products stored in a database. on this edit form, i have a select box where the user can indicate the color of the item. since it is an EDIT form, there is already data abotu the product in th