2023 May 18 7:20 AM
Hi all,
I have a validation requirement. I have created a Z Table. The IDs maintained in the Z Table should not have the authorization to make changes in the "Requirement Quantity" and also should not be able to delete any line item and if they do they should get the error message "You are not authorized to make any changes" Else those IDs can do other changes. Please guide me on this.
2023 May 18 8:13 AM
uzair_1234
You can create an authorization object with the fields that you want to restrict access to 1. Then you can assign this authorization object to the Z table in customizing 2.
You can also use table events to check if the user has the required authorization before allowing them to make changes. You can use the authorization group in the table maintenance generator to restrict access 3.
I hope this helps. Let me know if you have any other questions.
2023 May 18 7:03 PM
Can you clarify the following points
NB: You should use the authorization concept to handle this kind of requirement (create an authorization object, use AUTHORITY-CHECK statement in the program, manage the user authorization roles. Not create another customer table?
2023 May 23 9:40 AM
2023 May 23 10:53 AM
Actually it's an enhancement COR1 where i want to add the code for the above requirement. Please guide for the same.
2023 May 24 5:11 PM
AFAIK, COR1 is a transaction not an Enhancement?
For this transaction, you could look at
Nevertheless you should use the authorization concept and not a customer table, this is IMHO bad design.