0% found this document useful (0 votes)
312 views

Limit Access To MM02 Fields Based On Roles - SCN

The document discusses limiting access to certain fields in transaction MM02 based on user roles. It provides suggestions to use field level authorizations, transaction variants assigned to roles, or using a BADI to restrict fields programmatically based on roles.

Uploaded by

Sudeesh Babu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
312 views

Limit Access To MM02 Fields Based On Roles - SCN

The document discusses limiting access to certain fields in transaction MM02 based on user roles. It provides suggestions to use field level authorizations, transaction variants assigned to roles, or using a BADI to restrict fields programmatically based on roles.

Uploaded by

Sudeesh Babu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

5/27/2016

LimitAccesstoMM02fieldsbasedonroles|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Store

SearchtheCommunity

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

Communications

Actions

7Replies Latestreply:Feb28,20138:14AMbyKarthikaMR

Share

Tweet

Like

KarthikaMR

Feb25,20132:16PM

LimitAccesstoMM02fieldsbasedonroles
ThisquestionisNotAnswered.
HiExperts,

I'vearequirementinwhichsomeoftheMM02fieldsshouldbeeditablefortheusersassignedtoa
particularroleandshouldnotbeeditablefortheusersassignedtoanotherrole.DoI'vetouseGuixt
forthesame?
Couldyoupleaseadvisemeonhowtoproceedfurther.

Thanks,
KarthikaMR

1614Views

AverageUserRating
(0ratings)

vikramMuralidharan Feb25,20133:43PM (inresponsetoKarthikaMR)

Re:LimitAccesstoMM02fieldsbasedonroles
Karthika,

Iftherearefieldlevelauthorizations(forthefieldsinquestion),youcanaskyoursecurityadminstoset
upthesameandassignittoroles.Ifthereisnone,youcanconsidercreatingascreen/transaction
variantforthesameandthenassignittorolesasrequired.

Thanks,
Vikram.M

Like(0)

GurunathKumarDadamu Feb25,20134:17PM (inresponsetovikramMuralidharan)

Re:LimitAccesstoMM02fieldsbasedonroles
Hi,

plzfindthelink http://scn.sap.com/docs/DOC17023.hopemaysolveyourproblem.

Regards,
GurunathKumarD

Like(0)

https://scn.sap.com/thread/3313579

1/3

5/27/2016

LimitAccesstoMM02fieldsbasedonroles|SCN
KarthikaMR Feb26,20138:12AM (inresponsetoGurunathKumarDadamu)

Re:LimitAccesstoMM02fieldsbasedonroles
Hi,

Thanksforyourreply..

Inmyrequirementweneedmanyfieldstobeeditableforaparticularroleandnoneditable
forotherroles.Sofieldlevelauthorizationswillbedifficult.AuthorizationfortheTransaction
hasbeenalreadyprovidedtotheroles.
CanyoupleaseadvisemeifIcanuseGUIXTandassigntotheroles.
IsGUIXTlikechangingMM02screenandreplacewithnewscreenforallroles?

Thanks,
KarthikaMR

Like(0)

SmrutiRanjanMohanty Feb27,20131:08PM (inresponsetoKarthikaMR)

Re:LimitAccesstoMM02fieldsbasedonroles
HiKarthika,

youcanachieveyourrequirementusing"BADI"forMM02.

BADIName:"BADI_MATERIAL_CHECK"

ImplementthisBADIusingSE19Tcode."Example:ZBADI_MATERIAL_CHECK

Method:"CHECK_DATA"doubleclickonthismethodwriteyourrestrictioncode

Example:IamRestrictShotDescriptionfieldforParticularUserandParticularMaterial
type.
User:SMRUTI,MaterialType:ERSA,FERT.

================================================================
METHODif_ex_badi_material_check~check_data.

methodIF_EX_BADI_MATERIAL_CHECK~CHECK_DATA.

DATA:ls_maktTYPEmakt,
ls_textTYPEshort_desc.
CHECKsytcodeEQ'MM02'.
IFsyunameEQ'SMRUTI'AND(wmaramtartEQ'ERSA'ORwmaramtartEQ'FERT').
SELECTSINGLE*
FROMmakt
INTOls_makt
WHEREmatnrEQwmaramatnrAND
sprasEQ'EN'.
READTABLEstextINTOls_textINDEX1.
IFsysubrcEQ0.
IFls_textmaktx<>ls_maktmaktx.
MESSAGE'MaterialDescriptionChangesnotallowforthisUser'TYPE'W'DISPLAYLIKE'E'.
LEAVETOSCREENsydynnr.
ENDIF.
ENDIF.
ENDIF.
endmethod.

So,similarlyyoucanrestrictotherfield'salsoinMM02TcodewithoutanyRoleorGUIXT
Configuration.

Regard's
Smruti

Like(0)

KarthikaMR Feb28,20138:14AM (inresponsetoSmrutiRanjanMohanty)

Re:LimitAccesstoMM02fieldsbasedonroles

https://scn.sap.com/thread/3313579

2/3

5/27/2016

LimitAccesstoMM02fieldsbasedonroles|SCN
HiSmruti,

Thanksfortheresponce.

I'vetorestrictnumberoffieldsbasedonrolesonlyfordifferentviewsinMM02.Soitsverydifficult
inmycase.

Like(0)

ManoharReddyK Feb27,20131:39PM (inresponsetoKarthikaMR)

Re:LimitAccesstoMM02fieldsbasedonroles
Ithinktheonlywayisbythisbadi.

BADI_MAT_F_SPEC_SELFIELD_SELECTION

Asyouhavethelistoffieldsyouwanttocontrol,checkthefieldwithfauswtabfieldnameanddothe
authorizationcheck,iffailedthensetfauswtabkzinpto'0'tomakeitasdisplayonlyfieldwhen
t130maktypis'V'(MM02).

Like(0)

Share

SiteIndex
Privacy

Tweet

ContactUs
TermsofUse

https://scn.sap.com/thread/3313579

Like

SAPHelpPortal
LegalDisclosure

Copyright

FollowSCN

3/3

You might also like