Adding a priority to a work item

hi
i have created a priority field in the customised table.i need to tranfer that to workflow.I need to make changes in the ATTRIBUTE program.can anyone help me how to go with the code in Attribute program.
I need to 'get parameter' write a select statement in the attribute program and 'set parameter.My field name is "priority" in customised table.Can anyone provide me with the sample code to write in attribute program.
Regards
dinesh

Hi Dinesh,
If your attribute is based on the same table as the <i>key</i> of the business object, then When you add the attribute in your custom BO, Wizard will automatically provide the code for you to get this attribute populated.
Hope this helps you.
Regds,
Akshay
PS: Some pointswould be nice if it helps

Similar Messages

  • How do i turn off TFS adding bulds to Global List? and or to the "Found In" drop down in work items?

    We do not use the standard TFS build definitions in our drop downs, and have scripted updating the global list with our standard build numbers. However, we get both the TFS builds and our build numbers in the "Found In" field of work items. How
    do I disable TFS automatically adding the "Builds - " list into the "Found In" field Rules? and or updating the Global List?

    Hi CRHill,  
    Thanks for your post.
    What’s the version of your TFS Server?
    What’s the “not use the standard TFS Build definitions in our drop downs” mean? 
    You’re using the TFS Build Definition to build your solution but not use the default TFS build process template in it?
    If you don’t use TFS build definitions to build  your solution, how the TFS builds’ numbers be generated and added in team project Global list?
    As far as I know all the completed TFS build numbers will be added in to team project Global list by default, and there’s no a default way to turn off that in TFS Server. Please refer to the workaround in this article:
    http://readcommit.blogspot.com/2008/04/found-in-build-team-build-list-make-it.html.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to create a Visual Studio plugin that can copy TFS work item ID by adding a context menu in the work item UI?

    Our team is using VS2013 and TFS 2013, and in our daily work we often open a TFS query, then we need to open a work item, and we often need to copy the ID, for example, to the email.
    But currently the field is read only, and we often manually copy it.
    So is there any convenient way to solve this? Any built in ways?
    If no, is it possible to create such a plugin?
    Regards,
    Lei Yang
    from Motorolasolutions

    Hi Lei Yang
    You can try the following work around to copy work item ID
    for VS 2013:
    Right click on work item tab header in VS 2013 and click 'Copy Full Path' from context menu
    When you paste it on notepad/email you will get work item ID at the end of the path:
    http://sumiran-dev:8080/tfs/web/wi.aspx?pcguid=d855bc22-69a8-45a5-b6fc-25f096ade8f5&id=46
    For Web Portal:
    Right click on work item link at top and click 'Copy shortcut' from the context menu
    When you paste it on notepad/email you will get work item ID at the end of the shortcut:
    http://sumiran-dev:8080/tfs/DefaultCollection/TFS%20Scrum%20Demo/_workitems/edit/46
    Thanks
    Sumiran

  • Getting a null when trying to access DateTime fields (that I've added) from my work item

    I'm getting a null when trying to access (custom) DateTime fields from my work item.
    I've got a customized work item with 'extra' string and datetime fields.
    <FieldDefinition name="Design Version" refname="XXX.DesignVersion" type="String" reportable="dimension" />
    <FieldDefinition name="Date Closed" refname="XXX.DateClosed" type="DateTime" reportable="dimension" />
    This code fails:
    WorkItem workItem = workItemStore.GetWorkItem(workItemId);
    var tt1 = workItem["XXX.DesignVersion"];//works
    var tt3 = workItem["XXX.DateClosed"]; //tt3 == null, fails also for html fields
    Any idea what's up? thanks

    Hi TimB,  
    Thanks for your post.
    What’s the version of your TFS?
    If you open this work item in VS, there’s no date value in your Date Closed field? Please try below code snippet:
    if (wr.Fields["XXX.DateClosed"].Value
    == null)
    Console.WriteLine(wr.Fields["XXX.DateClosed"].Value);
    else
    Console.WriteLine(wr.Fields["XXX.DateClosed"].Value);
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Workflow loop, return the work item to the inbox, instead of automatically executing the work item

    Hello all,
    Within a workflow I have a loop. Inside that a foreground step is executed. Then a condition step is executed to decide if the workflow should continue, stop, or return the work item to the inbox.
    This new workflow was modeled after an existing workflow that is doing just that. Unfortunately, this new workflow is not returning the work item to the inbox. Instead, it just keeps displaying the screen that is called by the function module that is called by the business object method that is executed when the foreground task runs.
    I've included a Word document with further detail in a number of screen prints. Hopefully this is something that will experience workflow developer may have seen before and know how to correct.
    Unfortunately I have done very little workflow development and don't have a clue what might be causing this problem.
    Any help would be greatly appreciated.
    Bruce
    I could not attach a Word file, so I added 3 jpg files.  I would have added another 3, but it seems that posts are limited to 3 files.

    Hi Bruce,
    As per your design, If you are approving or returning, the workflow loops back to the step "Approver - stat key approve".
    Suppose you are one of the approver for this step ""Approver - stat key approve" and if you click on approve or return, then it will try to create a new workitem for "Approver - stat key approve" step.
    As you are one of the approver again, the window opens immediately instead of reaching the inbox of all other approvers.
    Include a dummy activity step in the "approve & return" condition outcome.
    Active the workflow & refresh the buffer SWU_OBUF.
    After this, when you click on return it will not open the same screen again. Instead it will be reaching all the approvers' SAP inbox.
    Thanks,
    Karthikeyan

  • Warning messages "You are not a receiver of the work item"...

    Hi Experts,
    We are facing an issue in which couple of users are getting warning messages "You are not a receiver of the work item" in there Portal Inbox. But they are not getting any warning message while accessing the same from R/3 inbox. We tried replicating the issue but it is working fine for us. Is it related to workitems which are of any particular type??? Kindly suggest.....
    Just to add some more thing we have gone through the Forum : UWL workitem error: you are not a receiver of the work item and also the OSS notes: 1133821, but we do not get any appropriate solution.
    Please suggest.
    Appreciate your quick response.
    Thanks,
    Harish
    Edited by: harish vyas on May 3, 2010 1:24 PM

    Hi Enrique,
    Yes users are using SSO.
    As suggested I have checked in transaction SU53 and there is no error message for the user i.e. we are getting success message as  "The last authorization check was successful".
    Please suggest what can I try.
    Also adding to this, Warning message which users are getting is not a show stopper i.e. they are able to process workitems successfully.
    Thanks,
    Harish

  • Fiori Purchase Order Approval - inexplicable missing work items

    I'm asking this here because I have run out of things to try. At the moment we have users of the Purchase Order Approval app finding that some work items don't appear in Fiori, when they have work items visible in business workplace.
    I did the following things in the live system to check the user's work items:
    used function SAP_WAPI_CREATE_INBOX to check which work items they should have
    called the backend gateway service method GET_LIST on class CL_GBAPP_APV_PO_API, with the valid workflow tasks in the filter table. I got the same work items, and as far as I can see this is exactly the information the Fiori app should have got.
    I can't see any obvious way the Fiori app itself would filter the results.
    I've not found relevant SAP notes.
    Any suggestions on other things to check?

    I've added the GET_LIST output and the worklist function which should show the contents of the user's inbox.
    They are seeing nothing in Fiori. We have a custom task but Fiori knows about it from the task filter select option.

  • How to use the url in the work item

    hi ,guys ,
       I have question in design the workflow, my scenario is as follows : I develop the workflow in the sap gui ,then integrate it into the portal using uwl . now i want add a link in the work item ,before approver excute the work item ,the approver can click the url to view the detail approval information ,and the system popup a web window which link to the pcui application . and someone advise me to maintain the href in the work item text ,but i have no iead on it ?can anybody give me some advices or sample material ?thanks in advance .
    Jialiang.Qiu

    Hi
    If we talking about adding an URL in the GUI workitem display you can proceed as follows:
    1. In the workitem text editor, change the editor to line editor (Goto -> Change editor)
    2. enter the tag /* (Usually used for comments) to the left
    3. enter the URL on the line as follows <a href=http://www.cnn.com> click here</a>
    Regards
    Morten Nielsen

  • Error:Work item 000000001099:Object FLOWITEM method EXECUTE cannot be execu

    Hello experts,
    I have created a Sales order workflow whr after creation sales order will go to 1 person inbox and he will check the SO thoroughly and thn i hv added a user decision step for APPROVED or REJECTED for same person.
    Now after creation of sales order it goin to the person inbox for checkin SO but when he is saving it thn decision screen with button APPROVED or REJCTED is not coming and m getting error :Work item 000000001099: Object FLOWITEM method EXECUTE cannot be executed. and error: Error when processing node '0000000024' (ParForEach index 000000)
    i checked the agent mapping for both step....and thr is no error in agent mappin...in both steps i have mapped same rule with responsibility IDs
    PLz suggest urgently wht can be cause of error.
    Regards
    Nitin

    Hi Nitin,
    I think this seems to be an agent assignment issue.
    To debug this issue go to the workflow log and check if the agents are correctly being picked by the rule or not. Simulate the rule and check for the agents being picked.
    In the workflow log, check the agent for the User Decision step. If there is no agent found then there might be some issue with the data passed to rule.
    Hope this helps!
    Regards,
    Saumya

  • How to get pending with details in tracking work item view history

    Hi Forum,
    I have created a request for approval that I can see in my portal UWL Tracking section. Here below I have  link called View History, when I click on VIew History it opens a new window with showing Request history in a tabular columns namelly Title, Status,Priority,Due date Processed By, Executed at and Action columns. We need to have one more column called Pending wiht and the approvar details in this column so the request creator is aware of the status and with whom his work item is pending for approval in multiple levels of approval it is help full. Please let us know how to achieve this.
    Thanks and Regards
    Sudhir

    Closing the thread

  • Work items not appearing in NWBC work overview

    Hi,
    I am using NWBC work overview to execute work items (EHSM3.0 - Incident management).
    I have a custom workflow with one custom task (of type Standard). When the workflow gets triggered I can see the work item for my custom task in R/3 inbox (which we access using Tx SBWP). But the same work item is not appearing in NWBC work overview.
    When I replaced my custom task with standard task TS00500003 in the workflow, it did appear in NWBC work overview.
    I added an entry in table IBO_C_WF_TAS for my custom task with following details but it did not resolve my issue.
    Application ID: EHHSS_INBOX
    Task ID: <custom_task_no>
    Default Action: INCIDENTEDIT
    Is there any other setting/config I need to do in order to view work items (for custom tasks) in NWBC work overview?

    Hi,
    This is a job of portal consultant to launch SAP GUI for portal UWL workitems  also similar to SAP SBWP.
    Your portal consultant will be the best guy to answer.
    Regards,
    Ibrahim

  • Link to inbox on express work item dialog box

    Hi Friends,
    Is there a way to delete the link to inbox from express message dialog box, for some express work items?
    Any input is much appreciated
    Thanks
    Vijay

    Thank you all.
    Well, we are using fax attachment to Journal entries(JE) which is subject to approval. If a user deletes the attachment from JE I'm sending the express work item to refax the supporting documents so that it can be sent back for approval.
    The problem here is, If the user deletes the attacment from FBV2, he gets the express message, goes to inbox, executes the work item to fax the supporting document which gets attached to JE and JE goes for approval. Once it is approved It gets posted in the background. If the user, who deleted the attachment remains in the inbox when JE is approved he is technically blocking the JE and hence posting is failing.
    I can change the work item priority and send a normal work item and a mail to his outlook regarding the deletion and need for refaxing. But business wants express message to refax.
    Hope this will help you sugest some solution.
    Thanks
    Vijay

  • Terminating Event to Event Queue due to Work Item Lock

    I have a dialog workflow task based on an asynchronous method defined with a terminating event.  When the user executes the work item, the method generates the terminating event (via a V2 change document) but the work item is enqueued (locked) by the same user (locked when they execute the work item from SBWP) and therefore the terminating event goes into error and is placed in the event queue.  The background job which processes the event queue does not redeliver the event so it stays in the event queue and the work item fails to complete.  Other than dequeing the work item lock myself with a function call how do I get around this catch 22?

    Hello Martin,
    Actually, the locking happens whether I have the task as asynchronous or synchronous.  The problem is the timing. If the user does not release the lock (by backing out of the dialog which is executed) prior to the terminating event attempting to enqueue and complete the work item then the event goes into error and is inserted into the event queue (and lingers there indefinitely, almost). Another issue with the asynchronous approach is that even if the user backs out of the dialog before the event actually attempts to complete the work item they will still see the work item in the inbox unless they click the refresh button when they get back to the inbox. 
    I have changed the task to synchronous but here is my scenario and another question.
    The process being workflowed is the approval of service entrysheets (similar to an invoice if you are not familiar with External Services).  In our process, there are a large number of documents being created and requiring approval by particular approvers.  It is a normal scenario for an approver to have, lets say 25 documents in his inbox awaiting approval. It was not practical for him to have to navigate back and forth between his inbox and the approval task screen.  Therefore, I give the users the option of (when executing a work item) having all the documents in his in-box (for this particular task) be presented in an approval list screen.  They can then do a mass approval of the 25 documents with 1 click and 1 navigation.  This list screen is also available to be executed outside workflow via a tcode.  So, when the user executes the mass approval (either from the inbox or outside workflow) the work items are terminated via the terminating event assigned to the approval task.
    A couple of issues remaining:
    1) Given my example of 25 work items (user executes 1 work item from in-box
    and I displayed all 25) being approved, when the user returns to the in-box, the 24
    items remain in his inbox until he clicks the refresh button since these were not actually "executed" from the workflow engines point of view.  However, these were terminated successfully because they were not "locked".
    <b>Question:</b> Is there a way (user exit?) to trigger the inbox refresh automatically.
    2) Now, the issue with the actual work item which the user executes from the inbox.  As I mentioned, the work item is locked as soon as the user executes it and is not released until they back out of the dialog or logoff.  So, here is what happens:  If the terminating event is sent before the lock is released the event is sent to the event queue.  If they then back out back to the in-box, its OK since I put some code in the SWO1 object type program (rememeber, its now synchronous) which will determine if they did the approval/rejection and the work item will complete and the event in the event queue will be deleted the next time the Event Queue Background job runs (it deletes any events for work items already in COMPLETED status). However, lets say they simply log off rather than backing up to the in-box or they don't do anything and are eventually logged off by timeout. In this case the code in the object type program to determine if the approval/rejection was done does not get executed (control does not return to the object type program) and the work item remains in "STARTED" status and remains in the users inbox and the event is in the event queue. So, now we have a work item that should be completed still sitting in the users in-box and the terminating event in the event queue. So the next time the user goes to their inbox the work item is still there.  The interesting thing is that though this may be confusing to the user, if they then attempt to execute the work item, they will get a message: "Work item currently being completed by event" (Message SWF_RUN 644) and the event sitting in the event queue gets redelivered and completes the work item.  To alleviate this problem I was thinking of adding a call to SAP_WAPI_WORKITEM_COMPLETE in the approval list screen after they do the approval but I'm guessing it wont work since it probably will try to enqueue the work item and it will still be locked. 
    Hopefully you haven't nodded off reading this rambling note...
    Thank you,
    Bob

  • Agent not receiving work item assigned to him

    Dear gurus,
    we're using SRM server 550 with SP08. We are using n-step workflow for contract change version. The approvers are being determined by reading from a table. In total there are 8 approvers determined. We then add one more approver manually. Then we do the approval. The approver1 manage to approve the contract successfully. However the problem come when approver2 want to approve, in which the contract not appear in his inbox.
    When we check the contract again, we still see the approver as approver2, with slight difference in which there is no information "In approval since xxxx".
    Can anyone suggest how can we prevent this to happen? And what can we do if such case happens?
    Best regards,
    John

    Hi,
    Why do you want to add the approver manually?
    where do you add the approver? as second approver?
    In the N-step badi , system will always retrieve the approver based on the coding in the BADI.
    In the Badi you will be specifying the index for each of the approver involved in the approval chain.
    looks like in your case , system is not able to identify the correct approver and so the work item is not send out.
    is the approval flow working correctly without an added approver?
    regards

  • SRM workflow - work Item is not being displayed

    Hello,
    We have SRM wrofklow configured on Portal and users are already using it.
    Recently, we got one issue from the user saying he is not able to see the work item on Portal under UWL.
    He can see the same work item in his inbox on SRM system.
    I checked for the task# and task# TS40007953 was there in the standard com.sap.pct.srm.core UWL config file but it is not there in uwl.webflow.SAP_SRM UWL configuration file. 
    com.sap.pct.srm.core has Medium priority where as uwl.webflow.SAP_SRM has low priority.
    I tired doing Re-Register as well on UWL system but no success.
    Can anyone let me what could be wrong? Where it could be errors? On Portal or SRM?
    Thanks in advance for your response.
    Thanks,
    Bhavik

    Hi Bhavik
    Usually when there is one user who is experiencing an issue, it is because they have personalizations set on the UWL.
    Please clear this users personalizations by doing the following:
    Go to system admin, system config, universal worklist and workflow, universal worklist administration.  On the administration page, go to click to manage item types and view definitions.  Here you will see a tab called reset personalizations.  Go there and type in the userid, and reset the personalizations for this user. 
    If personalizations is not what is causing the issue, check to see if this user is missing a role. You can do a cross comparison of two users in both the backend and the portal.  It would be helpful then to also bump up the logging levels on the UWL and look at the latest default trace when this user tries to connect to the portal.
    Best Regards,
    Beth Maben
    EP - Senior Support Consultant II
    SAP Active Global Support
    Global Support Centre Ireland
    **SDN Forum Moderator:
    SAP Enterprise Portal: Application Integration
    **SDN Universal Worklist Wiki:
    http://wiki.sdn.sap.com/wiki/x/ehU

Maybe you are looking for

  • Custom Icon Frustration

    I built an AS3 component and designed a custom icon. Right-clicked symbol in library, selected component definition and clicked on the icon button (under description) to set an icon. When I select custom... my finder pops up and I can navigate to any

  • Desktop not sharp after installing Solaris 10 8/07 on an Ultra 10

    Hi. I just installed the latest version of Solaris 10 on an Ultra10 and noticed that the desktop is not sharp. It's almost as though everything (background, Launch button, windows, etc) is misty. Oddly, the drop down menu displayed with right-click o

  • Is there a separate discussion thread for educators using ibook?

    Many of us in higher education are trying to use ibooks as text or as lab manuals.  Are there discussion threads for the particular ibook issues teachers/instructors/professors might come across?  Thank you.

  • Attachment in the Thread

    Hi ,   I have some problem for which I want to post a thread with attachment.   Just want to know how can I send the attachment with the message. Regards Rahul

  • Sales Analysis by Items

    Hi All, in the salses analysis by items i have double-click possibility on row for detailed display of all sales, but this list of documents doesn't show me the Item description in document but always the item description in Item Master data. Any ide