Sunday, February 6, 2011

Creating Ad Hoc query (HCM related infoset query)

The InfoSet Query is a useful tool for maintaining queries within the SAP Query and is suitable for developing queries and for ad-hoc reporting.

InfoSet Query is suitable for reporting in all areas of the SAP R/3 system. A special feature is the Human Resources (HR) component. When InfoSet Query is used in HR for ad-hoc reporting, the name Ad-Hoc Query is used instead of InfoSet Query.

Ad-Hoc query provides three different kinds of reports:

  • Basic List - Simple reports

  • Statistics - reports with statistical functions such as Averages, percentages etc

  • Ranked List - for analytical reports

The first step in the process of creating an Ad-Hoc query is to create a Functional Area. Function area provides special views of logical databases. They determine which fields of a logical database can be evaluated in queries.

Go to tcode SQ03.

Select Query areas

Menu->Environment->Query areas

Select the radio button ‘Global area’.

Click on ‘Choose’

Create user group

Here you specify the users who should be authorized to run the query. A user group is always associated with a Functional Area.
- Go to the menu path Environment => User Group or SQ03 à Give a user group name in the screen. Specify the sap logins of the users whom you want to authorize for using the functional area and click on the Create button.

Select User group as ‘zdemo_user’ (Create Z user group)

Click on ‘CREATE’ button.

Pass short description click SAVE

Go to Environment menu select INFOSET or go for tcode (SQ02)

Create Infoset with Z like ‘zdemo_infoset’

Click on create button

Name as ‘Shortdesc’.. (demo)

Select radio button Logical database ‘PNP or PNPC’

Click on Continue button

Open ‘Basic personal data’

Select infotype which u need (like above screen short)

Click on continue button

Click on save and Click on generate button (red button)

Go back to main screen

Click on ‘Role/User group assignment’ tab

Select assigned table check box with User group which u already created.(zdem_user)

Save it and back...

Go to tcode for SQ01..

Query ‘zdemo_01’ (Create zname)

Click on ‘create’ button

Select ‘infoset’ click on continue....

Pass title as Shortdesc..(demo for pa infotype)

Save......

Back....

Click on ‘Infoset Query’ button

Select selection screen field and Output fields...(the fields you required as Selection screen fields and the fields you need as Output fields)

Select output check box with right click –select output-only value..

Select fields from which u already given info types

Finally click on save button

Click on continue....

Back...

Click on Execute button (F8)..

Click on continue ready for you REPORT

No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

Blog Archive

goodsites