cancel
Showing results for 
Search instead for 
Did you mean: 

Latest system status set by user on ECR/ECO

Former Member
0 Kudos

In the transaction CC01/02, when the user tries to set the system status, I have to do some validation on a custom table whether the current user is allowed to set the status or not. To achieve this, I tried using user exit PCCD0003  ECM: Check when setting a system status. But I have no field that shows the latest status set by the user. When I try reading the status by calling a FM "STATUS_READ_MULTI", it only reads the earlier saved status. Could anyone suggest any solution for this.


Thanks in advance for your valuable time.

Anand.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I have at last resolved by doing this in a different approach. I have seen documentation on digital signature and even tried to check status values and do some validation before a user tries to set this status. So all these looked little complicated so the approach what i followed is as below:

Got the ucomm value from the button clicked by the user.

Maintained user mapping with ucomm value in custom table

Validate the user in the user exit PCCD0003 and if a record exits, he is allowed to change the status. Else raise a message.

Thanks.

Anand

Ritz
Active Contributor
0 Kudos

Great logic, Thanks a lot for sharing it with group.

Thanks

Ritesh

Answers (1)

Answers (1)

Ritz
Active Contributor
0 Kudos

Anand Pippalla,

FM you are using can read only old status , what you are doing is you need something bwhich tells you its a status chage before its comitted.

seems you need to build a logic based upon user roles & authorization. check while validating the authorization for CC01 or CC02 if you find a exit or a enhancement spot where you can put a code to also validate in your Z table.

THanks

Ritesh

Former Member
0 Kudos

Hi Ritesh,

The user exit which i mentioned was the only one that gets triggered immediately when the user tries to select a new status. I have tried to check if some variable holds the new value that is going to be set on ECR/ECO, but didn't find one.

And for your suggestion on using user auth/roles - I have gone through various documentations, which depicted that the user authorization and role checking is not being supported by SAP in the ECR / ECO process. So I tried writing my code in the user exit PCCD0003, which gets triggered the right time i want to do the check.

The only missing thing is the new status that is selected by the user which am trying to ask the help on.

Regards,
Anand

Ritz
Active Contributor
0 Kudos

Anand Pippalla,

Well as user is selecting one of available status it must be getting stored in some varianble.

A through debug can only help you.

Thanks

Ritesh