on 02-27-2008 5:50 PM
Hi gurus,
I have a problem using function CFX_API_STATUS_PROFILE_ASSIGN.
This is my scenario:
I want to assign a status schema to an area during area automatic creation.
I am in BADI BBP_CFOLDER_BADI method COL_WORKAREA_CREATE_POST, SRM 6.0.
The user (bidder that create a response to a Bid Invitaion) that performs this operation haven't administration auhtorization in cFolder, so the above function returns an error.
How I could move around this limitation?
Is There a work around in order to assign a status profile to an area without having administrator authorization?
Thanks,
Regards,
Angelo.
Have you tried with an RFC ?
Users RFC usually have all permission.
You can also use methods to assign authorization:
call method area->if_aco_common~get_authorization
receiving
rr_authorization = auth.
call method auth->set_authority_for_user
exporting
iv_user_id = auth_user
iv_activity = cl_aco_constants=>sc_authorization_own
exceptions
not_authorized = 1
change_forbidden = 2
others = 3.
I'm working in the same area. Have you read my post about authorization in cFolders. Could you please help me?
Regards
Leonardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Goood!
I solved the problem using an RFC call to function.
Thanks.
Leonardo,
I read your post..
I'm afraid i will meet the same problem because I have a similar scenario.
When I will deal with it, I will compare wih you.
Another issue:
When I change status to an object i need to Know the status id in order to use CFX_API_OBJECT_STATUS_CHANGE function,
but i can't find no function to retrieve status ids.
I know the name of status (its meaning) but no the id.
I can use CFX_API_OBJECT_STATUS_GET function to Know possible target status but i have more than one status...
Any suggestion?
Can I save the status id in a dictionary table with match 'status id - status name' ? Are they always the same?
regards,
Angelo.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.