Create Scheduled in Background and Output as excel

Hi All,
I have already created an Adhoc Query, and I would like to run it every Sunday and save it as an Excel File automatically. I have already known how to set schedule in background. but I don't know how to set the output format and save it into specific folder. I would like to collect all the file for data warehouse processes.
Please kindly assist me... (help help help)
Thanks
MWidodo

Hi,
  You can use the following code
types: begin ot ty_string,
           a type string,
           end of ty_string.
data: it_string type table of ty_string,
         wa_string type ty_string,
         tab type c value cl_abap_char_utilities=>horizontal_tab.
loop at itab(internal table that contains data fetched from database tables for your requirement).
concatenate itab-a itab-b into wa_string separateb by tab.
append wa_string to it_string.
endloop.
Use FM GUI_DOWNLOAD to download it_string to excel sheet.
Regards
Dande

Similar Messages

  • App-V PowerShell: Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results

    Please Vote if you find this to be helpful!
    App-V PowerShell:  Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results
    Just posted this to the wiki:
    http://social.technet.microsoft.com/wiki/contents/articles/25323.app-v-powershell-script-to-query-xenapp-servers-for-app-v-publishing-errors-and-output-an-excel-document-with-the-results.aspx

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • Transaction CJI3 AND  - batch job and output in excel format

    We are trying to schedule a batch job and would like to have the output in an excel file.  Is there a way to enhance CJI3 and FMEDDW to have the output in a excel file.  I've looked at the Layout for creating the disvariant and I know you can have the output in excel format in the foreground, but I'm looking to put an excel file on the SAP DIRECTORY.
    Has anyone done this?
    Thank you.
    Linda

    Talking about Enhancement Options, I believe you can achieve it using Enhancement Implementation. There must be one towards the end of the program just before the ALV is displayed. You can create an implementation of the implicit enhacement spot and output the file to a location maintained in some VAR (to keep the output location dynamic as we don't have it on the select screen).
    My reply is not to the point but I hope you find a way using enhancement spots.
    Should you need any help with enhancement implementation, following blog is good enough:
    Blog - [Enhancement Framework|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID1759109750DB10206591421434314571End?blog=/pub/wlg/3595]
    or you can ask back here.
    regards,
    Aabhas
    Edited by: Aabhas K Vishnoi on Sep 24, 2009 10:40 AM

  • ALV report - run in background and output to screen

    I wish to run a report in background and then output the report to screen as a standard ALV report with all the associated functionality. Can anyone tell me how to do this?
    Thanks.

    Hi,
       In background i dont think so its possible.
    Regards,
    Prashant

  • Help with our setup and output to Excel

    OK, I work for the EPA Office of Research and Development (ORD) here in Cincinnati.  We are working on this big project that is coming to an end.  Basically, we have four different carts going.  We have one ultra filtration cart (UF), one reservoir cart, one ion-exchange cart, and one RO cart.  The UF, reservoir, and RO carts will all be hooked up to the computer via DASYlab.
    Currently, we think that we have our DASYlab setup correctly.  We want to graph everything over time and we want to export everything out to Excel so the data can be analysed later.  I have been in contact with DASYlab help but this really isn't there job.  I was wondering if someone could look at our DASYlab file (or give me idiot proof instuctions) into making sure that data is collected once every 2 seconds, the graphs are updated once every 2 seconds, and that the charts that will be output to Excel are updated once every 2 seconds.  We are working on a P-M 1.8GHz notebook with a 100GB hard drive and 2GB of RAM so it can definately handle the flow of data.
    No one in our project (or TTEB branch) has any experience with DASYlab.  The last person to have this type of experience was working with Strawberry Tree back in the early 90's on a old 286 PC via DOS.  It was actually the job of the contractors who built our equipment to get everything setup.  However, they fell through as they didn't have any previous experience with DASYlab and they just didn't feal like reading through the 100's of pages of text.  This assignment was handed over to me just last week and I think I have everything setup correctly.  I just don't have to the time to fully read the manual.
    I would appreciate any help.  If someone can help then feal free to PM me and I can e-mail them the two necessary files.
    Thanks

    Well I'm still pretty clueless about this, but for anyone who is looking at this and wondering, here's what I've gleaned:
    1.  After Effects, especially CS6, makes much more and better use of graphics cards than does Premiere Pro.  I'm guessing that PP will, in future versions, make better use of them.  For now, no need to spend more than a couple hundred bucks on one.
    2.  Update the software.  PP and AE both performed substantially better after installing the .01 update from adobe.  After you install the update, be sure to re-do the CUDA hack, if necessary.
    3.  As it stands, money for a PP system is best spent on a processor, as in the newest Intel (currently Ivy Bridge), and overclocked.  This is where performance happens.  I'd say on a 2012 system, 16 GB RAM should be considered a minimum for video editing, and 24 or 32 if you can afford it.  More than that probably won't be utilized.  Hard disks can affect performance, but I don't think it's a bottleneck unless you're doing something that requires VERY fast/large reads and writes (4k source?).  Most people who have high-end editing stations also have a bunch of drives in RAID, but if you look at the performance chart, the SECOND highest scoring tester did not use RAID (though did use a presumably fast and large SSD).
    Keep in mind that all of this has to do with RENDER speeds.  I still don't know what the bottleneck is for PREVIEWS, but I'm just going to assume it's the same.

  • Inputting from and Outputting to Excel Spreadsheets (.xls): How is it done?

    Is it possible to input from and output to .xls files in a Java program?
    If so, can you point me in the right direction/show me how?

    AlphaBlue wrote:
    jverd wrote:
    What were you hoping for? Someone reading your mind for what exactly you need, and handing you a giftwrapped answer, without you doing any work or clearly communicating a specific problem? This site doesn't really work that way.Fair enough. I'm asking for insight into how to input from and output to a StarOffice Spreadsheet into/from a Java program. (Think java.io except with spreadsheet files instead of .txt files.) I already answered that question.
    I need to accomplish this without the use of a community-created library.That's a bizarre requriement. Why?
    >
    Okay, [here you go|http://lmgtfy.com/?q=communication+between+StarOffice+Spreadsheets+and+Java].
    If you don't have any knowledge or experience, on the matter, please refrain from directing me to a google search. I assure you, I have already performed such a task.How would I know that.
    But okay, let's say I know that. Let's say you bothered to point out that you've already done that. Further, let's say I do have knowledge of the subject at hand. Maybe I'm an expert. Maybe I wrote Star Office and an open source library (which wheel for some reason you must reinvent). You are assuming that I also have psychic powers, so that I can read your mind and know exactly what you've read so far and exactly what parts of your very broad and vague question said reading did not answer.
    In short, you have received answers commensurate with your questions.

  • Target Group Member List Display and Output to Excel

    Hi all,
    I am using CRM 2007.  On the Web Client I want to output to excel a target group with 7000 accounts. I have 2 users. One User when the target group is selected can see all the details of all 7000  in the target group members list and when exported to excel all 7000 accounts are listed in the excel file.
    With the second user when the target group is selected only the details of 100 accounts are visible in the target group members list and when exported to excel only 100 of the accounts are output.
    The 2 users have the same roles and parameters and the personalize icon next to the excel export button also have the same settings.
    Does anyone know where the setting is that will allow the second user to output all 7000 on the list?
    Help would be greatly appreciated.
    Thanks,
    Jonathan

    Hi Jonathan,
    Open a Profile Set with user2.
    Push button "Graphical Modeler".
    When the modeler is loaded , Press button "Settings".
    On the upcoming popup, you can change the number of members that are loaded to the Target Group Member list in the WebUI in the field "Number of Members Displayed".
    Most probably, this field is empty for your second user, so the default of 100 is used.
    Note that a maximum of 9999 members can be loaded to the list in the UI. For bigger Target Groups, you must export the list to the application server using the "Export to File" button on the Target Group WebUI page.
    Hope that helps & Best Regards
    Klaus

  • Skip creating invoice scheduled in background and create error log in V.21 Tcode

    Hi All,
    When background job scheduled for VF04 (Billing Due List) to create billing document , we are checking condition for billing date . If the condition satisfied we are creating error log in V.21 by filling XVBFS structure in user exit . In this case billing document is been created .
    My requirement is to skip creating billing document and process the next document in billing due list . Can you please suggest in this regard.
    Thanks in advance.
    Narendra

    This is an excerpt from sap help:
    Putaway using storage unti types
    You receive a delivery of 200 pieces of material O2.
    You post the goods receipt of the delivery in Inventory Management.
    The system creates a transfer order for putaway.
    You display all transfer requests (TRs) for material O2.
    You choose the TR for which you want to create a transfer order (TO) from the list of transfer requests.
    In the palletization section of the preparation screen for the transfer order, the system automatically proposes five industrial pallets of 40 pieces. This proposal is based on the storage unit type in the material master record.
    Palletization
    SU
    Qty per Storage Unit
    SUT
    Type
    Section
    5
    X
    40.000
    IP
    X
    20.000
    Save your entries.
    The system creates the TO for putaway with the palletization data.
    You can also check this link:
    Warehouse Management System (WMS) - SAP Library
    It will help you understand this in more detail.

  • Running report with alv grid in background and exporting to excel

    Hi Guys,
                  I've created a report program that uses the alv grid. When I run the report in foreground, I can easily export it to excel. However, if I run it in background, then display the spooled report and try to export to excel, it does not put it in excel format (seems to go over as one big column rather than individual columns that are defined in the report). Is there a way to run it in background ,export to excel properly and i have to email also in Excel sheet format.?
    Thanks,
    Gopi.

    In background u cannot do a download to excel. you can do is create CSV format file
    or
    write a report for output with tabs then call that report using
      submit yXXXX exporting list to memory
               and return.
      call function 'LIST_FROM_MEMORY'
        tables
          listobject = report_list
        exceptions
          not_found  = 1
          others     = 2.
    and send the report_list to email users

  • Download Background job output to Excel automatically

    Dear Experts,
    Hi there... Please note the following scenarion and give me your expert solutions on the same...
    I have created a SALES QUANTITY REPORT for exports... In this there are many conditions applied to achieve data in many of the columns of this report. If we run it for 2-3 months it is not a problem... The output comes at a marginal wait time... But the moment it is run for a whole year then it just goes on and on.... I cannot fine tune also.... because of the conditions... For better performance and fast retrieval i have used views in this report to achieve quick output...
    The thing is when i put it to execute in Background it comes within an hour or so... But the output is not readable.... so here is what i want:
    1. First of all why report executes so quickly when put in background, whereas in foreground it takes more than 4 hours and also no guarantee of output.. This is to satisfy my curiosity...
    2. I want the output to get automatically converted into excel and get stored in a specific folder the moment the job is finished in background without any format getting disturbed. The report is prepared in ALV...
    Please gurus help me out.
    Thanks...
    Jitesh

    It is giving me the following error: -
    17.02.2009 11:24:41 Job started                                                                             00           516          S
    17.02.2009 11:24:41 Step 001 started (program Z_SD_SQR_EXPORT, variant &0000000000007, user ID JBABAP)      00           550          S
    17.02.2009 11:24:45 Incorrect Print Parameter                                                               0K           091          I
    17.02.2009 11:24:45 Spool request (number 0000014520) created without immediate output                      SY           355          S
    17.02.2009 11:24:45 Excel file c:\sqr\sqrexport.xls cannot be processed                                     UX           893          E
    17.02.2009 11:24:45 Job cancelled after system exception ERROR_MESSAGE                                      00           564          A
    form DOWNLOAD .
    CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
      EXPORTING
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
        i_filename                 = 'c:\sqr\sqrexport.xls'
    *   I_APPL_KEEP                = ' '
      tables
        i_tab_sap_data             = it_final
    * CHANGING
    *   I_TAB_CONVERTED_DATA       =
    * EXCEPTIONS
    *   CONVERSION_FAILED          = 1
    *   OTHERS                     = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " DOWNLOAD
    Please reply..
    Thanks,
    Jitesh

  • 'Create Settlement Batches' Request and Output file name

    Hello,
    Is there a table/view which keeps 'Create Settlement Batches' request id and name of the output file of that request ?
    Output file is created in 4456_1.out format. I can see this file name in IBY.IBY_BATCHES_ALL table BATCHID column and
    IBY.IBY_TRXN_SUMMARIES_ALL table BATCHID column. Non of the tables do not contain the concurrent request id.
    How can we find out from tables/views the name of the output file, if you know the request id ?
    Thank You,
    sruwan

    Hi Hussein,
    I already looked at FND_CONCURRENT_REQUESTS. It doesn't contain the output batch file name. It has a column called 'OUTFILE_NAME' and it points to
    a file called concurrent_request_id.out file ( Eg: 123456789.out ). This file is blank when you run 'Create Settlement Batches' request.
    'Create Settlement Batches' request also crates an output batch file in the format 1234_1.out. Problem is finding a pace linking that file name to concurrent request id.
    Thanks for your reply,
    sruwan

  • How do I create a multiple find and replace for Excel in AppleScript?

    I have a large dataset in Excel that I have to do a multiple find/replace in (changing USPS state abbreviations to their full names). In searching the Microsoft boards--I was directed to use Applescript, and even the documented help with Excel was recommeding this. Unfortunately, there wasn't much help potinting me in the specific direction I needed. Any ideas on how I should write this script?
    Thanks!

    I'm confused as to why Applescript (or any script would be helpful).
    You'd have to type the abbreviation and the full name into the script, the same as just using Find and Replace All. You wouldn't gain anything by using a script. Is there more to this task than you've let on?
    MacTech has an article on converting from VBA to Applescript, but I'm not sure if it would have any ideas on your specific problem: http://www.mactech.com/vba-transition-guide/index-toc.html

  • Creating a transparent background and exporting as flash

    I have been reading about the "Green Screen" and "Blue Screen" functions on my TRIAL version of Adobe Elements 8 and am not sure whether I am able to do what I want to do with the program and thus, am not convinced I should buy it.
    I want to record a video of myself in front of a green screen, clear the background, save the recording as a flash that can be incorporated in my home page.  The goal being to have the flash media load up a second or two after someone comes into my websight.  It would play for a predetermined length (15 seconds) and then you would have the option to click on "me" to be linked to more recorded sequences, charts, pictures, statistics etc..
    Is it possible to do this in  Premiere Elements?

    In PrE 4, there was no Flash w/ Alpha Channel, like there is in PrPro. Check with your version and the Advanced Settings. You want Alpha Channel.
    Good luck,
    Hunt
    PS - welcome to the forum.

  • Schedule ME2L in background and send output to email address

    Hi,
    Our Client has a requirement to schedule ME2L (particular variant) in background.
    The report should run every day in background and output should get emailed to particular email address.
    Any ideas??? Pleae let me know.

    Thanks for the information. Very useful.
    I am just facing one road block at the moment.
    I am now able to schedule the ME2L Report and email it as attachment.
    But, we have created a particular layout for this report, which we want should get emailed.
    But when we schedule the report in the background (or run it in background manually), it only picks the standard layout!
    I cannot find any layout option in ME2L Selection Screen as well. (I could have saved it in the variant then)
    Can you help?

  • SQ01 query schedule in Background

    Hi,
    I created Query using SQ01 and I would like to schedule daily in background and outpu file will be stored in SAP BW server.
    1. Using SM36 schedule the job and output format as File store and file name : /data/xfer/test1  , Data format = DAT , Encoding = ' '
        system is giving error message please choose new name /path then I gave the file name first and path this time no error but file
        was not transfered to specified path.
    Do we need to follow any specific guide lines when we transfer file to BW server path.
    Thanks

    Hi
    I think you can download output in Excel to Presentation server. The presentation/GUI layer doesn't exist in background job, the system will not be able to connect to presentation server.
    There are many threads available on the same topic.
    Please have a look into the same
    Shiva

Maybe you are looking for