To ensure that a user has the appropriate authorizations when he or she
performs an action, users are subject to authorization checks.
The following actions are subject to authorization checks that are performed
before the start of a program or table maintenance and which the SAP
applications cannot avoid:
· Starting SAP transactions (authorization object S_TCODE)
· starting reports (authorization object S_PROGRAM)
· Calling RFC function modules (authorization object S_RFC)
· Table maintenance with generic tools (S_TABU_DIS)
In coming posts, we will see how to add authorization checks for Reports and
transactions.
Today we will discuss about table authorization checks.
Purpose of assigning authorization groups for tables:
You can assign authorization groups to tables to avoid users accessing tables
using general access tools (such as transaction SE16). A user requires not only
authorization to execute the tool, but must also have authorization to be permitted
to access tables with the relevant group assignments. For this case, we deliver
tables with predefined assignments to authorization groups. The assignments
are defined in table TDDAT; the checked authorization object is S_TABU_DIS.
Now we will see how to assign/create authorization group for a table:
Go to SE54, Give the table name and choose authorization group and then click
on create/change. You can
create an authorization group.
Example:
You can assign a table to authorization group Z001. (Use transaction SM30 for
table TDDAT) A user that
wants to access this table must have authorization object S_TABU_DIS in his or
her profile with the value
Z001 in the field DICBERCLS (authorization group for ABAP Dictionary objects).
Authorization Check:
In the earlier post, we came to know the importance of authorization check in real
time environment. We know how to check authorization for table maintenance.
(Please refer earlier post).
Now we will see how to check authorization for Reports, Transactions, RFC
function modules.
The following actions are subject to authorization checks that are performed
before the start of a program or table maintenance and which the SAP
applications cannot avoid:
Starting SAP transactions (authorization object S_TCODE)
starting reports (authorization object S_PROGRAM)
Calling RFC function modules (authorization object S_RFC)
Table maintenance with generic tools (S_TABU_DIS)
The authorization objects S_TCODE, S_PROGRAM, S_RFC, and S_TABU_DIS
are standard SAP provided.
Creating a new authorization object is not in the scope of ABAP developer. It will
be taken care by SAP BASIS team.
To add authorization check to your program, you need to add the following code in
your report. Imagine that you have created a transaction code for your report, then
you should use the authorization object S_TCODE to check the authorization.
You can place the code in initialization event.
*Initialization
INITIALIZATION.
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD 'ZEXAMPLE'.
IF sy-subrc <> 0. "Not Authorized
MESSAGE e003(ZZ) WITH 'TCD' 'ZEXAMPLE'.
ENDIF.
Here zexample is the transaction code created for the report.
Saturday, April 26, 2008
What is the use of Authorization Checks? ABAP Interview Questions
Posted by Anonymous at 10:06 PM
Subscribe to:
Post Comments (Atom)
Content
-
►
2009
(2)
- ► 09/06 - 09/13 (1)
- ► 03/01 - 03/08 (1)
-
▼
2008
(207)
- ► 11/23 - 11/30 (1)
-
▼
04/20 - 04/27
(70)
- The Other 50 ABAP Interview Faq's ABAP Interview Q...
- ABAP Certification Sample Questions for Abapers AB...
- Important ABAP FAQ's ABAP Interview Questions
- SAP ABAP Interview Questions And Answers ABAP Inte...
- ABAP Frequently Asked Question ABAP Interview Ques...
- Answers to some ABAP Interview Questions ABAP Inte...
- General - Number Range Generation ABAP Interview Q...
- Extract the smtp email address ABAP Interview Ques...
- How to Get the Version Value When I Print the PO A...
- Attach T-Codes to Area Menu ABAP Interview Questions
- What is the use of Authorization Checks? ABAP Inte...
- Difference Between BADI and User Exits ABAP Interv...
- BAPI Conventions ABAP Interview Questions
- BDC ABAP Interview Questions
- SAP BDC Interview Questions And Answers ABAP Inter...
- BDC & LSMW ABAP Interview Questions
- ABAP Clipboard Utilities for Beautiful Commented C...
- Using Fonts command in ABAP ABAP Interview Questions
- Using Different Color in ABAP ABAP Interview Quest...
- ABAP Questions Commonly Asked 1 ABAP Interview Que...
- Create Push Buttons in Application Tool Bar ABAP I...
- A demo program to create subscreen in your ABAP Pr...
- Display Active Exits in a ABAP System ABAP Intervi...
- Displaying Graphics using an ABAP Program ABAP Int...
- Doubt in Unicode Enabling ABAP Interview Questions
- Example Code For Drill Down Report ABAP Interview ...
- SAP ABAP FAQ (Technical) ABAP Interview Questions
- Faq Miscellaneous ABAP Interview Questions
- Field exits (SMOD/CMOD) Questions and Answers ABAP...
- Inserting Website Links in ABAP ABAP Interview Que...
- Blocking Searchhelp and Create New Searchhelp ABAP...
- Attach a Search Help to the Screen Field ABAP Inte...
- Splash Screen in ABAP ABAP Interview Questions
- SY-UCOMM and OK_CODE in Dialog Program ABAP Interv...
- Change the Input Fields Dynamically in a Screen AB...
- A Sample Hide & Get Cursor in Interactive Programm...
- Scrolling in Table Control ABAP Interview Questions
- Common used of Dialog Screen for Display, Change, ...
- Internal Tables ABAP Interview Questions
- ABAP Interview Questions 1
- Interview Question on BAPI, RFC, ABAP Objects, Tab...
- Making a Java Editor in ABAP and compiling it ABAP...
- Will ABAP be Obsolete? Will JAVA Replace ABAP? ABA...
- Learning ABAP or SAP Application ABAP Interview Qu...
- List Box in ABAP Report ABAP Interview Questions
- List Of User Exit Related to VL01N ABAP Interview ...
- LOGICAL DATABASE ABAP Interview Questions
- Recursion with Loop Checking in SAP ABAP Interview...
- Maintaining Translations for Work item texts and A...
- MODULARIZATION Technique 2. ABAP Interview Questions
- Q. What is a function module? ABAP Interview Quest...
- What are ABAP Objects? ABAP Interview Questions
- Splash Screen in ABAP using OO ABAP Interview Ques...
- Passing data from one ABAP program to another ABAP...
- Performance tuning ABAP Interview Questions
- Performance Tuning ABAP Interview Questions
- Real Time questions ABAP Interview Questions
- How to find out Total No of Pages of a Report Outp...
- General - Reporting Tree in ABAP Interview Questions
- REPORTS ABAP Interview Questions
- Sample Test Questions on ABAP Programming
- ABAP Frequently Asked Question 45
- ABAP Frequently Asked Question locks
- ABAP Frequently Asked Question BDC
- ABAP Frequently Asked Question RFC
- SAP ABAP Interview Questions And Answers 1
- SAP ABAP Interview Questions And Answers free ABAP...
- Sap Scripts & Smart forms
- Different Types of Selection Screens
- SQL Tool for ABAP Yes4SQL -- Both Native & Open SQL
- ► 04/13 - 04/20 (51)
- ► 03/16 - 03/23 (44)
- ► 02/24 - 03/02 (9)
- ► 02/17 - 02/24 (32)
No comments:
Post a Comment