difference between checking Objects in SU24 and in ABAP code
What is the difference between objects checked in SU24 and the objects checked in ABAP Code.
I think if objects are even checked to No in SU24 and they are in ABAP code then user is able is able to execute that object, is this correct?
and vice versa, if objects are checked to yes in su24 and not in the ABAP code then user wont be able to excute? is this correct
or what is the purpose of maintaing objects both in SU24 and in ABAP Code.
Sabyasachi Rudra replied
To your Q.
what will happen if assign a user a tcode for ex: SM30 and i maintain all field values in ABAP code (AUTHORITY-CHECK) and did not maintain any thing in SU24. will the user be able to execute it with out any problems or will he get an authorization error.
If you've hard coded the authorization object with all the field values in the program for a particular txn then the user will be able to execute it without any hassle only if the user's profile also contains the relevant authorization which is contained in the program.