2023 May 09 6:02 AM
Hi,
I have made a ZTable where the entries maintained should not have authorization to make any changes in the T-Code ZCOR6N. Whenever the user will make changes and tries to save, "You have no authorization to make any changes", this message should pop up. Can anyone please guide me on how to put the validation or which specific enhancement or BADI should I search so that I can add the code.
2023 May 09 6:48 AM
For standard transaction COR06n (and associated variant transactions) check
2023 May 09 6:43 AM
ZCOR6N is a customer transaction, so we cannot help. Is this just a z-transaction calling same program than COR6N?
2023 May 09 6:46 AM
To implement this validation in T-Code ZCOR6N, you can use an authorization check using the Function Module "AUTHORITY_CHECK_TCODE". Here are the steps to implement this validation:
Identify the user roles that should not have authorization to make changes in T-Code ZCOR6N.
Create a custom authorization object and assign it to these roles.
Implement the authorization check using the Function Module "AUTHORITY_CHECK_TCODE" in a user exit, BADI or enhancement spot in T-Code ZCOR6N.
In the authorization check code, call the Function Module "AUTHORITY_CHECK_TCODE" and pass the T-Code and the user ID as parameters.
If the user does not have authorization to execute the T-Code, display the error message "You have no authorization to make any changes" using the Function Module "MESSAGE".
You can implement this validation using a user exit (SMOD), BADI or enhancement spot, depending on your specific requirements and the feasibility of each option.
Regards,
Rachel Gomez
2023 May 09 6:48 AM
For standard transaction COR06n (and associated variant transactions) check
2023 May 09 9:49 AM
2023 May 18 6:13 AM
Thanks for the help everyone. This particular issue was solved.