PAAH adhoc query - download to MS Excel
Dear All
I am using tcode paah to to calla query and generate a report,its working fine
when i try to download that report in to Microsoft excel ot shows a downmloaded excel with empty sheet with no data trasfered,but when i use save as local file and save in to spread sheet it is working fine.
Please let me know what could be the posible solution for this problem
regards
Saraswathi.P
This issue is due to the new GUI 710 of SAP. We had the same issue and we downloaded a patch which solved the problem. You can download the patch from SAP servicemarket place. It's GUI710_3-10002995.EXE. This problem is related to the new SAP GUI 7 patch-level 0. Check these two notes - 1023083 and note 578944
Sanghamitra
Similar Messages
-
How to export to adhoc query to Excel
I am trying to export a list of bank account into excel through Adhoc query, when I go to List >> Export >> Spreadsheet, there is only Xml format for me to choose. However, my colleague has the option to choose excel. Is this Windows setting or SAP setting?
Found the solution.
SE38 >> SALV_BS_ADMIN_MAINTAIN >> F8
Here we can select the default application for either global or user specific. -
Automating ADHOC query reports to generate Emails
Hi Experts
Hope you guys are doing fine.
I have a requirement where we need to automate the ADHOC query reports to trigger emails with the Excel attachment of the report to a set of users.
To explain in detail,we have some adhoc queries which are run manually on monthly basis(by our functional guys).Once the output report is generated,they used to download them into Excel document and send that to a set of users as an email attachment.
Now we are planning to automate the entire process,so that these query reports once set to run on monthly basis should trigger emails to set of users with the excel attachment.
Now,i am looking for solution on how to proceed on this.Since the program behind the query(which starts with AQ*) is not be a modifiable program,i can write any custom code here.Alternately,i planned to set a background job which runs the query and then use a custom pgm which reads the spool no for the pgm and then to read the data from the spool into an internal table and then use a FM to send the internal table data as an email attachment.But wasn't sure of what FM's to use to read the spool no. and data from the spool.
Is there any alternate way to work on this or any suggestions on my assumed process would be really appreciated.
ThanksOk, here's what you do:
- Go to T/C: SQ01 and find your query
- From the menu at the top select Query>More functions>Display Report Name (copy the report name)
- Go to Transaction SO23 and create a new shared distribution list - give it a name and title, click the dropdown on folder and click the create folder button, give the folder a name and save/green tick.
- Click on the Dist. list content tab and enter all the external email addresses that the report should go to ( the recipient type should be internet address or via internet or something like that)
- Go to Transaction SM36 and click on the Job wizard button, go through the wizard entering the program name we copied earlier. In the print parameters section make sure it is set to print immediately, then on the spool list recipients button select the dropdown box, select distributions lists and find the one you created earlier. Define the variants, periods, time etc etc
- When the job runs it will process the output via SAPConnect (transaction SCOT) you will be able to see the status of the emails by going to transaction SCOT and selecting the menu option Utilities>Overview send requests.
Job Done, Chillax
PS: remember the output type of the query in SQ01 needs to be set to excel or whatever you require otherwise a PDF/html attachment will be created in the email.
PPS: If SAPConnect is not set up in your system speak to your basis guy to set it up - If you don't have any basis resource, it is really easy to set up, plenty of guides around. -
Adhoc Query: Absence Leave report
Hi All,
I am trying to create a Query in Adhoc query for ABSENCE LIST.
so i have added few columns:
PERNR Value
PERNR TEXT
Personnel area Value
Personnel area Text
Personnel sub-area Value
Personnel sub-area Text
Company code Value
Company code Text
Postion name Text
Attendance or absence type value
Attendance or absence type Text
1. Here when i pick the Position from infotype 0001 it is displaying some default position along with the position
2. I need the list of employee who has taken leaves, and leave types are picked from infotype 2001. Here i am getting complete list of employees(employees who has not taken leaves)
So can we prepare a report employees who went on leaves based on the above requirement.
Please find the attachment.
Regards,
PrasadOn a more serious note,
A query is a simple spitting out of all the data, based on the fields you have selected, So if atleast one field has a valid value, and "Personnel Number" is one such field, you will get an output in the report.
What you will have to do is to assign certain key fields as selection fields as well as output fields, when designing the Ad-Hoc query.
Then use selection criteria to get out only the results you want, for example Absence Type = Annual Leave( don't want to type the abbreviation here), date range of BEGDA - 01.01.2014 - 30.04.2014, for example. Using Employment Status as a Selection field but not an Output field can help with ensuring inactive employees (i.e people with default positions) are not selected.
I often find that in any case, one always has to download the query output into Excel and do some final manipulations using filters and pivots etc.
Also, play around with the Key Date field, in the query design screen - see what happens if you use "Today" rather than a wider date range.
Hope this helps. -
How to enter /559 in Adhoc query?
How can we enter Secondary wage types in Adoc query? Step by step
Hi,
You can download the Employee wise Bank Details of IT0009 or using Adhoc query
You have employee wise WT reporter
Now do a Vlookup with the Employee Wt report and the Adhoc query.
If you have problems in vlookup
pls send both the files to me on hemant.mahale capgemini com
Regards
Hemant V. Mahale -
How to track changes in Adhoc query?
Hi all,
We have requirement for retrofitting the changes done in one Server to other, in the process the Changes in New server should not be overwritten.Currently for Adhoc queries - we're downloading from one server- loading to the New server.
Is there any way to track the changes in Adhoc query to avoid overwriting the changes.
Thanks in advance.
Harika.Hi,
You can download the Employee wise Bank Details of IT0009 or using Adhoc query
You have employee wise WT reporter
Now do a Vlookup with the Employee Wt report and the Adhoc query.
If you have problems in vlookup
pls send both the files to me on hemant.mahale capgemini com
Regards
Hemant V. Mahale -
Adhoc Query- problem with the output file format
Hi Gurus,
I have a problem in exporting the output of an adhoc query to Excel format.
The menu option I chose to export the report data into Excel is List>Export>Spreadsheet.
However,I think I've just pressed the wrong option to export my report and now I can't seem to change it from a HTML file option.
Can anybody help me correct this output setting.
Points assured for apt help...Hi Sushil,
There are two ways to save the output in the excel format.
As you have mentioned, you can use
List -> Export-> Spreadsheet.
Then select table. Now the output will open in a spreadsheet.
The other way is
List -> Export-> Local File
Here you need to select the option spreadsheet. Then mention the path where you want the file to be stored. Also mention the format as .xls
Hope this helps
Regards,
Brinda -
Hi SAPients..
I have a n issue in Adhoc Query
In Adhoc query report ( PQAH ), X person having authorization to see the folder Additional Personal Data (IT0077), but Y person can access the Adoc but could not see the folder (IT0077). Please guide what should I do to make the Y person can view the (IT0077) folder??
Appreciate your support on this, Please guide me.
ShanHi Shan,
What I undertand is as follows:
Person is having access to view IT77 and Y person is having access to t code - PQAH (Ad Hoc Reprot). you want to give Y person access of IT77.
In this case you would need to add the concerned role to y person's SAP user id by which he ll get acces to maintain IT77 ands also can download the report. The role name you can get from your security team or GRC team.
Hope this solves your query.
Sarang Kulkarni -
Hi Experts,
How authorization can be assigned to a query created by PAAH transaction (adhoc query).
If a query is created by particular user/user group, it should not be altered by other user / user group.
Please advice.Thanks in Advance.
Regards,
IFFHello,
Through P_PERNR we could restrict the authorisations for adhoc query for a particular user.
Using the employee sbu group field value found under the P_ORGINCON authorisation object we could restrict the authorisations for a particular group of users.
Hope this answers your query.
Kindly let me know if you need any further help in this regards.
Pramathesh. -
Download Data From Excel - VBA Code to SAP Using BDC
Hi ,
I am Sudhir Dure, working with Satyam Computers.
I need help on the below query:
I have an excel file which download data from Excel to SAP using RFC function & with the help of VBA interface.
In this VBA code I have used BDC recording of SAP Transaction KE21N to post data into SAP.
Now I am facing problem to find sub screen (tab page screen ) in SAP from VBA code .
How to pass BDC Subscreen details from VBA code to SAP using below code?
BDCTABLE.Rows.Add
BDCTABLE.Cell(J, "PROGRAM") = PROGRAMNAME
BDCTABLE.Cell(J, "DYNPRO") = "0200"
BDCTABLE.Cell(J, "DYNBEGIN") = "X"
BDCTABLE.Cell(J, "FNAM") = "BDC_OKCODE"
BDCTABLE.Cell(J, "FVAL") = "=NEXT"
Thanks,
Sudhir Dure
9972097464can anyone tell me how to get the PurchaseOrder number and item quantity from the Salesorder...? what are the fields here as given below..??
For Each oItem In oSalesOrder.items
wsTemplate.Range(cols(3) & Indexv).Value = oItem.material.material
'wsTemplate.Range(cols(4) & Indexv).Value = ' I need item quantity here ????
wsTemplate.Range(cols(1) & Indexv).Value = sapSoNumber
wsTemplate.Range(cols(2) & Indexv).Value = ' I need purchase order number here>???
Indexv = (Indexv + 1)
Next
reply fast. please .. thanks -
Hi,
By using Query (SQ01), we are able to download data in Excel format, Text format, etc. But... is there an option that I can download in CSV format.
Thanks.....
Rgds,
KianHi Kian,
you could save the Excel file in CSV format, couldn't you?
Regards
Bernd -
Hi,
Please let me know how to export ADHOC query from one client to another client.
Thanks
SomashreeHello, Somashree!
Maybe it will be useful for you: for exporting query to another client it's very simple using "Download" option in the report RSAQR3TR. It will be downloaded (as file) on your local machine.
To upload the query into another client using report RSAQR3TR you just need to select "Upload" option -> select saved file and press F8.
Regards,
Sergey Ignatov. -
Logical database in adhoc query
Hello All,
Can anyone tell me what is the logical database in adhoc query?Hi
When you create a query , you have to select an infoset. Infoset can be considered as a source from which data is populated in the Query Fields.
Infosets are created from Transaction SQ02.
There can be four methods through which an Infoset can become a source of data:
1. Table join ( By joining two or more tables from Data dictionary)
example: Joining tables PA0001 and PA0006 on Pernr to get a one resultant dataset
2. Direct read of Basis Table ( Like PA0001 as a source for data in Infoset )
3. Logical Database ( A Pre-written Program by SAP that extract data from clusters, tables taking care of authorizations and validity periods)
Example : Logical database PNP, PNPCE (Concurrent Employement),PCH ( LDB for Personnel Development Data)
Custom Logical DBs can be created in T_Code SE-36.
4. Data Retrieval by a Program ( Custom code written by ABAP developers which will collect and process data) . This program has a corresponding Structure in data dictionary and the fields of this structure will be used in query)
Reward Points, if helpful.
Regards
Waseem Imran -
Dear All,
When i am running adhoc query for a particular infotype iam getting fine.
My issue is iam not getting the start and end date of the record.
can any body help me out how to get the start date and end date of each record.
Thanks in advance
Regards
Ananya.KHi,
If you want to add the dates to the output of the querry, While creating/editing the query, you should add feilds ENDDA and BEGDA for the infotype to get the start and end date correct.
If this does not answer your question, could you explain your query in detail?
Thanks,
Dhiraj -
Problem in Adhoc Query's set operation functionality.
Hi Experts,
I am facing problem executing Adhoc Query's set operation functionality.
In Selection Tab, following operations are performed :-
Execute a query and mark it as 'Set A'.(Say Hit list = X)
Execute another query and mark it as 'Set B'.(Say Hit list = Y)
In Set operation Tab, following operations are performed :-:-
Carry out an Operations 'Set A minus Set B'.
which results in Resulting Set = Z.
Transfer the resulting set 'in hit list' and press the copy resulting set button.
In Selection Tab, Hit list is populated with Z.
And when output button is pressed, I get to see 'Y' list and not 'Z' list.
Kindly help.
Thanks.
YogeshHi Experts,
I am facing problem executing Adhoc Query's set operation functionality.
In Selection Tab, following operations are performed :-
Execute a query and mark it as 'Set A'.(Say Hit list = X)
Execute another query and mark it as 'Set B'.(Say Hit list = Y)
In Set operation Tab, following operations are performed :-:-
Carry out an Operations 'Set A minus Set B'.
which results in Resulting Set = Z.
Transfer the resulting set 'in hit list' and press the copy resulting set button.
In Selection Tab, Hit list is populated with Z.
And when output button is pressed, I get to see 'Y' list and not 'Z' list.
Kindly help.
Thanks.
Yogesh
Maybe you are looking for
-
Calling a procedure from java, conversion from bigdecimal to number(13,3)
Hello i have a procedure that i call from a java api among the parameter that i give to the procedure there is a bigdecimal parameter then i have to insert this value in a table the colum concerned has number(13.3) as a type here is the java call : p
-
I'm using this code to build an XML file and to write it on a file: DBConnect(); //connection to an Access DB StringBuffer sql = new StringBuffer(); sql.append("SELECT * FROM atleti ORDER BY id"); try{ rs = st.executeQuery(sql.t
-
Alternative for field exit on select-option
Good afternoon, I know that field exit doesn't work for select-option (SAP Note 29377, point 11) but i want to know if it exists an alternative (I use SAP 4.6, and an update to ECC6 is expected next month). The field exit would be the best option bec
-
Crystal Reports 8.5 and Ms-Sql in Citrix Environment
Hello All: I have a VB application that accessed data from a SQL-2005 database. We use Crystal (8.5) for several reports. On the network or using VNC viewer all the reports work fine. However when we access te reports from Citrix client, none of the
-
How to identify that my physical standby database in use real time apply?
Hi, Can any one give me the SQL to identifiy that my physical standby database is in real time applying redo logs? Its urgen please.... Thanks.