Automated HR Ad hoc queries

We are creating background job for running the report in background...but i want the output(report) to send an email in Excel format after the job run successfully...
The only problem is the attachemnt in the email we are getting it as HTML  (filename.htm). So is there any way we can get this as Excel or CSV attachment?
I tried configuring this in SQ01 with spreadsheet as well as in the query under setting.
Is there any solution to get this corrected so that the end user get a excel, XML or a .csv file.

We are creating background job for running the report in background...but i want the output(report) to send an email in Excel format after the job run successfully...
The only problem is the attachemnt in the email we are getting it as HTML  (filename.htm). So is there any way we can get this as Excel or CSV attachment?
I tried configuring this in SQ01 with spreadsheet as well as in the query under setting.
Is there any solution to get this corrected so that the end user get a excel, XML or a .csv file.

Similar Messages

  • Ad-hoc Queries..

    What are Ad-hoc queries??How do i start working on an ad-hoc query...plz explain stepwise considering a scenario..
    Thankx in advance..
    shreya.

    Hi,
    Adhoc Query designer means -A Web item that enables you to create and change queries in a Web application on an ad-hoc basis.
    use the Ad-hoc Query Designer Web item in the Web Application Designer to structure Web applications in which you create or change queries. The Web item is as a tool for designing ad-hoc queries in a Web environment.
    In particular it enables you to:
    · Create queries by assigning characteristics from an InfoProvider to rows, columns, filters, and free characteristics, and including key figures from the InfoProvider in the key figure structure of the query.
    · Restrict or filter key figures and characteristics
    · Use predefined key figure structures and restricted or calculated key figures in the query
    · Set or change query properties and key figure/characteristic properties in the query
    · Create or change conditions and exceptions
    When compared with the BEx Query Designer, the Ad-hoc Query Designer Web item has the following restrictions when creating or changing queries:
    · You cannot integrate variables into the query directly.
    However, you can use variables in reusable structures, or restricted or calculate key figures, which are used in the Ad-hoc Query Designer
    · The query can contain only one structure. This structure has to be the key figure structure and be in the rows or columns of the query.
    - You cannot use key figures or key figure structures in the filter.
    - You cannot define exception cells, since this requires two structures.
    You cannot create the following objects using the Ad-hoc Query Designer Web item:
    - Reusable structures
    - Reusable restricted key figures
    - Reusable calculated key figures
    - Local calculated key figures
    You can create local, restricted key figures using the Ad-hoc Query Designer Web item.
    You can edit existing queries in the Ad-hoc Query Designer Web item, if the queries adhere to the restrictions laid out above The Ad-hoc Query Designer checks these requirements when loading a query. If the query is too complex, the query can be loaded into the Ad-hoc Query Designer but you cannot change it there. You then receive the appropriate message. You can still check and execute the query.
    Thanks,
    Sankar M

  • Ad hoc queries in BW 3.5

    I am looking at building a web ad hoc query template that will enable end users to query against a certain cube.  Has anyone done this?  What are the risks of haveing end users create queries using ad hoc?  Can you lock the ad hoc object to only 1 cube?  Please help
    Thank you
    Aaron Blasi

    The risks of end users creating queries are the same as of end users creating queries in the BEx. Depending on your InfoCube design people may create queries that don't deliver the expected results. To prevent this you should create some useful structures and save them to ease query creation.
    You should also write a little documentation per InfoProv with rules like "Always select exactly 1 version, either for the whole query or per column", "Key figure Sales Price does not include discounts given" and things like that. Otherwise your users either get frustrated or you spend hours and hours fixing the users' queries.
    If you mean with "lock the ad hoc object to only 1 cube" that the users shall be able to create queries on cube A but not on cube B the best is to settle this with authorizations. You can also put an InfoProvider into the web item so that one cube is defaulted for the query but if the user clicks on 'Create New Query' he can select the other InfoProvider (he is authorized to create queries) too.
    Normally you wouldn't allow users to create BEx queries but not ad hoc queries on a given cube so this should be no problem.
    Best regards
       Dirk

  • IBAN access via ad-hoc queries

    Hi
    I cant access IBAN number from ad-hoc queries(via PA20 is fine). I guess the reason is table TIBAN is not in the authorizations groups. In my understansing if i include the value &NC& in object S_TABU_DIS, the user will be able to access all such tables.
    Is there a way i can give the user to access just the TIBAN table.
    Regards
    Matt

    All views assigned to this auth group '&NC&' can be displayed by the users (field is mandatory) and all DB tables assigned to '&NC&' or not assigned to any auth group, can be displayed by the user from a vaste number of data browsing transactions, reports, remote-enabled function modules, ....
    The ability to change entries is a bit more complicated and dependent on the table, but generally it would be possible for all those tables as well so it is no (valid) excuse to use development customizing roles in production just because the client is closed....
    If I remember, '&NC&' stands for "Not classified". I interpret this to mean "no intention to display directly or maintain entries for it".
    See tcode SE54 to move the view / table out of the "Not Classified" symbolic group into a "Classified" and intended group.
    Cheers,
    Julius

  • Regarding ad-hoc queries

    hi frndz,
    i juzz wanna know about ad-hoc queries.ibcoz i need to work on it.can u provide me any fms we have to use here.where exactly we use ad-hoc queries
                            thanking u,

    Hi,
    The Ad-hoc Reporting reporting type is primarily used as a quick and simple way of creating specific reports that, as a rule, are not needed more than once.
    Ad-hoc Reporting is available in both the global and standard query areas.
    You can also save queries for Ad-hoc Reporting. In the global query area, these queries are always saved in a temporary development class. There is no communication with the Workbench Organizer.
    In the standard query area, queries can only be transported with the tools designed for it.
    For further information, please check this link.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c6/4dc9f1eafc11d18a030000e829fbbd/frameset.htm
    Hope this will help.
    <b>Reward points</b>
    Regards

  • Ad hoc queris

    oracle says datewarehouse database are created to accomodtae ad hoc queries
    what is the meaning of ad hoc queries& the differece between it & normal queries
    i searched through oracle library
    all the topics refer to "ad hoc" queries as a feature or implementaion of......
    but nothing defines the meanngof ad hoc
    please help me to find a reference
    where i can understand ....

    oracle says datewarehouse database are created to
    accomodtae ad hoc queriesThe queries run against most OLTP applications are defined at the time the application is being developed and are contained either within front-end or back-end code. The queries typically don't change from day to day.
    Users run 'ad hoc' queries against a data warehouse meaning that they may be using a tool like Oracle Discoverer and building the query 'on the fly'. The DBA really has no idea what kind of query will be run against the database at any point in time. The query 'where' clause could contain any number of columns and/or joins... it all depends on the info that the user wants to get from the database.
    Does this help?

  • Ad Hoc quering

    Hi!I am a new user of Hyperion performance suit. How do I specify my queries to define new reports? I am not really aware of databases..

    The user who creates an Ad Hoc Task is technically the Customer of that task. Therefore, you can use #Customer.FirstName# #Customer.LastName# to embed the name of the person who created the Ad Hoc Task in the email.

  • Ad hoc queries in XI on XML messages ?

    I often have to get information out of several messages in XI, is there a way of querying a group of XML'S. For the value in a field or multiple fields ? (ie give me the value of <tag_ID> in these 3 messages)
    Or searching for a particular message by giving the value required in a particular tag ?(ie. find me message where <tag_id> = RANDOM_DATA)
    For example
       I have several thousand WPUFIB'S (IDOC TYPE) coming in from our legacy systems, I would like to be able to query all of the messages going through this interface for their site number for instance. So I would know all sites that have posted their WPUFIB'S in any given time frame.
    At the moment I am using time stamps and guess work when I wish to look more carefully at a message in XI, instead of being able to find messages immediately.....
    thanks

    Richard,
    You need to have TREX installed to achieve this. TREX basically is a search engine. There are guides and weblogs available in SDN that describe the installation/configuration of TREX with XI.
    Also, there is a weblog by Sravya where she has used a custom ABAP report to achieve this. Just search SDN using key words "Payload based search". You will get that.
    Good luck.
    Regards,
    Jai Shankar

  • What is the correct syntax for using a variable in an ad hoc query?

    Hi all
    I am an occasional DB user and at the moment need to update about 1000+ records so that a certain column gets a unique value.
    So I thought that I would use a variable for this.
    I then built this kind of SQL statement for just a small subset of the records:
    variable recNumber number;
    exec :recNumber := 1;
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD + recNumber
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
    I get the invalid SQL statement error when attempting to execute above (besides the prompt that asks for a value which I would like to omit).
    Anyway I also tried this one:
    CREATE SEQUENCE seqCounter;
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD + seqCounter.NEXTVAL
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
    From this one I got the error ORA-01722: invalid number...I am guessing this comes because seqCounter is of type number and the COL_TO_BE_UPD is of type character...(?)
    So what I would like to ask is what is the correct way to define and use a counter type of variable to append a number at the end of a character string?
    Also another question that I would like to ask is that are variables that are used in ad hoc queries also called 'bind variables'?
    Thanks muchly

    If you want to append a unique number to a column then this would do it:
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD ||to_char(rownum)
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');

  • Advanced Ad-Hoc Query and formulas

    Hi experts,
    I need to track new hire HR data on a report but am struggling to do this without some excel style formulas...
    Can you use excel style formulas in Ad-hoc query?? E.g. today(). I have run some tests and don't think it is possible...
    So if the hire date is less than 2 months old (from a calendar perspecitve) then I would want the new hire to show with only their current employee data (i.e. reporting period of 'today').
    Does anyone have any ideas of how I can do it or will this require some ABAP to work properly??
    Thanks!

    Hi,
    You can use SQ01, which is actually an enhanced Ad Hoc, but without using ABAP programming.  All Ad Hoc Queries are available via SQ01, but if you make certain entries SQ01 reports are not accessible via PQAH. 
    For your request to bring in data only on new hires within a certain period, you can first create the output you want in Ad Hoc.  Also add the selection fields for Action Type (enter the type for New Hire) and Start Date of the IT0000.  Save your query.  Now access the report via SQ01 entering the User Group and scrolling down to find your report.  Execute the report (green check with clock).  This will bring up a selection screen with your entries from Ad Hoc.  Select the "Save" button.  This will bring in a screen for you to name the selection varient. Name it "STANDARD".  Below this you will see all the selection fileds available with a number of boxes.  Scroll down to the field for your Start Date and under the "Selection Variable" column select "D-Dynamic date calculation".  Then in the far right column (Name of variable) select "Current date +/- days".   Enter the number of days you want to go back - say "-30" for new hires in the past month.  Then save the variable. 
    Now when you run the report (via SQ01) you will automatically select those individuals with a start date within the past 30 days.  No programming needed.
    Paul

  • HR PQAH (Ad hoc query) info-type filtering

    Hi,
    in our company the users can use/create HR ad hoc queries (tcode PQAH) with which they can display almost all master data employees informations.
    Is it possible to use P_ORGIN authorizations in roles in order to filter info-types in ad hoc query ?
    We have created a test user only authorized to start PQAH (on S_TCODE & P_TCODE) and he is able to create a PQAH query that can display all HR master data.
    We were expecting that P_ORGIN was also checked in PQAH.
    Any suggestion ?
    Thanks
    Andrea

    Hi Andrea,
    No, not what I said.  Employees with access to PQAH can both construct and run Ad Hoc Queries.  However, if their authorization does not permit display access to an infotype in the query, the query will not run for that individual.  If she has the proper access, then the report will run for those individuals she can view - controlled by P_ORGIN or P_ORGINCON.  If the query is saved, another employee can then run it via PQAH or SQ01.  Again, that employee's access will limit what he can see in the output. 
    So if a user has access to PQAH, that user can create and run queries, but the security authorization from P_ORGIN will determine the output.  Example:  I create a query that includes ANSAL from IT0008-Basic Pay, but I do not have P_ORGIN access to view IT0008, then the report would error out if I tried to run it.  If I did have authorization to view IT0008, I could execute the report via PQAH and receive the output.  If I save the report and you ran that same report via PQAH, but you have view authorization only for Personnel Area 0001 for IT0008, then your output would only include individuals assigned to PA 0001. 
    So PQAH can be used by various individuals what controls the output is their authorizations from P_ORGIN or P_ORGINCON and other authorization objects.
    Paul

  • Concept of AD-HOC in BW

    Hello Masters,
    What is the concept of AD-HOC in BW? What are AD-HOC queries and AD-HOC Hierarchies and when do we use them?
    I am bound to give points
    Thanks and Best wishes,
    I-BI

    Time dependent attribute:
    Have a look into the below records:
    Cost center    Valid to         Valid from   Business Area  compay code  profitcenter
    100AE79          04/30/2005    01/01/1000     A           100                 9056
    100AE79          12/31/9999    05/01/2005     A           100                 2000
    From the above 2 records, profit center values are different for the same cost center for different periods. If you run a BEx report and if it runs for the current period, profit center displayed is 2000. If the same query runs for prior period say 05/12/2003 then the profit center displayed is 9056 for the same 2 cost centers.
    The above concept is same for the other 2 cases as well.
    Hope this helps..
    Narendra

  • Ad Hoc query - Hit list count

    Hello,
    Currently we are experiencing issues in few Ad hoc queries.
    Issue:
    When pressed "HIT LIST" button we get count as 21. But in the lower pen(output) we are getting count of 6.
    Evenif pressed "REFRESH" button the output remains same ie. only 6 entries.
    Even in the output the (when clicked "OUTPUT" button), only 6 entries appearing.
    Please suggest. Appreciate you help.
    Thank you.
    Regards,
    Saurabh

    Hey Saurabh:
    So I can't say I know the answer for sure but the Hit List purely tells you the number of unique employees who meet your search criteria.
    The actual output shows the results of all the fields you've chosen to output for those people on your Hit List.  I can think of two reasons why you may be seeing what you're seeing.
    1) You lack authorization to see the data you've chosen to output for 15 of those 21 people
    2) 15 of the 21 people on your hit list lack any data in the row of data you've chosen to output.  So hypothetically if you're only outputting a particular date type of infotype 41 and that's it for a person, and a person doesn't have that value, they won't show up on your result set, even though they met your search criteria (assuming your search criteria didn't include that date type!).
    Let me know though if you think both of those circumstances don't relate to your issue.
    Thanks,
    Chris

  • Ad Hoc query storeage in Crystal Enterprise

    Apologies to all for a 'newbie' question. I was just handed control of our company's Crystal Enterprise server.
    How and where does Crystal Enterprise store user defined ad hoc queries?
    Are they stored in the database? or a local folder? If it's a folder, where is the default location?
    Thanks.

    Here is the scenario.
    UserA creates an adhoc reports and saves it. (Using the Web interface.
    1st. Issue. Where is the actual report physically saved? A blob in the db? A local folder? I want to double check our environment to make sure anything from our Active Directory rules aren't affecting this.
    UserB wants to access UserA's report because he/she finds it useful but wants to modify a parameter.
    2nd issue. UserB is unable to do so. I can access UserA's folder via CMS and copy the desired report to UserB because I am the adminitrator.
    We would like to eliminate this by allowing any user to access and copy ad hoc reports, modify them as needed them save them to their personal space.
    Again, I apologize if these are apparently simple issues. I backed into the project and am trying to get up to speed as quickly as possible.
    Any assistance and recommendations would be appreciated.
    Thanks,

  • SYHR_A_P0105_AF_SYSUNAME isn't filled in Ad hoc query

    Hello,
    We'd have EhP7 now. We have a problem that in the Ad hoc queries, the standard fields like SYHR_A_P0105_AF_SYSUNAME which shows the user name isn't populated. The same applies to private e-mail, work e-mail, etc.
    I know that I could select in Communication subtype 0001 and then has USRID as the output but I need another subtype as the filtering criterion and don't want to create unnecessarily set of operations.
    Has anybody figured out a solution? I couldn't find any SAP note about this, only related to IDM provisioning.
    Help is highly appreciated.
    BR, Pia

    Hi Eva,
    The problem is when selecting email address as an output and any other field as an output a blank line is created.
    See Screen shots:
    Output:
    Why are the blank lines created, can't it be one single line?
    Heather

Maybe you are looking for

  • How do I resolve this error while importing iPhoto 11 photos into Photoshop Elements 11?

    I am trying to import my iPhoto library into Elements.  It gets part way through the process and then tells me that the import failed and provides the following message: 2090 Media files have been imported.  19 Media files were not imported because t

  • Which proof setup profile is correct?

    Hi, I've found very conflicting answers to this question in the forums on this site: When saving for web and devices, is it best to set your View-->Proof Setup to Macintosh RGB, Windows RGB, or Minotor RGB and color correct from there? Thanks!

  • Swapping from one macbook to another

    HI there My wife's macbook is full, mine is not so we were thinking tayher than buy another, we would swap.  My qusetion is how to I swap the contents of her's onto min and vice versa? I have thought of copying hrad drives onto external and doing tha

  • Problems with itune store

    why is it every time i try to update apps i get a message saying that my account is not valid in the u.s store and that i need to switch it to the uk store i have gone into settings and it tells me that i am linked to the uk store can anyone shed som

  • Use fingerprint reader in application software

    Hi  I'm an application developer.  I need to use the Lenovo integrated fingerprint reader as part of a timeclock application I am building.  Basically a worker will authenticate and 'punch in' using a fingerprint scan Where can I find doc about using