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

USE Standard Authorization object in Z Program

Former Member
0 Likes
680

Hi Experts,

I have already checked other threads regarding this but could not resolve my problem.

I have created a Z program to update Material Master. I need to use the Authorization object M_MATE_STA in my program for performing authorization check. Please help me how can I do that?

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
396

hI,

below is a similar code...


CONSTANTS:  lc_authobj  TYPE char15 VALUE 'F_BKPF_BUK',

AUTHORITY-CHECK OBJECT lc_authobj
           ID lc_id_bukrs FIELD v_bukrs
           ID lc_id_actvt FIELD lc_activity.
  IF sy-subrc NE 0.
  
  ENDIF.

Amol

Read only

ThomasZloch
Active Contributor
0 Likes
396

> I have already checked other threads regarding this but could not resolve my problem.

Use SE80 and check the where-used list of authorization object M_MATE_STA. As an ABAP developer you should have had this idea yourself.

Thread locked

Thomas