10 Useful Tips On Infoset Queries
10 Useful Tips On Infoset Queries
scn.sap.com/docs/DOC-48128
K Jogeswara Rao
K Jogeswara Rao
October 24, 2013
6 minute read
88 109 126,892
Introduction
Often it is seen that. Infoset-query users, stop exploring at the 1st hurdle and switch to ABAP
report programs, for requirements a little bit beyond simple ones. But, it is the author’s
experience, that we can use this tool (Infoset Query) given to Functional people by SAP, to
reach very close to the ABAP report programs, with features like those discussed in the other
document and also some discussed here.
In this document the author tried to put together the pieces of his knowledge to present in the
form of a document.
Tip1
1/24
The following screen with report name appears..
Now you give this report name to your ABAPer and ask him to create a Tcode
OR
And Save. Thus your Infoset query will now be working with Tcode ZTCODE
Tip2
2/24
Calling Reports from Infoset Query reports.
The output of your query contains key fields like Notification no., Equipment No. etc.
It is natural that one wants to go to the Notification screen or the Equipment screen from the
output.
Do this way.
In SQ01
In the resulting pop-up, specify the Tcode you want to link with the Row in the SQ01 output.
It is Done.
Now upon D’clicking anywhere on a particular line item in the query output, you are directed
to IW23 screen of the notification of the line-item (row).
Suppose you want to have IW22 also. Then repeat the same steps above to have IW22
Tcode.
Now when you D’click (anywhere) on one line-item (row) of the Query output, you will be
presented a pop-up menu to select which one you want. i.e.,
Display Notificationor Change Notification. You are taken to the corresponding screen as
per your choice.
Capture.JPG
Note:
1.If your Report Assignment option is found disabled, then the reason and setting to restore is
here: How to make ‘report assignment’ available in ‘SQ01’
2.We always need to remember that, after Tcode assigning, the modifications done in SQ02
or SQ01 would be in effect to the Tcode, only after executing SQ01 once.
3.More Details on this subject here: Calling Reports from an Infoset Query
Tip3
Make your report colorful with giving different colors in order to group columns
3/24
In SQ01 Basic List Screen
Here just Drag & Drop the color from Right Tool-Box to the desired field in the Centre portion.
OR
Double click on a field in the Centre, to display field details and color options on the left. Now
you select the color.
Tip4
This means
We have options for Selection Screen designing both in SQ02 and in SQ01. It is
advantageous if we declare selection options in Infoset (SQ02),
Here is how we do it. (In the Extras area), Go to Selections Tab, Click on Create icon, select
Selection Criterion or Parameter like below.
Capture.JPG
selcrit.JPG
NO INTERVALS removes the selection range (Removes the To field of the selection criterion)
Like-wise you can design a selection screen as shown below by defining fields one after
another.
pastedImage_22.png
Note that, we can declare only Standard Selection Fields here. Additional Fields are to be
taken into Selection Screen only from SQ01.
<img />
4/24
The disadvantage in having these standard fields into selection screen from SQ01 is, the
previously used values reappear as defaults for new running of the report. We need to erase
and type our values. Also there is no provision for making a field mandatory.
Tip5
What is this?
With this code, the Infoset query does not bring any records where the ABC indicator field is
blank.
the output will ignore the records with maint. work center value ‘xyz123’.
(Note that these are permanent filters, For optional filters either the Selection Screen OR the
Filter in the ALV output display can be used.)
Tip7
F4 help related
Tip8
Tip9
Tip10
We know that, the infoset reports work on Table joins in Infoset. In complex cases, where
many tables are joined, the correctness of report depends upon the quality of joins we define.
Though system suggests some joins, user can define more joins as per his table knowledge.
This is what controls the multiplicity of identical rows appearing in the output sometimes.
It is seen that in situations where the user is unable to control the duplicate (or multiple)
identical rows , the CHECK statement used in Tip6 works conditionally. In other cases this
multiplicity becomes one of the points where one is forced to go for an ABAP report.
5/24
The author has been working in this area since few years. This is an effort to share his
knowledge about some very common requirements in this area with the forum. Hope
member friends especially those who love Infoset queries, find this useful.
Thank you
KJogeswaraRao
PS: This post and all further posts in the area of Infosets have been compiled to this blog
Infoset Queries: Collection of important posts
Assigned Tags
Capture.JPG
Capture.JPG
selcrit.JPG
pastedImage_22.png
88 Comments
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
6/24
Like 0
Share
Right click and copy the link to share this comment
Hi Jogeswara,
Good Day!
Very nicely documented. I appreciate all your time, effort and support.
Hari Suseelan
Like 0
Share
Right click and copy the link to share this comment
Am glad to know that my work motivates Hari. In fact I am motivated by nice comments like
yours.
Best Wishes
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Hi,
7/24
First I would like to appreciate your work. I would also like to add a point regarding creating T-
code to the query report, as stated.
It is seen that the Query report name usually changes between systems i.e. Development,
Quality and Production.
Hence while creating T-code it is advisable to assign the T-code based on the User Group
and Query name instead of the Query report name generated.
Note: Though you have mentioned to use the query report name as in the PRD system, the
method which I have stated is usually recommended.
Regards,
Mayur Priyan
Like 0
Share
Right click and copy the link to share this comment
Regards
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
8/24
Thanks,
Ramesh
Like 0
Share
Right click and copy the link to share this comment
Regards
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Hi,
Is possible insert authority check into INFOSET for example about plant?
Cheers
Ivan
Like 0
Share
Right click and copy the link to share this comment
9/24
This should be possible by assigning infoset to User Groups (SQ03).
Regards
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Also you may like to go through this blog if not already done.
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
10/24
Like 0
Share
Right click and copy the link to share this comment
Useful Information
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Thanks for your efforts and presentation. Very nicely written doc.
Thanks
Like 0
Share
Right click and copy the link to share this comment
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
Regards,
Krishna Chaitanya.
11/24
Like 0
Share
Right click and copy the link to share this comment
Regards
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
Very good
Like 0
Share
Right click and copy the link to share this comment
Nice help 🙂
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Very nice - good to expose some useful but not well know functions 🙂
Like 0
Share
Right click and copy the link to share this comment
Sada Bandla
Like 0
12/24
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Hope To See some more, you must have gained more experience and knowledge since you
posted this document.
Like 0
Share
Right click and copy the link to share this comment
Hi Anwer,
I try to post the knowledge I have in this area promptly, from time to time.
Like 0
Share
Right click and copy the link to share this comment
Dimas Faria
Like 0
Share
Right click and copy the link to share this comment
13/24
Like 0
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
Hi Srinivas,
Really Documents like the present one involve efforts and their objective is fulfilled when few
members learn from them and these efforts are rewarded when experts like you recognise.
Thanks again 🙂
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
An excellent document in itself and a valuable contribution of Mayun to help run the Tcode
and Query in all Servers (Development/Quality/Production).
Keep it up !!!!!
Like 0
14/24
Share
Right click and copy the link to share this comment
Hi Imran,
The issue raised by you has already been taken care of in a separate document. Please refer
to the same here. Calling Reports from an Infoset Query.
Also for the convenience of needing members, I have compiled all these infoset related posts
into a single document. Please refer: Infoset Queries: Collection of important posts
Regards
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
Hello,
Like 0
Share
Right click and copy the link to share this comment
Hi Erwin,
Regards
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
Regards
15/24
-dd
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Nice Post~
Like 0
Share
Right click and copy the link to share this comment
That's really a difficult question for me Frank. I consider this is a limitation in query area and at
such requirements, I switch to full pledged ABAP report programs. Due to scarcity of related
knowledge around, this topic is still in 'yet to learn' list of mine.
Regards
Jogeswara Rao K
Like 0
Share
Right click and copy the link to share this comment
Thank you Jogeswara Rao for sharing this, its really helpful for those using infoset query and
avail the different functionalities of it.
Regards,
Jaydip
Like 0
Share
Right click and copy the link to share this comment
16/24
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
Thanks its very useful information for all users to make query at own.
Like 0
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Hi Rajesh,
This has already been detailed. Do you want some more info?
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
your work is really adorable and gratifying thanks a lot for documenting, your efforts are really
appreciable.. lot many are getting educated with your stuff. great work, keep posting. All the
best.
Ram kumar
Like 0
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
Exceptionally useful quick tips for making your SAP query reports stand out.
Like 0
Share
Right click and copy the link to share this comment
That's a great review and comments. Very happy to know these tips help members.
Best Regards
KJogeswaraRao
Like 0
Share
Right click and copy the link to share this comment
Best regards,
Nitin
Like 0
18/24
Share
Right click and copy the link to share this comment
My pleasure Nitin ! 🙂
Like 0
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
My pleasure Mohammad ! 🙂
Like 0
Share
Right click and copy the link to share this comment
I have created one quick viewer Report through SQVI transaction code and I have created on
Tcode assigned with programe as you said in TIP:1, when I run this Tcode I am getting run
time error. Please give some suggestion
Like 0
Share
Right click and copy the link to share this comment
The reasons may be very local, I doubt you haven't got the output through SQVI direct
execute also.
Like 0
Share
Right click and copy the link to share this comment
yes, I got the output SQVI by direct execution. when i run through Tcode it showing run time
error. what could be reason, how to solve it?
Like 0
Share
Right click and copy the link to share this comment
19/24
2. Run the program through SE38 and see.
3. If problem persists contact your ABAPer for debugging to locate the fault
Like 0
Share
Right click and copy the link to share this comment
Indeed a very detailed and informative article. Has cleared most of the doubts and has been
really helpful. Please do post more of such articles.
Like 0
Share
Right click and copy the link to share this comment
Share
Right click and copy the link to share this comment
Hi,
you always make the Blog Alive and Alert with your tremendous contributions.
Like 0
Share
Right click and copy the link to share this comment
Regards
KJogeswaraRao
Like 0
Share
Right click and copy the link to share this comment
Mr. Kavala,
20/24
Can you please help me out with this issue?
I add a check box in the Query Selection Screen as you indicated, but it appearing in a
"General data selections" frame, I see that the check box recently added as not checked the
Standard Selection check box, I cannot check it due it's an output only box.
How can I take my checkbox out of the "General data selections" frame?
/wp-content/uploads/2014/10/checkbox_555128.png
Thanks,
Nico.-
Like 0
Share
Right click and copy the link to share this comment
/wp-content/uploads/2014/10/checkbox_555128.png
The checkbox will be in General data selections block only, because we are creating it in
Infoset (SQ02). I'm afraid there is no other alternative to this.
I see that the check box recently added as not checked the Standard Selection check
box, I cannot check it due it's an output only box.
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
21/24
How can I get this option checked so I can see Checkbox parameter out of the frame?
/wp-
content/uploads/2014/10/check_555174.
png
Nico.-
Like 0
Share
Right click and copy the link to share this comment
/wp-content/uploads/2014/10/check_555174.png
Hello Nicolas,
This checkboxes are ticked for the Standard Selection fields provided by the system in
Infosets where Logical Databases are used. These are provided by the LDBs. I do not think
we can define our own selection fields a Standard. I never tried to tick these checkboxes
neither any such requirement arose. Both checkboxes next to Standard are ticked
automatically when we use 'Obligatory' word in the Extrasfield. Standard checkbox setting is
not in our control. These things we can not control from SQ01.
KJogeswaraRao
Like 0
Share
Right click and copy the link to share this comment
Thanks for your answers, I finally managed to take the checkbox out of the frame.
You just need to declare the checkbox parameter in the Data read. prog secction.
22/24
/wp-content/uploads/2014/10/check_556760.png
Regards,
Nico.-
Like 0
Share
Right click and copy the link to share this comment
/wp-content/uploads/2014/10/check_556760.png
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
🙂
Like 0
Share
Right click and copy the link to share this comment
Like 0
Share
Right click and copy the link to share this comment
Hi Jogeshwar Rao,
1. how to use BSIS and BSAS or BSIK and BSAK both in same query
23/24
2. How could I link between RSEG and BKPF table were in BKPF-XBLR = BELEN + GJHAR
Regards,
Rajesh
Like 0
Share
Right click and copy the link to share this comment
Hello Rajesh,
These are queries on specific tables which I feel, do not fit in this thread. There will be
multiple advantages if you start a new thread either in ABAP space or Finance and
Accounting space. (Also I do not have exposure to Accounting tables)
Best of luck
KJogeswaraRao
Like 3
Share
Right click and copy the link to share this comment
24/24