|
Back to |
To build a query, you must first add items to the query builder area.
To add tables directly to the query builder
Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is to read data from database tables by linking them to executable ABAP programs.
You can use logical databases with Winshuttle QUERY only if the Winshuttle Function Module is installed on the SAP server you use.
The query builder area is divided into three areas:
To add a logical database to the query builder
There are two views to logical databases:
LDB structure view: The hierarchy of logical database nodes and the parent child relationship is shown in this view.
Note: Fields from two nodes which are at same level in hierarchy cannot be selected. Using the previous image as an example, if five fields are selected in the node DIPLKO, and you select two fields in the node DIAUFK, an error will occur.
LDB Node View: Includes LDB node details like name, description, and table details. Use the Search field to search for required fields. To select and deselect all fields, right-click in screen.
The Winshuttle Data Dictionary displays the most commonly used tables. The tables display the following information:
To add tables to the query builder area
If you cannot find the table you want by looking in the data dictionary, you can search for the table. In addition, if you know the field name or know the kind of information you want, you can search by using the field name or description. A list of tables that contain such fields is returned.
For tables, if you try to add more tables to the query builder area than are permitted by your administrator, the maximum number of tables is added to the query builder area and the remaining number are highlighted under their node in the data dictionary or under the Search node. For example, if you select 10 tables, but are permitted to add only four, four appear in the query builder area, and the remaining six are highlighted in the data dictionary.
You can use only one InfoSet/SAP query to the query builder area at a time. Joining of more than one InfoSet/SAP query with tables is not supported.
After adding the InfoSet/SAP query into query builder area all the underlying fields in the query are seen in one single table. For each of the fields even the table name is seen. Refer the figure below.
For InfoSet query you can chose any field as output field and they get listed in the criteria pane. You can now set criteria on it. For more details on using the criteria pane, see Using criteria to define fields.
Note: You cannot deselect the default selection fields for criteria in an InfoSet. These selection fields have been set during the creation of InfoSets on your SAP server.
For SAP query you cannot select or deselect any field for output or criteria.
However, you can modify the criteria. You can change the specifics of the criteria.
Note: The AND expression and IN operator are not available for InfoSets/Queries.
To search for a data source
The selected items appear in the query builder area, and are also added to the Search Results node in the Winshuttle Data Dictionary pane if they are not already in the data dictionary. If the found tables are in the data dictionary, they are highlighted in the nodes that they belong to.
Also in this section |