Get work Item from Work flow

hello all,
I am looking for a FM that return the work Item Id from the work flow Id,
can anyone help me pleae,
thank you all

SAP_WAPI_GET_DEPENDENT_WIS  , in this FM five the workitem id of the main workflow and you will get the dependent workitems .
other Way
Workitems are based on workflow instance  , so you can give the instance of your business object to the WAPI FM and get the existing workitems . See the code below
call function 'SAP_WAPI_WORKITEMS_TO_OBJECT'
      exporting
        objtype                  = 'ECM'
        objkey                   = g_objkey
        top_level_items          = 'X'
        selection_status_variant = 0001
      tables
        worklist                 = i_worklist[].
Another way would be to  access SWWWihead table

Similar Messages

  • Forwarding of Work Item from Approver's Inbox

    Hi All,
    We are in SRM 5.0 SP07 Classic Scenario.
    We have a requirement of restricting forwarding of work items from approver's inbox to users who do not have a approver's role. Presently, when the system takes in a user ID who is having a requisitioner role or for that matter any role. The requistioner receives a work item but the requsitioner is not be able to approve/reject the workitem.
    We would like to ensure only the approvers are selected in search and other users are not even displayed for selection.
    Is there a way to achieve this?
    With Regards
    Sathya

    Hi,
    As per the config guide,when you try to assign the User,using the FIND button,you will get to see all the users with the role "SAP_BBP_STAL_MANAGER" who can approve.
    Else you can filter the possible selection with the BADI BBP_CHNG_AGNT_GET.
    See the foll thread for more pointers:
    Re: Selection of approvers for Bid
    BR,
    Disha.

  • Display universal work item from CRM work list

    Hello all,
    In ECC system, we have defined several workflows. We can see the work item from the universal work list via the portal.
    Now, we have a new request, we would like to see these work items form CRM work list.
    I have checked the custo and I have questions:
    1. spro- Customer Relationship Management under  UI Framework  Technical Role Definition  Define Navigation Bar Profile . Select the relevant navigation bar profile and add the specific UI objects WI_BOR.
    please check the link http://help.sap.com/saphelp_crmscen70/helpdata/en/e9/7fec7e8f954e7fb60d56dd6324e313/frameset.htm
    2. CRM->Basic functions->Worklists->Define Alert Inbox and Workflow Inbox->Define Object-Specific Navigation
    => here i am not sure if need to add entry, if yes, which entry ?
    3.  need to define  ??
      RFC destination
    . Transaction Launcher Logical Systems and URLs 
      and workflow substitute profile Id
    Thanks in advance for your help.
    Best Regards,
    Elsa

    I've found a solution.
    I've been told that this problem is occuring
    because the Work Item ID is not being passed correctly to the BOR basedtransaction.
    The solution in my case is:
    (1) Goto SPRO -> Customer Relationship Management -> IC Web Client ->
    Basic Functions -> Transaction Launcher -> Configure Transaction
    Launcher (wizard)
    (2) Give the launch transaction id in the 'Entries' screen. The launch
    transaction id is Z_ACTION_EXECUTE_WORKITEM in my case.
    (3) Keep all the parameters same in the further screens until you reach
    the 'Transaction Parameters' screen
    (4) In this screen, the value currently being passed to Object Key is
    //selectedAUI Workitem/WI_ID. Change this to
    //selectedAUIWFWIAttachments/OBJECT_ID.
    Goto last step and then say 'Complete'.

  • To remove work item from Universal worklist

    Hi,
    Can we remove work item from Universal Worklist by deleting. We don't want to approve or reject them but want to remove from inbox.
    Is there a way for this?
    Regards
    PV

    Hi Parveen,
    check the below note
    check below note
    Note 49545 - Deleting unnecessary work items
    Koti Reddy

  • How to transfer work items from one user's inbox to other user,s inbox(UWL)

    Hello All
    We need to transfer existing  but  open work items from one user's inbox to other user,s inbox(UWL)
    How to go about it?
    These are the items from backend  R3.
    Thanking you
    Rajendra

    Hi Rajendra,
    Usually in R/3 if you want to transfer the workitems to other user , you can just select the workitem and then click on "Forward" button. This will pop-up a box to enter the "User" ID of the other user to whome you want to transfer the Workitem. A Similar button is available in UWL as well.
    So, in UWL when you click on the Workitem, it will should give you a button "Forward" and by clicking on that you should be able to transfer the workitem you the other user.
    I hope this helps you. Let me know if you need any more help.
    Regards,
    Gopal.

  • How to forward a work item from user inbox

    Hello,
    We are trying to find a way to remove work items from a users inbox. the workitem has not been opened
    and also it is possible that the work item is in more than 1 users inbox.
    we want to remove the work item from only the 1 user and leave the work item in the other user's inbox.
    Regards
    Gaurav Maini

    Hi ,
    U can see the workitem of the user by the table SWWUSERWI giving user id.
    select the workitem id.
    Go to the transcation SWIA.
    Forward the workitem to your inbox.
    This will not appear in user inbox anymore
    Regards
    Pranab

  • Work item 000000001881: Work item or task TS20000797 locked for execution

    Hello Gurus I need your help, I'm trying to configure a WF for ECM (Engineering Change Management) but I can't do this work at all it give this error and I don't know what to do... any suggestion?
    Work item 000000001881: Work item or task TS20000797 locked for execution
    Thanks in advance

    Hi,
    I'm trying to configure a WF for ECM (Engineering Change Management)
    While  testing you're getting this error right. 
    Check using the  Same Object key are you testing in another session.
    Regards,
    Surjith

  • How to get selected items from a tree in backing bean without adfbc

    Hi ADF Experts,
    Below is my code for af:tree. My question is how can I get selected Items from the selectionListener (without adf bc) this uses formation of tree from backing bean.
    Using Jdev 11.1.1.7.0
    <af:tree var="node" value="#{pageFlowScope.MerchandizeBean.model}"
                      binding="#{pageFlowScope.MerchandizeBean.treeModel}"     id="tree" immediate="true" autoHeightRows="0"
                           styleClass="AFStretchWidth" rowSelection="multiple"
                           selectionListener="#{pageFlowScope.MerchandizeBean.treeNodeSelection}">
                    <f:facet name="nodeStamp">
                      <af:commandLink text="#{node.classDescription}"
                           actionListener="#{pageFlowScope.MerchandizeBean.createListManyItemForMerchandise}"           id="displayTable" partialSubmit="true">
                      </af:commandLink>
                    </f:facet>
                  </af:tree>
        public void treeNodeSelection(SelectionEvent selectionEvent) {
            // Add event code here...
            RichTree tree = (RichTree)selectionEvent.getSource();
                    TreeModel model = (TreeModel)tree.getValue();
                    //get selected value
    Thanks
    Roy

    Hi,
    in a multi select case, try
    RowKeySet rks = tree.getSelectedRowKeys();
    Iterator iter = rks.iterator();
    while(iterator.hasNext()){
    Object aKey = iterator.next();
    tree. setRowKey(aKey);
    Object rowData ? tree.getRowData();
      .... do something with the data here ...
    Frank

  • Getting multiple items from a Jlist

    hi i am trying to get selected items from a Jlist to print out
    but can only seem to get one item at a time using getSelectedValue()
    when i try and use getSelectedValues().toString(); i get
    the following print out [Ljava.lang.Object;@ed783f68 can anyone show me
    where i am going wrong and tell me why i get that print out
    cheers
    submitdetails.addActionListener(
                                                   new ActionListener() {
                                                           public void actionPerformed( ActionEvent e )
                                                      String data = privilegesList.getSelectedValue().toString();
                                                      Object data2 = privilegesList.getSelectedValues().toString();
                                                      System.out.println(data);
                                                      System.out.println(data2);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    The getSelectedValues(...) method returns and ARRAY of OBJECTS. You have to loop through the array to get each object separately:
    Object[] values = privilegesList.getSelectedValues();
    for (int j = 0; j < values.length; j++)
    System.out.println ( values[j].toString() );

  • Delete Work Item from PO Releaser's Inbox during Workflow

    Hi All
    How can I delete the previous Work Item that was created in the PO Releaser's Inbox if a PO was changed which re-triggered the PO Release workflow but this time to a different PO Releaser.
    The workflow is working correctly, i.e. creating the new release item in the new releaser'd Inbox but not deleting the old Work Item for the previous releaser.
    Any idea on how I can accomplish this?
    Kind Regards
    Utian Goliath

    PLease refer the below stuff................create a task and put the code inside the method.This task should be fisrt step in your workflow.
    User sets doc to Complete from FBV2 , Complete event triggered and workflow triggered.
    Workitem goes to approver .
    Now , the user immediately changes doc from FBV2 , sets it to Complete again and workflow triggered
    workitem goes to the same approver for the same document.
    SAP_WAPI_WORKITEM_TO_OBJECT - Worklist table will giv all parent id's for the object key concatenation of
    com code , doc no and fiscal year.
    SWP_WORKFLOW_INSTANCE_DELETE - Pass the parent id and will delete the entire instance but not
    parent workitem id.
    SAP_WAPI_WORKITEM_DELETE - Pass parent id everything will be deleted .( Check_final_state = blank ).
    No trace found in SWI14 and SWI2_FREQ.
    To remove the previous workitem , create a method in the begining of the workflow , use F.M.
    SAP_WAPI_WORKITEM_TO_OBJECT to get the workflow id's and then
    SWP_WORKFLOW_INSTANCE_DELETE or SAP_WAPI_WORKITEM_DELETE to delete the previous instance.
    data : lt_worklist type table of SWR_WIHDR,
           lw_worklist type SWR_WIHDR,
           lv_objkey type SWOTOBJID-OBJKEY,
           lv_return type sy-subrc,
           lv_id type SWP_HEADER-WF_ID.
    concatenate object-key-sourcecompanycode object-key-documentn
    object-key-fiscalyear into lv_objkey.
    CALL FUNCTION 'SAP_WAPI_WORKITEMS_TO_OBJECT'
    EXPORTING
      OBJECT_POR                     =
       OBJTYPE                        = 'FIPP'
       OBJKEY                          = lv_objkey
      TOP_LEVEL_ITEMS                = 'X'
      SELECTION_STATUS_VARIANT       = 0001
      TIME                           =
      TEXT                           = 'X'
      OUTPUT_ONLY_TOP_LEVEL          = ' '
      LANGUAGE                       = SY-LANGU
      DETERMINE_TASK_FILTER          = 'X'
      REMOVED_OBJECTS                = ' '
    IMPORTING
       RETURN_CODE                    = lv_return
      TABLES
      TASK_FILTER                    =
        WORKLIST                       = lt_worklist
      MESSAGE_LINES                  =
      MESSAGE_STRUCT                 =
       if lt_worklist is not initial.
    loop at lt_worklist into lw_worklist.
      object-instance = 'X'.
    move lw_worklist-wi_id to lv_id.
    CALL FUNCTION 'SWP_WORKFLOW_INSTANCE_DELETE'
      EXPORTING
        WF_ID                         = lv_id
        DO_COMMIT                     = 'X'
    EXCEPTIONS
      WORKFLOW_DOES_NOT_EXIST       = 1
      OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
    ENDIF.
    Second way is to create a fork , and use wait for event step in it with the same event that is triggering the WFL
    In the same branch take a process control to end workflow instance.
    In the second branch carry out normal processing.
    Necessary branch = 1.
    So incase the user triggers the event again, a new instance will be created ,
    and in the previous instance , the first branch will follow ending the
    previous instance and the workitems of other branch will be logically deleted.

  • Problem with executing work item from the inbox

    Hello All,
       I'm able to send mails from R/3 to Outlook along with the attachment to execute the work item directly from the outlook.
    However upon clicking the Exectute work Item.sap file I get an sap gui popup with the description " Not all data for SAP  GUI shortcut is available. System description and GUI start parameter are unknown. Entering the missing data."
    Clicking on the OK button, leads to another window for SAP logon details. After I chose the right system and on Clicking OK, it opens up the logon prompt. Entering the logo info opens up the work item correctly.
    We are on ECC 5.0 with SAP GUI 640 patch level 18 on it. Any suggestions about what am I missing to directly jump into an sap screen provided a session already is open in SAP.
    Thanks and Regards
    Uday

    Hello Uday,
    Sounds like something is wrong in the SAPLogon <i>on the client PC</i>. The system sends out a shortcut, and when it's opened it does not relate to a unique entry in the saplogon. Either it's called differently or you have two entries for the same system with different parameters.
    Hope that helps,
    Mike

  • Exceuting work items from the outlook

    Hello,
    We use the MM release strategy triggering W item which are sent to outlook.
    When we double click on the work item, we receive the pop up for the login (sapgui shortcut-logon(sys id, client, lang,*swnwiex)
    the user id is defaulted but not the password.
    We are in ECC-, sapgui 6.40.
    In the previous version we used the sapmapi which is not anymore available and maintained and we had the possibility to get directly the sap screen (without entering the pwd).
    Is that any solution to this?
    Last question: is that possible to have the work item emails automatically deleted once the work item is executed? Indeed this deseapers from the SAP inbox but not from outlook.
    Before asking I performed a search in this formum to avoid to ask the same question but in vain.
    Thanking you in advance for any help
    Kind regarrds
    I have perfomed search in this forum before asking

    Hi,
    As you say the SAP Mapi is no longer supported by SAP. It has been replaced by RSWUWFML2 and this will be replaced by extended notification (see also an article here on SDN about extended notification). These give you the option to execute workitems which you get via a shortcut in your e-mail. The drawback with this is, as you mentioned, the e-mails will not be deleted. Which is logical because there is no direct link between the workitem and the e-mail in SAP.
    Also for the login, you need to give password because of security reasons. If you want to connect directly, I think you would need single sign on.
    If you want the functionality of the mapi replaced you need third party software as mentioned already before. I have seen it I can say it works, but it requires extra software implemented locally, local configuration and it is quite expensive.
    Regards,
    Martin

  • Migration of Work Items from one system to another

    Dear Experts,
    We are migrating an application from one system to other and it involves BI, Webdynpro, BSP and workflow. This is mainly a portal application which involves BI as the backend. While migrating the application with the existing data we also require to migrate the open Work items of the Users.
    Can anyone help us in migrating the Work Items or the possibilities of doing the same.
    Useful suggestions will be appreciated.
    Thanks,
    Prabhakar M

    Hi All,
    Am opening this thread again.
    Using Transaction SWW_SARA I have Archived the Completed and Cancelled workitems in one Production system(For Ref, P1) and it got stored as a File in the Application Server.
    But while I tried to view the archived workitems via the same Transaction I can see only the header of the Workitem and not the detailed information of the same.
    Is this the only method to view the archived Workitem or any other way is available to view the detailed Information. Also is it possible to transfer the archived file to another Production system and view the workitems?
    Please help me in finding the solution for above scenario.
    Regards,
    Prabhakar

  • Master Table for Work Items from BSP Application

    hello guys,
    just want to ask if there is a master table for work items (and other details) from BSP application?

    Hi,
          Ya its true but i want to connect my customized application to UWL in Enterprise Portal and there after approval i want my workitems to be punched in R/3 system.Is there any source code available,so that my application directly contact UWL in sap enterprise Portal as a link or workitems where user should have an option to approve or reject.
    If u have any idea plz let me know.
    Thanks in Advance
    Regards
    Santosh Saraf

  • Generate a Work Item from a report

    Hi,
    I'm writing a report that needs a Work Item to be generated. It just has to be kinda notification that goes to agent's inbox.
    Could you please let me know the FM that can be used to do this?
    Thanks..

    Hi,
      Try using the function module SWW_WI_START..
    Thanks,
    Naren

Maybe you are looking for

  • Problem accessing hard drive for more than one user at the same time

    Hello all, I recently bought a 2nd generation AirPort Extreeme 802.11n to replace a cheapo wireless router. The main reason I wanted to get the AirPort was so I could attach a USB hard drive which holds iTunes music files Originaly I had a G4 MDD and

  • What is the best system for editing HD in Adobe Premiere CS4?

    I'm a Portuguese video enthusiast since the linear editing times. I've been reading this forum from some days with special interest, cause I want to build a new HD workstation. My video productions are with AVCHD material and Adobe CS4 Master Collect

  • XS Scheduled Job stuck in state "RUNNING"

    Hello guys, I am running HANA Dev Edition on AWS (Rev. 70). There is a .xsjs file which is called every 5 minutes by the xs job scheduler. However after shutdown on Tuesday and startup on Friday the job did not start correctly (?) I am pretty sure th

  • Netware on Qemu

    Attempting to install Netware 6.5 fails because the installation program cannot detect a network card. This is due to the fact that Qemu uses interrupt 9 but, Netware 6.5 will not allow the use of interrupt 9 with the NE2000 driver. I believe that th

  • Using Photoshop 64bits

    I recently upgraded my computer from windows 7 32 bits to win 7 64 bits. I am trying to use Photoshop cs6 64 bits, however I cannot open any files in camare raw (the plugin does not exist). also I cannot update Photoshop (last I tried from update sub