cancel
Showing results for 
Search instead for 
Did you mean: 

Executed Step outcome value from the table

Former Member
0 Kudos

Hi,

How to get the Step outcome value from the table for the executed workitem.

Regards,

Rani.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi ,

U can use this fm : SAP_WAPI_GET_WORKITEM_DETAIL

it will return  "WORKITEM_RESULT" which holds the outcome result of executed workitem.

Message was edited by: Anjarikram Diggewadi

Former Member
0 Kudos

Call FM SWL_GET_PROCESS_STEPLIST for the WF ID

The result you are looking for is in field RESULT_TXT of the parameter WFM_STEPLOG. Since it is a Tables parameter, you may need to read through the table for the specific NODE_ID of the step of interest.

surjith_kumar
Active Contributor
0 Kudos

Hi,

can you explain your scenario in detail?

Regards,

Surjith

former_member193382
Active Contributor
0 Kudos

Hi,

Can you brief your requirements.

Regards,

Raj

Former Member
0 Kudos

Hi,

If u see the trasaction SWI6 , IN THat LOG U WILL GET RESULT field . I wnat to knoe . where the value is stored in database. Or Give me the Alternate solution to get the Value.

Regards,

Rani

former_member193382
Active Contributor
0 Kudos

Hi,

Check this function Module.

SAP_WAPI_READ_CONTAINER.

Also you can check the table SWWWIHEAD.

Regards,

Raj

saumya_govil
Active Contributor
0 Kudos

Hi Rani,

For database tables you can refer to tables:

SWWLOGHIST - History of a work item

SWWORGTASK - Assignment of WIs to Org.Units and Tasks

SWWUSERWI - Current Work Items Assigned to a User

SWWWIHEAD - Header Table for all Work Item Types

SWWWIAGENT - Gets agents assigned to a workitem

You can you FMs like SAP_WAPI_GET_WORKITEM_DETAIL, SAP_WAPI_CREATE_WORKLIST as per your requirement.

Hope this helps!

Regards,

Saumya

Former Member
0 Kudos

Hi Raj,

In the Table SWWWIHEAD i can get the status of the workitem . But i want to get the outcome .

For eg :

While designing the step , we have the outcome tab , in that we enter the outcome . So i want know that outcome where is stored in the table.

Regards,

Rani.

Former Member
0 Kudos

Hi Saumya,

In the fm "SAP_WAPI_GET_WORKITEM_DETAIL" .I am getting the return Code not the outcome and also in the table SWWLOGHIST i am getting the Step-history not the outcome .

How to get the outcome of the step value

Regards,

Rani

bpawanchand
Active Contributor
0 Kudos

Check tabel SWD_EDYNP

Former Member
0 Kudos

SWD_EDYNP is a Structure

bpawanchand
Active Contributor
0 Kudos

Sorry , Sorry

Check the FM SWD_GET_WORKFLOW_DEFINITION and the table parameters STEPS you will get the outcome

and in the parameter WFD_TEXT of Tables section

The Values that needed to be passed for the parameter

WFD_HEADER = WS9XXXXXX ACTIVE VERSION NUMBER (0000) and S

ACT_OBJECT_EXT = WS99XXXXX

and execute the outcomes related to the workflow are displayed in the WFD_TEXT table