Re : The SAP Query
Can any one mention the database table name where the SAP Query details are saved means details of the Infoset , infogroup etc
Hi,
Try AQ* IN SE11 as well (displays list of tables with queries and all that).
Goto table DD03L and try field names from RS38R and that table displays list of tables got the field names you specified .
Check table TRDIR. It stores with generated program name
If query name is AGENCY1 the table stores with AQZZ==/SAPQUERY/AGENCY1
Similar Messages
-
How to find the report for the SAP query (Query exists in table AQLQCAT)
Hello Experts,
I need to find the tables used in the SAP Query but i don't have access to transaction SQ01,SQ02 and SQ03 to check the same.
Therefore i checked table AQLQCAT and got the SAP Queries in the system. Then searched for the reports that would have been generated for the same passing AQusergroupquery name* in transaction SE38.
But unfortunately the program does not exists for the given paramenter.
Could you please let me know how to get the report name for the SAP Query.
Secondly please suggest any other way of checking the tables used in the SAP Query.
Also the table name from where i can download the SAP Queries.
Thanks in advance.
Regards,
Rahul SinhaI suggest you a simple method.
Execute the query. When the selection screen is showed, go to menu and click to SYSTEM->STATUS.
Check the program name and double click it to access the program code.
Search for tables or functions into the source code in order to understand where data are taken.
If you do not find anything , go to the program atttribute and check for logic database, sometimes they are used....
Best regards. -
To Find the SAP Query from the tranaction code or the program name
Hi,
I have a situation wherein I have to modify the sap query associated with an transaction code.But the problem is that I am unable to find the SAP Query.
<b>Please let me know how to find the SAP query from the transaction code or the program name.</b>
Thanks and Regards,
RupeshHi Rupesh,
1 use FM
RSAQ_DECODE_REPORT_NAME
2. This is one of the best and easiest way.
3. It will provide u the following info.
WORKSPACE
USERGROUP
QUERY
CLIENT
4. Thru TCode U must know the program name first.
This can be discovered using SE93.
Hope it helps.
Regards,
Amit M. -
Hi I have an SAP query ZGIINOP.
Which i have created using the Transaction SQVI. It worked fine in development client.
Now, I have transported it to Quality client were no problems while transporting.
But when i Executed it in Quality system. It is not working exactly the way it should. It is giving wrong results and it is taking so
much time to execute and give output.
Could any one please help me in this issue.
Thanks and Regards,
Venki.
Edited by: Venky Naga on Jun 29, 2009 4:10 PMHi,
Using the FM : RSAQ_GENERATE_PROGRAM try to generate/activate the SAP Query in the Quality system.
If you have access to the SAP Query, Try to adjust the query in SQ01
SQ01-Menu->Query->More functions->Adjust/Generate Program/Activate
Hope this helps
Regards
Shiva
Edited by: Shiva Kumar Tirumalasetty on Jun 29, 2009 7:47 PM -
Error in the SAP query for Assets?
Hi,
I am trying to make 2 queries related to the assets but it is not selecting the data may I know why and where I am doing wrong.
I have joined the tables ANLA, ANLC, ANLP and ANLB.
Fields that have been selected are as follows:
Asset Subnumber ANLA-ANLN2
Asset Class ANLA-ANLKL
Asset description ANLA-TXT50
Company Code ANLA-BUKRS
Serial number ANLA-SERNR
Main Asset Number ANLA-ANLN1
Asset Subnumber ANLA-ANLN2
Asset Class ANLA-ANLKL
Asset description ANLA-TXT50
Company Code ANLA-BUKRS
Serial number ANLA-SERNR
Main Asset Number ANLA-ANLN1
Fiscal Year ANLC-GJAHR
Ordinary depreciation posted in the current year ANLC-NAFAG
Planned ordinary depreciation for the year ANLC-NAFAP
Accumulated ordinary depreciation ANLC-KNAFA
Cumulative acquisition and production costs ANLC-KANSW
Asset Subnumber ANLA-ANLN2
Asset Class ANLA-ANLKL
Asset description ANLA-TXT50
Company Code ANLA-BUKRS
Serial number ANLA-SERNR
Main Asset Number ANLA-ANLN1
Fiscal Year ANLC-GJAHR
Ordinary depreciation posted in the current year ANLC-NAFAG
Planned ordinary depreciation for the year ANLC-NAFAP
Accumulated ordinary depreciation ANLC-KNAFA
Cumulative acquisition and production costs ANLC-KANSW
Transactions for the year affecting asset values ANLP-ANSWL
Planned ordinary depreciation for the year ANLP-NAFAP
Ordinary depreciation posted in the current year ANLP-NAFAG
Ordinary depreciation to be posted ANLP-NAFAZ
Asset acquisition year (currently not used) ANLP-ZUJHR
Depreciation calculation period ANLP-PERAF
Original useful life in years ANLB-NDURJ
Depreciation key ANLB-AFASL
Please tell me where SAP query is no working and what shall I do to make it work.
Thanks and regards
NitinThanks !!!!
-
Output Technical Field Names in the SAP query Output
Hi Experts,
I am new to SAP Query/ABAP Query or Quick Viewer. Just would like to know if there is a way whereby I can print the technical field names as opposed to the English field headers. For example I want to print BUKRS in the place of CoCode.
I have a vague feeling this could be possible through custom coding in SQ02 but have no idea which code section to choose.Any inputs greatly appreciated.
thanks in advance,Hi Sreegopalan,
Open your infoset in SQ02, by default in the left hand side you'll be having the tables that you have selected, double click the field name which you want change the long text, it will open a attributes window below your field group. Change the header data text as you wish.
Please find the query documentation in the below link.
[http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf]
Regards,
Nandha -
Fastest way to run the SAP query Infoset
I get runtime error with below code, can anyone suggest fastest output. Same logic as below: Thanks in advanced!
TABLES: LIPS.
SELECT SINGLE *
FROM LIPS
WHERE VGBEL = EKPO-EBELN
AND VGPOS = EKPO-EBELP
AND MATNR = EKPO-MATNR.
IF SY-SUBRC = 0.
DELIVERY = LIPS-VBELN.
STORLOC = LIPS-LGORT.
CREATED_BY_DELIV = LIPS-ERNAM.
CREATED_DAY_DELIV = LIPS-ERDAT.
ELSE.
DELIVERY = ' '.
STORLOC = ' '.
CREATED_BY_DELIV = ' '.
CREATED_DAY_DELIV = ' '.
ENDIF.Hi Jay
I have also got the same problem as above , i have also used the same technique which you mentioned ie connecting EKKO TO EKES and then to LIPS .
But EKES is not having some PO No( EBELN ) but where as LIPS should select fields for that EBELN .
IF GT_EKPO IS NOT INITIAL.
SELECT *
FROM ekes INTO TABLE gt_ekes1 FOR ALL ENTRIES IN gt_ekpo
WHERE ebeln = gt_ekpo-ebeln AND
ebelp = gt_ekpo-ebelp .
IF NOT GT_EKES IS INITIAL.
SELECT *
FROM lips INTO TABLE gt_lips FOR ALL ENTRIES IN
gt_ekes1 WHERE vbeln = gt_ekes1-vbeln
and posnr = gt_ekes1-vbelp .
ENDIF.
ENDIF.
Please help me if you have any solution.
Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 5:51 PM -
Could anyone provide the complete manual of SAP Query Creation
Hi,
Now I am learning to create SAP Query.
I viewed many questions and answers about SAP Query.
Some mentioned this,and some did that...
Could anyone provide a complete manual of SAP Query Creation for developers.
I can create SAP Queries step by step with it.http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
Step-by-step guide for creating ABAP query
http://www.sappoint.com/abap/ab4query.pdf
ABAP query is mostly used by functional consultants.
SAP Query
Purpose
The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
Features
SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
All the data required by users for their lists can be selected from any SAP table created by the customer.
To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
use either SQ02 ans SQ01
or SQVI tr code
for more information please go thru this url:
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
http://goldenink.com/abap/sap_query.html
Please check this PDF document (starting page 352) perhaps it will help u.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
check the below link will be helpful for u
Tutorial on SQVI
once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
useful
http://www.erpgenie.com/abap/code/abap47.htm
regards,
Prabhu
reward if it is helpful -
How show the Extractor's Sap query
Hi masters,
I have a custom extractor in R/3 created with SAP Query method.
By RSA2, if I try to double click on Extractor name it does not succeed nothing!
How can I see the Sap Query created behind The Extractor?
Thanks so much!Hi Martina,
if you want see the infoset in the extractor use sq02.
Bye -
Where can I get the itab of generated sap query?
Hi all,
I generated a sap query which can display list of table in SAP ALV.
Now I need to get the itab from the generated codes to perform some custom coding like sending the display list in email body message.
Where can I get the itab now? From the SAP Query program I noted:
data: begin of %g00 occurs 100,
P0000-PERNR like P0000-PERNR,
P0002-VORNA like P0002-VORNA,
P0002-NACHN like P0002-NACHN,
P0019-MNDAT like P0019-MNDAT,
P0019-BVMRK like P0019-BVMRK,
TEXT_P0019_BVMRK like TEXT_P0019_BVMRK,
P0019-TERMN like P0019-TERMN,
P0019-TMART like P0019-TMART,
TEXT_P0019_TMART like TEXT_P0019_TMART,
SYHR_A_P0019_AF_TEXT1 like SYHR_A_P0019_AF_TEXT1,
SYHR_A_P0019_AF_TEXT2 like SYHR_A_P0019_AF_TEXT2,
SYHR_A_P0019_AF_TEXT3 like SYHR_A_P0019_AF_TEXT3,
P0019-UNAME like P0019-UNAME,
%alvcount type i,
end of %g00.
data: begin of %%g00,
P0000-PERNR(008),
P0002-VORNA(030),
P0002-NACHN(030),
P0019-MNDAT(010),
P0019-BVMRK(001),
TEXT_P0019_BVMRK(040),
P0019-TERMN(010),
P0019-TMART(002),
TEXT_P0019_TMART(081),
SYHR_A_P0019_AF_TEXT1(072),
SYHR_A_P0019_AF_TEXT2(072),
SYHR_A_P0019_AF_TEXT3(072),
P0019-UNAME(012),
end of %%g00.
I tried to declare DATA lt_g00 TYPE TABLE OF %g00 in infoset (END-OF-SELECTION After list output) but it cannot compile. It gives out the error message: Type "%G00" is unknown
Anyone have any idea?Hi, colleagues!
If someone's facing the same problem - it seems to be that the only solution is to use something like this:
FIELD-SYMBOLS: <fs_alv_copy> TYPE ANY TABLE.
ASSIGN ('(NAME_OF_YOUR_GENERATED_REPORT)%G00[]')
TO <fs_alv_copy>.
and then work with field symbol. -
Creation of SAP Query in SQ02 with Single Table With Condition
Hi All,
I want to Create SAP Query in SQ02 using single Table MCHA.
ii) I dont want all entries of MCHA Table I mean , I have to apply some Condition on this Table.
i.e Suppose I am having actual data in MCHA table is like this for Material M1.
Plant Material Batch BatchCreationdate
P1 M1 B1 20.06.2007
P2 M1 B1 04.05.2009
P3 M1 B1 04.05.2009
But I want the Output of SAP Query is like this:
Material Batch BatchCreationdate
M1 B1 20.06.2007
That is irrespective of Plant if Material & Batch are equal ---> 1st record with Lowest date shoud get at the output.
Please help me How write the code on single table in the SAP Query.
Thanks,
Kiran ManyamHi,
Your query should be like this:
Select MATNR CHARG HSDAT
from MCHA
into table t_mcha
where matnr = Materlal number from selection screen.
The structure of t_mcha should contain the fields that you select.
Then sort the table by date ascending
Sort t_mcha by HSDAT.
Hope this solves your problem.
Thanks,
Sowmya -
How to call SAP query in a program
Hi experts
I have created a query in SQVI its gives a result. Now i want this query to be used in my program. Is there any FM which gets the quary name and populates the result in iternal table. So that i can use that result.
I know without query you can write using the tables you can fetch the records but i just want to explore a new way to do things. If any body done such type let me know and also give some sample code or process how to achieve it.
Regards
VijayHi Siva
My final option is that only. That you can do any how. But my intension is to learn something new way. How to do copy the query and where to inject the code is there any example in wiki or artical for that. I want to something new. Old way of creating a report program is possible i want to do this way. If some body could help me out.
@ karthik
I have generated the SAP query and i got the program but when i view the code i dont find any select statment or where storing my input data. How to identity that i did in debug mode but am not sure where it pulls the data and where it put in internal table. Can you throw some light with example code or an article.
Regards
Vijay -
Selection screen modification in case of SAP Query
Hi All,
I want to modify the selection screen in a standard progam.
This program is getting generated through SAP QUERY.
i want to modify some fields and also delete some fields in the
selection screen. All these fields which i want to modify or delete
are the logical database fields.So i can't do it through the t-code SQ01
and SQ02. Also this is a program generated through the SAP QUERY,
so i can't modify the generated code. Request if any one of you can suggest me to solve this.
Waiting for a prompt reply!!
Thanks,
RupeshGo to SQ02
Select your Infoset-->Change
On next Screen.
Select GoTo->Code->Initialization.
Write there code
LOOP AT SCREEN.
IF screen-name EQ 'SP$00004'.
screen-required = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
Additional fields in SAP Query
Hi ,
We have a requirement in HR reporting wherein we are providing the late attendance records of the employees. That is the person is scheduled to come at a respective time but he comes in late and this record is created in attendence infotype . Now we need to see the variance in his planned and actual arrival . Majorly all the fields are availabe in the Infosets but the one with the variance is not there . So do we need to create a custom report for the same or it can be handled in the SAP query adding one field for calculation. If it can be handled , how can that be possible .
Thanks & RegardsPlease check this link:
Re: query report
I guess, it can help for your case too...
Even this:
Re: sap query infoset and fieldgroup
Re: Additional field in SAP Query
Kind Regards
Eswar -
Transaction code thro' SAP Query for customer spefific report
hi experts,
how to create transaction code (using SE43-) for the sap query created on own??
I have created the following required for a customer specific report
1.Infoset thro sq02
2.user group thro sq03 and assigned it to infoset
3.query thro sq01 and saved it with text
earlier i have used logical database PNPCE ( relevant for PA and payroll modules reports)
using sq01 , go to basic list , selected required infotypes and fields and
then selected, SAP List viewer for viewing and i get the report.
Now my question is how to create a separate transaction code for this sap query which i created
should i use SE43( area menu maintenance and area class???_)
should i create a variant and go to SE43??
advice solicited
snrHello
when you excecute the query in right han side corner you can get the program name
go to se80 select program & type this name and then you can create a tcode for that prog in SE80
reward points if helpful.
the prog name will be something like : AQZZ/SAPQUERY/* " ur query name
you can search for the name also in this manner
Maybe you are looking for
-
I am having problems deleting unwanted photos from my photos app on my ipad, I synced with my pc as i wanted to see how the system worked, and now i cannot delete any of them, even with the delete button at the top left hand side, which does not func
-
Laptop won't let me play any video or change the brightness of the screen at all.
I got this new Laptop a few months ago and it has just recently started to play up slightly and not let me change my brightness settings at all and now it won't let me play any videos.
-
Wireless printing connection over large network
I have computer in a large apt. complex which comes with Wifi, and a single password for everyone in the building. I have a Wireless HP Printer and a Mac OSX.6 . I want to be able to wirelessly connect the printer to my Mac, but the printer wont ac
-
Which PI is better for Wireless, 1.4 or 2.0?
Simple question:- Which Prime Infrastructure is best for managing a Cisco wireless solution, Version 1.4 or 2.0?
-
Spotlight after TM restore (snow leopard)
Hi guys, I restored my Mac with TM. Im booting Snow Leopard. After the restoration spotlight isnt working. Someone can help? Thnx