Trigger Workflow on User sattus change !!!!

Dear all,
I need to develop a workflow which should get triggered when user status is changed in the Maintenance Order. I have used Event Trace (SWELS) to trace the event but gettinng nothing when user status get changed what could be the reason.
Please help me to proceed as i m new to the workflow.

Hi MB,
I have checked the transaction SWEL there i have forund that on the BOR object AFVC_PM task TS2000015 is attached and the event linkage checkbox is checked but i don't know whether it is working correctly or not i have seen that there is a workflow WS20000031 for Maint. Order but don't know how to configure it.
What i have dont till now is i have made my own workflow which will just send mail, now i want that i could include my Maint. Order No. when mail is sent to the addresed reciptient could you please help me on this .
Second thing what i have done in is that in transaction SWE2 i have added a new entry for the BOR object AFVC_PM in this i have given the following entry:-
Object Category  :-  BOR Object Type
Object Type        :-  AFVC_PM
Event                  :-  RELEASED
Receiver Type      :-  WS80000003
Receiver Call                   :-  Function module
Receiver Function Modue :-  SWW_WI_CREATE_VIA_EVENT_IBF
And then i have checked the box Linkage Activated.
Now is this sufficient to trigger my workflow whenever the Maint. Order is released or something else is to be done.
I m totally confused what to do now please guide me.
Also i have one question
When we say that we have to create our own event is this mean that we have to create a BOR object? If no then from where we can create our own event what is the procedure for it .
Please help me.

Similar Messages

  • How to find the recent changes done in the workflow by user id ?

    Hello all,
    How to find the recent changes done in the workflow by user id ?
    I have made changed in Production system .
    Like changing the status ,
    changing the agent ,
    but for these it will , not ask for any request .
    So i want to know is there any method to find what are the changes done by me ?
    Thanks and regards
    Prem

    Hi,
    This is caused by mandant settings in scc4. It's better not to make changes in PRD, because then your DEV en QA systems differ.
    Kind regards, Rob Dielemans

  • Trigger workflow when PR changed and copmlete activ workflow for same PR

    Hi,
    i am triggering the workflow for all line item of PR when PR is created. now i want to create workflow when PR change also.
    but before triggering the workflow i have to check the any in process workflow for the same and if then complete is and delete all its work item.
    for Ex.
    PR -4500000001 created with item 10 workflow triggerd ,
    suppose i changed it and agan save next workflow trigged now before triggerin this workflow we have to complete the 1 instance of workflow , delete all workitem of that instant
    Please suggest how can i achive this .
    Thanks in Advance
    Deepanker Dwivedi

    Hello,
    We have already implemented this in our old  project.Please find below the solution.
    No config change is required.
    1.Go to tcode SWETYPV
    2. Double click on your linkage.
    3. You will see there check function module.
    4. MAke a custom custom function module of yours and it will have CDPOS and CDHDR as its component.
    5. When so pr is changed or created this function module will be triggered there you can identify whether pr is changed or not using cdpos and cdhdr.
    6. If it is change raise two events one for completeion of old worklfows which are in process second for creation of new workflow instance.
    7. Create a wait step in your workflow which will wait for the completion event to be raised.
    Hope it helps.
    Regards,
    Nabheet Madan

  • Workflow not triggering when changing Item-level Permissions in Sharepoint 2013 list

    Scenario:
    We have a custom list in Sharepoint 2013 that we use for Case Management. We have a workflow that triggers on a created item generated from an email. The user then gets a reply with a link to his own case.
    I want the users only to be able to see their own cases and no one elses.  When I change this under
    Advanced Settings under List Settings and
    Item-level Permissions and set them to Read items that were created by the user
    and Create items and edit items that were created by the user
    the workflow doesn´t trigger.
    How can I resolve this? I've tried every possible out-of-the-box permissions but with no result. Help!
    Thanks in advance!
    // Browncreek

    When you're testing , remember you cant trigger declarative workflow from the System Account - you need a general user account for auto-trigger workflows.  Good luck!
    Chris McNulty MCSE/MCTS/MSA/MVTSP | blog http://www.chrismcnulty.net/blog | twitter @cmcnulty2000 Microsoft Community Contributor Award 2011
    Hi, I have the same problem. Except that I am not using an email to create a new item. The item is created by members of a SharePoint group that have Contribute access to the list. When use the same settings i.e.
    Read items that were created by the user and Create items and edit items that were created by the user,
    the workflow does not trigger. If I set it back to Real all items and Create
    and Edit all items, it triggers the workflow.
    Please help me resolve as I have rolled this out to pilot users and am having this trouble.
    Thanks,
    Vishal

  • Workflow once user is created

    Hi All,
    Seems to be a very basic workflow but I cannot get the events to trigger!
    I need a workflow once a user is created. The standard BO "USER" has the event "Created" but it does not trigger once the user is created through transaction SU01!
    I checked for Change documents and there are no documents written when the user is created. There are no User Exits or BADIs to put in my custom code once the user is created.
    I am sure that there is something very basic that I might be missing. Maybe a customizing stuff to trigger the standard event.
    Any help will be greatly appreciated.
    Best regards,
    Sudhi

    Hi Sudhi,
    Not a great solution but you could check for any existing workflow instances for the BO to determine if this has been created and workflowed before, or you could check the time of the DB record update (and creation) in the user audit log and make the determination, or better yet check both.
    Neither idea is brilliant but both will work.
    Bear in mind the events on USER are:
    create (user locked created)
    cloned (user created or changed)
    deleted
    roles changed
    Based on this I would postulate that if you created a locked user you would get sy-ucomm = 'INS'.  If this is the case you may want to create each user locked (initially) and then unlock in your workflow.
    Regards
    Gareth

  • Simple trigger to allow users to log on at certain times

    I am trying to create a trigger that will allow certain users to only log into the database between 12am - 4 am.
    Can I assign a trigger to a user or to a role or how do I parse it out. I dont think I have this trigger just right yet...
    Or can this be set in the database it self? I looked at the user accounts, profiles, roles and dont see anything about connection times.
    Oracle 10.2.0.4
    I want to create a trigger that will only allow the user to log into the database between 12 and 4 am.
    My next question is can I assign this trigger to the role that the user has been assigned to?
    I have pulled some similar code that I would like to use but do not know how to modify it to be either assigned to a user: npq or to the role ntq_ro.
    create or replace trigger logon_time after logon on database
    begin
    if to_char(sysdate,'HH24') between 4 and 24
    then
    raise_application_error(-20001,'Not allowed to logon database during this time');
    end if;
    end
    /

    yes, I would love to all by command line...
    Bere in mind I change to to test...
    SQL> CREATE OR REPLACE TRIGGER "SYS".LOGON_TIME_RESTRICTION_NPQ AFTER
    2 LOGON ON DATABASE
    3 BEGIN
    4 if to_char(sysdate,'HH24') between '14' and '16' AND USER='NPQ' THEN
    5 raise_application_error(-20001,'Not allowed to logon database during this time');
    6 end if;
    7 end;
    8 /
    Trigger created.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@kali ~]$ sqlplus
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Jan 10 14:41:02 2011
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Enter user-name: npq
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Alert log triggered errors:
    Mon Jan 10 14:41:10 2011
    Errors in file /u01/app/oracle/admin/NASARPT/udump/nasarpt_ora_17508.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: Not allowed to logon database during this time
    ORA-06512: at line 3
    /u01/app/oracle/admin/NASARPT/udump/nasarpt_ora_17508.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
    System name: Linux
    Node name: kali.mtsallstream.com
    Release: 2.6.18-164.6.1.el5
    Version: #1 SMP Tue Oct 27 11:28:30 EDT 2009
    Machine: x86_64
    Instance name: NASARPT
    Redo thread mounted by this instance: 1
    Oracle process number: 31
    Unix process pid: 17508, image: [email protected] (TNS V1-V3)
    *** ACTION NAME:() 2011-01-10 14:41:10.293
    *** MODULE NAME:([email protected] (TNS V1-V3)) 2011-01-10 14:41:10.293
    *** SERVICE NAME:(SYS$USERS) 2011-01-10 14:41:10.293
    *** SESSION ID:(54.49496) 2011-01-10 14:41:10.293
    Skipped error 604 during the execution of SYS.LOGON_TIME_RESTRICTION_NPQ
    *** 2011-01-10 14:41:10.293
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: Not allowed to logon database during this time
    ORA-06512: at line 3
    I also tried the setting for the to_num but it would not even compile:
    SQL> CREATE OR REPLACE TRIGGER "SYS".LOGON_TIME_RESTRICTION_NPQ AFTER LOGON ON DATABASE
    2 BEGIN
    3 if to_num(to_char(sysdate,'hh24miss')) between '000001' and '040000' AND USER='NPQ' then
    4 raise_application_error(-20001,'Not allowed to logon database during this time');
    5 end if;
    6 end;
    7 /
    Warning: Trigger created with compilation errors.
    SQL>

  • How to trigger workflow for already created purchase order ?

    HELLO EXPERTS
    let me clear my scenario first . i have 1 purchase order whose workflow is not triggered . means it is showing me message no workflow that have already worked for this object.i have created 1 more purchase order taking reference of this purchase order means both are same same message for this po also. it was happening because event linkage for the business object bus2012 is not activated but now it is enabled and i have created third purchase order with reference to above po means this third po is also same as above 2 no change other than po number but for this workdflow is getting triggered . now i want to trigger workflow for orignal first po but for my first po it is showing me same message that no workflow that have already worked for this object. what i have to do to trigger workflow for this po. i have performed this steps in test system. i have workflow number

    Hello !
          You can trigger the workflow from SWUE.Enter bus2012 and created for object type and event respectively.
          Click object key button where enter the purchase order number which have been already created.
          But, why do you want to trigger the workflow again for already created purchase order ?
    Regards,
    S.Suresh

  • Another user has changed the row with primary key -Table changed externally

    Hello,
    I am facing the error: "Another user has changed the row with primary key oracle.jbo.Key[94 ]." during the delete operation.
    User case scenario:
    1. Added new row in the table.
    2. Once new row is added to the the table, another application will update few columns in the newly added row based on some logic.
    3. On the same session I am trying to delete the newly added row and getting above mentioned error.
    I have added a "Button" in the table to partialRefresh the table to check the new values of the changed columns.
    I have checked the forum and found many similar errors and tried the following but nothing helped.
    1. By setting "Auto Refresh = True" for the view object.
    Issue faced-> It worked fine but after few add and remove my db is getting to inconsistent state after which, I am not able to do any add/delete from my page.
    Error: "Too many objects match the primary key oracle.jbo.Key". I have checked this and I am not getting this error when "Auto Refresh = False" even after multiple add and remove actions.
    2. By Setting "Auto Refresh" the iterator associated with the page.
    Issue -> Did not work at all.
    Looking forward inputs from gurus.
    Thanks
    Abhijeet

    Finally I found one solution to this problem at: [ http://www.avromroyfaderman.com/2008/05/bring-back-the-hobgoblin-dealing-with-rowinconsistentexception/|http://www.avromroyfaderman.com/2008/05/bring-back-the-hobgoblin-dealing-with-rowinconsistentexception/]
    Simply overriding the lock() method in the entity object resolved issue. Kudos to the author.
    Code:
    public void lock() {
    try {
    super.lock();
    } catch (RowInconsistentException e) {
    refresh(REFRESH_WITH_DB_ONLY_IF_UNCHANGED | REFRESH_CONTAINEES);
    super.lock();
    But, Now my refresh button is not working as depend on the "Auto Refresh = True" to update the table.
    Can anyone tell me how can I refresh the VO of my table from the button.
    Thanks
    Abhijeet.
    P.S: I have already added the partial trigger but it is work not working as the data is cached in the VO. Removing the Cached property for the VO is creating other problems.

  • Is it possible raise a trigger for particular user

    hi,
    i have oracle user zil,i want to write trigger for this user..
    with out writting trigger for each table .
    for ex:
    i have 2 tables in this user
    1.emp
    2.audit_log
    suppose i m inserting values into emp table at the same time insert into audit_log with action as insert,like that suppose i m updating any row in emp then insert one row into audit_log with action as modify,
    my question is is it possible to write a trigger for the user zil,not for table emp
    so i can maintain audit_log..
    pls give me a solution
    regards
    singh

    It depends upon how you are connecting to the Oracle database, if you are connecting through CITRIX then it is difficult to identify the user or the other option for you is to have a field USER in each table and pass the user name form the front end.
    To captures the changes in the table EMP and insert into the AUDIT table you may need to write a trigger in the EMP table and before you INSERT into AUDIT check the user.
    Or why dont you use AUDITING provied by Oracle.
    Thanks

  • JBO-25014: Another user has changed the row with primary key...

    Hello,
    could you help me please with resolving this error "JBO-25014: Another user has changed the row with primary key..." - I am just getting a row from a view by bind "filter" variable, then I am assigning new values for some of the attributes - and trying to commit ..unsuccessfully..
    View is based on Entity.
    I saw directive for setting Entity's attributes as "update after insert / update" - but this did not help me.
    Thanks in advance.

    Hi
    Please try this solutions:
    One solution is to change the ADF BC locking behavior to optimistic instead of pessimistic. Choose the AM and click the Configuration context menu option. Select the LocalAM entry and go to the Properties. Scroll down to the locking setting and change the existing entry
    If there is a trigger changing values, you need to mark those attributes (the ones that may be changed) as refresh after insert and/or refresh after update in your Entity Object.

  • Trigger workflow from adobe form

    Hi.. can anyone outline me with the basic steps required to trigger workflow from abobe. Java Wd and ECC 5.0. Thanks!

    Hi Pankaj,
    have a look at the ISR Cook book and Developing PCR (Personal Change Requests) <a href="https://websmp202.sap-ag.de/mss">Manager Self Service</a> You will gwet more links if you do a quick search or just go to sdn.sap.com/interactive forms
    <a href="https://forums.sdn.sap.com/click.jspa?searchID=2077779&messageID=2451183">https://forums.sdn.sap.com/click.jspa?searchID=2077779&messageID=2451183</a>
    Do update, if you find any more issues
    Thanks and Regards,
    Anto

  • Event workflow Criteria. Detecting change in Criteria

    Hi All,
    I need to detect if the Assigned user has changed by using a workflow
    Is using "is not empty" a suitable configuration for this?
    Thanks
    Jason

    The thing that you're looking for is the RelationshipSubscription criteria. Take a look at http://blogs.technet.com/b/servicemanager/archive/2013/05/13/how-to-configure-notifications-for-assignment-re-assignment-as-well-as-action-log-and-user-comment-updates-for-incidents-and-service-requests-in-scsm.aspx

  • 902: Allowing user to change profile like phone-nr. in self-service

    Hi all
    An existing Portal user can see his profile using "Account info/My_profile", but he cannot change it (a least by default).
    Is there a way to allow users to change their personal profile in self-service?
    Thanks
    Tino

    It may be that the transaction is being routed by default for approval. Check with workflow administrator to see where the transaction has gone. I think you will find it is waiting for an approver!
    Many SSHR transactions use a default AME (Dynamic approval) rule which will route the transaction up the supervisor hierarchy for approval. Your transaction data will be stroed in staging tables (HR_API_TRANSACTIONS, STEPS and VALUES) until the approval is made. Only then will it be applied to the underlying tables.
    Let me know if this solves the problem.
    Regards
    Tim

  • Trigger workflow to HR administrator

    Hi All,
        I've created a workflow which will trigger when there occurs any change in HR master data,now my requirement is the workflow should be trigger to the HR Administrator P0001-SACHP.i think i have to define a RULE for this.
    Thanks in advance
    Regards
    Hari Sankar

    You can create a role for this if you wish and create the ABAP code yourself and then place the Role in the Task.
    But it might be easier to just create an "Attribute" in your main Business Object for the HR Administrator (Assuming that you have already created a Subtype of the Business Object, do the following on the Subtype):
    1. Create new Attribute
    2. Say "Yes" to "Create With ABAP Dictionary Field Proposal"
    3. Select Table "PA0001"
    4. Select SAHCP
    5. Modify name of Attribute and Description (If required, eg. HR_Admin).
    6. Change "Release Status" of your new Attribute to "Released".
    7. Place cursor on the new Attribute and click on "Program"
    If PA0001 has already been implemented in your Business Object, then the underlying ABAP code has been implemented - In your case, I believe that it would have already been implemented or at least inherited, so this is the last step...
    Otherwise, you will be prompted if you wish to "Generate Template Automatically"... Select "Yes" and 90% of the ABAP code will be created for you, you can modify it accordingly.
    Now, in your Business Object, you have this new attribute (ie. called HR_Admin) that you can place as an "Expression" in your Task to recieve the Work Item.
    T

  • In ALV Report ,a field to allow the user EDIT/CHANGE

    Hi Guys,
    My requirement is
    in the ALV Grid display iam having 10 fields.5th field should be allow the user EDIT/CHANGE mode.
    what ever he enters the value the same should be updated to an custom table.
    EX.
    o/p:
    0001   0002   0003   0004   0005   0006   0007  0008   0009   0010
    Now the user changed the value 0005 to 0011.
    0001   0002   0003   0004   0011   0006   0007  0008   0009   0010
    now 0011 should be updated in custom table.
    to do this process please suggest a best way for coding.
    thanks in advance.
    Sunil.

    hi
    *& Report  ZTESTDEMO_INTERACTIVE_LIST_2
    REPORT  ZTESTDEMO_INTERACTIVE_LIST_2.
    TABLES: MARA,MARC,MARD.
    * internal table itab_mara 3 fields matnr, ernam,mtart
    DATA: BEGIN OF ITAB_MARA OCCURS 0,
    MATNR LIKE MARA-MATNR,  " material number
    ERNAM LIKE MARA-ERNAM,  " name of person who create
    MTART LIKE MARA-MTART,  " Material Type
    END OF ITAB_MARA.
    * internal table itab_marc 3 fields matnr, werks,lvorm
    DATA: BEGIN OF ITAB_MARC OCCURS 0,
    MATNR LIKE MARC-MATNR,
    WERKS LIKE MARC-WERKS,  " Plant
    LVORM LIKE MARC-LVORM,  " Flag Material for Deletion at Plant Level
    END OF ITAB_MARC.
    * internal table itab_mard 2 fields
    DATA: BEGIN OF ITAB_MARD OCCURS 0,
    MATNR LIKE MARD-MATNR,
    LGORT LIKE MARD-LGORT,  " Storage Location
    END OF ITAB_MARD.
    SELECT-OPTIONS: S_MTART FOR MARA-MTART.
    INITIALIZATION.
    S_MTART-LOW = 'HALB'.
    S_MTART-HIGH = 'HAWA'.
    S_MTART-OPTION = 'BT'.
    APPEND S_MTART.
    START-OF-SELECTION.
    SELECT MATNR ERNAM MTART FROM MARA INTO TABLE ITAB_MARA WHERE MTART IN
    S_MTART.
    PERFORM DISPLAY.
    TOP-OF-PAGE.
    WRITE:/2(15) 'MATERIAL NO',20(20) 'CREATED BY',45(15) 'MATERIAL TYPE'.
    FORM DISPLAY.
    LOOP AT ITAB_MARA.
    WRITE:/ ITAB_MARA-MATNR UNDER 'MATERIAL NO' HOTSPOT ON,ITAB_MARA-ERNAM
    UNDER 'CREATED BY',ITAB_MARA-MTART UNDER 'MATERIAL TYPE'.
    HIDE: ITAB_MARA-MATNR.
    ENDLOOP.
    ENDFORM.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    SELECT MATNR WERKS LVORM FROM MARC INTO TABLE ITAB_MARC WHERE MATNR =
    ITAB_MARA-MATNR.
    PERFORM DISPLAY1.
    WHEN 2.
    SELECT MATNR LGORT FROM MARD INTO TABLE ITAB_MARD WHERE MATNR =
    ITAB_MARC-MATNR.
    PERFORM DISPLAY2.
    when 3.
    sy-lsind = 0.
    ENDCASE.
    FORM DISPLAY1.
    LOOP AT ITAB_MARC.
    WRITE:/ ITAB_MARC-MATNR HOTSPOT ON, ITAB_MARC-WERKS,ITAB_MARC-LVORM.
    HIDE: ITAB_MARC-MATNR.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    FORM DISPLAY2.
    LOOP AT ITAB_MARD.
    WRITE:/ ITAB_MARD-MATNR, ITAB_MARD-LGORT.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

Maybe you are looking for

  • The lock symbol does not appear when I open a secure page in firefox 4.0. Has this been removed?

    Previously, using firefox 3.6.1, when I opened a secure or encrypted page, the lock icon appeared on that page. When I upgraded to firefox 4.0, the lock icon is no longer appearing when I open a secure page. Please confirm whether this has been remov

  • Oracle Data Integrator / Informatica ?

    Our current process uses the Informatica Essbase DIM to connect our teradata database tables to Essbase cubes via the Informatica workflow. Our Informatica workflow has a target that calls the DIM (Informatica Essbase Connector). In recent conference

  • Reagrdin Pagination error in the report region of classic report

    Hi , when run the sql report iam getting below error ,, can any body suggest me how it could be resolve Invalid set of rows requested , the source data of the report has been modified._ Iam using apex4.1 thanks sagar

  • Powershell command to get cpu percentage as displayed in task manager

    Hi, I wish to extract the memory and cpu data of each process as shown in task manager. I am able to get the memory size in mb, but PercentProcessorTime does not return the exact process's cpu % value shown in task manager. function GetProcessInfoByN

  • Error in hitting url

    i wanna hit a url and retrieve the data.i`m using teh simple code given below.i just realized that my net connection uses a proxy server to connect.does that create any issues????i tried the url on the browser and it works.plz help.its urgent.the run