Create query in SQ01
Hello Abap Experts,
What are the steps to create and execute query in SQ01. I have to create a query for a selected fields on top of vbak, vbap, vbrk, vbrp tables.
Any suggestions suggestions / pointers / links are highly appreciated.
Thanks,
BWer
First you need to create the infoset which will tie your tables together. Use SQ02 to do this. Then in SQ01, when you create your query, you specify the infoset that you want to use. Then its just a matter of pulling in the fields that you want in the output list and setting the selection fields. Check out SQ02 to create your infoset, then use SQ03 to assign it to a user group.
Regards,
Rich Heilman
Similar Messages
-
Dear All,
I want to create standard query for personal Administration in sq01. My wants to get the report on employees joining date and leaving date and etc. Can anyone explain step by step process for this.
Thanks in advance
Regards
Sureshgo thro this
http://www.insightcp.com/res_15.htm
http://www.ams.utoronto.ca/Assets/output/assets/adhoc_2990830.pdf.pdf
http://www.olemiss.edu/projects/sap/SQ01_10_03.pdf -
SQ01 create query / transaction
Hi,
I have created a query in SQ01, and the output report should be linked to a given transaction code. This works ok in developmentsystem, but I cannot create the transaction code for the output report in the testsystem.
I have tried to transport the transaction code, from the developmentsystem-->test, but the transport fails with error code 8.
Anyone know how to solve this, so that I can link the report to a transaction?
Thanks!
Best regards
Arne JakobHi,
You cannot transport the queries directly ;
ABAP Queries can be transported to different clients by the following two ways:
1) By using the standard program u2018RSAQR3TRu2019
2) By using the transport option available on the application bar in Transactions SQ02 or SQ03.
The transports are to be made in the following order:
1. User Group transport
2. Infoset transport
3. Infoset and Query transport
4. Queries transport
The transports are to be made in the specified order. The User Group is to be transported first, followed by the Infoset and then the Queries
Hope this helps you
Regards
Shiva -
How to create Query (Sq01) fro service contract
hi,
How to create Query for Service contracts , where i need to take a report for sub line items of that particular Service contract.
Ex: we maintain short text - services in the initial screen ,
in the next screen we maintain the sub line items for that short text (Activity numbers).
Please guide me on this.
Regards,Hi Sowmya,
1 Create User Group (SQ03)
Specify the users who should be authorized to run the query.
2.
Create Infoset (SQ02)
Indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query.
3.
Create Queries (SQ01)
Create the query and arrange the layout
for joining the two tables there should be common field should be available in both the tables then only we can able to join the table and run the query
or use this below link
http://www.sap-img.com/abap/step-for-using-query-sq01-sq02-sq03.htm
Regards,
Pramod -
Error while creating query in Adhoc report
Hi Experts,
when i am creating query using tables bseg,bkpf and kna1(logical database BRF) and vbrk,i am getting error as "query Specifications cannot be used to generate list" in SQ01.I linked BRF logical database with vbrk by using condition vbrk-vbeln = bkpf-awkey.
is my condition is wrong in linking VBRK to BRF logical database.please guide me how to solve this.
If my joining is wrong means why i didnt get error in SQ02.??
Required fields are:Invoice number(vbrk),invoice category(vbrk),invoice date(vbrk),account document number(bkpf),company code(bkpf),G/L account(bseg),currency(bseg),state(kna1),invoice amount(vbrk).
Do i picked fields from wrong tables?/
Thanks&Regards,
narasimha.can somebody help on this
Regards,
narasimha -
Hello all
I want to create new sap query in sq01 , the requirement is like this eg:- customer a/b/c , I want to generate the list of last created sales order for the customers a/b/c here I have given 3 customers but I have to execute for 1500 customers
If customer A creates 3 sales order in that 3 sales orders I want to pick last sales order on 12.09.2010 / 15.09.2010 /17.09.2010 in that I wnat to pick the last sales order 17.09.2010
So in query report sq01 how to create, plz provide step by step procedure with this logic
With regards
Rahul
Moderator Message: Search.
Edited by: kishan P on Sep 17, 2010 4:47 PMHi,
better search in Google with the keyword 'SAP query tutorials',
you will get lots of tutorials in the net with step by step approach. -
How to change infoset for a query in SQ01?
hi,
I have created a Infoset which I have assigned to the user group. Now for creating the query using this infoset, how can i
proceed?? Its not giving me the option to change the infoset
and whenever I clicks on 'Create' it shows me the field group
of some other infoset. how can i change it to my infoset which I have created.Hi,
In SQ01 first you press shift+F7 then find your user group. then from infoset query tab ,select ur infoset.
and do the further processing.
i hope this information will help you.
regards
saurabh -
Hi expert,
can you please guide me how to create query.
actually my requirment i want one report
1. billing document number
2. billing date
3. sales org.
4. profit center
here there two table vbrk and vbrp is reqiured to met the requirment. how two table can link
thanks and reguards
shashiHi,
you can join table in ABAP quires
Go to SQ03
Create user group and then do user group assignment
Then go to SQ02
Put Info set query name and click on create then tick-mark to LOGICAL DATABASE and put logical database as VFV and enter
Then select table VBRK & VBRP and enter
Then at right side screen you will see two groups billing document heder and item and same you will see at left side
Expand the left side billing document heder and item
Then DRAGE the field from left billing header filed and put in to right side billing header group
Do same for fields which you want and then last click on GENERATE icon and then save
Then on SQ02 screen slect generated infoset and click on role/user assignment and assign user which created in sq01
Then go to SQ01 and click on infoset query and execute
Kapil -
To create query with selecting condition have AND options
Hi All ,
I want to create a query in SQ01 . I want to get data from a table whose one specific field have data starting with Z AND Z : * ( not OR )* . Is it possible to do any thing in the selection screen or i have to do any other change ?
Please help me in this.
Thanks & Regards ,
Sabu.Hi
Your select statment u can have
field in ( 'Z%' , 'Z:%')
you will get all fields starting with z and Z;
regards -
SQVI transfer the query to SQ01
Dear all
I have created one query through SQVI,now i want to transfer that query to SQ01 .
is it possible? if yes plz give me detail .
thxDear Surendra Patil,
I dont think there's an option for doing this.
What's the issue in SQVI? why do you want to transfer that to SQ01?
Also check this link for creating a Query using SQ02 - Info set creation and SAP query creation in SQ01
and if required user group creation using SQ03.
[SAP Query|SAP Query]
Regards
Mangalraj.S -
Hai good afternoon to all,
When i execute create query in oracle9i{create table t1 as(select * from t6)}
it shown error like that
ERROR at line 1:
ORA-01536: space quota exceeded for tablespace 'SYSTEM'
Please tell me the solution..Hi
You are using the SYSTEM tablespace as your default tablespace
Tell your DBA to use some other tablespace
Using SYSTEM tablespace as default tablespace is a bad idea -
In the output list Repeating one line always when generating query by sq01
Hi,
I have generated a query in sq01 for list material document for movment type 301 (Transfer posting) using below tables :
MSEG Material No. MATNR, Movt. - BWART, Qty. -MENGE
MKPF Material doc. field MBLNR
MARC Stock in Transit UMLMC
some times it is generating the output as i want i.e.
Material document material no. qty. movt. stock in transit
4001 1xx 1 301 0
4002 2xx 2 301 0
but some time it is repeating the same line in output ie..
Material document material no. qty. movt. stock in transit
4001 1xx 1 301 0
4001 1xx 1 301 0
4001 1xx 1 301 0
4001 1xx 1 301 0
Please let me know the reason. is there any control in sq01.
ThanksYeah it is clear visible that, the same combination might have available in different plants.
So to avoid the duplicate entries, always select all the primary key fields available in all the tables in the output.
If not atleast try restricting based on plant in the selection screen or any possible duplicate entreis.
So add the key fields at Infoset level in SQ02 -
How do create query in SAP?
Dear Expert
How do create query report in SAP?
thanks for advancehi
this is to inform you that,
please follow the links:
http://wiki.sdn.sap.com/wiki/display/ERPFI/abap+query
http://wiki.sdn.sap.com/wiki/display/sandbox/ABAP+queries
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c?quicklink=index&overridelayout=true
hope this clears your issue
balajia -
Create Query views in BI 7.0
My Dear Friends
Can any body tell me how to create Query views in BI 7.0 and assign to Data provider
its top urgent.
Your help will be more appreciated
Thx & regardsHi,
When you run a BEx query the result is displayed on Excel.You could save this as a workbook
under a role or save view as global under a role.
For detail info Check the below links:
http://help.sap.com/saphelp_nw04/helpdata/en/46/4a04f82663400181bc8631551d34ad/frameset.htm
Web query views
http://help.sap.com/saphelp_nw04/helpdata/en/94/01f8894dec
45129a245027c29cb836/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/44/624da0e6444ddee10000000a1553f7/frameset.htm
Reg
Pra -
Characteristic infoprovider not available while creating query
Hi All,
I have a characteristic infoprovider(user defined) in both Dev and Prod(transported-same properties), i can create new query in dev using query designer(BI 7) but not in production.
It is defined as infoprovider in the business expl tab of info object.
Query designer
when I search for this infoprovider in prod - No records found.
I checked thru info area still not able to see in query designer- production, it is not authorization relevant also.
Please let me know any possible scenarios.
Thanks
JagadeeshHi,
I hope you are choosing 'create query' after opeing query designer and not 'open query'. If you select 'open query' then it shows only those info-areas and info-providers on which query is already there.
If this is not the case, can you see your characteristic in the info-provider tab?
Regards,
Akshay
Maybe you are looking for
-
Hi Experts, I have a specific requirement were I want to associate a Payment Term with an Item. I have added a UDF to item master and assigned a query that retrieves payment term to that UDF. It works ok. But the problem is that after selecting a pay
-
Global View Option Problems!!!
In Tiger you had the option to choose "This Window Only" or "All Windows." In Leopard you can select "Use as Defaults," for the view you are in such as icons,coverflow, etc. The problem is it only works for some windows. If you try to change the size
-
New Desktop Manager won't allow me to delete device photos
Hey there, I am using the new 6.0.0.40 Desktop and I am SO frustrated with it. In the old version, I could delete photos from my device using Roxio. In the new Desktop, I can't figure out how to delete photos from my 8330. If I click on a photo, I ca
-
How do I stop my iPod from playing the playlist randomly?
I just want it to play songs from top to bottom(#1. to #10),without skipping all around. I forgot how to set my mini for this??!!?!?! HELP
-
In my website build with joomla. I have to insert tables and links and stuff by opening a pop up. They do open but the needed contents doesn't load. This also happens with online game: goalunited (classic version)