You are on page 1of 3

We will learn how to create info set in SAP and adding tables using SQ02.

First lets create the info set first. Execute code SQ02 and named the query ZINFOSETTEST, after that click CREATE.

In the next screen you will see several options how to add the tables into your infoset. The first one is Table join using basis table, if you have more than one tables to add into the infoset, then you should choose this option. The second one is Direct read of table, if you need only one table in your infoset then choose this option.

Now lets add two tables (LIKP, LIPS) into our infoset, this means that you need to choose the first option. Next you can type in LIKP in the textfield box and press enter.

Next you will see the join definition screen where you can add more tables and the join definition into each table to another, to start adding the second table (LIPS) you can click on insert table button, and you will be prompted with an ADD TABLE screen, type in LIPS and press enter.

After that you will see that table LIPS is added into this Join screen and a join condition is automatically assigned from field VBLEN (LIKP) into VBELN(2) (LIPS).

Click the infoset button, and after that you will be prompted with field groups options screen. I would suggest using the third option (create empty field groups) because you dont need all the fields (nobody does), so its better to choose whatever you really need from scratch (empty) to improve the query performance.

In next screen, choose which fields you want to include into the infoset, its fairly simple actually because all you need to do is click and drag the fields from the left pane into the right pane.

When youre done, click (SHIFT + F6) Generate Button. Thats it.

You might also like