03-17-2008 10:51 PM
Hi All,
We have a custom HR tcode which needs to have the same security as the standard HR tcodes (PA20 or PA30). When we set the Authorization Profile field to a structural authorization for P_ORGINCON under the AUTHORITY-CHECK statement, all fields are validated correctly but the structural authorizations do not real act as they do for standard tcodes.
Is there a way we can force the context sensitive structural authorization on the custom transactions?
Thanks,
Jay
03-17-2008 11:19 PM
Use SU24 enter T-Code PA20 & PA30 and excute. This will list all the Auth object. Ensure same are listed in Custom TCode.
Cheers
Shaji
03-18-2008 10:50 AM
Hi,
I'm no developer so I stand to be corrected on this one - hope it helps though.....
Firstly have you maintained all the switches/settings required for the context solution? If you are not sure please refer to the link below:
In order to make sure you include the structural auth checks I would take a look at the methods for the following two classes CL_EXM_IM_HRBAS00_STRUAUTH & CL_EXM_IM_HRBAS00_GET_PROFL. These relate to the BAdI's for structural auth checks.
There is some code that could assist your developers with including the structural auth checks.
Regards