‎2010 Feb 11 6:44 AM
Hi
I need to set password for transaction code(co11n) while entering the command field. Is there any user exit of badi etc..
or any idea
with regards
Anand kumar
‎2010 Feb 11 6:47 AM
‎2010 Feb 11 6:58 AM
Hi
This can only be possible if authorized users can be assigned common role and which in turn is assigned to this tramnsaction.
We cannot have user password for entering into it.
Regards
Gaurav
‎2010 Feb 11 7:04 AM
Hi Anand,
If you have to find out any exit or BADI implementation for the given transaction you can find them using the following steps.
1. Go to se24.
2. Got the method GET_INSTANCE
3. Plaace a breakpoint on the FM.
4. Excecute the respecive transaction.
5. You goto the debug mode, double click on the exit name and find the exit or badi.
Regards,
Amuktha
‎2010 Feb 11 7:10 AM
‎2010 Feb 11 7:09 AM
Hi,
This can be done by Basis team by assigning proper Authorization object to desired role.
Thanks,
Regards,
Mohaiyuddin
‎2010 Feb 11 7:12 AM
Mohaiyuddin
In case this is single user ,used by mutiple department
with regards
Anand kumar
‎2010 Feb 11 7:28 AM
There is very crude way to do it.
Maybe in your case it may be recommended, but I think standard way is to have different users and have roles assigned.
For your case you have to consider Enhancement Section
ENHANCEMENT-SECTION STATUS_0001_01 SPOTS ES_SAPLCORU_S. (Form Status in LCORU_SFS1).
You may also consider implementing Implicit Enhancement in Form Status, Bu Enhancement Section is already available, hence you can use it.
Note : For this you need to have some knowledge of New Enhancement Framework, it's easy and you can find lots of wiki and blogs on SDN to learn it.
In above enhancement section you can write code to check password. Create a Z table and Store encrypted password in it..
You may create seperate Z Utility to maintain password in Z Table. To store encrypted password, you can use FM FIEB_PASSWORD_ENCRYPT and use FM FIEB_PASSWORD_DECRYPT to decrypt the password. Alternatively you may devise your own algorithm to do so..
Call a Z program from above enhancement section to present a screen to enter password, if password does not match exit the application, else proceed.
Thanks,
Regards,
Mohaiyuddin
Regards,
Mohaiyuddin
‎2010 Feb 11 7:39 AM
There is no exit or option to add non-SAP code to the S_TCODE check via the ok-code field.
You can check this in FM AUTH_CHECK_TCODE - it calls the kernel function by the same name which is where the check is. You cannot access it.
The FIEB* function modules are not encryption. They merely scramble the clear text password and the string is reversable so would add more hazard to the system than security. I would not use them!
A more stable and supported approach would be to restrict the access to the transaction and improve authentication via well thought out password rules or single-sign-on.
Cheers,
Julius
‎2010 Feb 11 7:47 AM
Hi Julius,
I agree that best approach would be segregating the users instead of having only one user logging from different department. Hence goes my first comment in previous post.
But I cannot see another way to store custom password in tables - maybe Z table or cluster or persistant object???..
Besides, other than Standard Role assignment technique - only way would be to Enter the transaction and check for password (In case, Client do not agree to have separate users).
Thanks,
Regards,
Mohaiyuddin
‎2010 Feb 11 8:01 AM
> I agree that best approach would be segregating the users instead of having only one user logging from different department. Hence goes my first comment in previous post.
Well spotted --> what the real intention possibly is behind this requirement!
> But I cannot see another way to store custom password in tables - maybe Z table or cluster or persistant object???..
The correct approach is to use a one-way-hash and protect the algorithm for the hashing. That way the password supplied is hashed "encrypted" and only the hashes are compared.
But anyway, there is no enhancement-point or API of any sorts in the tcode check, and there are many many tcodes, reports, FMs, methods, webservices, etc... so there is nothing to use for this "hack"...
Cheers,
Julius
‎2010 Feb 17 9:16 AM
Mates
It is possible to implement Enhancement frame work in ABAP Release 6.40.
with regards
Anand kumar . R
‎2010 Feb 17 10:15 AM
Yeah, but there is no enhancement spot in the c-kernel function AUTH_CHECK_TCODE... so there is nothing to enhance or even modify.
There certainly is nothing to product certify either.
Cheers,
Julius
‎2010 Feb 17 10:31 AM
Hi Julius,
In case that need to be implemented, it has to be at starting of C011N. That is what I suggested in my post above..
There is Enhancement Point available at the beginning of C011N in PBO, I have mentioned include in above post.
Thanks,
Regards,
Mohaiyuddin