Multiple Workflows Created because of BOR event

Hello,
I have created a workflow which is triggered based on an event.  I've created a subtype to BUS2054 called ZBUS2054.  It is called WBS_EXTRA.WBS_Changed.  I've attached this, using transaction BSVW, to listen for when WBS elements are changed to a status of TECO.
This has worked well so far except for one problem.  If a user sets the status to TECO it will create the workflow.  If they remove the TECO status and later go back in to add the TECO status back in it will create a duplicate workflow.  I'm trying to figure out how to listen for the removal of the TECO status but can't figure out how to do it. 
I created another event called WBS_EXTRA.TECO_Status_Changed and was going to use BSVW but don't see any way to connect to a removal of a status.
Thank you in advance,
    Jonathan

Thank you Seth.  I had just started down that path right before you answered the question.  I've created a new method to search for previous workflows and am now implementing it in my workflow.  I appreciate the suggestion.
- Jonathan

Similar Messages

  • Workflow - Creat events

    Hi,
    Can u tell me if there is some problems in creating events with this function - SWE_EVENT_CREATE - I made a report that the user just put the date,time, and type of document in order to select the documents with that parameters. After i used this function to create events to all the documents, but some of them didnt "worked". My question is, is it possible to create 100 or 300 events in one time, or in this situation it's not reliable to use this function.
    ps: because the workflow stoped, all the 300 documents were without event, that's why i used this function, instead of doing by hand.
    Thanks in advance.
    Mário.

    Creating 300 events in one go should normally not be a problem, but it depends on your system of course. When you say not all of them worked, does that mean not all of them triggered workflows, or that some of them didn't even show up in the event log?
    Two tips, in prioritised order:
    1) Check what the event-creation function returns to catch any problems there
    2) Use the SAP_WAPI_CREATE_EVENT function instead
    You could of course also commit the events in smaller batches. E.g. if you are LOOPing at an internal table you could check if sy-tabix MOD 75 is zero, and COMMIT WORK AND WAIT whenever it is (in addition to the final COMMIT WORK AND WAIT before leaving the program.

  • When syncing multiple Google calendars to iPad, switching event to different calendar on iPad creates a duplicate in Google. Ideas?

    When syncing multiple Google calendars to iPad, switching event to different Google sub-calendar using iPad creates a duplicate in Google.
    Using Google account with the Exchange setup on an iPad mini. iOS up to date. I have a secondary calendar in my Google account for some appointments, and when I create the event on the iPad and it defaults to my main Google calendar, changing the event to the secondary calendar caused the following:
    1) at first, the event totally disappeared from my iPad. Scary! Reappeared when I went into Gcal on the web, opened the event to edit, and re-saved. Phew.
    2) Failing to re-create error #1, I switched a new event from primary to secondary calendar, and it then appears correct on iPad, but is duplicated on the web. The duplicate remains even after deleting the changed event on iPad, refreshing Gcal, etc.
    Just curious if anyone else is having this problem or has discovered a workaround or fix.

    When you open the Calendar app, tap the button at the top-left corner (Calendars).  That should reveal all the calendars you have available, and you can select/ un-select any or all of them.
    If you don't see your 2nd GMail calendar listed, go into Settings/ Mail/ (account name) and make sure you've turned the calendar ON for this account.

  • Multiple workflow columns are creating when the workflow is started

    Hi,
    I have created the workflow based on "Document" content type and have deployed and associated it to it's children content types(CT1, CT2, CT3), Later i have added documents(Doc1 based on CT1, Doc2 based on CT2, Doc3 based on CT3) in the document
    library and run the workflow and they are running fine.
    But the problem is that, whenever i run the workflow on the new document which is based on different content type than earlier, then a new "workflow status"column is getting created instead of using the already existing workflow status column. 
    This behavior is happening only when i tried to associate workflow from code and when i manually associate directly in the site it works fine.
    Does anyone know how I would go about this?
    Chakradhar

    Hi Chakradhar,
    According to your description, my understanding is that a same workflow status column was created when running workflow on a new document.
    Did you re-publish and re-associate multiple versions of workflow to the content type?
    If yes, then multiple workflow status columns would be created on the SharePoint List.
    In addition, if we ever delete the workflow association to the content type or list and re-associate later to the content type or list, workflow status columns created by the previous association gets left behind.
    I recommend to make sure that the workflow has not been re-published and re-associated.
    You can delete the extra Workflow Status Column in the list:
    http://nikpatel.net/2010/08/07/delete-orphaned-workflow-status-columns-from-sharepoint-list-views/
    http://blogs.msdn.com/b/valdon/archive/2009/05/05/removing-extra-workflow-status-column-in-default-view.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Workflow created documents gets error "File ... cannot be opened because there are problems with the contents"

    I have a list that when an item is changed a workflow kicks in and checks if certain fields are checked. Depending on which field word and excel documents are created in another document library.
    Now this worked perfectly in my Sharepoint 2010 environment, but after moving the site to Sharepoint 2013 this particular workflow doesn't seem to work anymore.
    I've tried to create the whole thing from scratch but still the same issue.
    The issue is the same even if using the default content type, or trying to open the document using Explorer view. I've also tried recreating the function in a different site without 2013s visual upgrade without any luck. It's like something have changed
    in the architecture.
    So does anyone have an idea to why workflow created documents don't work anymore?

    I don't think the issue lies with SharePoint. Do you still have your 2010 environment around so that you can test and see if the issue appears? Seems to me that the Word global template has got corrupted. I have faced this issue in the past but that was
    under entirely different circumstances. Anyhow, I renamed the normal.dotm file and it helped resolve my issue. I am not 100% sure if it will work for you as well, if you want you can give it a try.
    Refer to the below link:
    http://support.microsoft.com/kb/918429
    Exit Word.
    Click Start
    Collapse this imageExpand this image
    In the Start Search box, type the following text, and then press ENTER:
    %userprofile%\appdata\roaming\microsoft\templates
    Right-click Normal.dotm, and then click
    Rename.
    Type Oldword.old, and then press ENTER.
    Close Windows Explorer.
    Start Word, and then open the document

  • BOR event vs ABAP OO event

    Hi,
    I would like create new PO workflow (BUS2012) using ABAP OO workflow. Is it possible to use the existing BOR event, such as RELEASESTEPCREATED  instead of creating new one for the ABAP OO workflow class? And if we can re-use the event, how do we bind the BOR to the class object?
    Thanks

    Hello Jani,
    I just spotted this almost by accident. It is custom on this forum to ask new questions in a new thread. Why? Because your question is unrelated to the title of this thread, so it already has less chance to come to the attention of someone who knows the answer. Of course you can always place a link to an older thread into a new question as well.
    Anyhow, to your question, you should use a RETURNING parameter, which enables you to perform the instantiation in a container operation step - far better performance-wise. This is described in detail in the WF book (all authors' proceeds donated to charity). But you're of course always still welcome to ask further questions on here if you get stuck.
    Regards,
    Mike

  • BOR events as user-exits?

    Hi!
    Is it possible to use BOR events as enhancements (user-exits) in ABAP?
    For example, the BOR object "BUS1178001 - Material" has event "Material.Created". I suppose this event is raised when an article was created in Material Master.
    Is it possible to "capture" this event by ABAP program (class, function...)? Perhaps by creating a workflow with just one step: background execution of ABAP code?
    Has anyone tried something in this direction?
    Thanks in advance!
    Kind regards,
    Igor

    Hi, Darren,
    Thanks for your hint! Sounds excellent. Before I proceed, could you verify my assumptions?
    I suppose that in my case "Change doc. object" = "MATERIAL", "Object Type" is "BUS1178001" and "Event" is "CHANGED".
    Then I check the "On Change" option. These settings seem redundant to me. Why "On Change" option button and "CHANGED" event? Don't they have the same meaning?
    "Event Container" should hold my function name, like "ZCOPY_SWE_CD_TEMPLATE_CONT", right?
    What about other function fields: "Object Type" and "Event ID"?
    Can I debug this when I create/change Material?
    If you have some example settings or code, I'd appreciate if you posted them.
    Thanks!
    Igor

  • Need BOR & event which triggers after vendor master change.

    Hi all.
        Can you pls let me know the BOR & event which triggers after vendor master change. (Xk02). I used tcodes SWELS (evetn trace) , and SWEL and changed vendor adress using XK02. but I could not find any event or BOR in the trace. Pls help me out.
    Cheers,
    sam.

    Hi
    when we change the vendor details we dont have the event which is automatically triggered by the system so we create an zbusinessobject as subtype  for the vendor(LFA1)  as supertype.
    and create a new event in that z business object .
    change document for the vendor is KRED you can check it in the CDHDR table by giving tcode name.
    after finding changedocument object go to SWEC and create a newentry specifying your changedocumentobject name and BO name and event name and click on radiobutton onchange.
    and now you can check whether an entry is getting in swels or not when changing the vendoor details.
    Thanks.

  • No PDF file was created because Acrobat encountered an unidentified error.

    Product:
    Adobe Acrobat 8
    Windows XP SP3
    Problem:
    when user try to combine multiple PDF files into one file from network drives (hence that user have full permissions), received this error:
    "Error (file skipped)
    No PDF file was created because Acrobat encountered an unidentified error."
    Steps taken so far:
    - cleared windows temp files
    - cleared acrobat temp files
    - tried, same error
    - ran acrobat repair, tried it out, same error
    - made adjustments to "PDF Printer Properties per this article 
    http://www.experts-exchange.com/Web_Development/Document_Imaging/Adobe_Acrobat/Q_23903725. html
    - tried again, no luck.
    - removed adobe acrobat and reinstalled it completely from scratch.
    - ran updates
    - tried again, no luck.
    - granted the user full permission access to acrobat folder under program files, still same error
    - then, copied files that I need to convert locally to the system and tried to combine them, it worked!
    - its not permission issue as I tried the same from my domain admin account and received the error.
    - also the user reported that acrobat takes 15 o 20 sec each time opening a file
    Any ideas?!
    Thanks!

    If I change the properties to open as administrator, within the program I can combine pdfs over the network drive.
    .  I can't drag and drop or combine pdfs from windows explorer and everytime I open acrobat it asks if it can make changes.
    So it's still best to copy to c drive in order to use Combine and Portfolio features but would be really nice to use as designed.

  • No Workflow created for BPM

    Dear Experts,
    I'm trying to do a N:1 mapping using BPM. i have two different files coming in and i have to merge into one. i used multimapping and designed the Integration process based on the example given in SAP BASIS http://sap.com/xi/XI/System/Patterns for collection with multiple interfaces.
    The files are read in properly and i get the checkered flag for both the files but the PE shows a green flag and when i go check the queue, it shows the error SYSFAIL. Also there is no workflow created for the process. i checked SXI_CACHE too and the return code is 0.
    What could be the problem?
    Thanks and regards,
    Merrilly

    Did F7, there were no semanctic errors. I think there is something amiss in the correlation. It's not being able to put the second message in the bpm instance created by the first message. Its waiting for the second message which never gets into the actual bmp instance. it creates another one.
    What should i actually give for the  correaltion?
    Thanks and regards,
    Merrilly

  • Multiple workflows publishing at once SOAP error

    Hello, we are running SharePoint 2013 August 2014 CU with SQL Server 2012 and Windows Server 2012. We are having an issue where when
    users simultaneously publish a workflow, one of them will receive a SOAP error saying that the temporary file could not be found. I believe this to be an issue with how the workflow is compiled. The compiler puts temporary files in the \appdata\local\temp
    folder and then once the workflow is publish, it clears out those temp files. When multiple workflows publish at the same time, the first workflow to complete will clear out the temporary files of the other workflow trying to compile and will throw the error.
    Is this by design or is this something we have not set up properly in our environment?

    Hi,
    Based on you description, I have done a test.
    1. Navigated to C:\Users\<service-acct>\AppData\Local\Temp.
    2. Published the workflow from SPD.
    3. Workflow publishing process was actually creating all the required files under Temp folder.
    4. Once the workflow is published, it cleared out all of those temp files.
    Per my test, during the workflow publishing, SharePoint will create all the required temporary files under the temp folder. Once the workflow is published, it clears out all of those temp files.
    So it is the cause some of them will receive error saying that the temporary file could not be found.it is by default.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • XML document could not be created because server memory is low( SCOM 2012 R2).

    Hi 
    I am facing below issue in the scom 2012 r2.
    please find the error below 
    On SCOM MS:
    Alert name :Data Warehouse relationship synchronization process failed to write data 
    Alert description :Data Warehouse relationship synchronization process failed to write data to the Data Warehouse database. Failed to store data
    in the Data Warehouse. The operation will be retried.
    Exception 'SqlException': Sql execution failed. Error 6624, Level 16, State 1, Procedure sp_xml_preparedocument, Line 1, Message: XML document could not be created because server memory is low. Use sp_xml_removedocument to release XML documents.
    Event id in Operation log:  
    Event id :33333 
    Data Access Layer rejected retry on SqlError:
     Request: DataWarehouseSynchConfigChangeTypeGet -- (InstalledManagementPackXml=<ManagementPacks><ManagementPack>7b9f4239-7351-e72b-4ce4-d6c56ddb401d</ManagementPack><ManagementPack>848edb97-9da5-e2ae-24d4-56...),
    (RETURN_VALUE=-6)
     Class: 16
     Number: 6624
     Message: XML document could not be created because server memory is low. Use sp_xml_removedocument
    to release XML documents.
    ON SCOM DB server:
    SQL version : SQL 2012 SP1 X64 bit Host all SCOm db (SCOM DB,SCOM DW,Reporting)
    Ervent id : 28005 ,Application log,source: MSSQLSERVER
    Please suggest me in this regard.
    Thanks 
    sridhar v

    For fix error 33333, you can refer below links
    http://opsmgradmin.blogspot.com/2011/05/scom-event-id-33333-in-scom-from-source.html
    http://systemcenterblog.blogspot.com/2009/11/error-id-33333-data-access-layer.html
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • CREATE OBJECT inside INITIALIZATION event in ABAP

    Hi everyone,
    I have one question, can we create object inside INITIALIZATION event. Why, I am asking this question is, because most of the time I have seen people to create object inside start-of-selection. Please give your thought on this.
    The code I have just coded below is also right or wrong?
    CLASS lcl_build_data DEFINITION.
       PUBLIC SECTION.
         METHODS : constructor,
                            get_all_files,
                             validate_site.
    *-- Private Section declaration
       PRIVATE SECTION.
             METHODS : clear_and_refresh,
                                display_output.
    ENDCLASS.                 
    *** class declaration,  create instance for the class
    DATA: gv_data     TYPE REF TO lcl_build_data.
    INITIALIZATION.
    *** Create class object. Constructor method will be called to Refresh
    *** and Clear all internal tables and Work areas
       CREATE OBJECT gv_data.
    *                    AT SELECTION-SCREEN             *
    AT SELECTION-SCREEN ON s_vkbur.
    *** Sales Office validation
       CALL METHOD gv_data->validate_site.
    *                START-OF-SELECTION                    *
    START-OF-SELECTION.
    *** Get the list of all files from unix dir.
       CALL METHOD gv_data->get_all_files.

    Since you are using the same object for your Selection screen related events, AT SELECTION-SCREEN, you would have to instantiate the object in the INITIALIZATION event. If your object usage is just for the data - In case you use the MVC design pattern, you should push back the object creation in START-OF-SELECTION.
    Regards,
    Naimesh Patel

  • Link BOR Event with ABAP code (program or function)!

    Hello experts,
    I am trying to link program or function to bor event. Change of data in HR IT0002 trigger event CHANGE of PERSDATA Object. I need to execute some ABAP code (program or function) on CHANGE event, so I have to link event and ABAP code.
    Question: is it possible and how?

    Hi,
    It is very much possible....
    You can use the Workflow & use BO as PERSDATA & this workflow can be triggered on event change.
    & You can write your code ...
    Regards,
    Rahul

  • Delay - job created by the RAISE EVENT

    It's possible to change the scheduling of a job created by a RAISE EVENT, and instead of executing immediately, to schedule it as +1 minute delay?
    Thanks!
    PS: i have to wayt because, after the event, some tables are updated in my program and i have to wait the commit
    Edited by: Was Wasssu on Sep 6, 2010 9:08 AM

    That's true, but from the sparse information in the original post I understood that he is issueing a COMMIT WORK anyway in his code. So Mr. Wasssu, are you inside a customer exit? Anything else we need to know?
    Thomas

Maybe you are looking for

  • The plus sign button to add new events in iCal on my iPhone is missing.

    On the top, to the right of "All Calendars" there is a plus sign that is used to add events.  On my 4GS I have that and a "Calendars" button.  On my husband's 3GS, those buttons are missing, making it impossible to add events to his calendar.  Both p

  • Sender file adapter not polling the file

    hi all, i have configured a filexifile scenario.... but the file sender adapter is not polling the file at all.... i dont c any message either in RWB or in SXMB_MONI i checked the adapter framework url at <i>http://<ximachine>;<port>/AdapterFramework

  • Hdmi switch disables video

    I have an "early 2009" mini. I hooked it up to my HD TV through a Sony amp that acts as an HDMI switch. It works great until I switch to a different component (e.g. satellite receiver). When I switch back to the mini there is no video or audio. Scree

  • I am not able to download the music files i purchased several days ago

    My account hacked. I know that because person changed the security question but not the password. I made a purchased recently. Purchased songs and there was a previous two book purchase from Apple Store. When i try to download them to my Mac, i am re

  • Office and Acrobat PDFMaker toolbar in Leopard

    Need some guidance ... - Just upgraded to Leopard 10.5.4 - Photoshop 7 stopped working - Upgraded to CS3 - PDFMaker Toolbar appears in Excel - Trying to use toolbar gives error ""PDFMaker could not locate the Adobe PDF printer. Please install the pri