You are on page 1of 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