Creation and usage of Authorization Objects in …...Creation and usage of Authorization Objects in ABAP Programs Applies to: SAP ECC 6.0. For more information, visit the ABAP homepage.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
SAP ECC 6.0. For more information, visit the ABAP homepage.
Summary
This document helps people to understand the steps involved in creation of Authorization objects in SAP and using Authorization objects in ABAP program.
Author: Sai Ram Reddy Neelapu
Company: Atos Origin - Singapore
Created on: 09 February 2011
Author Bio
Sai Ram Reddy Neelapu working as Sr. ABAP Consultant in Atos Origin for more then 5 years.
Purpose of Authorization .................................................................................................................................... 3
5. Create Custom Module Pool Program ................................................................................................................... 10
Related Content ................................................................................................................................................ 14
Disclaimer and Liability Notice .......................................................................................................................... 15
Creation and usage of Authorization Objects in ABAP Programs
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
SAP, security has always been an important part throughout the product life cycle, including product development, planning, and quality-assurance.
Authorization Objects are mainly used to control user‟s privileges for specific data selection and activities within the program
SAP has given us an option to create our own authorization objects or use existing standard authorization objects. All this authorization objects can be used during the role creation or can be implemented with in the custom ABAP program.
Steps Involved in Creating Authorization Objects
1. Create Authorization Field
2. Create Authorization class
3. Create Authorization object
4. Create Roles
5. Create Custom program using Authorization object.
In Detailed
1. Create Authorization Field
Note: Transaction code for creating Authorization field is SU20
1.1. Go to transaction code SU20.
1.2. Press Create Button.
1.3. Enter Field Name as “ZTRNCODE” and data element as “TCODE”. Press Enter
Creation and usage of Authorization Objects in ABAP Programs
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.