Create and Use the Authorization Objects in ABAP

Slides:



Advertisements
Similar presentations
新目标初中英语 七年级下册. Unit 8 I’d like some noodles. Section B Period Two.
Advertisements

胸痛中心的时间流程管理 上海胸科医院 方唯一.
FAQ :住宿規則 / Dormitory Regulations
Presented By: 王信傑 Ricky Wang Date:2010/10/6
-CHINESE TIME (中文时间): Free Response idea: 你周末做了什么?
专题八 书面表达.
‧姓名‧年級‧ ‧年月‧ Type out your Chinese name and grade Record your voice:
图书馆 Library.
By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008
Type out your Chinese name and grade
樂 樂 西 玩 西 玩 門 門.
“走进三国” 读书汇报会 广州市玉岩中学 李玉明( ).
資料庫設計 Database Design.
一例急性 淋巴细胞性白血病病人的护理查房 血液科.
程設一.
税务认定 永州市国家税务局纳税人学校.
Standard & Poor’s Compustat Research Insight 財務數據分析軟體
Lotus Domino R7 Designer
第六章 应用程序结构.
Basis基本操作、使用者 管理與權限設定
第五讲 数据的分组、合并与转换.
簡易 Visual Studio 2010 C++ 使用手冊
課務組 Curriculum Section
Retail Customer Online Registration 零售顧客線上註冊教學
第4章(2) 空间数据库 —关系数据库 北京建筑工程学院 王文宇.
创建型设计模式.
XBRL未來發展趨勢 2009年12月 For information on applying this template onto existing presentations, refer to the notes on slide 3 of this presentation. The Input.
ProQuest Administrator Module (PAM) 使用說明
SAP 架構及基本操作 SAP前端軟體安裝與登入 Logical View of the SAP System SAP登入 IDES
常见问题解答 II. App上重置并清空数据库之后,手机app找不到圣诞灯怎么办? I. 打开APP,发现并连接不了圣诞灯怎么办?
第八讲 MATLAB图形用 户界面设计.
台中科技大學資料庫教育訓練 2015年3月20日 漢珍數位圖書 陳世宗.
第三章 项目设定.
2018/12/9 GDP系统 采购文控操作手册 GDP项目组.
第九單元 Classes and data abstraction I
SpringerLink 新平台介绍.
ANSYS基础与入门.
客户服务 询盘惯例.
ABAP程式設計 課程簡介 靜宜大學資管系 楊子青 2011年9月13日.
SAP 權限的設定 QiQi V 張穎祺 內部教材 CONFIDENTIAL.
簡易 Visual Studio 2005 C++ 使用手冊
PubMed整合显示图书馆电子资源 医科院图书馆电子资源培训讲座.
Advanced Basic Key Terms Dependency Actor Generation association
SAP R/3架構及前端軟體安裝 Logical View of the R/3 System SAP Frontend 6.2安裝
成品检查报告 Inspection Report
LOGO 点击添加标题内容 点击添加印章文字 单击此处添加副标题单击此处添加副标题 汇报人:XXX 汇报时间:2016.0X.0X.
SAP FI Module Account Payable Version:2.0版本 Date:2001/10/01 制作: 胡 敏.
软件工程 第四章 软件设计 软件过程设计技术与工具.
MATLAB 程式設計入門篇 初探MATLAB
SAP Query 建立User Group (SQ03) 建立Infoset (SQ02)
You are entering now a magic world......
GUI Title and GUI Status
想想看: 長方體體積.
LOGO Business 中国风PPT商务PPT模版,更多模版请进入宝藏PPT搜索 汇报人:小精灵 汇报时间:201X.0X.XX.
SpringerLink 新平台介绍.
Inspiration From Above 1 Chinese Evangelical Free Church
计算机问题求解 – 论题1-5 - 数据与数据结构 2018年10月16日.
SAP 架構及基本操作 SAP前端軟體安裝與登入 Logical View of the SAP System SAP登入 IDES
單元名稱:結構化程式設計 報告人 劉洲溶.
國立清華大學 National Tsing Hua University
GUI Title and GUI Status
Advanced Basic Key Terms Dependency Generalization Actor Stereotype
怎樣把同一評估 給與在不同班級的學生 How to administer the Same assessment to students from Different classes and groups.
GUI Title and GUI Status
SAP 架構及前端軟體安裝 Logical View of the SAP System SAP Frontend 7.1安裝 SAP登入
Report Programming Selection Screens 報表之Output格式設定 Detail list
Usage Eclipse 敏捷方法工具介紹 實驗室網站:
以分为镜知对错 以卷为鉴晓得失 —邯郸市一模得与失
塞上古城银川 银川市是宁夏回族自治区首府,又称“凤凰城”、“湖城”,在半径50公里范围内有西夏王陵国家风景名胜区、苏峪口国家森林公园、青铜峡国家自然保护区、沙湖“4A”级风景名胜区、金水园旅游风景区,还可见贺兰山、黄河、草原、大漠、戈壁。
When using opening and closing presentation slides, use the masterbrand logo at the correct size and in the right position. This slide meets both needs.
Presentation transcript:

Create and Use the Authorization Objects in ABAP Authorization Check Authorization Objects are used to manipulate the current user’s privileges for specific data selection and activities from within a program. http://help.sap.com/saphelp_bw33/helpdata/en/52/67167f439b11d1896f0000e8322d00/frameset.htm http://www.richardsantos.net/2009/03/16/sap-how-to-create-and-use-the-authorization-objects-in-abap/

Authorization Checks in ABAP Programs

Authorization Objects and Authorizations

Authorization - Check

Implementing Authorization Checks in Programs

Authorization Check (1) create authorization fields (2) create authorization class (3) create authorization object (4) create a role (5) authorization in ABAP program

(1) create authorization fields Go to transaction code SU20 Click the create new button on the application toolbar. Enter “ZTCODE” in the Field Name and “TCODE” in the Data Element, then hit Enter. Click the save button on the system toolbar.

SU20 (建立權限檢查欄位) 按 [New authorization field]

輸入field與data element再按Save按鈕

可往下找到剛建立之authorization field

(2) create authorization class Go to transaction code SU21 Click on the Create button’s drop down icon and select “Object Class”. Enter “ZTRN” on the Object Class field. Give it a description and save it.

SU21 (建立權限分類) 按Create按鈕,選Object Class

輸入類別名稱(最多4碼)及描述 再按Save按鈕

可往下找到剛建立之 authorization object class

(3) create authorization object Again in SU21, in the list of authorization class(folder icon), click the one that we’ve created(ZTRN). Click on the Create buttodrop down, this time selecting “Authorization Object”. Enter “Z_TCODE” on the Object field and give it a description. On the authorization fields section, enter ACTVT and ZTCODE. ACTVT is used to set and limit the activity of the user, while the ZTCODE is the authorization field that we’ve created earlier which is responsible for holding a list of tcodes.

點選剛建立之authorization object class,按滑鼠右鍵,選擇create authorization object以建立權限物件

輸入權限物件之相關資料以及權限 檢查欄位,按Save按鈕,再按離開

create authorization object On the Further Authorization Object Settings, click on “Permitted activities” button. Here we will select the specific activities that we want to be available for our authorization object. As an example, we will select 01(Create), 02(Change), and 03(Display). Save and Exit.

找到剛建立之權限物件double click , 按display< >change按鈕,再按按鈕

按Permitted activities按鈕

勾選擬設定的activities,按save按鈕, 再按離開

(4) create a role Go to transaction code PFCG. Enter “ZAUTHTEST” on Role field and click the “Single Role” button. Now give it a description, click the save button and click the Authorization tab. Click the “Change Authorization Data” button inside the authorization tab. Then click the “Manually” button on the application toolbar and type in the name of the authorization object that we’ve created earlier(”Z_TCODE”) and press enter. Expand all the nodes, double click on the input field of the Activity and select activity 01 and 02.

create a role Enter the tcode of our own abap program in ZTCODE field, in our example I used “ZCOMM” . And also don’t forget to add the S_TCODE authorization object and enter ZCOMM on it’s field. Now Click on the Generate button in the application toolbar and press enter on the pop-up screen. press the back button and assign a specific user on the user tab and click User Comparison button. Now create another role by repeating steps 1 to 9 but this time select activity 03 on step 6. Then assign this 2nd role to another user.

PFCG,輸入Role名稱, 再按Single Role按鈕以建立角色

輸入Role之描述,按save按鈕, 再選擇Authorizations標籤

按Change Authorization Data按鈕

先按Do not select templates按鈕, 再按Manually按鈕

輸入Authorization Object名稱, 再按按鈕

展開後,雙按Activity,設定允許的Activity活動,再按save按鈕

雙按表演團體的data element,設定 允許的團隊編號,再按save按鈕

按save按鈕,再按按鈕以產生Profile

按save按鈕,再按Generate按鈕

Authorizations變綠燈,再選User標籤

輸入欲授權的user ID,再按save按鈕, 此時User標籤仍為黃燈

務必要按user Comparison以重新調整user的權限,新對話視窗按Complete comparison

User標籤變為綠燈,按save按鈕存檔

(5) authorization in ABAP program AUTHORITY-CHECK OBJECT ‘Z_TCODE’ “authorization object that we’ve created ID ‘ACTVT’ FIELD ‘01’ “Activity = 01, authorized to create ID ‘ZTCODE’ FIELD ‘ZCOMM. “tcodes that we wants to check for authorization IF sy-subrc EQ 0. CALL SCREEN 1000. “The user is authorized to create ELSE. CALL SCREEN 2000. “User is not authorized to create (Display only) ENDIF.

SE80編輯程式,按Pattern按鈕,再於Authority Check欄位輸入權限物件名稱

於程式中,輸入權限檢查條件(Field值)

撰寫完整程式

查詢有權限的表演團體之結果

查詢無權限的表演團體之結果