on 02-16-2015 9:34 AM
Hello guys,
I am trying to set a step( hard coding ) for a derived role . The step that I want to hardcode is "Complete".
I was looking over the table GRACSTEPT to find out the step for the description "Complete" , but the value is not present there.
Can you help me with another table where I can find this value? Or you can tell me directly the step that correspond to the "Complete" description.
Thank you,
Ovidiu
Problem solved.
I used badi:
BADI_GRAC_ERM_MASTER_TO_DERIVE ,
Which is called exactly after the submit/save when a derived role is created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Complete will happen once you have completed all of the steps.
It's not a specific step you need to enter
For example, if you remove Approval and go through the steps then once you finish the last step and press save Complete will show as the status.
Regards
Colleen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ovidiu
**disclaimer: I am not a developer**
Please do not directly update tables - especially SAP standard as you can never be certain that you have capture all steps that are checked on a role change. Also, when SPs and upgrades happen the table structures could change (ask the ABAP space on that one).
In relation to what you need to achieve, my recommendation is that you look at the Mass Role Update webdynpro in NWBC. You can perform role changes and it provides an options for Methodology whereby you choose to let it continue to the next stage or complete. Put a break point in your code and debug to find out which function module/API (I'm not a developer so whichever bit of code) is used to perform the "Complete" step
Once you do this, call this function module in your custom code instead of a direct update to the table.
This way any other role validation checks or updates will also be performed.
BRM Org Value Maps and activities were designed to overcome people writing direct updates to AGR_1251/1252 tables in the ABAP systems. Let's try to avoid direct table updates here.
Regards
Colleen
P.s. once you discover the function module it'd be great if you could update this thread and share your solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.