ECMA script for checking active workflows for an list item

Hi i am having more than 1 workflow associated with the list if there is any workflow that is active for an item then i need to prevent starting another workflow for the same item. I am using the following code to achieve the same. Can anyone please provide
me the ECMA object model equivalent for achieving the same.
    //Check for any active workflows for the document
        private void CheckForActiveWorkflows()
            // Parameters 'List' and 'ID' will be null for site workflows.
            if (!String.IsNullOrEmpty(Request.Params["List"]) && !String.IsNullOrEmpty(Request.Params["ID"]))
                this.workflowList = this.Web.Lists[new Guid(Request.Params["List"])];
                this.workflowListItem = this.workflowList.GetItemById(Convert.ToInt32(Request.Params["ID"]));
            SPWorkflowManager manager = this.Site.WorkflowManager;
            SPWorkflowCollection workflowCollection = manager.GetItemActiveWorkflows(this.workflowListItem);
            if (workflowCollection.Count > 0)
                SPUtility.TransferToErrorPage("An workflow is already running for the document. Kindly complete it before starting a new workflow");
        }

Hi,
According to your post, my understanding is that you wanted to use ECMA script to check active workflows for an list item.
You can use the Workflow web service "/_vti_bin/workflow.asmx"
- GetWorkflowDataForItem operation in particular.
Here is a great blog for you to take a look at:
http://jamestsai.net/Blog/post/Using-JavaScript-to-check-SharePoint-list-item-workflow-status-via-Web-Service.aspx
In addition, you can use
SPServices. For more information, please refer to:
http://sharepoint.stackexchange.com/questions/72962/is-there-a-way-to-check-if-a-workflow-is-completed-using-javascript
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • Net flix is asking for an activation code for my apple tv?

    net flix is asking for an activation coed for my apple tv?

    There is no code, you simply select netflix under the internet tab and login to your account.

  • Can someone check my workflow for video editing?

    I have a question about my workflow with my Adobe Products.  I'm hoping someone can check my workflow.
    I feel like I understand most of this process but I have a few questions listed below.
    If someone could please read and tell me where I might be able to speed up my workflow I would be appreciative.
    Any help is appreciated!!!!!!!!!
    Questions-
    • Why do my exports take so long with Premiere and Media Encoder?
    • Why does Premier take anywhere from 5-10 minutes to fully load my projects?
    • Why does Premier take so long to load my previously rendered preview files?
    • Are my settings OK with Media Encoder?
    • Why can't I get Media Encoder to export higher than a resolution of 786x524 for MP4?
    Computer Specs:
    MacPro, 2.8 Quad Core, 10GB RAM, ATI Radeaon HD 5770 1024MB, Mac OSX Mavericks 10.9.5
    Software: Using Adobe CS 6 software,
    A typical project for me:
    Resolution 1000 x 563px, 10 minutes long, to be played/viewed on the Web.
    My workflow and settings in more detail:
    • I usually start in After Effects then move the AE comps into Premiere and edit with many other clips, then export to ProRes, finally I compress that ProRes file (Adobe Media Encoder) to a variety of necessary formats.
    I start with After Effects and create about 20 or 30 projects, each is anywhere from 5 seconds to 30 seconds long.
    I start a new Premier Project (Preview Files set to QT, H.264, 1000x563px) and import the AE comps directly into Premiere.Premiere has to render my AE comps but I like the flexibility of being able to "go-back" and alter my AE file, it auto updates in Premiere
    I edit all my clips in Premiere, my entire timeline is rendered and has the Green Line.Anytime I close my project and reopen it. Premiere takes about 5-10 minutes to load the project.  Premiere initially opens quickly but takes a long time to link up all the rendered preview files.  This seems way too long
    Upon finalizing my project in Premiere I export out to ProRes 422.
    Settings For this is: Export Video, Same Resolution as project, Quality 100%, 30fps, Progressive, Square Pix, 24bit, Use Max Render Quality, Use Frame Blending.
    For my 10 minute animation this takes about 45 minutes. I feel like that's OK.  My AE clips can be a bit heavy with stills, particles, effete and etc
    This results in about a 11GB ProRes file.  Does that sound right?
    I now have a fantastic ProRes  copy of my hard earned work.... but I need to encode it to get it on the web, to clients, to friends, to the Universe.
    I import this file into Adobe Media Encoder.  I need to get this into 3 different formats, .H264, FLV and .MP4.  This processes usually take about 12 hrs for me.  Seems too long.
    MP4 settings: Multiplexer MP4/ Standard, Dimensions I can't get them above 786x524 this is frustrating, Level: Advanced Level 5, VBR 1pass 1,500
    FLV Settings: Format FLV, Dimensions 1000x563, VBR 2 pass, Bitrate 1,200, default target rates and Key Frame
    h.264 settings: Codec H.264, Dimensions 1000x563, 30fps, Progressive, Square Pix, Optimized Stills, Bit Rate 1,500
    That's about it.

    You're missing the JSTL JAR's in the classpath.

  • When i try to down load a book from the library i get a error that reads check activation only for overdrive not for 3m cloud

    i am having trouble downloading books from the library i get a check activation error when using overdrive

    Read the user manual that came w/the scanner and/or contact HP Support.
    http://support.apple.com/kb/PH14141 OS X Mavericks: Reset the printing system 
    http://support.apple.com/kb/HT3669 Printer and scanner software available for download 
    A scanner driver you may wish to consider:  VueScan Scanner Software

  • 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

  • ECMA script to check if user is a member of sharepoint group

    Hi All,
    I need to check if the current user belongs to s particular SP group using ECMA script. I have written the following code
    function CheckIfCurrentUserIsCoordinator() {
    var clientContext = new SP.ClientContext.get_current();
    this.collGroup = clientContext.get_web().get_siteGroups();
    clientContext.load(collGroup);
    clientContext.load(collGroup, 'Include(Users)');
    this.currentUser = clientContext.get_web().get_currentUser();
    clientContext.load(currentUser);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var UserExistInGroup = false;
    var groupEnumerator = collGroup.getEnumerator();
    while (groupEnumerator.moveNext()) {
    var oGroup = groupEnumerator.get_current();
    if(oGroup.get_title()=='Group A')
    var collUser = oGroup.get_users();
    var userEnumerator = collUser.getEnumerator();
    while (userEnumerator.moveNext()) {
    var oUser = userEnumerator.get_current();
    if (oUser.get_loginName() == currentUser.get_loginName()) {
    UserExistInGroup = true;
    break;
    if(UserExistInGroup)
    break;
    if(UserExistInGroup)
    //code
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    The code works fine if i log-in as a site collection owner. If i log-in as any other user having contribute access on site I get following error message
    "Access Denied. You do not have permission to perform this action or access this resource."
    What permission do i need to give users so that they can loop through all site groups and users?
    Thanks,
    Ameya

    Hey,
    Please check group settings for your group and set below property
    Who can view the membership of the group? to Everyone. It may resolve access related issue.
    Thanks. Please mark it as answer if it helps.

  • Services for Object activation required for VA02 in SAP 4.0B version

    Hello,
    This is regarding Sales Order Change (VA02) and If I select the  MENU navigation :  SYSTEM -> Services for Object in ECC 6.0 then it is populating one Pop-up stating that "Sales Order XXXXXXX" Here we have the option for "Create Attachment".
    For this we need to do one prerequist in SAP ECC 6.0 Goto Tcode SU01 under the "Parameter" Tab we need to provide the following Parameter ID i.e
    SD_SWU_ACTIVE and Parameter value is : "X".
    The Same scenario I need in SAP 4.0b version.
    It would be grateful if you can helpout in this issue.
    Than you very much in Advance ...

    Hi,
    Absolutely it is not possible.
    The services for object is only visible, once the original object is created.
    Even if you check for normal F-02 entry also, it wont be visible during entry, but will be visible after posting if we go thru FB02 or FB03.
    Any attachment can be assigned through the services for object, is possible only after creation of the dependent / original data.
    So for AS02 and AS03, the dependent data has to be there in the DB, which has been created with AS01.
    Thanks,
    Srinu

  • Business object  for material , template workflow for materials ?

    Hi,
    I need to create a workflow for material master , creating material basic data, create plant views etc
    Which is the appropriate workflow and is there a standard one as a template?
    Thanks
    Antonis

    Hello,
    I feel it is better that you use the standard business object BUS1001006 for your requirement related to the material management as some of the events which are obsolete in the business object BUS1001 have been redefined in BUS1001006.
    Events like "Material created" and "New View for the material Created" are redefined which I think you need for your requirement.
    Hope this will help.
    Regards,
    Samson

  • NETFLIX IS ASKING FOR AN ACTIVATION CODE FOR MY APPLETV AND I CAN'T FIND ONE?

    netflix wants me to enter my email and password every time on my Appletv. Is there an activation code for the appletv?

    No, it doesn't. I don't understand.. No registered products on one hand and downloaded apps and fully paid annual subscription to the complete package of products Adobe...

  • Active x for imac', active x for imac

    Hi, is there anybody can show me the link to download the active x for Imac? pleaseeeee......

    Active X is for Windows only.

  • Workflow 2010 set list item permissions

    I have a sharepoint 2013 list set up with two kinds of users (Approver and Employees) needing access:
    Approvers - need full control on the list/site
    Employees - can only have edit/read access to their own list item or entry
    I'm using SPD 2013 with workflow 2010 platform, the workflow runs when approvers submits an entry (via people picker) for an employee. The part I'm having trouble with is granting
    employees their permissions above when the item is created.
    Following a web example, in the impersonation step I'm simply using add list item permissions action to grant the employees.
    In another workflow I'm sending them notification to the edit form, but they can't access the link.
    If I add the employees in one of the site's permissions group like visitors group then they can access the list but that would give them access to everything.
    Hope I explained the issue well, please let me know if anything is not clear. Thanks in advance!

    Hi
    That's not actually true, when you create a group in sharepoint you don't need to assign it any permissions, i.e.
    you create a group called 'NewListViewers' and don't assign it any permissions to the site
    you add members to this group (they have no permissions to the site or content within the site)
    you then customise the permissions of a list and grant this new group whatever permission you want (presumably contribute), the group only has permission to the list.  Add the approvers group with full control and your done.
    As for having users read only own items, simply amend the advanced settings read access to be '<label for="ctl00_PlaceHolderMain_ItemLevelSecuritySection_ctl09_RadReadSecurityOwn">Read items that were created by the user</label>', now
    they can only view/edit their own items and approvers can see everything.
    Regards
    Sergio Giusti Sergio Blogs
    Linked
    In Profile
    Whenever you see a reply you think is helpful, click Vote As Helpful.
    Whenever you see a reply you think is the answer to the question, click Mark As Answer.

  • Collect data from User workflow error updating list item

    Hi, can someone please help me with WSS 3 workflows?!
    I'll keep it simple - I have a workflow step "Collect data from user" that will fail with Unknown Error when attempting to update list item (this is after the user has clicked Complete Task). The workflow does not continue past this step and I have
    to terminate the workflow.
    What is odd, is that if I do another Collect data from User in the same step but following the 1st collect, both will work!! How can this be?? This proves the 1st collect is OK so why won't it run without another Collect data after it?! Doesn't make sense to
    me.
    I was just trying the second Collect to troubleshoot the issue. I've tried other actions there but having another Collect does seem to be the action that kicks things into life. Is there a clue here?
    Any clues would be much appreciated as I'm not able to turn much up when I Google.
    Thanks

    Well, surprise, surprise, this has come back (thought it might!). The trace logs show it's a task locked error but I can't see how. Can anyone please provide me with some clues??
    03/14/2014 12:30:25.11     w3wp.exe (0x7698)                           0x5EA4    Windows SharePoint
    Services       Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect()
    - selectArguments: IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:28.39     w3wp.exe (0x7698)                           0x6C4C    Windows SharePoint Services 
         Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect() - selectArguments:
    IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:28.47     w3wp.exe (0x7698)                           0x6C4C    Windows SharePoint Services 
         Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect() - selectArguments:
    IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:29.86     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72er    Medium      Microsoft.SharePoint.SPException: This task is currently locked by a running workflow and cannot
    be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32&
    parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean
    suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitUpdateListItem(Transaction txn, Object[] transData)    
    03/14/2014 12:30:29.86     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72fe    High        Error in commiting pending workflow batch items: Microsoft.SharePoint.SPException: This
    task is currently locked by a running workflow and cannot be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames,
    Object& objAttachmentContents, Int32& parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion,
    Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitUpdateListItem(Transaction txn, Object[]
    transData)     at Micro...    
    03/14/2014 12:30:29.86*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72fe    High        ...soft.SharePoint.Workflow.SPPendingWork.PerformWorkNow(Transaction txn)    
    at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)    
    03/14/2014 12:30:30.05     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           88xr    Unexpected    WinWF Internal Error, terminating workflow Id# 2dc6002d-9f9d-474f-84cf-329025347ec5    
    03/14/2014 12:30:30.05     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    System.Workflow.Runtime.Hosting.PersistenceException: This task is currently locked by a running workflow
    and cannot be edited. ---> Microsoft.SharePoint.SPException: This task is currently locked by a running workflow and cannot be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean
    bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32& parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion,
    Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWi...  
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...nOEWSSService.CommitUpdateListItem(Transaction txn, Object[] transData)     at
    Microsoft.SharePoint.Workflow.SPPendingWork.PerformWorkNow(Transaction txn)     at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)     at System.Workflow.Runtime.WorkBatch.PendingWorkCollection.Commit(Transaction
    transaction)     at System.Workflow.Runtime.WorkBatch.Commit(Transaction transaction)     at System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)    
    at System.Workflow.Runtime.Hosting.DefaultWorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)     at System.Workflow.Runtime.WorkflowExecutor.CommitTransaction(Activity activityContext) 
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...   at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean
    unlock, Boolean needsCompensation)     --- End of inner exception stack trace ---     at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean unlock, Boolean needsCompensation)    
    at System.Workflow.Runtime.WorkflowExecutor.System.Workflow.ComponentModel.IWorkflowCoreRuntime.PersistInstanceState(Activity activity)     at System.Workflow.ComponentModel.Activity.MarkClosed()     at System.Workflow.ComponentModel.Activity.ReleaseLockOnStatusChange(IActivityEventListener`1
    eventListener)     at System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.SafeReleaseLockOnStatusChange(ActivityExecutionContext context)     at System.Workflow.ComponentModel.FaultAndCancella...  
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...tionHandlingFilter.OnEvent(Object sender, ActivityExecutionStatusChangedEventArgs e)    
    at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()    
    03/14/2014 12:30:30.38     w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ERROR: request not found
    in the TrackedRequests. We might be creating and closing webs on different threads. ThreadId = 59, Free call stack =    at Microsoft.SharePoint.SPRequestManager.Release(SPRequest request)     at Microsoft.SharePoint.SPWeb.Invalidate()    
    at Microsoft.SharePoint.SPWeb.Close()     at Microsoft.SharePoint.SPSite.Close()     at Microsoft.SharePoint.SPSite.Dispose()     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow
    workflow, Collection`1 events, SPRunWorkflowOptions runOptions)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow workflow, Collection`1 events)     at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.RouteWorkflowEvent(SPItemEventProperties
    properties, SPWeb web, SPListItem item, Boolean fNeedTas...    
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...kReset)    
    at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.ItemUpdated(SPItemEventProperties properties)     at Microsoft.SharePoint.SPEventManager.RunItemEventReceiver(SPItemEventReceiver receiver, SPItemEventProperties properties, SPEventContext
    context, String receiverData)     at Microsoft.SharePoint.SPEventManager.RunItemEventReceiverHelper(Object receiver, Object properties, SPEventContext context, String receiverData)     at Microsoft.SharePoint.SPEventManager.<>c__DisplayClass8`1.<InvokeEventReceivers>b__0()    
    at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...userToken, CodeToRunElevated
    code)     at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](SPUserToken userToken, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)     at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](Byte[]
    userTokenBytes, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)     at Microsoft.SharePoint.SPEventManager.HandleEventCallback[ReceiverType,PropertiesType](Object callbackData)    
    at Microsoft.SharePoint.Utilities.SPThreadPool.WaitCallbackWrapper(Object state)     at System.Threading.ExecutionContext.runTryCode(Object userData)     at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
    code, CleanupCo...    
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...de backoutCode, Object
    userData)     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback
    tpWaitCallBack)     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)  , Allocation call stack (if present) null    

  • Activating Workflow for Change Documents

    Hi
    I am working in cProjects 4.0 on ECC6.
    I am working on the scenario of automatic email generation when change document is created for project element.
    I have used sample workflow WS28700006 and following settings have been made :
    1. Make the required settings in the SAP menu under Tools &#8594; Business Workflow &#8594;
    Development &#8594; Definition Tools &#8594; Events &#8594; Event Creation &#8594; Change Documents
    &#8594;
    a. Overview (transaction SCDO)
    Enter DPR_PROJECTS in the table.
    b. Define Workflow Properties (transaction SWED)
    Enter the following data:
    Change document object DPR_PROJECT
    Leading table in change document DPR_PROJECT
    Change document key with structure DPR_PROJECT
    Action: Change X
    Structure DPR_TS_BUSINESS_OBJECT_KEY
    Function module BAPI_BUS2175_OBJECT_KEY_SET
    c. Linkage (transaction SWEC)
    Enter the following data:
    Change document DPR_PROJECT
    Object category BOR object type
    Business object type BUS2175
    Event CHANGED
    On change X
    In cProjects I have I have attached word document, and another user changed it and changed document again checked in again with overwriting the old one.
    But no workflow triggerd. In SWI1 transaction I cannot see any workflow triggered.
    Is there any problem with workflow and process or changing document in cProjects is not write ????
    Can someone help ????
    Regards,
    Niraj Sikligar

    Hi Niraj,
    Please ensure that you have made IMG setting for cProjects > Basic Settings>'Activate Change Documents'.
    'Change Documents' means that any change in the Project Objects will be recorded, and not the changes in the documents that have been attached.
    I am not too sure about the workflow settings that you have made, but just try with the img activity that I've mentioned. You can test the same by making some changes in Project (  for eg change the Project Status) and save it.
    Let me know if it helps.
    Regards,
    Vivek Pandey

  • Activating workflow for ERCSendPwd

    Hi Experts,
    I am not familiar with workflow, but I am trying to set up ERCSendPwd (the workflow used by E-REC to send a replacement password if the user forgets).
    I am not sure how to proceed, how/if to assign agents, etc...
    Any help is greatly appreciated.
    Thanks
    Shane

    Hi Roman,
    Everything you have mentioned is now set. 
    Although the emails are not being sent (our own issue), I can see the contents of the email in SOST.
    The document contents are as follows:
    Dear  Name,
    Please open the attached document for further information.
    And then I see an attached PDF called "Letter to Candidate"
    This PDF contains a lot of information, but it starts out like:
    All available information from the form interface is listed
    below, grouped according to the structure.
    Candidate: .....
    However, I do not see a new password, and I am unfamiliar with how to change this into something that will make sense to the end user. 
    Any hints for me on this one?
    Thanks
    Shane

  • Alternative for "check select-options" for select query.

    hi all,
    my report is using a "GET" syntax, followed by "check select-options".
    My senior told me to replace the Get syntax with select query.
    Now, my program also has dynamic selection screen.
    the dynamic selection screen almost has all the fields of database table.
    so, what is the way to replace this check select-options while applying select query?
    can you tell me how dynamic selection screen fields are populated? are they stored in some internal table?
    thanks for help.

    HI
    Here is some points about LDB.
    Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables by linking them to executable ABAP programs.
    However, from Release 4.5A, it has also been possible to call logical databases using the function module LDB_PROCESS. This allows you to call several logical databases from any ABAP program, nested in any way. It is also possible to call a logical database more than once in a program, if it has been programmed to allow this. This is particularly useful for programs with type 1.
    Logical databases contain Open SQL statements that read data from the database. You do not therefore need to use SQL in your own programs. The logical database reads the program, stores them in the program if necessary, and then passes them line by line to the application program or the function module LDB_PROCESS using an interface work area
    For further on LDB's refer to this link.
    [http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]
    Hope this will help.
    Reward if helpful.
    Sumit Agarwal

Maybe you are looking for