Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8076

How to check the authorizations in the custom programs

$
0
0

Hi experts,

 

I need to maintain the authorizations in the custom program like below.

 

I have a transaction, it will copy the concert cost center data from one fiscal year to other fiscal year related to particular company code.

 

Authorization object: F_BKPF_BUK. It contains two fields ACTVT and BUKRS.

 

Requirement:

 

Any user who is having a display access(ACTVT=03) within authorization object: F_BKPF_BUK, should only display access.

The program should allow the users to display only their own company code(BUKRS)(i.e users from Netherlands should be authorized to view only Netherlands company code data ).

 

If user is having a edit access(ACTVT=02) then the user should be able to copy the data

Also the user should be doing only for the company code((BUKRS) , he is authorized to do(eg: users from Netherlands should be authorized to maintain/copy only Netherlands company code ).

 

My doubt is how to maintain the authorization checks for BUKRS (Company code) and ACTVT in the program.

 

I have searched in the SDN, I got a piece of code. But it is not suitable to my requirement.

 

could you please tell me how to do the above reuirement.

 

Thanks

Nagireddy Alavala


Viewing all articles
Browse latest Browse all 8076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>