cancel
Showing results for 
Search instead for 
Did you mean: 

How to access and modify the W/F Container via ABAP ?

former_member184067
Active Contributor
0 Kudos

hi all,

do know how to access and modify workflow container from ABAP program ?

can we do it or not ?

please help

regars

Accepted Solutions (0)

Answers (1)

Answers (1)

pokrakam
Active Contributor
0 Kudos

Hello Eddhie,

Use function modules SAP_WAPI_READ_CONTAINER and SAP_WAPI_WRITE_CONTAINER.

SAP_WAPI* FM's are supported by SAP for customer use. Have a look through them, there are quite a few useful ones.

Have fun,

Mike

former_member184067
Active Contributor
0 Kudos

hi Mike,

thanks for the reply.

about function modul SAP_WAPI_READ_CONTAINER and SAP_WAPI_WRITE_CONTAINER, there is parameter WORKITEM_ID in both function modul.

if i used these function moduls, what value that i need to transfer for paramter WORKITEM_ID ? is it the work item id that generated for each time work flow run after triggered or else ?

if it is the work item id that generated each time work flow run after triggered, how can i get that value ?

please help n ...ummm sory if my english is bad

regards

pokrakam
Active Contributor
0 Kudos

Yes, every workflow that runs has an ID as well as every step/task in the flow. I asusmed you know which workflow's container you want to acces.

If you don't know the WF id, you can use SAP_WAPI_WORKITEMS_TO_OBJECT (I think) to retrieve them by business object.

former_member184067
Active Contributor
0 Kudos

hi Mike,

the function modul SAP_WAPI_WORKITEMS_TO_OBJECT can't be used for getting WF ID

is there any way to get WF ID ?

but thanks for you reply before, the function modul to get and modify container works well. i give some point for that

regards