Você está na página 1de 19

SAP Query creation and transport Procedure in ECC6

Applies to:
ECC6, For more information, visit the Enterprise Resource Planning homepage.

Summary
This article guides the how to technique for creating quick reports on any function through SAP query and the procedure to transport them across clients. This can be very handy for beginners with no background on queries. There are screen shots and tips to make an effective report in a short possible time. The transportation procedure at the end helps to be available to all the clients for the benefit of larger users. The technique can be very handy during year end and quarter end audits to address the needs of the auditors. This technique requires no technical knowledge. Author: Sridhar Vasudevan

Company: Intelligroup Inc. Created on: 20 February 2010

Author Bio
Sridhar Vasudevan has been a Financials Consultant for the past ten years. He has served as an audtior and finance manager before becoming an SAP consultant. He has been with Intelligroup Inc for five years. Sridhar heads a team that provides service to client on IFRS compliance. He has worked on areas of product costing, COPA, Financials, BW reporting and Real Estate Management. He has worked on industries including FMCG, Oil and Gas, Pharmaceuticals and public sector on city governance. He has successfully worked on an upgrade project from 4.6c to ECC6 with subsequent upgrade to New GL. He is good at cross-functional reporting, utilizing various tools of SAP. Sridhar has passed the CPA examination from New Jersey and is a Chartered Accountant from Chennai, India besides holding a Bachelors degree in Commerce and Accounting from the Mumbai University. Sridhar is an active contributor at the SCN community.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 1

SAP Query creation and transport Procedure in ECC6

Table of Content
Learn to create reports using efficient queries. .................................................................................................. 3 Create a user group SQ03 .............................................................................................................................. 4 Create an infoset SQ02................................................................................................................................... 4 Assign additional table and link the main table ............................................................................................... 6 Include key fields and additional required fields ............................................................................................. 6 Generate the Infoset ....................................................................................................................................... 6 Assign the infoset to the user group ................................................................................................................... 8 Now create a query in SQ01............................................................................................................................... 9 Select Field group ......................................................................................................................................... 10 Remove the check box on Graphical query painter ...................................................................................... 11 Design the selection parameters. ..................................................................................................................... 12 Select the output fields .................................................................................................................................. 13 SQ01 Query is ready. Execute to test ........................................................................................................... 14 Review the output for integrity ...................................................................................................................... 15 Now the transport procedure! ....................................................................................................................... 16 Disclaimer and Liability Notice .......................................................................................................................... 19

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 2

SAP Query creation and transport Procedure in ECC6

Learn to create reports using efficient queries.


With instructions on transport

First, create a user group SQ03

Second, create an infoset SQ02

Third, create a query SQ01

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 3

SAP Query creation and transport Procedure in ECC6

Create a user group SQ03

Create an infoset SQ02 Select work area from Environment

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 4

SAP Query creation and transport Procedure in ECC6

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 5

SAP Query creation and transport Procedure in ECC6

Assign additional table and link the main table

Include key fields and additional required fields

You would see the following screen

: Save and exit

Generate the Infoset

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 6

SAP Query creation and transport Procedure in ECC6

Ignore the following screen

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 7

SAP Query creation and transport Procedure in ECC6

Assign the infoset to the user group


Assign Infoset to user group ZMM by clicking Role/User Group Assignment.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 8

SAP Query creation and transport Procedure in ECC6

Now create a query in SQ01

Since there is only one infoset assigned to this user group ZMM, it defaults ZMATDOC infoset. Else you may have to select your Infoset.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 9

SAP Query creation and transport Procedure in ECC6

Select Field group

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 10

SAP Query creation and transport Procedure in ECC6

Remove the check box on Graphical query painter

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 11

SAP Query creation and transport Procedure in ECC6

Design the selection parameters.


Rearrange the order of the fields by giving lower numbers to appear on the top.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 12

SAP Query creation and transport Procedure in ECC6

Click on Basic List to design the output

Select the output fields

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 13

SAP Query creation and transport Procedure in ECC6

SQ01 Query is ready. Execute to test

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 14

SAP Query creation and transport Procedure in ECC6

Review the output for integrity

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 15

SAP Query creation and transport Procedure in ECC6

Now the transport procedure! SQ02

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 16

SAP Query creation and transport Procedure in ECC6

Select Export radio button.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 17

SAP Query creation and transport Procedure in ECC6

Then click on Execute. This will create an internal transport request as follows. Note down the transport request number.

Then, once the above transport request is released and transported follow the same procedure in the target client, but now this time with import radio button selected. There can be restrictions on which transport request can be used while using Solution Manager, in such circumstances, the transport request needs to be rebundled and included under the SolMans transport request.

Remember to enter the transport request number in the dataset field, at the very bottom of the screen. Also select the Transport Infosets and queries radio button under transport option selection.

Happy Querying!!
SAP COMMUNITY NETWORK 2010 SAP AG SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 18

SAP Query creation and transport Procedure in ECC6

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 19

Você também pode gostar