Resubmission of workitem (CAT2)

For the CAT approval process I am using Approval by supervisor standard task , and for the agent determination  I am using CATS approver BADI, due to problem in organization structure there are some org structures which have no supervisor assigned so when the user releases the request for approval after entring the time through CAT2,the workitem get created with no agent assigned, i can see that through CATSDB table. now we have fix the org structure and I want to resubmit the old workitem again to the right supervisor, how can I achieve this in best possible manner?? since there are hundereds  of workitems like that, I prefer to create a program which resubmit all these workitem without agent to the right supervisor, I am thinking of administrator forwarding approach by using the function module, I need to know is that the right approach?
Thanks in Advance

You could probably forward the work items with function module SAP_WAPI_FORWARD_WORKITEM.
Just build a report that goes through the CATSDB table and find the entries with no agent (if possible), then find the approver with the same logic as you have in the BADI that determines the approver, and forward the work item to the correct agent. This could be one approach to your problem.
You could also go through the SAP_WAPI* functions. There might be also some other usable functions.
Manual approach: you list the work items with no agent with the SWI2_ADM1 transaction (not sure if this was the correct one). Then you could execute the agent rules manually with these cases (just press the button for each work item). Anyhow I am not sure if this will work, since I am not familiar how the CATS approver BADI works with the workflow rule. Worth to check unless already done...
Regards,
Karri

Similar Messages

  • Issue with Resubmission in WS12300111

    Hi Experts,
                      In my leave workflow when a request is rejected by the employee I am getting a workitem in my portal "Process Leave Request by Employee", when I resubmit the request system is triggering a new request instead of provcessing the same request, I mean when I take a look at the log its not following the loop after resubmission and I am unable to withdraw the request when it is rejected by the approver.
    The work item "Process Leave Request by Employee" is not getting disappeard in the portal.
    Can anbody suggest how to process the same request and how to cancel the request when rejected.
    Thanks alot.
    Regards.
    Ranganadh.

    Basically, the standard workflow template design itself will have a task saying that when the leave request is rejected by the manager then again it goes to the meployee who triggered the WF i mean initiator. and the task number is 12300116 right?
    Now check t he workflow tempalte design that aftern loop you should have this task inserted
    Secondly
    old workitem that I got for resubmitt is not disappearing from the worklist
    You mean to say that when you resubmit the workitem from the requestor list then it is not disappearing from his list?
    if this is the case then does the application is throughing any error say " Workitem already in status completed" som thing like that
    Ithink the workitem is not getting completed check in the class CL_PT_REQ_WF_PROCESSOR -> ContinueWorkflow() in that the workitem will be getting completed each time when ever you try to execute the request. now chek whether the correct workitem is getting completed or not.

  • Workflow for Cat2 Time approval

    Hi All,
    I am new to workflow, We need to trigger a workflow when employee fills time in Tcode CAT2. Standard workflow  WS40001001 is working fine.
    Here in workitem text it is displaying Approval for 00000000 instead it should display (Approval for Personal no and Name) which is assigned in standard task.
    Example:
    This how we wanted:
    Approval for 00001234 SAPDEMO
    This is was happening:
    Approval for 00000000
    Work item text : Approval for &TS_PERNR& &TS_ENAME& and standard task is TS20000460.
    Kindly let me have some idea on this
    Thanks in advance
    Arun .

    Hi linganna,
    This is standard task and it is binding when we assign the task.
    And i am using org unit and made it as general task. Would i need to assign org unit yo task,
    how to bind wokflow container element to Business object CATS?
    Work item text  I CHANGED : Approval for &TS_PERNR& &TS_ENAME& and standard task is TS20000460.
    I DEBUGED AND FOUND THAT IN FM CATS_WF_APPROVAL VALUES ARE NOT POPULATING FOR PERNR AND ENAME
    WHAT WOULD BE THE PROBLEM HERE?
      SWC_GET_ELEMENT CONT_IMP 'TS_PERNR' PERNR_WF.
      SWC_GET_ELEMENT CONT_IMP 'TS_ENAME' ENAME.
      SWC_GET_ELEMENT CONT_IMP 'TS_DATE'  DATE.
      SWC_GET_ELEMENT CONT_IMP 'TS_TIME'  TIME.
      SWC_GET_ELEMENT CONT_IMP 'TS_UNAME' UNAME.
    Regards,
    Arun.
    Edited by: Arun Kumaran on May 31, 2010 1:14 PM
    Edited by: Arun Kumaran on May 31, 2010 1:36 PM

  • Problem in Workflow for Cat2 time approval

    Hi All,
    I am new to workflow, We need to trigger a workflow when employee fills time in Tcode CAT2. Standard workflow  WS40001001 is working fine.
    Here in workitem text it is displaying Approval for 00000000 instead it should display (Approval for Personal no and Name) which is assigned in standard task.Kindly let me have some idea on this
    Thanks in advance
    Arun Kumaran.
    Edited by: Arun Kumaran on May 28, 2010 11:37 AM
    Edited by: Arun Kumaran on May 31, 2010 6:29 AM

    Hi linganna,
    This is standard task and it is binding when we assign the task.
    And i am using org unit and made it as general task. Would i need to assign org unit yo task,
    how to bind wokflow container element to Business object CATS?
    Work item text  I CHANGED : Approval for &TS_PERNR& &TS_ENAME& and standard task is TS20000460.
    I DEBUGED AND FOUND THAT IN FM CATS_WF_APPROVAL VALUES ARE NOT POPULATING FOR PERNR AND ENAME
    WHAT WOULD BE THE PROBLEM HERE?
      SWC_GET_ELEMENT CONT_IMP 'TS_PERNR' PERNR_WF.
      SWC_GET_ELEMENT CONT_IMP 'TS_ENAME' ENAME.
      SWC_GET_ELEMENT CONT_IMP 'TS_DATE'  DATE.
      SWC_GET_ELEMENT CONT_IMP 'TS_TIME'  TIME.
      SWC_GET_ELEMENT CONT_IMP 'TS_UNAME' UNAME.
    Regards,
    Arun.
    Edited by: Arun Kumaran on May 31, 2010 1:14 PM
    Edited by: Arun Kumaran on May 31, 2010 1:36 PM

  • Error while opening a workitem in UWL

    Dear All,
    There is a leave application in webdynpro abap and workflow, in which when the initiator apply for the leave the request is generated and the work item is send to the UWL but when the approver clicks on the workitem id in his UWL it is not opening and just getting deleted from the worklist.
    Any help will be highly appreciated
    Thanks
    Mustafa

    Dear Koti,
    It is giving the same error in the backend also.when i click the workitem it is giving the "error while executing the workflow Close Window".
    Is there a problem with the workflow template or the UWL Configuration.
    Regards
    Mustafa

  • Rule with SELFITEM-SENDTASKDESCRITION task's workitem goes error

    Dear all,
               I have created a workflow with an activity step that uses business object SELFITEM and method SENDTASKDESCRIPTION  with rule AC00000168.
              On executing the WF, the workitem successfully goes to right agent.
              But, when the agent executes the workitem, it goes to error state.
              In the workflow log, I get the error message as "Exception occurred Error handling for work item 000000968991 eeom division 09.07.2010 - 11:28:52 " with exception 0,error type 1 and message 0.
              Following is binding details between workflow and task container.
    &MANAGER&      ->     &ADDRESSSTRINGS&
    &_ATTACH_OBJECTS&      ->     &ATTACHMENTS&
    &ATTENDANCEINSTANCE&     ->   &ATTENDANCE&
    &EXPRESS&     ->     &EXPRESS&
    &LANGUAGE& ->     &LANGUAGE&
    &LINEWIDTH&     ->     &LINEWIDTH&
    &TYPEID&     ->     &TYPEID&
    &SELFITEM&     ->     &_WI_OBJECT_ID&
            In the above binding parameter,MANAGER. is a workflow container of ABAP data dictionary type WFSYST-AGENT where the rule's agent is collected.
    Please suggest why the work item at agent inbox on execution goes error for which I will be grateful.
    Thanks and regards,
    S.Suresh

    Hello Rick !
            Thank you so much for your fruitful solution.
            Also, I am deeply sorry for delayed reply.
           I used the function module 'SWX_GET_MANAGER' in the custom method  as you suggested.
    BEGIN_METHOD FINDMANAGER CHANGING CONTAINER.
    DATA:
          EXTENDEDOBJECTID TYPE OBJEC-REALO,
          addresstype like soxna-type,
          RECIPIENTADDRESS TYPE SOXNA-FULLNAME.
    DATA:
          ac_container like swcont occurs 0 with
          addressstrings like soxna-fullname occu
      SWC_GET_ELEMENT CONTAINER 'ExtendedObjectID
    addresstype = 'G'.
    ac_container-element = 'OBJID'.
    ac_container-tab_index = '000001'.
    ac_container-elemlength = '008'.
    ac_container-type = 'N'.
    ac_container-value = EXTENDEDOBJECTID.
    append ac_container.
    ac_container-element = 'OTYPE'.
    ac_container-tab_index = '000001'.
    ac_container-elemlength = '002'.
    ac_container-type = 'C'.
    ac_container-value = 'P '.
    append ac_container.
      CALL FUNCTION 'SWX_GET_MANAGER'
        TABLES
          ACTOR_TAB = addressstrings
          AC_CONTAINER = ac_container
        EXCEPTIONS
          NOBODY_FOUND = 01
          OTHERS = 02.
      CASE SY-SUBRC.
       WHEN 0.            " OK
       WHEN 01.    " to be implemented
        WHEN OTHERS.       " to be implemented
      ENDCASE.
      loop at addressstrings.
      if addressstrings(2) = 'P '.
      delete addressstrings.
      endif.
      endloop.
    move addressstrings to recipientaddress.
      SWC_SET_ELEMENT CONTAINER 'RecipientAddress' RECIPIENTADDRESS.
    END_METHOD.
    Therafter, the values accumulated at RECIPIENTADDRESS is passed to the workflow container(SOXNA-FULLNAME) of SENDMAIL step.
    Also, I thank every one who contributed fruitful suggestions to solve my problem.
    Thanks and regards,
    S.Suresh

  • Workitems are not getting displayed in UWL

    Hi All,
             We have deployed ESS/MSS Business packages in our system. Also configured UWL to display workitems in portal. But when testing leave request, leave request workitems are not getting displayed in portal as UWL. Any help on this will be appreciated.
    Thanks,
    Krish.

    Hello,
    have created some new users and done with the leave request, it comes to backend inbox, but not
    visible in portal. Re-configured UWL, but still the task not coming( leave request). For other users it is > coming?
    Where have you created these users? Many times it is not enough to create new users in a backend system. You will have to create them in the data source which is used by the UME of your portal or to map this data source with the system where you have created your new users
    You can see what data source your portal is using by going to
    Portal --> System Administration --> System Configuration --> UME Configuration --> Data Source
    If this Data Source doesn´t contain your new users, then UWL wouldn´t be able to show their items.
    Here you can check if your user is contained in the data source:
    Portal --> User Administration --> choose the right data source --> put in the username --> search
    Please check if your users are correctly created.
    Regards,
    Iris

  • Cat2 badis and implicit and explicit "Z " enhancement

    Hi
    We have many badis and enhancements in cat2 we can find the badi in se24 CL_EXITHANDLER by setting break point in GET_INSTANCE but how to find the “Z “ Implicit enhancements for cat2.
    Thanks,

    Hi Swaminath ,
    Go through the following Blogs  on enhancement Frame work. It will help u in understanding This concept in detail.
    /people/thomas.weiss/blog/2007/12/12/the-three-use-cases-of-the-enhancement-and-switch-framework--part-1
    /people/thomas.weiss/blog/2008/01/07/the-three-use-cases-of-the-enhancement-and-switch-framework--part-2
    /people/thomas.weiss/blog/2008/01/14/the-three-use-cases-of-the-enhancement-and-switch-framework--part-3
    /people/thomas.weiss/blog/2008/01/23/the-three-use-cases-of-the-enhancement-and-switch-framework--part-4-the-many-ways-to-enhance-a-sap-application-with-the-new-framework
    /people/thomas.weiss/blog/2008/02/04/the-three-use-cases-of-the-enhancement-and-switch-framework--part-5-the-basics-about-switching
    /people/thomas.weiss/blog/2008/02/29/second-try-the-three-use-cases-of-the-enhancement-and-switch-framework--part-6-the-re-integration-of-the-sap-industry-solutions-into-the-erp-core
    /people/thomas.weiss/blog/2008/03/11/the-three-use-cases-of-the-enhancement-and-switch-framework-part-7--the-enhancement-package-strategy-of-sap-erp-60
    /people/thomas.weiss/blog/2009/01/15/how-to-get-the-most-from-the-enhancement-and-switch-framework-as-a-customer-or-partner--tips-from-the-experts
    Regards,
    Eswar

  • Reg : Advancing With Workitems

    Hi All,
    I am working in 4.6 with Purchase Requisition Workflow (Overall Release - BUS2105).
    The requirement is when the user rejects & saves the PR in ME54 I'm supposed to give a pop-up screen to enter rejection text.
    I tried various options like using SOFM-COMPOSE, calling text editor function modules via methods/reports/transaction codes etc.
    But everytime the user rejects the PR and saves it, he is taken to his inbox where that new workitem is present. Then he has to execute it seperately. I don't want the user to go back to his inbox to execute the workitem again. I want to advance with the workitems without going back to inbox.
    How can i achieve this?
    Thanks & Regards,
    Raj

    why dont you call the text editor FM in some of the userexits or badi before save.
    There check for the condition..if PR is rejected....then call the FM and get the rejection reason

  • How to get workitem ID parameter in BSP application in UWL?

    Hello All,
    okay, it's been a long day and i stuck with this seemingly simple problem - how to get a workitem id in my BSP application when calling from UWL.
    Points are guaranteed to all who post an answer.
    i got MVC BSP iview is configured to be called for my task in SWFVISU, all re-registered and seem fine. Correct BSP is being called when i execute the workitem from UWL, but wi_id is not passed there.
    What am i missing?
    Thanks!

    Hi Serge
    How you solved it .I have same issue  please let me know.
    Thanks

  • Workitem remains in inbox even after execution

    Hi all,
    I am facing a problem with the removal of workitem from the inbox. I have searched the net and found that this problem has been faced before by people but I could not get any solution to this.
    I have a workitem in the inbox. I click it and execute it. After completion when I return to the inbox, the workitem is still displayed there. A single refresh of the inbox also doesn't work. I need to log off and log on again to the portal in order to see the refreshed list in my inbox.
    But the workitem doesn't get removed from the inbox as soon as it is completed. I can even click the same workitem second time and see the same screen again - but this is not reauired as the work is already done.
    It seems to be due to some time delay between the synchronization of the ESS and the database.
    If anyone has solved this issue before please tell me how I can remove the workitem from my UWL inbox as soon as it is completed.
    Points are sure to be awarded for good answers.

    Hi Sanghamitra,
    Please apply the note 1501377.
    Thanks!
    Swarnaprakash

  • Viewing the users inbox for pending workitems..

    Hi all,
    I have a situation where in the management has asked me to look into a person's business workplace and report the number of pending workitems.Any suggestions...
    Regards,
    Sukumar.

    Hi Sukumar
    You can use transaction code SWI5. Here what you need to give is user number. After that you have to select workitem that has to be processed. Choose US as user object. then execute it. after execution of it you can see the all workitem that user's in-box contains in technical form.
    After that you can report as you have to report. You can also check logs of all workitem.
    Thanks
    Pritam

  • Class or function module to create a resubmission

    Hallo,
    can anyone give me an example for generate a resubmission via ABAP-Code? I'll develop a WebDynpro application for contracting and when I save I'll generate automatical the resubmission.
    thank you!
    Greetings
    Martin

    I've got the answer:
    Resubmissions can create in RE(-FX) with the strandard BAPIs BAPI_RE_XX_CHANGE or BAPI_RE_XX_CREATE. XX means BU-Buildings, BE-Business Entity and so on.
    That's all.

  • Any Function modules or tables to find workitem in ready status for user

    Hi all,
    Is there any way i can find the possible workitems which is in ready state in a users inbox.
    Thanks,
    Neslin.

    Hi Neslin
    You can use this FM RH_LOCAL_INBOX_GET which gives all the details of the work item for the particulaer user. In this FM goto table tab WI_LIST willl give all the details WI_LIST-WI_STAT give the status of the work item.
    Regards
    vijay

  • Workitem should be in  IC Agent Inbox but not in SBWP

    Hi,
         I have a scenario in which i am creating a workitem through program. This is creating a workitem and sending a mail to the user through ERMS. Now, this workitem is present both in the agent inbox (i.e ERMS) and also in SBWP.
    Once the ERMS rule is executed a mail is sent to the user. But this mail is present at both agents inbox and in SBWP. If the user clicks it in sbwp , the workitem refreshs and disappear in SBWP and it is setting the status completed in the ERMS. I need this to be seen only in agents inbox.
    Kindly can you suggest
    Thanks

    Hi,
      What workflow you are using.
    I think the the workitem status completed in ERMS because of some terminating event trigger after you click on SBWP.

Maybe you are looking for