Exporting Report Result - abap query
I've Created Abap Query & output is coming
like
invoive no. cust name
700001 xyz
700001 xyz
700001 xyz
700001 xyz After sorting based on invoice number & cust name o/p is as below
invoive no. cust name
700001 xyz
i want to export this in same format to excel file .
But when i'm trying to do so it's coming like this itself .
invoive no. cust name
700001 xyz
700001 xyz
700001 xyz
700001 xyz
Hi,
To the best of my understanding the o/p that will be moved to excel will always be the one that you get on running the query the first time, processing done after that will not move to excel.
Regards,
Saurabh
Similar Messages
-
How can the user export report results to an excel, csv or pdf document.
Where can that option be added?
Thanks in advance.You should have the following options at the bottom of each Report.
Refresh - Printer Friendly- Download
Amit -
Generating a report using ABAP query
Hi All,
I want to generate a anlytical report using ABAP query, There are 3 different transactions/steps have to be executed to get this data in an actionable form.
1. MB52 - Unrestricted Stock
2. ZCustomquery - Custom query in SAP R3
3. Combine above two in a single report.
Please suggest me how can i proceed,
1. Example i have created query name called Finalrepot
2. How can i call above zcustomquery and Transaction (MB52) in the Query.
Thanks for your help
PradeepHi,
Check below link to create ABAP query (SAP Query)
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
Best regards,
Brijesh -
Development of Reports using ABAP Query
Hi
can anyone please tell me about 'Development of Reports using ABAP Query' and how to use it in real time
Thanks
jaylook here:
http://help.sap.com/saphelp_47x200/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
A. -
Using Powershell Script Run simple query in MS Access 2007 and export the results of query to Excel
Hi Experts,
I have a Access 2007 DB file and 2 Big tables inside that (bigger than the size that can be easily handled by MS Excel 2007).
My requirement is automate using powershell scripts the below things.
1. Create a SQL query in Access DB and save that in access DB
2. Run the saved query and export the result in excel sheet where I can create the charts and Pivots. Thanks in advance
PrajeshDo you have to use the Access query, couldn't you just recreate the query in Powershell? Here's a link with good info that references an existing script for querying an Access database:
http://blogs.technet.com/b/heyscriptingguy/archive/2009/08/13/hey-scripting-guy-can-i-query-a-microsoft-access-database-with-a-windows-powershell-script.aspx
Once you have your dataset you can pipe it to
Export-Csv -NoType c:\pathtofile\output.csv -
Excess Inventory/Scheduled Receipts Report using ABAP Query.
Hi All,
I want to create a ABAP query for Excess inventory & Scheduled receipts in a single report. I have identified tables, fields and some extra calculated fields in the report. Here are the following tables and fields.
EKPO-MATNR ( Material number)
EKPO-WERKS ( Plant)
MAKT-MAKTX (Material Discription)
MARC-MAABC ( ABC indicator)
LFA1-NAME1 ( Supplier name)
MBEW-STPRS (Total value)
EKET-EINDT ( Item delivery date)
RIBOF-AMOUNT
S939-SPWOC or S032-SPWOC
Calculation fields : Value execess this week.extend value, over or under this week, onhand inventory for last week and this week.
Here my question is, when i was creating a infoset, how do i maintain relationship or joins from one table to another table...Is there any sequence for the above tables? Pl suggest. When i was adding all the tables in a infoset and try join the tables...it says illegal join...
Pl suggest me.
Thanks for your help
PRadeep
Edited by: Venkata Pr Papulugari on Jul 18, 2008 1:37 AMHi Gordon,
What i need to display is the remainder of the transaction that was received... if it is zero (0), i don't want to display it.
i.e.
transact # 100 inqty = 5
transact # 200 outqty =1
I'd like to display
transact # 100 qty on hand = 4
right know the transaction # that i am displaying is transact # 200.
And also, it needs to be warehouse oriented. because i can have multiple warehose transactions.... and i am getting that wrong too.
Regards,
Manuel Roman -
Interactive reports using ABAP query
I have developed an ABAP query which prints the sales documents in ALV list display.
In that list display I would do develop a functionality is , when ever i double click on the sales doc number it will directly go to the VA03 transaction for the corresponding VBELN.
Can anybody explain how to do this?Hi,
When you double-click on any cell of alv, use this code to fetch the data of the line that you currently clicked, its working:-
When you double click on the ALV line, you will have sy-ucomm = '&IC1'.
So when you define a i_callback_user_command for the FM reuse_alv_list_display,
i_callback_user_command = 'COMMAND' " for User-Command
and create it as:-
FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA : ok_code TYPE sy-ucomm.
ok_code = ucomm.
CASE ok_code.
WHEN '&IC1'. "for double click on alv line
" your code
ENDCASE.
ENDFORM.
As you have used selfield TYPE slis_selfield, the field selfield will hold all the values.
To know on which row you have clicked and to retain that line, use code:-
Suppose you are currently displaying data from internal table itab and corresponding to it you have work area wa.
read table itab into wa index selfield-tabindex. "index value of line you clicked
" now you have the contents of line that you double clicked currently
Now to know the field name that you clicked, use:-
selfield-fieldname " will fetch you the name of field that you clicked
Now using the work-area and the name of field that you clicked, you can easily make out the details of the field i.e., field name and field value and you can code as per your requirement.
Refer:-
CASE selfield-fieldname.
WHEN 'VBELN'.
SET PARAMETER ID 'AUN' FIELD <wa-vbeln>. "value for work area for vbeln
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDCASE.
Hope this helps you.
Regards,
Tarun -
Hoe top create summary and detail report using ABAP QUERY
Hi ,
Can any one suggest me how to create summary and detailed report using ABAP Quey.
Regards,
Raghu.Hi,
Table Declaration
tables:mara,mast.
*Declaring the internal table
data: begin of itab_new occurs 0,
matnr like mara-matnr, "Material No
ernam like mara-ernam, "Material Created by
mtart like mara-mtart, "Material Type
matkl like mara-matkl, "Material Desc
werks like mast-werks, "Plant
aenam like mast-aenam, "BOM created
stlal like mast-stlal, "Alternative BOM
end of itab_new.
select-options: p_matnr for mara-matnr.
CODE A : Retrieving the data from the database
select f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
into table itab_new
from mara as f inner join mast as m
on f~matnr = m~matnr
where f~matnr in p_matnr.
CODE B : Retrieving the data from the database.
SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
INTO TABLE ITAB_NEW
FROM MARA AS F INNER JOIN MAST AS M
ON FMATNR = MMATNR
WHERE F~MATNR = P_MATNR.
SORT ITAB_NEW BY ERNAM.
loop at itab_new.
write:/5 itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
endloop.
*TABLES: MARA , MAST.
*DATA:BEGIN OF ITAB_NEW OCCURS 0,
MATNR LIKE MARA-MATNR,
ERNAM LIKE MARA-ERNAM,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
END OF ITAB_NEW.
SELECT MATNR ERNAM MTART MATKL
INTO TABLE ITAB_NEW
FROM MARA
WHERE MTART = 'T'
ORDER BY MATNR ERNAM MTART MATKL.
*DATA: BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF ITAB.
Thank U,
Jay.... -
Create a report from ABAP Query (SQ02)
Hi, guys.
I must create a SE38- report that simulate the selection of a query in sq02.
How can I do for call the query in my own report? (I know all...user group, name, structure name)
I can do other elaboration from data after the calling of the query data?
Thanks a lot for who answer me.
Have a nice day.
Edited by: Alessio Cantarelli on Feb 22, 2012 10:00 AMThanks to all, it's allright.
I found the program using the other function in 'Query' menù and copy with all the includes in my own report.
Than, it was easy.
Have a nice day -
Gross Salary Report Need to develop in ABAP Query -sap-hr
Dear Experts,
i need to create salary report through ABAP-query.
i have following below stops.
1)Create user group thorugh SQ03.
2) Having problem in creating Infosets,as i need to use PNPCE as ldb and p9001,p9002,p9008,p9000,p90402.but when i am created infoset it is showing in order p9000,p9001,p9002,p9008,p90402.and i am not finding any where join condition,how will i join these.
Didnt find any tutorials..for HR abap-query
please advice.
Thanks & Regards
AnwarDear Experts,
i need to create salary report through ABAP-query.
i have following below stops.
1)Create user group thorugh SQ03.
2) Having problem in creating Infosets,as i need to use PNPCE as ldb and p9001,p9002,p9008,p9000,p90402.but when i am created infoset it is showing in order p9000,p9001,p9002,p9008,p90402.and i am not finding any where join condition,how will i join these.
Didnt find any tutorials..for HR abap-query
please advice.
Thanks & Regards
Anwar -
Hello Gurus'
If any ABAP Query reports other then standard reports in MM pls give like that reports.
if any body come a cross developed reports thru abap query some thing is not possible thru standard reports in mm.
Ian doing the project so i need like that reports pls help me boss.
Regards
LaxmanHi,
If it is Indian Scenarios try to develop the reports like
The Output of the Report should be like this.
1) PRPOVendorMatrl Doc-Mvt typeSubcontracting challen Qty sendQty recievedQty pending
2) PRPOQty- Price-GR-QtyIRQtyInvoice Amt
3) Pending PRs,Pending POs, Pending GRs, Pending IRs
4) J1ID table details in ALV GRID format
Material excise details, output & input material number, Assessable value,
rgds
Chidanand -
hi
experts,
i am developing a report using abap query .(stand t code is s_alr_87012277 it contain more fields but i want only 4 fields , i found 2 but remaining 2 are from structure)
my problem is that debit and credit amount is in structure
how i can get data from structure(FAGL_S_RFSSLD00_LIST )
solbm = debit.
habbm = credit.
report is like
op.
gl acc no, discription, credit amount,debit amount.Hi ajay,
try to use with logical database SDF.
assign the logical database name in info set.
gl acc no - SKA1-SAKNR
debit. - Field: um02h
credit. - field: um02s
discription - SKAT-TXT20
regards,
sateesh. -
Transport of ABAP query to production server
Hi!
I have developed a report with ABAP query in development server with transaction codes SQ01, SQ02 AND SQ03 respectively.
I also got the program name from SQ01.
Now , how to attach a transaction code with the program that is generated from ABAP query and transport it to production server
successfully.
If the program is attached directly to the tr code through SE93 and transported----- program is not found in the pr. server.
pls help me out , requirement is very urgent.
points to be rewarded .
regards
Amithi amit,
if i understood correctly.is ur query and infoset transported or imported to production.
Regards,
sudheer -
ABAP Query: Access variables in ABAP Program through InfoSet Query.
Hi,
While generating a report using ABAP Query Tool, how can we access the variables in the ABAP Program in the InfoSet Query?
Thanks in Advance!!!HI,
Dear, it seems that you have changed the query in SQ02 and then just save it and not generated.
or may be after generation again clicked on SAVE button.
So untill unless you will not generate the query, it won't work.
Secondly, by chanegs in the query, i don't think it changes the name of the main program.
Regds,
Anil -
Attach a transaction code to abap query program
Hi!
I have developed a report with ABAP query in development server with transaction codes SQ01, SQ02 AND SQ03 respectively.
program is generated from SQ01 and i also got the program name from SQ01.
Now how to attach a transaction code with the program that is generated from ABAP query and transport it to production server
successfully.
points to be rewarded .
regards
Amithiiii
go to
sq02 ->
Select Environment -> Query Areas..
Select Standard Area (Client specific)
(If Query does not exist in Standard Area then You will have to copy that Query From Global Area to Standard Area.)
For Coping Query From Global To standard first select that query from list.
Now select Environment-> Transports
In next screen select Copy Global to standard radio button.
Check Overwriting allowed (only with import/upload/copy)
Remove Check for Test Run
Select Transport InfoSets and queries radio button
Fill Infoset and Query with corresponding names.
Now Press Execute button.Copy Log will be displayed.
Now Query exist in Global & Standard Area.
Go to SQ02 .
Select Environment -> Query Areas..
Select Standard Area (Client specific)
Select Infoset from list.
Select Download radio button
Check Overwriting allowed (only with import/upload/copy)
Remove Check for Test Run
Select Transport InfoSets and queries radio button
Click on Execute button
same way you can upload sap query..from one system to another
regards
twinkal
Fill Infoset and Query with corresponding names.
Maybe you are looking for
-
Hi All, I am try to retrive data from a derby database for which I have created a WSDL from database and passing one value in the request and trying to retrive the record based on the value given in the request. But I am getting the below error while
-
I recently lost my iphone 4 and have an iphone3 on loan until I get upgrade in Aug. I want to sync my data - contacts most important - from my itunes account...is this possible? Is it possible to change the user ID on the borrowed phone to my ID?
-
Does turning off backup erase existing backups?
I was surprised to find all my iphone and ipad backups on iCloud had disappeared! It seems as if disabling (switching off) auto backups in the device settings ERASES all existing backups WITHOUT warning! Since the autoback runs whenever the device is
-
Is it possible to load rt.jar?
Hi! I need some classes found in JDK 1.3.1, is it possible to load rt.jar into Oracle 9i? I've tried with but there are lots of errors (I've even decompressed and zipped it again since I was told it could help). Any ideas? Thanks!
-
Audio degrades after media is loaded. Reload cures that.
When I load media the sound quality of the clip degrade about about an hour. I am not applying any filters, but it sounds like the background noise filter has accidentally been applied at a high level. I have to dump the clip and reload it from the