‎2008 Feb 07 12:38 PM
HI All,
what the function of this GRWTAUTH exit in EH&S Module?
‎2008 Feb 07 12:40 PM
Hi Friend,
i thing this will help u.
For more information see the Release Information on customer
enhancements and the documentation for the function modules
EXIT_SAPFGRWX_001, EXIT_SAPFGRWS_001 and EXIT_SAPFGRWE_001.
Release Information
Short text
Report Writer: Customer Enhancements for Authorization Check
Scope of Functions
To meet customer requirements for individual authorization checks the
standard checks have been extended to include customer exits that can be
called at three different points in time:
o Check during extract output
This exit is called when an extract is output in the report output
or when within an extract you branch to a different report or to a
different node of the varied hierarchy.
o Check on single record level during data selection
This exit is called for each record read during data selection.
o Check on the initial screen
This exit is called on the selection screen for each report and each
section of the report group once.
These can be edited as part of the SAP enhancement management (menu
"Tools -> ABAP Workbench -> Utilities -> Enhancements -> Project
management"). For more information about SAP enhancement management,
from this transaction (CMOD) see the documentation available from the
menu under "Goto -> Online manual".
The function modules are combined under the SAP extension "GRWTAUTH". An
include program with example coding has been defined for each function
module. These examples give a hint as to how the transfer structures of
the individual functions are to be interpreted. They are, however,
neither complete nor are they optimized for runtime.
Function Module When Called Include Program
EXIT_SAPFGRWE_001 Extract output LXRWAF01
EXIT_SAPFGRWS_001 Selection LXRWAF02
EXIT_SAPFGRWX_001 Initial screen LXRWAF03
You can find more information on the subject of customer exit
programming in the documentation of the corresponding function module.
EXIT_SAPFGRWE_001
Customer exit: Authorization check for extract display
Functionality
This exit is always called up when an extract is outputted in the report
output or another report or node in the hierarchy is linked to within
the extractor.
A standard check is not carried out for all report writer tables.
Provided that the report writer table supports standard checks, these
will be performed in subprogram C02_CHECK_DATA_AUTHORITY in the form
pool assigned to the report writer table (T804A MPOOL).
If a standard check exists, the exit can use parameter
E_SKIP_STANDARD_EXIT to specify whether the standard check is then to be
performed or skipped. If the standard check is then performed, it
dictates authorization. If the exit triggers exception NO_AUTHORITY, the
standard check is always skipped with E_SKIP_STANDARD_EXIT = 'X' .
Table parameter I_T_SELECTIONS describes the general selection
conditions of the report or variation report in question, on the basis
of which authorizations can be checked. For each selection
characteristic, table I_T_SELECTIONS contains an entry that provides
information on the corresponding selection set or the selection value.
For varied characteristics, the corresponding specification for the
corresponding variation report is specified.
T804A MPOOL
Module pool for routines
Definition
Here you must enter a form pool that contains the ABAP routines that are
defined in the control tables.
EXIT_SAPFGRWS_001
Customer exit: Authorization check at single record level in
Functionality
This exit is called up for each individual data record during data
selection. When making a new selection it is called up from the database
(I_DATA_SOURCE = 'S'), while when reading it is called up from the
archive (I_DATA_SOURCE = 'A'). The current data record is passed on in
the untyped parameter I_S_RECORD to the exit, the corresponding DDIC
reference structure in parameter I_DB_TABLE.
A standard check is not carried out for all report writer tables.
Provided that the report writer table supports standard checks, these
will be performed in the subprogram (T804A AUTHR) in the form pool T804A
MPOOL) assigned to the report writer table.
If a standard check exists, the exit can use parameter
E_SKIP_STANDARD_EXIT to specify whether the standard check is then to be
performed or skipped. If the standard check is then performed, it
dictates authorization for the current data record. If the exit triggers
exception NO_AUTHORITY, the standard check is always skipped with
E_SKIP_STANDARD_EXIT = 'X' .
EXIT_SAPFGRWX_001
Customer exit: Authorization checks on initial screen
Functionality
This exit is called when the user has filled in the selection screen and
started the execution of the report group. The function module is called
up once for each section in a report of the report group. Each call of
the exit is numbered in the parameter I_INDEX beginning with 1. Certain
initializations can be made when I_INDEX = 1.
There is no standard check of the entries on the selection screen for
all Report Writer tables. The standard check, if the Report Writer table
supports it, is made in the subprogram RW_X_AT_SELECTION_SCREEN in the
form pool (T804A-MPOOL) assigned to the Report Writer table.
The exit must collect messages using the function module MESSAGE_STORE.
Execution of the report group is terminated as soon as an E (error) or A
(abort) message is has been collected. The collected messages are then
output, and the user can check the entries on the selection screen.
If no E or A messages were issued, execution of the report group is
continued. Depending on the data source selected on the selection
screen, additional authorization checks are made which also can be
supplemented with your own exits:
o When data is reselected from the database (I_DATA_SOURCE = "S") or
when archived data is read (I_DATA_SOURCE = "A"), authorization for
the records being read can be checked record by record with the exit
EXIT_SAPFGRWS_001.
‎2008 Feb 07 12:40 PM
hi,
The below ones are the function exits associated to the enhancement
EXIT_SAPFGRWE_001
EXIT_SAPFGRWS_001
EXIT_SAPFGRWX_001