cancel
Showing results for 
Search instead for 
Did you mean: 

Testing workflow

Former Member
0 Kudos

Hi Experts,

I want to test my workflow. In how many methods we can test the workflow? And what are the different transactions we can use for it?

Regards

G.s.naidu

Accepted Solutions (1)

Accepted Solutions (1)

saumya_govil
Active Contributor
0 Kudos

Hi G.s.naidu,

Check if this [link|] answers your query.

Regards,

Saumya

Former Member
0 Kudos

Hi Saumya,

Thank you for the prompt response. I have started testing my workflow in swus transaction

I have given template ID and executed. " task started under workitem ID 123345 current status in process".

If I clicked on workflow log in details message is workflow created.

In graphic workflow started line is in green color ( strting line).

Status is error.

What does it mean?

May I know how can we know about our workflow whether its working fine or not?

If possible can I communicate you? If you don't mind please

Thanks

G.s.naidu

saumya_govil
Active Contributor
0 Kudos

Hi G.S.Naidu,

When the state of the workflow is set to errror, please go to the workflow log in 'List with technical details' mode (cube button).

Select the step that is in error and open the 'Step History' tab.

Here you would come to know the exact error that is being encountered.

Please quote this error so that I could give an appropriate solution.

Regards,

Saumya

vijy_mukunthan
Active Contributor
0 Kudos

Hi G.s.naidu

Its means your workflow has got error. Check the error in detail history. Act accordingly.

Regards

vijay

Former Member
0 Kudos

Hi Saumya,

I couldn't find step history tab when I clicked on list with technical details. I'm using 4.6c version

Thanks

G.S.Naidu

saumya_govil
Active Contributor
0 Kudos

Hi G.S.Naidu,

This tab is present in version 6.0, not sure at 4.6

Check for other tabs for details of the error being encountered.

Go to the step that is in error and check what caused the error.

For backtracking you can also check the step before the erronous step also.

Regards,

Saumya

Former Member
0 Kudos

Hi Saumya,

I got the error description. 0000000003 role 'role id': No agent found

But I know how to get the agent. In the report when I execute it I have to give some screen inputs . Those inputs will be the agents for this workflow. But when I test my worflow in swus I can't give those inputs. How to test it with all these.

If possible give me any other communicator chat ID of you if you don;t mind please.

Thanks

G.S.Naidu

saumya_govil
Active Contributor
0 Kudos

Hi G.S.Naidu,

Try to directly test run the workflow from SWDD t-code. If the agents are passed to some workflow container element then do that while executing the workflow.

Also you can try making the task as general task to avoid agent error.

I guess it would not be very helpful communicating through any web chat coz I hardly access them.

Anyways, I would be glad to help you through SDN.

Do let me know if you face further issues.

Regards,

Saumya

Former Member
0 Kudos

Hi Saumya,

I have executed the workflow directly in swdd. But again its taking me to swus transaction. HOw can I know which agents are passing to which container while direct execution? Is there any way to debug workflow while execution? How?

Thanks

G.s.naidu

Former Member
0 Kudos

Hi,

Once you execute the Workflow from SWDD, go to wrkflow log, in that go to the view workflow agents tab. In this tab you can get all the agent to whom the wf was assigned.

regards,

Milan Thaker.

vijy_mukunthan
Active Contributor
0 Kudos

Hi NAIDU

For debugging the workflow go the method of your BOR. write a inifite loop like following code

Data : exit type c.
do.
if exit = 'X'.
exit.
endif.
enddo.

Then execute the workflow when the workflow reaches the method which consist the inifinte loop. Now goto SM50 t-code select the user has WF-BATCH in the list goto progrom/session>program>debugging.

Do the debugging the check all the necessary container is getting filled.

Regards

vijay

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can test the workflow using transaction SWUD.

Once you execute the transaction (the event for which you triggering workflow. Eg. Material Create)

1) Go to transaction SWUD

2) Enter the Task Type: WS and under Task enter the workflow template number (only numeric part of it)

3) Click on u2018Test Environmentu2019 button

4) In the next screen, you can select the step based on what you want to test

5) When you select any of the steps, you will get the screen having list of work items, sort the column of work item and select the latest work item

6) Once work item is created click on Log button where you can see workflow log.

By following the above steps, you can test your workflow.

Hope this helps you.

Regards,

Deepa Kulkarni