Skip to Content
0

Wie bekommen wir den nächsten Schritt in einer WS-Definition

May 14 at 12:39 PM

18

avatar image
Former Member

Hello,

we have a Workflow WS-Definition consisting of 3 single-tasks. For the implementation of a request, we need the information whether the current step is the last one in this Definition. Now we are trying to read the Definition in the tables SWDSTEPS and SWDSMNODES. However, we have note quite undestood how to get the order of the single steps. The node-id is given depending on the order in which teh node is created.

Does anyone knows a funtion module (or similar) who will give you the next step in the Workflow-Definition?

Thanks and regards

Demetrius

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Rob Dielemans May 14 at 01:18 PM
0

Hi,

What is the functional requirement? Sounds a bit strange to do it all with reading the SAP tables.

You can use PFTC for the task en then the where-used button to find out where this task is used in workflows and then with de builder you can instantly determine its place in the workflow model.

Kind regards, Rob Dielemans

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Rob,

we need to get the information at runtime for the current worklfow-instance. So we know the current TS-Task of the open Workitem-Id and now we want know if this Workitem is the last step in the whole WS-Definition. Of course we can code this logic hard, but the WS-Defintion is more like a model which could be extended from our customers. So we have to read it dynamically.

The WF-Definition were started and completed from an external application and this external Application needs this information to implement a logic.

0

Hi could you explain what you're trying to achieve with this. For workitem interaction or reading containers, etc there are many SAP_WAPI function modules.

For reading it from the table you will need to know the workflow, version number and step number of the workitem. Then with tables SWD_LINES you can see what the next step is in the definition and with SWDSSTEPS you can find out if it is a task or something else.

Kind regards, Rob Dielemans

0