Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning authorization to status in cFolder status profile

Former Member
0 Kudos
123

Working with cFolders, I've written a function module that creates a status profile with statuses for use in a collaboration. The status profile, several statuses and status transitions are being successfully created. I am adding user group and role authorizations to the status profile using cl_cfx_api_authorization->set_authorization.

I am trying to add user group and role authorizations to a couple of the statuses as well but that isn't working for me. I'm trying the same set_authorization call as above but I get an error back saying the object doesn't exist. The message gives me the ID for the status which does exist in the cfs_status table. In stepping though the code it doesn't appear that this method works with statues. I have used it successfully with collaborations, work areas, and status profiles that I've created.

Does anyone know how to add user group and role authorizations to a status? Or could someone point me to some documentation? I'm having trouble finding anything on the cFolder related classes and function modules.

Thanks

Terry

2 REPLIES 2

Former Member
0 Kudos
79

Answering my own question in case anyone is interested, according to SAP at this time there is no api call for adding authorizations to the status or status transitions of a status profile. This has to be done through the user interface.

Terry

0 Kudos
79

Hello Everyone,

The statement that,

According to SAP at this time there is no api call for adding authorizations to the status or status transitions of a status profile.  This has to be done through the user interface.

still holds good? Has anyone tried setting authorizations for cFolder?

Ganapathi