Skip to Content
-1

Question on work item forward

Hi Experts,

I know we can use function module SAP_WAPI_FORWARD_WORKITEM' to forward work item from one user to another. How can we check if the work item can be forwarded in test mode. Just for simulation I want to check if the work item can be forwarded.

Thanks,

rg

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Jun 19, 2017 at 10:04 AM
    -1

    Hi,

    In the FM SAP_WAPI_FORWARD_WORKITEM don't provide import parameter DO_COMMIT any value or call any Commit statement.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 16, 2017 at 07:28 AM

    Hi Ramya,

    How can we check if the work item can be forwarded in test mode. Just for simulation I want to check if the work item can be forwarded.

    You have to perform the following validations to check if you can forward a work item or not

    1. First,Check if the work item type is W or not, this you can get from SWWWIHEAD.
    2. Secondly, Check if the work item parent is completed or not. I mean you have to check the status of the top work item id which you can get it from SWWWIHEAD. ( <> ERROR & Completed)
    3. Check the status of the work item which you want to forward same as step 2. ( User provided work item ID)
    4. Check the if user is active or not in the system to which you want to forward and it must be a Dialog User.

    If all the above conditions are satisfied then the work item can be forwarded.

    The above conditions I meant in general cases. However more validations can be possible based on case to case.

    Thanks, Pavan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 16, 2017 at 07:38 AM
    -1

    Try via SWIA tcode.

    -Sowmya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2017 at 10:16 AM
    -1

    Hi Ramya,

    1) Go to SWU3 -> Extras - > Start Verification Workflow

    2) Go to SBWP -> Select First workitem ( with title "First step in Workflow verification" )

    3) Click on "Display Workflow Log" (8th Icon above workitems)

    It will take you to Workflow log. Now click on "List with Technical Details" (Internal Table Icon)

    4) Expand the list and select the last step with Dialog and notedown that Workitem number.

    5) Go to SWIA -> Give that Workitem number and execute

    6) select that workitem and click on "Administrator Forward. (6th Icon from left)

    7) Give the user name for which you have login access (Or you want to test) (Just user Name)

    8) Login in that user and go to SBWP, you will find that test workitem . (You can also check with SWI5 by providing that user name)

    You can also test from that Function Module by providing the same workitem number as input. But You can't forward the same WI to the Same user twice. Try with either one

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 20, 2017 at 03:42 AM
    -1

    Hi Ramya,

    Please find the below link that will explain step by step process of "How to forward a Workitem in SAP".

    I have attached all the necessary screenshots that will help you or anyone to understand.

    How To forward a workflow in sap

    Add comment
    10|10000 characters needed characters exceeded