Professional Documents
Culture Documents
ABAP/4 QUERY
Menu path
Used for
Maintaining Queries Maintaining Info Sets Maintaining User Groups Language Comparison
Data Access
The following three components will be explained in detail: 1. User Groups (SQ03). 2. InfoSets (SQ02). 3. Queries (SQ01).
1. User Groups(SQ03)
Access rights in ABAP/4 Query are maintained via User Groups A User Groups contain users with identical access authorization and a set of associated Functional Areas All users must be members of at least one user group and can be a member of more than one group All members of one user group can access the same data as well as the same programs (queries) to create lists Within a User Groups, it is possible to access only that data that the associated Functional Area provide
Data Access
2. Infosets (SQ02)
The InfoSets component is used to maintain InfoSets. The system administrator uses the component to set up the work environment for end-users. The initial set of data required for generating a query is provided by InfoSet. This initial set of data can be from re-usable Logical Databases or from any Database Table. Each Query is associated with one Functional Area. An ABAP/4 query user need not know table or field names as Infosets Area is not identified by technical details but by declarative text.
Advantages Data can be protected from unauthorized access. Technical details like table name and field name details are hidden from user. Possible to narrow or widen the range of information as provided by Logical Database.
Data Access
Infosets
By creating InfoSets and assigning them to roles or user groups, the system administrator determines the range of reports that the individual application departments or end-users are able to generate using the SAP Query. End-users are able to work only with those InfoSets that are relevant to their particular area, as designated by the role or user group that they are assigned to. An InfoSet can be assigned to several roles or user groups.
Statistic
Shows statistical figures calculated from basic data
Ranked list
Specialization of Statistic. A Query can have a basic list upto 9 statistic and 9 ranked list. Partial lists is optional.
Type the User Group Id and Save. Only the User Group Id specified here will have the authorization.
Displaying a INFOSET
Click on join
Displaying a INFOSET
Creating a Query
Click on Basic List
Creating a Query
Creating a Query
Creating a Statistic
Type a name and fill other necessary Type a name options & click for FA and click continue create Type the text and click save Type the text and click save In the same way create a query and open in change mode and click on Statistic. Set the necessary option as shown in next page, save and execute.
Exercises
Exercise 1: Exercise 2: Exercise 3: Exercise 4: Create a User Group. Create a Functional Area. Assign a Functional Area to a User Group. Create & Execute an ABAP/4 Query.