当前位置:网站首页>ABAP query tutorial in sap: sq01, sq02, sq03-017

ABAP query tutorial in sap: sq01, sq02, sq03-017

2022-06-22 16:23:00 Boating in rainy days

SAP Medium ABAP Query tutorial :SQ01、SQ02、SQ03-017

ABAP The query application is used to create SAP Reports that do not yet exist in the system . It is for ABAP Designed by a user who knows little or nothing about programming .ABAP Queries provide users with a variety of ways to define reports and create different types of reports , Such as basic list 、 Statistics and ranking list .

ABAP The query consists of four components :

  1. Inquire about
  2. Information set
  3. User group
  4. Translation of queries

Let's study them in detail :-

Inquire about

End users use query components to maintain queries . You can create queries , Change query and execute query . transaction SQ01

 Insert picture description here

Information set

An information set is a special view of a data source . An information set describes which fields of a data source can be reported in a query . Information sets can be assigned to multiple roles or user groups .

advantage –

  • By creating information sets and assigning them to roles or user groups , The system administrator can determine that individual application departments or end users can use SAP Query the generated report range .
  • End users can only use information sets related to their specific areas , These information sets are specified by the roles or user groups to which they are assigned .

User group

The user group component is used to maintain user groups ( From a security point of view ).

Users working in the same application are assigned to the same user group . It doesn't matter who actually defines the query in the user group . Each user assigned to a user group can execute queries .

Users in the user group need to have the necessary permissions , Then you can change or redefine the query . Each user in the system can be assigned to multiple user groups .

translate / Query components

Define query 、 Information sets and user groups generate a lot of text . These texts are based on our login to SAP The system displays the selected language . We can use this component to compare text / Language .

Data processing in query

Data can be obtained by 3 Two ways to process and present :-

  1. Basic list – Display data in the order defined by the functional area ( Support sorting and summation ).
  2. Statistics – Display statistics calculated from basic data .
  3. Ranking list – The ranking list is a specialization of statistical information .E.x. The top ten customers of travel agencies .

A query can have a basic list , Up to nine statistics and up to nine ranking lists .

Create a query

step 1. go to SQ01. Name the query , And then click “ establish ” Button .

 Insert picture description here

step 2. A description of the query is given in the next screen . Specify the output length , And then from “ Further processing options ” Box . Data can be displayed in various formats , For example, form , Download to a file and in Word Form display, etc .

 Insert picture description here

The first 3 Step . Click on the next screen , Select the field group to use .

 Insert picture description here

step 4. Click on the next screen , Select the fields to display

 Insert picture description here

The first 5 Step . On the next screen , Select the selection field , Then select an output type ( basic 、 Statistics 、 ranking ).

In each list , You can choose from a variety of options .( for example . Sort the fields , Change the output length , Column color , A total of , header , Footer, etc ).

 Insert picture description here
 Insert picture description here

The first 6 Step . After providing all the above options , You can save the query and execute it .

 Insert picture description here

Be careful :

To create a / Maintained transaction information set – Used to create / Maintain user group SQ02

Business –SQ03

原网站

版权声明
本文为[Boating in rainy days]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221500488662.html