Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Security in Match Codes

Former Member
0 Likes
836

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
792

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

6 REPLIES 6
Read only

Former Member
0 Likes
792

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,

Read only

0 Likes
792

Yes I meant search helps, but the ones I want to restrict are standar ones, thats my problem.

Thanks

Read only

0 Likes
792

Hi Federico,

Could you please give one example scenario?

Regards,

Lijo Joseph

Read only

Former Member
0 Likes
793

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

Read only

0 Likes
792

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

Read only

0 Likes
792

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