ALV Report for Catalog

13
Generated by Jive on 2013-07-19+02:00 1 ALV Report on Catalog Profile and Catalog Codes ALV Report on Catalog Profile and Catalog Codes  _______ _______ _______ ___ Author: Jogeswara Rao Kavala  Introduction: After the exposure to many standard ALV reports for master data , it is seen that the clients or end-users expect similar reports for Catalog-Profiles, Code Groups and Codes, so that it will be easier to search for such available profiles which suit to their requirements and they can make use of the same, saving lot of time, effort and data duplication. For big organizations, comprising of several uni ts where SAP-PM is adopted, this requirement is very common. We do not have such ready report/s provided by SAP. At the same time, SAP has given good tools for Functional persons to generate reports on their own. These are Quick viewer, and Infoset Queries.Present article is based on Infoset Query.  Let's see what we are going to achieve after this article: A report with selection screen like this  will generate a report like this: (list of all profiles related to 'Motors')

Transcript of ALV Report for Catalog

Page 1: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 1/13

Generated by Jive on 2013-07-19+02:00

1

ALV Report on Catalog Profile and CatalogCodes

ALV Report on Catalog Profile and Catalog Codes

 _____________________________________________________________________________

Author: Jogeswara Rao Kavala

 

Introduction:

After the exposure to many standard ALV reports for master data , it is seen that the clients or end-users

expect similar reports for Catalog-Profiles, Code Groups and Codes, so that it will be easier to search for such

available profiles which suit to their requirements and they can make use of the same, saving lot of time, effort

and data duplication.

For big organizations, comprising of several units where SAP-PM is adopted, this requirement is very common.

We do not have such ready report/s provided by SAP. At the same time, SAP has given good tools for

Functional persons to generate reports on their own.

These are Quick viewer, and Infoset Queries.Present article is based on Infoset Query.

 

Let's see what we are going to achieve after this article:

A report with selection screen like this

 

will generate a report like this: (list of all profiles related to 'Motors')

Page 2: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 2/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

2

Page 3: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 3/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

3

 

DO you find it is relevant and useful to you? Then here is how to make it !

 

Step 1. Create an Infoset as follows

 

- Create an infoset (Say 'CATCODES') using 'SQ02' Tcode. opting for Table-Join in the

initial screen.

- In the Join page Insert these tables as shown ( select left-outer-join for QPGR and QPCD

tables join)

 

- Click Back ,

- Select the required fields from tables (left) to the Field Groups in the right. (Drag & Drop) as

shown here.

Page 4: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 4/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

4

 

In order to arrange the Calatogs in the sort order of B, C, 5, 2, A in the ALV screen, a user

defined field 'SORT' is being created in the following section.

 

For this click on the 'Extras ' tab on the application toolbar to have Extras window on the

right.

Click on the 'New' icon and create 'Additional Field ' named 'SORT '

Page 5: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 5/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

5

The specification of field 'SORT ' while creating

 

Now, keep cursor on the 'SORT' field (Red Boxed area) and click on the 'CODE ' icon (Green

box), and write the following code.

Page 6: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 6/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

6

Save the code,

 

Making of 'Selection screen' of the report

Go to 'Selections'  tab (next to 'Extras' tab) and create the select-option.

Here we are creating the 2 selection fields shown in the 1st image of this document. i.e.,

Catalog Profile' and 'Created By'.

For this click on 'New ' icon in this tab and create two selection fields 'CATPROF' and

'CRTDBY' one after one as shown here.

 

Page 7: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 7/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

7

 

Now the 'Selections' tab will look like this.

Page 8: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 8/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

8

 

Save and Generate the Infoset.

 

This completes the job in Infoset creation (SQ02).

Come to initial screen of SQ02 and assign this infoset to your usergroup. (User group is

created through SQ03)

 

Step 2. Create Infoset-Query through SQ01 as follows.

 

Create a Query (say 'CATCODES') using the infoset made above 'CATCODES '.

Page 9: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 9/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

9

 

Click 'Next' arrow

Select all the 3 tables appearing here used in Infoset and click next.

 

Select the fields required for display in ALV.

 

Click on Basic List button and arrive at the following screen.

Page 10: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 10/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

10

(If this screen does not appear go to 'Settings' menu, check the 'Graphical Menu Painter'

option in the 'Settings' option)

 

The red box list shows the Field selections you need to appear in the output.

For column coloring you have to drag & Drop colors from tool box to the corresponding field

as shown by the Red arrow on the right.

 

That's all. Now You save the query and return to the initial screen. Execute and test.

 

To have a Tcode for the program you've just generated

 

Page 11: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 11/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

11

In the SQ01 screen

 

to get this result.

Page 12: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 12/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

12

 

Copy this string (Report name), Run SE93 in Development Client and create a Z-Tcode with

desired name using the above program name.

Transport the request to Production.

Now the report you've made is operated using the Tcode you've created.

 

In my organisation this report was very much sought and proved very useful for end-users to find and use already prepared profiles (by users in other units) for their similar equipments.

This report has got many such uses.

The making of this report here has been demonstrated using 'Standard Client 'option in the 

SQ02 (Environment --> Query Areas), so that no transport needs to be done during creation 

or modifications. However as explained, the Z-Tcode has to be created in Workbench Dev 

Client, once.

Also, it is aimed through this document, the beginners in the Infoset query area to be 

benefited without referring to other detailed documents on SQ03, SQ02, SQ01.

 

Hoping it is useful to many.

 

Page 13: ALV Report for Catalog

7/27/2019 ALV Report for Catalog

http://slidepdf.com/reader/full/alv-report-for-catalog 13/13

ALV Report on Catalog Profile and Catalog Codes

Generated by Jive on 2013-07-19+02:00

-Jogeswara Rao K'