‎2007 Sep 05 1:02 AM
Dear all,
Is there a way to restrict values in standar match codes? I want some users to be not allowed to see some values.
Any help on this topic will be really appreciated and rewarded
Thanks in advance
‎2007 Sep 05 3:29 AM
Hi Federico,
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
AUTHORITY CHECK OBJECT <object name>
ID <name1> FIELD <f1>
ID <name2> FIELD <f2>
IF SY-SUBRC NE 0.
For Matchcode (which is now called Search help) go to the link
http://help.sap.com/saphelp_nw04s/helpdata/en/c9/83eb02be4c11d1950200a0c929b3c3/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee93446011d189700000e8322d00/content.htm
If it is in a custom program you can do this check in the event AT SELECTION-SCREEN ON VALUE-REQUEST.
Reward points if this helps.
Lijo Joseph
‎2007 Sep 05 3:12 AM
Hi,
Do you mean that " Match code = Search help in Se11 ".
if that you must create your own Search help and specify which fields to be displayed or not using transaction Se11
Thanks,
‎2007 Sep 05 3:14 AM
Yes I meant search helps, but the ones I want to restrict are standar ones, thats my problem.
Thanks
‎2007 Sep 05 3:31 AM
Hi Federico,
Could you please give one example scenario?
Regards,
Lijo Joseph
‎2007 Sep 05 3:29 AM
Hi Federico,
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
AUTHORITY CHECK OBJECT <object name>
ID <name1> FIELD <f1>
ID <name2> FIELD <f2>
IF SY-SUBRC NE 0.
For Matchcode (which is now called Search help) go to the link
http://help.sap.com/saphelp_nw04s/helpdata/en/c9/83eb02be4c11d1950200a0c929b3c3/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee93446011d189700000e8322d00/content.htm
If it is in a custom program you can do this check in the event AT SELECTION-SCREEN ON VALUE-REQUEST.
Reward points if this helps.
Lijo Joseph
‎2007 Sep 05 3:44 AM
Thanks a lot for your help Lijo, the problem with my search help is that it is standar, so I cant add any code there, may be with the authority-check I could get it...
The search field i want to restrict is in trx PT90, field employee number (pernr), so some users just cant view & select employees from 1 to 100 and the rest from 101 to the last one...
Hope my question is clear enough
‎2007 Sep 05 4:28 AM
Dear Federico,
I think we should try with Search Help Exits. Please have a look at the following.
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm
I think our solution is somewhere near
Search Help exit:- HRMC_PREM_EXIT_A
*Reward if useful
Regards,
Lijo Joseph
Message was edited by:
Lijo Vazhappilly