Upload
devidas-karad
View
248
Download
2
Embed Size (px)
Citation preview
8/8/2019 ABAP Query Tutorial
1/28
Transaction Code SQ03
8/8/2019 ABAP Query Tutorial
2/28
Add ur username here andsave the infoset
8/8/2019 ABAP Query Tutorial
3/28
Goto T code SQ02 and create Infoset,give name and click on create
8/8/2019 ABAP Query Tutorial
4/28
Give Name as well as the main
tableor basic table u wanna join, inour example it is MARA and click to
continue
8/8/2019 ABAP Query Tutorial
5/28
In this case we will join MARAwith MARD, so click the insert
table icon and enter table name as
MARD and press back arrow
8/8/2019 ABAP Query Tutorial
6/28
Now I this step we have to select those fieldswhich we want in our report, first select the
table as on right side, then select the field and
right click and select Add field to field
group as shown, same for MARD table, ucan select as much fields as u want, then
click on Red button to generate and save
8/8/2019 ABAP Query Tutorial
7/28
8/8/2019 ABAP Query Tutorial
8/28
8/8/2019 ABAP Query Tutorial
9/28
Now again goto SQ03 add urpreviously created user group and
click on Assign users and infosets tab
as shown
8/8/2019 ABAP Query Tutorial
10/28
Click here to assign infosets
8/8/2019 ABAP Query Tutorial
11/28
Fin ur created infoset and tick to
select and save
8/8/2019 ABAP Query Tutorial
12/28
Now goto t code SQ01, give nameto ur query and click create to
create query, select the infoset from
pop up
8/8/2019 ABAP Query Tutorial
13/28
Give title and select Basic list
to select layout of our report
8/8/2019 ABAP Query Tutorial
14/28
Selection field means the fields u want togive to select the data and list fields
means the fields u want in report, select
these to according to ur requirement andpress back
8/8/2019 ABAP Query Tutorial
15/28
Select next
8/8/2019 ABAP Query Tutorial
16/28
Select both the tables as u
want data from both
8/8/2019 ABAP Query Tutorial
17/28
These will come default, select
next
8/8/2019 ABAP Query Tutorial
18/28
Here u give the ranking, for
selection screen which field
should come first second and soon
8/8/2019 ABAP Query Tutorial
19/28
Save and Press F8 or
execute to execute urquery
8/8/2019 ABAP Query Tutorial
20/28
This is query we createdn now u
can put any data from ur masters,
in this example we will lookR-F100 material for its data
8/8/2019 ABAP Query Tutorial
21/28
We got the following data of
the material with help of our
query
8/8/2019 ABAP Query Tutorial
22/28
Now back to SQ01 screen go to
Query-> More Functions->Generate programm
8/8/2019 ABAP Query Tutorial
23/28
Again do same stuff for display
program name
8/8/2019 ABAP Query Tutorial
24/28
Program name getsdisplayed as shown, now
we will create T code forour report
8/8/2019 ABAP Query Tutorial
25/28
Go to t code SE93 in this transaction we
can create transaction codes, enter anydesired t code name and press create, then
u will select program with selection screen
select this
8/8/2019 ABAP Query Tutorial
26/28
Add our program name
which qw generated in
SQ01 and name and selectlike shown and save it to
local project in pop up
8/8/2019 ABAP Query Tutorial
27/28
Now put the t code which we
just created in SE93 and enter
8/8/2019 ABAP Query Tutorial
28/28