cancel
Showing results for 
Search instead for 
Did you mean: 

Querys.

former_member588542
Active Participant
0 Kudos

Hi,

I've created an new Infoset but I dont find out how to add an aditional table to my Infoset.

Can you advise please?

Thanks in advance and best regards

L

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

its the process to carry out query... hope it helps

Former Member
0 Kudos

Hi All,

I am creating a query by joining 2 Z-tables.In the selection screen No F4 help is available.How can i bring F4 help in the output query?

Also if i use standard tables,F4 help is available automatically.

Pls guide

Former Member
0 Kudos

Step 1 : Create User Group u2013 SQ03

Follow the menu path u2013 SAP Menu -> Tools -> ABAP Workbench -> Utilities -> SAP Query -> User Groups

a) In the User Group : Initial Screen -

- Enter User Group Code (self named)

- Click on u201CCreateu201D

b) In the User Group (Code) : Create or Change pop-up window -

- Enter the User Group Description

- Click on u201CSaveu201D

c) In the Create Object Directory Entry pop-up window -

- Click on u201CLocal Objectu201D button

- The User Group Created is Saved

Step 2 : Create User Group u2013 SQ02

Follow the menu path u2013 SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > Infosets

a) In the Infoset : Initial screen -

- Enter Infoset Code (self named)

- Click on u201CCreateu201D button

b) In the Infoset : Title & Database Screen -

- Enter Description of Infoset in the u201CNameu201D field

- In the Data Source selection : Select appropriate Data Source by clicking the radio button

Source the data can either be multiple tables OR single table. There are 4 options for the user to select from

- Click on u201CContinueu201D (Enter)

- Selected Table gets displayed in the Infoset : Initial Screen

c) In the Infoset : Initial Screen -

- Click on u201CInsert Tableu201D button

d) In the Add Table Screen -

- Enter the Table Name that is to be inserted

- Click u201CContinueu201D (Enter)

e) In the Infoset: Initial Screen -

- Click on u201CBacku201D button

f) In the Field Group Defaults pop-up Screen -

- Select Appropriate Field Group Option by clicking on the radio button

There are 3 options to select from. User can select Empty Field Group option and then select the data fields in the steps explained further. Alternatively, User can select an option which clubs all the data fields from all the tables selected.

- Click u201CContinueu201D (Enter)

g) In the Change Infoset Screen -

The left side lists the Tables that the user has selected in step b, c & d

- In the right side, system creates field groups, one for each table listed in the left part. Initially, the Field Groups are empty.

- In the Left Side, Click on the arror next to the table name and expand and display all the data fields in the table.

- Select a Data Field from the expanded Table view, which is to be added to the Field Group on the right.

- Select a Field Group on the right side, in which Data Field selected above has to be added.

- Right click on the Data Field selected and click on u201CAdd Field to Field Groupu201D.

- The selected Data Field gets added to the selected Field Group, which is indicated by an arrow next to the Field Group.

- Carry out the steps above to add the required Data Fields to the respective Field Groups

- After transferring Data Fields to Field Groups click on u201CGenerateu201D button

h) In the Create Object Directory Entry Screen -

- Click on u201CLogical Objectu201D button to generate the infoset

i) In the Change Infoset Screen -

- Click on the u201CBacku201D button

j) User is taken back to the u201CInfoset: Initial Screenu201D which displays the created Infoset record.

Step 3 : Assigning User Group to Infoset u2013 SQ03

Follow the menu path u2013 SAP Menu -> Tools -> ABAP Workbench -> Utilities -> SAP Query -> User Groups

a) In the User Groups : Initial screen -

- Enter the User Group for which Infoset is to be assigned

- Click on u201CAssign Users & Infosetsu201D button

b) In the User Group: Assign Users Screen -

- Click on u201CAssign Infosetsu201D button

c) In the next screen, select the Infoset, which needs to be attached to the User Group selected

d) Click on the u201CBacku201D button

Step 4: Creating Query u2013 SQ00 & SQ01

Follow the menu path u2013 SAP Menu -> Tools -> ABAP Workbench -> Utilities -> SAP Query -> Queries

a) In the u201CQuery from User Group: Initial Screen -

- Click on u201COther User Groupsu201D button

- In the pop-up screen, User Groups, select the User Group for which the Query has to created. The pop-up screen closes.

- Enter the Query Code in the u201CQueryu201D field

- Click on u201CCreateu201D button

b) A pop-up screen u201CRestrict Value Rangeu201D shows the list of Infosets assigned to the User Group

- Select the Infoset for which Query has to be created

c) In the new screen Create Query: Title, Format -

- Enter the Description of the Query in the u201CTitleu201D field

- Click on the u201CNext Screenu201D button

d) In the Select Field Groupu201D screen

- Select the Field Groups from which Data Fields have to be selected for the Output

- Click on the u201CNext Screenu201D button

e) In the u201CSelect Fieldu201D screen -

- Select the Data Fields which should appear in the output

- Click on the u201CNext Screenu201D button

f) In the Screen u201CSelectionu201D -

- Select the Data Fields for the selection criteria

- Enter the sequence in which the selected fields would appear in the input screen of the query.

- Define if the selection criteria should be Single Value or Multiple Value Rangeby clicking in the appropriate check boxes

- Click on the u201CBasic Listu2019 button

g) In the screen u201CQuery Layout Designu201D -

- Select the Output Fields from the Data Fields section by clicking the appropriate check box

- Change the sequence of Data Field columns if required

- Click on the u201CTestu201D button to test the query created

h) On the u201CTest Queryu201D screen click u201CContinueu201D

i) In the u201CQueryu201D screen -

- Enter the selection criteria

- Click on u201CExecuteu201D button

j) Save the Query created

Step 5: Running the Query u2013 SQ00

a) In the Query From User Group: Initial screen u2013

b) Click on u201COther User Groupsu201D button to select the User Group

c) In the pop-up screen u201CUser Groupsu201D select the User Group

d) System lists all the queries created for the User Group

e) Select the appropriate Query

f) Click on u201CExecuteu201D button

g) User is taken to the Selection screen

h) Enter the selection criteria and click on u201CExecuteu201D button

i) System runs the query and gives the output

Former Member
0 Kudos

Hi Luis,

In SQ02, you can add tables and add the required fields in the Field Groups. Also select the Field Groups in SQ01 (Query)

Babu

aramsum
Active Contributor
0 Kudos

Hi Luis,

In SQ02 there is an option called Join which would be useful for this.

Regards

Ram Pedarla