Top Banner

of 18

10 Useful Tips on Infoset Queries

Jun 03, 2018

Download

Documents

venkatsree
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/11/2019 10 Useful Tips on Infoset Queries

    1/18

    10 Useful Tips on Infoset Queries

    A T-code to your Infoset Query

    IntroductionOften 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

    documentand 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.

    Tip1To have a Tcode to your work in Infoset Query.

    The following screen with report name appears..

    Now you give this report name to your ABAPer and ask him to create a Tcode

    OR

    You do it yourself through SE93 Tcode, if you have access.

    Steps for SE93

    http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306935/pastedImage_2.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306922/pastedImage_1.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306935/pastedImage_2.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306922/pastedImage_1.pnghttp://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127
  • 8/11/2019 10 Useful Tips on Infoset Queries

    2/18

    And Save. Thus your Infoset query will now be working with Tcode ZTCODE

    (This applies also to Quick Viewer report SQVI)

    Tip2Calling 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

    We get this screen

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306938/pastedImage_9.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306937/pastedImage_5.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306938/pastedImage_9.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306937/pastedImage_5.png
  • 8/11/2019 10 Useful Tips on Infoset Queries

    3/18

    Click here on then on then select

    In the resulting pop-up, specify the Tcode you want to link with the Row in the SQ01 output.

    Say IW23 and Save.

    It is Done.Now upon D'clicking anywhereon a particular line item in the query output, you are directed to IW23 screen of the notification of the line-item (row).

    You can have many such report assignments.

    Suppose you want to have IE03 also. Then repeat the same steps above to have IE03 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 Notification or Display Equipment. You are taken to the corresponding screen as per your choice.

    Note:

    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.

    More Details on this subject here: Calling Reports from an Infoset Query

    Tip3Make your report colorful with giving different colors in order to group columns

    In SQ01 Basic ListScreen

    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.

    Example of such output.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/docs/DOC-52803http://scn.sap.com/docs/DOC-52803http://scn.sap.com/docs/DOC-52803http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/docs/DOC-52803
  • 8/11/2019 10 Useful Tips on Infoset Queries

    4/18

    Tip4Always have Selection Fields from Infoset (SQ02).

    What does this mean and Why?

    This means

    We have options for Selection Screen designing both in SQ02 and in SQ01. It is advantageous if we decalre selection options in Infoset (SQ02),

    Here is how we do it. (In the Extras area), Go to SelectionsTab and declare here.

    Note that, we can declare only Standard Selection Fieldshere. Additional Fields are to be taken into Selection Screen only from SQ01.

    How to create a selection field in Infoset? Follow as under.

    Click on Createicon in picture above to get the following screen, Give name and continue.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPGhttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPGhttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPG
  • 8/11/2019 10 Useful Tips on Infoset Queries

    5/18

    Then specify the detail as under.

    (See the value in LIKE here. This is important, if it is Notification number it would be VIQMEL-QMNUM)

    The disadvantage in having these standard fields into selection screen from SQ01is, the previously used values reappear as defaults for new running of the report. We need to eraseand type our

    values.

    Tip5

    This is to develop queries in Standard Area rather than in Global Area.

    What is this?

    See the option below in SQ02 while creating an Infoset Query.

    In the Query Areas above we have two options: Global Ar ea, Standard Area.

    When we are working in Development Server (client 200 or 210), we work in Global Area option, which generates a transport request, subsequently this will be transported to QAS and

    PRD at the end of work.

    When we select Standard Area as the name indicates, it is client-specific. This means you can directly develop in PRD with this option. To have a Tcode for reports developed so, we

    need to use the same way explained earlier in this document. But it is to be noted that, we get the report name from the PRD client where we developed the report, and create a Tcode

    in Development server (client 210 or 200) and same will be. transported to PRD. (One time job)

    The main advantage I always enjoyed here is, the moment some addition/deletion/modifications performed on this repor, it is instantly available in PRD.

    (No hassles of transport requests). Only requirement is to run SQ01 once. The Tcode will be giving the changed report.

    Also, the testing of the the report work is done in a perfect environment with real-time data.

    (Working through the Global Area option in Development clients may be having its own adva ntages, like work back-up , but I never felt such necessity in my environment.If needed we

    can have a copy report in PRD itself)

    Tip6In case we do not want a certain category of records in the output, then go to SQ02 --> Extras--> Code tab --> Record Processing section, and

    Give a code like the sample given below.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306950/pastedImage_28.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306949/pastedImage_25.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306950/pastedImage_28.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306949/pastedImage_25.png
  • 8/11/2019 10 Useful Tips on Infoset Queries

    6/18

  • 8/11/2019 10 Useful Tips on Infoset Queries

    7/18

    The following screen with report name appears..

    Now you give this report name to your ABAPer and ask him to create a Tcode

    OR

    You do it yourself through SE93 Tcode, if you have access.

    Steps for SE93

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306935/pastedImage_2.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306922/pastedImage_1.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306935/pastedImage_2.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306922/pastedImage_1.png
  • 8/11/2019 10 Useful Tips on Infoset Queries

    8/18

    And Save. Thus your Infoset query will now be working with Tcode ZTCODE

    (This applies also to Quick Viewer report SQVI)

    Tip2Calling 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

    We get this screen

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306938/pastedImage_9.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306937/pastedImage_5.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306938/pastedImage_9.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306937/pastedImage_5.png
  • 8/11/2019 10 Useful Tips on Infoset Queries

    9/18

    Click here on then on then select

    In the resulting pop-up, specify the Tcode you want to link with the Row in the SQ01 output.

    Say IW23 and Save.

    It is Done.Now upon D'clicking anywhereon a particular line item in the query output, you are directed to IW23 screen of the notification of the line-item (row).

    You can have many such report assignments.

    Suppose you want to have IE03 also. Then repeat the same steps above to have IE03 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 Notification or Display Equipment. You are taken to the corresponding screen as per your choice.

    Note:

    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.

    More Details on this subject here: Calling Reports from an Infoset Query

    Tip3Make your report colorful with giving different colors in order to group columns

    In SQ01 Basic ListScreen

    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.

    Example of such output.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/docs/DOC-52803http://scn.sap.com/docs/DOC-52803http://scn.sap.com/docs/DOC-52803http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/docs/DOC-52803
  • 8/11/2019 10 Useful Tips on Infoset Queries

    10/18

    Tip4Always have Selection Fields from Infoset (SQ02).

    What does this mean and Why?

    This means

    We have options for Selection Screen designing both in SQ02 and in SQ01. It is advantageous if we decalre selection options in Infoset (SQ02),

    Here is how we do it. (In the Extras area), Go to SelectionsTab and declare here.

    Note that, we can declare only Standard Selection Fieldshere. Additional Fields are to be taken into Selection Screen only from SQ01.

    How to create a selection field in Infoset? Follow as under.

    Click on Createicon in picture above to get the following screen, Give name and continue.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPGhttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPGhttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPG
  • 8/11/2019 10 Useful Tips on Infoset Queries

    11/18

    Then specify the detail as under.

    (See the value in LIKE here. This is important, if it is Notification number it would be VIQMEL-QMNUM)

    The disadvantage in having these standard fields into selection screen from SQ01is, the previously used values reappear as defaults for new running of the report. We need to eraseand type our

    values.

    Tip5

    This is to develop queries in Standard Area rather than in Global Area.

    What is this?

    See the option below in SQ02 while creating an Infoset Query.

    In the Query Areas above we have two options: Global Ar ea, Standard Area.

    When we are working in Development Server (client 200 or 210), we work in Global Area option, which generates a transport request, subsequently this will be transported to QAS and

    PRD at the end of work.

    When we select Standard Area as the name indicates, it is client-specific. This means you can directly develop in PRD with this option. To have a Tcode for reports developed so, we

    need to use the same way explained earlier in this document. But it is to be noted that, we get the report name from the PRD client where we developed the report, and create a Tcode

    in Development server (client 210 or 200) and same will be. transported to PRD. (One time job)

    The main advantage I always enjoyed here is, the moment some addition/deletion/modifications performed on this repor, it is instantly available in PRD.

    (No hassles of transport requests). Only requirement is to run SQ01 once. The Tcode will be giving the changed report.

    Also, the testing of the the report work is done in a perfect environment with real-time data.

    (Working through the Global Area option in Development clients may be having its own advantages, like work back -up , but I never felt such necessity in my environment.If needed we

    can have a copy report in PRD itself)

    Tip6In case we do not want a certain category of records in the output, then go to SQ02 --> Extras--> Code tab --> Record Processing section, and

    Give a code like the sample given below.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306950/pastedImage_28.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306949/pastedImage_25.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306950/pastedImage_28.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306949/pastedImage_25.png
  • 8/11/2019 10 Useful Tips on Infoset Queries

    12/18

    ( check viqmel-abckz '' .)

    What does this do?

    With this code, the Infoset query does not bring any records where the ABC indicator field is blank.

    Like-wise if you give a code like: check crhd-arbpl 'xyz123'.

    the output will ignore the records with maint. work centervalue '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

    F4 Help is not available in infoset query.

    Tip8How to create a radio button in SAP Query SQ01/SQ02.

    Tip9User defined fields

    Tip10We 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 CHECKstatement 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.

    The author has been work ing i n thi s area since few years. This is an effort t o share his knowledge about some very common requi rements in thi s area with the forum. Hope member fr iends especially

    those who love In foset queri es, find thi s useful .

    Thank you

    Jogeswara Rao Kavala

    Benefits of having Select-options in SQ02

    IntroductionOften 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

    documentand 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.

    Tip1To have a Tcode to your work in Infoset Query.

    http://scn.sap.com/thread/3390291http://scn.sap.com/thread/3390291http://scn.sap.com/thread/3386427http://scn.sap.com/thread/3386427http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-308123/pastedImage_2.pnghttp://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/thread/3386427http://scn.sap.com/thread/3390291
  • 8/11/2019 10 Useful Tips on Infoset Queries

    13/18

    The following screen with report name appears..

    Now you give this report name to your ABAPer and ask him to create a Tcode

    OR

    You do it yourself through SE93 Tcode, if you have access.

    Steps for SE93

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306935/pastedImage_2.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306922/pastedImage_1.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306935/pastedImage_2.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306922/pastedImage_1.png
  • 8/11/2019 10 Useful Tips on Infoset Queries

    14/18

    And Save. Thus your Infoset query will now be working with Tcode ZTCODE

    (This applies also to Quick Viewer report SQVI)

    Tip2Calling 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

    We get this screen

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306938/pastedImage_9.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306937/pastedImage_5.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306938/pastedImage_9.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306937/pastedImage_5.png
  • 8/11/2019 10 Useful Tips on Infoset Queries

    15/18

    Click here on then on then select

    In the resulting pop-up, specify the Tcode you want to link with the Row in the SQ01 output.

    Say IW23 and Save.

    It is Done.Now upon D'clicking anywhereon a particular line item in the query output, you are directed to IW23 screen of the notification of the line-item (row).

    You can have many such report assignments.

    Suppose you want to have IE03 also. Then repeat the same steps above to have IE03 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 Notification or Display Equipment. You are taken to the corresponding screen as per your choice.

    Note:

    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.

    More Details on this subject here: Calling Reports from an Infoset Query

    Tip3Make your report colorful with giving different colors in order to group columns

    In SQ01 Basic ListScreen

    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.

    Example of such output.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/docs/DOC-52803http://scn.sap.com/docs/DOC-52803http://scn.sap.com/docs/DOC-52803http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306944/pastedImage_18.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306943/pastedImage_16.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306942/pastedImage_14.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306941/pastedImage_13.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306940/pastedImage_12.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306939/pastedImage_10.pnghttp://scn.sap.com/docs/DOC-52803
  • 8/11/2019 10 Useful Tips on Infoset Queries

    16/18

    Tip4Always have Selection Fields from Infoset (SQ02).

    What does this mean and Why?

    This means

    We have options for Selection Screen designing both in SQ02 and in SQ01. It is advantageous if we decalre selection options in Infoset (SQ02),

    Here is how we do it. (In the Extras area), Go to SelectionsTab and declare here.

    Note that, we can declare only Standard Selection Fieldshere. Additional Fields are to be taken into Selection Screen only from SQ01.

    How to create a selection field in Infoset? Follow as under.

    Click on Createicon in picture above to get the following screen, Give name and continue.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPGhttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPGhttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306947/pastedImage_23.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306946/pastedImage_22.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-319723/Capture.JPG
  • 8/11/2019 10 Useful Tips on Infoset Queries

    17/18

    Then specify the detail as under.

    (See the value in LIKE here. This is important, if it is Notification number it would be VIQMEL-QMNUM)

    The disadvantage in having these standard fields into selection screen from SQ01is, the previously used values reappear as defaults for new running of the report. We need to eraseand type our

    values.

    Tip5

    This is to develop queries in Standard Area rather than in Global Area.

    What is this?

    See the option below in SQ02 while creating an Infoset Query.

    In the Query Areas above we have two options: Global Ar ea, Standard Area.

    When we are working in Development Server (client 200 or 210), we work in Global Area option, which generates a transport request, subsequently this will be transported to QAS and

    PRD at the end of work.

    When we select Standard Area as the name indicates, it is client-specific. This means you can directly develop in PRD with this option. To have a Tcode for reports developed so, we

    need to use the same way explained earlier in this document. But it is to be noted that, we get the report name from the PRD client where we developed the report, and create a Tcode

    in Development server (client 210 or 200) and same will be. transported to PRD. (One time job)

    The main advantage I always enjoyed here is, the moment some addition/deletion/modifications performed on this repor, it is instantly available in PRD.

    (No hassles of transport requests). Only requirement is to run SQ01 once. The Tcode will be giving the changed report.

    Also, the testing of the the report work is done in a perfect environment with real-time data.

    (Working through the Global Area option in Development clients may be having its own advantages, like work back -up , but I never felt such necessity in my environment.If needed we

    can have a copy report in PRD itself)

    Tip6In case we do not want a certain category of records in the output, then go to SQ02 --> Extras--> Code tab --> Record Processing section, and

    Give a code like the sample given below.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306950/pastedImage_28.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306949/pastedImage_25.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306950/pastedImage_28.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-306949/pastedImage_25.png
  • 8/11/2019 10 Useful Tips on Infoset Queries

    18/18

    ( check viqmel-abckz '' .)

    What does this do?

    With this code, the Infoset query does not bring any records where the ABC indicator field is blank.

    Like-wise if you give a code like: check crhd-arbpl 'xyz123'.

    the output will ignore the records with maint. work centervalue '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

    F4 Help is not available in infoset query.

    Tip8How to create a radio button in SAP Query SQ01/SQ02.

    Tip9User defined fields

    Tip10We 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 CHECKstatement 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.

    The author has been work ing i n thi s area since few years. This is an effort t o share his knowledge about some very common requi rements in thi s area with the forum. Hope member fr iends especially

    those who love In foset queri es, find thi s useful .

    Advantages of Creating Queries in Standard Area

    http://scn.sap.com/thread/3390291http://scn.sap.com/thread/3390291http://scn.sap.com/thread/3386427http://scn.sap.com/thread/3386427http://scn.sap.com/docs/DOC-48127http://scn.sap.com/docs/DOC-48127http://scn.sap.com/servlet/JiveServlet/showImage/102-48128-11-308123/pastedImage_2.pnghttp://scn.sap.com/docs/DOC-48127http://scn.sap.com/thread/3386427http://scn.sap.com/thread/3390291