How to execute ABAP QUERY.
Hi all,
I know how to create ABAP QUERY using transactions SQ01,SQ02 and SQ03.But after creating it how to and where to use it.
Rgds,
Tkp
Hi,
Check this link..
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
Thanks,
Naren
Similar Messages
-
how we create abap query can any1 tell me?
Reporting tool :Standard reports
Purpose :Provide solutions for your most frequent reporting requirements
Advantages :Can be used immediately
No developments required
Limitations :Limited flexibility
Output fields cannot be selected as required
HIS
Purpose :Hierarchies are displayed as graphics
Reports are executed using selected structures or substructures, that is, using preselected sets of objects
Advantages :User-friendly method of displaying hierarchical structures
Integration with InfoSet Query and standard reports
No need to switch from one HR application to another if you want to execute reports from different applications
Little training required
Limitations : Limited flexibility
Tool is used to execute standard reports and customer reports
It cannot be used to create reports
InfoSet Query
Purpose :Intuitive, general SAP reporting tool used to create customer reports
Enables you to create reports for all areas of HR
When InfoSet Query is accessed from Human Resources (HR), the Query area and User group parameters already contain values and you can only perform ad hoc reporting. If InfoSet Query is accessed this way, it is called Ad Hoc Query in HR (see HR in InfoSet Query).
Advantages :User-friendly interface
Very easy to use
No programming required
If integrated with SAP Query, you can continue processing queries using SAP Query
Set operations enable you to create sets of objects as required for which data must be output
Can be included in roles using a suitable InfoSet
Limitations :InfoSets and user groups must be defined in SAP Query before you can use InfoSet Query
Multiline lists cannot be displayed
SAP Query
Purpose :General SAP reporting tool used to create customer reports
Individual definition of user groups, InfoSets, and queries
Advantages :Extremely flexible
No programming required
Queries can be provided in the SAP Easy Access menu
Includes numerous options for aggregating data, performing calculations, and displaying graphics
Enables you to display multiline lists
Enables you to define one basic list and several statistics and ranked lists for each query
Limitations :Restricted to data from the R/3 System
Each HR query can process data from just one HR logical database:
PNP: Administration, Time Management, and Payroll
PCH: Generally for all areas, but particularly suitable for reporting on data from Personnel Planning
PAP: Recruitment
Requires much more training than other options
Limitations:Data is extracted from OLTP systems, that is, real-time data is not accessed
Business Information Warehouse
Purpose :Analytical reporting tool used for information and decision-making purposes
Advantages : Extremely flexible
Facilitates complex calculations (calculation of averages, time series comparisons)
Enables you to access non-SAP data
Easy to use
Uses OLAP technology
Includes detailed Business Content (HR extractors, InfoCubes, key figures, and standard queries
i think it is adhoc query not abap query -
How to execute SQL Query in Code behind Using infopath 2010?
Hi,
I've repeatable on infopath form, and want bind it throuth code behind from SQL table. My question is that how to execute SQL Query in code behind from infopath as well as how would get Query result to bind repeatable control?
Thanks In Advance
Shoeb AhmadHello,
You first need to add new SQL DB connection then you need execute connection from code behind.
See below link to create new connection
http://office.microsoft.com/en-in/infopath-help/add-a-data-connection-to-a-microsoft-sql-server-database-HP010092823.aspx:
http://www.bizsupportonline.net/infopath2010/connect-infopath-2010-sql-server-2008-table.htm
Then use below code to execute this connection:
AdoQueryConnection conn = (AdoQueryConnection)(this.DataConnections["Data connection name"]);
string origCommand = Select * from tablename;
conn.Command = origCommand;
conn.Execute();
Finally bind your table:
http://www.bizsupportonline.net/infopath2007/4-way-programmatically-add-row-repeating-table.htm
http://stevemannspath.blogspot.in/2010/09/infopath-20072010-populate-repeating.html
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to get the name of an executing ABAP query in run time
Hi ABAP Gurus,
I need to get the ABAP query name when it's running. For example we can get the current executing ABAP program name from SY-REPID.
My tried logic - every query generates an ABAP program like AQZZUGQUERY. 'UG' stands for user-group name and the length specified for it is 12, if the length of the user-group name is less than 12, then the rest will be filled by '='. Next 'QUERY' stands for ABAP query name and the length specified for it is 14, if less, then the rest will be filled in with '=' in the right. I've tried to extract the query name by using cut and trip (offset) operations.
But somehow this logic is not working - always it's picking up the function name as checked in debug mode.
Guys - Can you please provide me the solution on this.
Thanks & regards,
Jayanta Bej.Guys,
I've cracked the issue. Instead of retrieving the query name from sy-repid, I've retrieved it from sy-cprog and the problem is resolved.
Thanks guys for your quick responses.
Thanks and regards,
Jayanta Bej. -
How to publish ABAP query to MSS/Portal
Hi,
Can someone please guide me on how can I publish a ABAP query to web using MSS.
Thanks
SalimHi,
You can display the reports in the portal directly or through creating the iviews in the PCD content.
Directly Displaying the query in the portal options:-
Option 1. Go to the query designer >Open any Query>Select Execute.
The report will be displayed in the portal.
Option 2. Go to the query Designer> open any Query>In tool select Query.select Publish>To Portal.
Creating the Iviews:-
1. In your portal PCD content create the iview for the xisting query and assing the iview to page anf page to workset .
Assign th page to any role in the portal , through tis roles you can directly log in to the portal and access the query in the portal.
Ram. -
How to execute a query in javascript
i have to give alert("record exists"),if the record alredy exists in the database.how to do it, by executing a query in javascript. please suggest me something with example
You cant use Javascript itself for queries
The query will be done in your java code .
Easiest soloution is to simply submityour page and have it display the exist warning as response.
More complex answer is to use XMlHttprequest to do the query in the background and have it eventually display the warning -
How to retrieve ABAP query field metedata using SAP JCO?
How can I retrieve all field details (such as field name, field description, output length field type) using SAP JCO for an ABAP Query?
I have query name, user group, query area and infoset name with me.
ThanksHi,
Please use the DDIF_FIELDINFO_GET (standard) Function Module to retireve the details which you have mentioned.
Thanks,
Arun -
How to execute a query than open a popup?
Hi,
We created a custom OA module. This module has buttons on it. Those buttons generates events. Depending on each event, I should execute a query, transform the result in a xml than open a popup and pass the xml content to the jsp page that was opened.
what have I done so far:
- Threat the events generated by the buttons - That is being done on the processFormRequest in the CO;
- The CO has to call a AM method to execute a query. That is not done but it is easy to do it;
- The "resultset" of the query has to be transformed to a xml. If some one can give me a clue how to do it would be nice;
- Finally, in the CO with the xml, open a popup passing the xml. How can this be done?.
thanks,
Marcelo- The "resultset" of the query has to be transformed to a xml. If some one can give me a clue how to do it would be nice;
You can get the VO resultset as XML using writeXML method in VOImpl.- Finally, in the CO with the xml, open a popup passing the xml. How can this be done?.
Is the new page being opened a OAF page ? if yes then you can just retain the AM when you go to the new page and you will have the VO with the data in it, you can then use the VO as is or write the XML from the VO data.If , on the other hand, your new page is not a OAF page and is a simple jsp, then
I dont think it is a good idea to pass the entire resultset as a XML to the target page, instead, you can just popup the page on press of the button and execute and generate the XML in the target page.
Thanks,
Tapash -
Please help on how Bex execute the query designed in query designer.
Hi All,
Want to know how bex execute/interpret the query when the query is execute in analyzer.
I mean which part of the query is executed first, like filter,RKF or CKF etc.
Want to do step by step analysis .Please suggest on this.
Thanks & Regards
Sameer KhanHI,
When u execute the query...It will fetch the Global filters data first ....means filters on Default values....then restrictions on Char Restriction pannnel....Then calculate the RKF and CKF,s....Conditions and Exeptions etc.......
Thanks -
How to execute sql query stored in a variable
Hi
define query = 'select * from abc;'
then how to execute this defined variable query.
Thanks,
ShyamEXECUTE IMMEDIATE mmy_sql --(variable
INTO mmy_default_bill_type;
by kumar. -
How to execute the query from different blocks in Forms
Hi,
Curently I have a case where I need to execute the query from some other block. I used
l_curr_item VARCHAR2(62) := :SYSTEM.CURSOR_ITEM;
Go_Block ('BLOCK2');
Execute_Query;
Go_Item(l_curr_item);
This works fine , but as I am using Go_Block it does some other activities related to that block, which I dont want them to get executed.
So can any one please suggest me how I can call the query alone without using the Go_Block .
Thank you.you can set global variable and filter for this variable in the triggers of blocks the actions then you avoid the code of trigger and you can use go_block
-
How to create ABAP Query for vendor open items
HI,
My client has requested me to create ABAP Query for vendor open items . So that it will be usefull for the users . Could anyone help me with this. I will assign you points.Thanks in advance.Hello,
Use Table BSIK <Open Items of AP > & BSAK <AP Cleared items>......
For Query you can use SQ01.
USE BSID & BSAD for AR open/clear items...
LFA1, LFB1 are vendor master data tables
This is FYI
Hope this helps.
Rgds
Rajendra -
How to transfer ABAP query from one server to another server
Hi all,
I have a ABAP query in development server and i need to transport it to production server.
I have attached a transaction to it using the program which got generated in the back ground
from the abap query in the developemnt server.
I have downloaded and uploaded a ABAP query from one server to another server.
But the program which got generated in the back ground in the production server is different from
program which is generated in the development server.
But my transaction is attached to the program in the development server.If i transport the transaction
to production server,it is giving error since that program is not present in the production server.
Am i going in the right way......?
Is there any problem in my upload/download procedure ?
Is there any way to achieve my purpose ...............?
Please kindly reply me at the earliest.You have different ways to call a query using a t.code. One way is to create a pgm with the following code and attach a t-code to it.
data: gv_test type sy-repid.
DATA: GV_USERGROUP TYPE AQADEF-BGNAME VALUE 'FI',
GV_QUERY TYPE AQADEF-QUNAME VALUE 'ZCON_FI_QUERY',
GV_RNAME TYPE AQADEF-PGNAME .
CALL FUNCTION 'RSAQ_REPORT_NAME'
EXPORTING
WORKSPACE = ''
USERGROUP = GV_USERGROUP
QUERY = GV_QUERY
IMPORTING
REPORTNAME = GV_RNAME
* For the dynamic excution of the called query assisgn GV_RNAME to <gv_test>.
gv_test = GV_RNAME.
SUBMIT (gv_test) via selection-screen and return.
Alternate way is while creating T-Code you choose option Transaction with parameters.
Transaction as START_REPORT and in default values table control at bottom give as follows
D_SREPOVARI-REPORTTYPE = AQ
D_SREPOVARI-REPORT = User group
D_SREPOVARI-EXTDREPORT = Your Query name
Regards
Sathar -
How to Execute sql query in PL/SQL ( a variable) with out using Cursor or REF cursor
Hi
I am building a dynamic query based on some conditions
as an example
v_query varchar2(2000);
x1 varchar2(20);
y1 varchar2(20);
z1 varchar2(20);
v_query := ' Select x,y,z into x1,y1,z1 From ... ';
Is there any way to execute the query with out using cursor or ref cursor..
Thanks
ArunBoth Tod and Eric provided valid responses given the format of the queory you supplied. Howver, if you want to use dynamic sql in either way, you need to be absolutely certain that your query will always only return a single row (e.g. SELECT COUNT(*) FROM mytable), because if it retuns more than one, your procedure will break unless you have an exception handler to handle either TOO_MANY_ROWS or OTHERS.
If you want to pull in a lot of data without walking a cursor, you should look at the BULK COLLECT options. -
How to execute a query when pressing a button
hi,
i created a frame (ADF Swing).
in this frame i have a textfield, a button and a jtable.
i want when i press on the button i execute a query which has a condition in the textfield and i want that the result will be shown in the jtable.
thanks for help.Hello,
I would test the record status of the first record in the block. If this status is 'NEW', then there is no record retrieved, so that you can exit the query mode with exit_form()
Francois
Maybe you are looking for
-
How do I get rid of Lasoaren? Remove program etc. doesn't do it.
Somewhere I went afoul in updating (I thought) Firefox - It took me a while to realize that "Lasoaren" is not a Firefox entity. I went to remove program, which it appeared to do, but I can't get rid of it. Windows Essentials does not "see" it. There
-
SolMan automatic mail notification.
Dear All, i had config all necessary settings for ticketing system through our solution manager . then i had config SCOt and then through PPF adm i had maintain action for message creater SLFN0002. and make a condition for In Process. So when ever i
-
How to create Short Lived process?..can neone pls help...
How to create Short Lived process?..can neone pls help...
-
I just bought a computer how do sych my iPhone
I downloaded iTunes, plugged in my iPhone and nothing happen. It only asked me if I wanted to update my system. I press download but it said I had to transfer my files fist...
-
I need to find out top 10 data loads that take the longest. How do i find this. Any info is helpful. Thanks