cancel
Showing results for 
Search instead for 
Did you mean: 

Tab and field wise Authorization

Former Member
0 Kudos

We have a requirement where we have to give tab and field wise authorization to particular users. that means we have to give authorization to particular user for particular tab or field to make changes in that particular tab or field.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rohan ,

Check with the Basis Team regarding it. They can guide you.

Regards

Vinu

Former Member
0 Kudos

Thanks Vinu.

moazzam_ali
Active Contributor
0 Kudos

Hi,

If you have necessary authorizations please follow these steps.

Create authorization field with SU20

Create authorization object with SU21

Use following code, change it as per your object and field names and assign this in appropriate program. If you don't know in which program then please mention your requirement in detail.

IF KOMK-KALSM NE OLD_KOMK-KALSM OR KOMV-STUNR NE OLD_KOMV-STUNR.

    AUTHORITY-CHECK OBJECT 'Z_KONH_KLS'

               ID 'ZKALSM' FIELD KOMK-KALSM

               ID 'ZSTUNR' FIELD KOMV-STUNR

               ID 'ACTVT' DUMMY.

    AUTH_SUBRC = SY-SUBRC.

    OLD_KOMK = KOMK.

    OLD_KOMV = KOMV.

  ENDIF.

Give authorization with SU01 and check.

Better to take BASIS guy's help if you feel this difficult to do at your own.