Automatic data in excel format.

Dear Experts..
How to get the data in excel format by backgroud prcess(by job)
I mean automatically the excel file should go by mail.

Hi,
You may need to use the work flow to send the excel file automatically by mail. Once the background job completed, it will be available in spool. From there you need to get the excel file thru mail.\
You can contact your ABAP consultant, he will help you.
Regards,
V. Suresh

Similar Messages

  • Hi iam getting the alv grid data in excel format but iam facing one problem

    hi iam getting the alv grid data in excel format but iam facing one problem ,
    i.e., i want it read only  but iam getting it in edit mode i use layout default in excel iam getting in xl directly but in edit mode but i need it in read only mode
    what i have to do for that  and bdy knows reply me i need it urgently.

    there's always edit-mode if you choose excel-inplace - but noone can modify/rewrite the data
    A.

  • How to Download Data in Excel Formate

    Hi  Friend,
    I have one doubt on webdynpro with java.  Req: For download data in Excel formate.
    I will follow this http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3596. [original link is broken] [original link is broken] [original link is broken]
      i am doing upto 3rd Step here.. Up to Step 3 i am doing after 3rd Step  I am not understand. Could u explain 4step.
    1. I have to place TableUtilities.java
    2. I have Create tableutilities value attribute
    3. in Modify view--- This is -SecondView -
    This is having Table UI Element.
         if(firstTime)
    IWDTextView tv = (IWDTextView)view.getElement("total");
    wdContext.currentContextElement().setTableutility(new TableUtilities(wdContext.nodeDepartments()));
    //Returns attribute info of a dynamically created attribute which can be bound to the UI element neeed.
    tv.bindText(wdContext.currentContextElement().getTableutility().CalculateSum("Departments","NoOfPeople"));
    4. Creating an Excel File
    How to Create Excel File here can u explain
    I am not understand this 4th step. Pls give me Breef Explanation. How to write this code...here...
    Regards
    Vijay Kalluri
    Edited by: KalluriVijay on May 4, 2010 8:00 PM
    Edited by: KalluriVijay on May 4, 2010 8:02 PM

    Hi Vijay,
    Please open Microsoft Excel from your system and then create some entries (ex. having 3 columns and 3 rows). Save this file to some location in your system. Later you will need to give the location path of this saved file when uploading it from your web dynpro application.
    Creating of an Excel file (i.e the 4th step) is no where related to Web Dynpro and NWDS.
    Hope this helps!
    Regards,
    Kishan

  • Issue with Saving the Query output data in Excel format

    Hi,
    Recnetly we had upgraded from 4.6c to ECC 6.0.
    In ECc 6.0 environment, when user try to export the query output , we are getting only XML option to save the data.
    But user want to save the data in EXcel format, he was able to do that in 4.6C.
    pleas eprovide some inputs, on this issue.
    Thanks,
    Sanketh.

    I cannot for the life of me imagine, why a link to a post in the 'Business One Forum' where one uses ODBC to transfer query-data to MicroSoft Excel is of relevance to the OPs question, even if the same is not a security issue.
    Never mind. [note 40155|https://service.sap.com/sap/support/notes/402155] deals with various symptoms in the ALV-Excel combination as as of release 4.6C. There are various others, mostly in components BC-SRV-ALV and BC-ABA-LI - also: I remember that when we upgraded from 4.5B to 4.7C there was an issue with Excel-templates -> the solution was in the release notes somewhere. So, in addition to SMP you might want to check the release notes and/or upgrade guide for solutions.
    And yes, moderators ... this is not a security issue, this should go to ECC-Applications/Upgrade.

  • Download internal table data in excel format

    Hi ,
      i have a requirement where i need to download the internal table data in excel format .. I tried using the FM SAP_CONVERT_TO_XLS_FORMAT  but this downloads to excel sheet  same as .txt file foemat without columns ...   i need to have the data in excel sheet with column heading and separated by each coulmn which should be similar as a general sheet with column names and the respective data in the columns . Appreciate any inputs .
    Thanks,
    Latha.

    Hi,
    you can this in Debugging mode,
    say,once you got entire data into ITAB
    salect the TABLE option and provide the table name
    now on the top most you can see excel icon,you click
    on that,now system will prompts you for to the file to be saved.
    Regards,
    Vijaya.

  • Downloading the data in excel format

    Hi All,
       I am downloading the data in excel format using FM CONVERT_SAP_TO_XLS_FORMAT and able to open the file in my machine since my machine is having EXCEL 2003 version. In some other machines i tried to download and open,  but after downloading the data in some machines we couldnt open the file since those machines are having the excel2007 versions. but my requirement is i need to open in 2007 version also, please tell me solution.
    With Regards,
    Prasad.

    Hi Lalit,
    Thank you for your information,
    but this function modules EXCEL_OLE_STANDARD_DAT, RH_START_EXCEL_WITH_DATA   cant help to solve my issue,  my requirement is i need to download sap data in excelformat, problem comes here, if i download internal table, in that any text that starts with double cotes and ending with not double cotes, the data is not downloading properly and all the data cramped into one cell. To solve this issue i have used functinal module SAP_CONVERT_TO_XLS_FORMAT and i am able to download without any problem,  but in clients machines they are able to download and they are not able to open as they are having EXCEL 2007 in their machines.
    if is there any solution, please update me.
    Thanks in Advance
    Prasad
    Edited by: bs prasad on Mar 28, 2009 8:03 AM
    Edited by: bs prasad on Mar 28, 2009 8:05 AM

  • How to convert internal table data into excel format?

    Hi all,
    I want to convert internal table data in excel format and then
    send it as email attachment in workflow.
    Please tell me how do i perform this.
    Regards,
    Arpita.

    Hi Arpita,
    Try this sample code::
    Send mail
    maildata-obj_name = 'TEST'.
    maildata-obj_descr = 'Test Subject'.
    loop at htmllines.
    mailtxt = htmllines.
    append mailtxt.
    endloop.
    mailrec-receiver = 'your receiver mail id'.
    mailrec-rec_type = 'U'.
    append mailrec.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
    document_data = maildata
    document_type = 'EXL'
    put_in_outbox = 'X'
    tables
    object_header = mailtxt
    object_content = mailtxt
    receivers = mailrec
    exceptions
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    others = 8.
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Hope it will help you.
    Regards,
    NIkita

  • Store data in EXCEL format

    I am using Jsp which is getting data from the EJBs...and shows in tabular format...i hav to give user a option to save that data in EXCEL format.Is there any utility available to do this...or can i use
    ==========================================
    contentType="application/vnd.ms-excel"
    ==========================================
    If i use this whether i get HTML output from the Jsp page..
    Please clear me

    provide option to get data in format of CSV (comma separated values) then they can open this text file in Excel and save it as Excel worksheet.

  • Retrieving data from Excel format to internal table(deep structure)

    hi all,
    can anybody help me how to Retrieving data from Excel format to internal table(deep structure)
    and if u have any sample code for that please send it.
    my internal table is like this
    DATA: BEGIN OF ty_text,
    vbeln TYPE vbeln,
    posnr TYPE posnr,
    seqno TYPE seqno,
    textid TYPE tdid,
    tdline TYPE tdline,
    END OF ty_text.
    DATA: BEGIN OF ty_item,
    vbeln TYPE vbeln,
    posnr TYPE posnr,
    dispct1(16),
    dispct2(16),
    dispct3(16),
    text LIKE table of ty_text,
    END OF ty_item.

    hi,
    check this code
    TABLES:zmatnr.
    TYPE-POOLS  truxs.
    DATA : itab LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA row LIKE alsmex_tabline-row.
    data : gi_final like zmatnr occurs 0 with header line.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETER : pfname LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pfname.
      PERFORM search.
    START-OF-SELECTION.
    perform process.
    form process.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = pfname
          i_begin_col             = 1
          i_begin_row             = 2
          i_end_col               = 12
          i_end_row               = 65000
        TABLES
          intern                  = itab
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      describe table itab lines itab_count.
       row = 1.
      loop at itab.
        if itab-row <> row.
          append gi_final.
          clear gi_final.
        endif.
        case itab-col.
          when '1'.
          gi_final-MATNR = itab-value.
          when '2'.
           gi_final-Maktx = itab-value.
          endcase.
        row = itab-row.
      endloop.
      append gi_final.
      clear gi_final.
    endform.
    FORM search .
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          static    = 'X'
        CHANGING
          file_name = pfname.
    ENDFORM.
    regards
    siva

  • Automatically mailing the table data in excel format in ADF

    Hi ,
    I am new to ADF and I have a requirement where i need to send a mail on button click with an attachment of the table data in a excel format. There are two requirements here :
    1) If we take an example of EMP and Dept tables , a mail should be sent to the dept head with the table data of employees in individual sheets in a excel format.
    2) Here in Adf we have DownloadActionListener and exportCollectionActionListener components but we need to manually click on the save button to save the data in particular place and then again we need to send the mail from javaMail. So is their and way that we can do all these actions in one button click .
    could you please guide me on this .
    Thank you,
    Sashank P.

    User, please always tell us which jdev version you use (or want to use in the future).
    1) I would suggest to use poi.apache.org for the expport as it allows you better control over which data is exported and it allows you the generate native excel format
    2) you can execute more then one action from a button click. In a bean you can first generate the data to export and then queue an action which then calls the file download listener. For more info about this check http://tompeez.wordpress.com/2011/07/14/validate-data-before-export-via-afexportcollectionactionlistener-or-affiledownloadactionlistener/
    Timo

  • Is it possible to mail the data in excel format in data tabs?

    Hi all,
    I need a few clarification .
    We all know report data can be mailed in excel format.
    But my excel is having 4 tabs of data.
    Is that can also be mailed if so can you please guide...
    Regards
    sas

    hi,
    you can do it..
    try the following given code..
    *&      Form  process_email
    * subroutine created for processing and sending the attachments to mail id.
    FORM process_email.
      IF p_sender EQ space.
        gd_sender_type = space.
      ELSE.
        gd_sender_type = 'INT'.
      ENDIF.
    *Body
      docdata-obj_name = 'Mail_Excel_File'.
      docdata-obj_descr = 'Excel file attachment'.
      objtxt = 'Attached is the sample Excel file'.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'RAW'.
      APPEND objpack.
    *Attachment
      n = 1.                                    "for sending 1st attachment
      DESCRIBE TABLE objbin1 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment1'.
      objpack-obj_descr = 'Excel File Attachment1'.
      APPEND objpack.
      n = n + tab_lines.                       "for sending 2nd attachment
      DESCRIBE TABLE objbin2 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment2'.
      objpack-obj_descr = 'Excel File Attachment2'.
      APPEND objpack.
      n = n + tab_lines.                       "for sending 3rd attachment
      DESCRIBE TABLE objin3 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment3'.
      objpack-obj_descr = 'Excel File Attachment3'.
      APPEND objpack.
    *Create the list of recipients
      reclist-receiver = p_email1.
      reclist-rec_type = 'U'.
      reclist-express = 'X'.
      APPEND reclist.
    *Send the e-mail by using this function module
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = docdata
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          contents_bin               = objbin_final
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      COMMIT WORK.
    ENDFORM.                    "process_email
    hope this helps
    Regards
    RItesh J

  • Export data in Excel  format

    Dear All ,
    whenevr i am exporting any report in excel , the same is saved with unicode extension / file type as unicode .
    can we have directly into the Excel format ?pl guide
    regards,

    Hi there!
    Save it as a .txt.
    It shld come out as a tab delimited file.
    From this file you can output ur data in excel.
    Regards,
    Tolulope

  • Upload data in excel format in UNIX

    Hi all,
    I have an internal table containing some data. I need to transfer this data to a UNIX server and store it in excel format.
    Pls let me know how can I do the same.
    Thanks and regards,
    Prasad

    Hi Rodrigo,
    I tried with this..
        OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
        if sy-subrc = 0.
          loop at it_final into wa_final.
            TRANSFER wa_final TO file.
          endloop.
          CLOSE DATASET file.
        else.
          write : / text-108. "Error
        endif.
    "file -> It has the path of the UNIX server given in the selection screen
    But I am sure this will not be in the excel format.
    Thanks,
    Prasad

  • How to Ouput data in Excel format in Batch mode?

    Hello,  I would like to know how can I write a file in Excel format to Unix box in Batch mode using ABAP.   Is it possible?
    Currently, we are generating this Excel file in foreground using the FM "XXL_SIMPLE_API".  
    Your help will be appreciated.

    Hello Sam,
    in the batch mode it is impossible to use OLE as it requires frontend connection, in this case you can use transformation instead. It means you call some transformation which is created by you according to your specific requirement, the source of transformaton is ABAP internal tables, and the output is xml source, and when you save the xml source as .xls file to your local PC and double click it, it will be opened by excel. You can read the wiki below, it is very helpful.
    http://wiki.sdn.sap.com/wiki/display/Snippets/XMLXLStransformation
    Best Regards,
    Jerry

  • Problem in dispaying Data in Excel format

    Hello,
    This is Dasaradh, Here i am having a problem while generating Excel report. I am generating excel by using the following code
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment; filename=myfile.xls");
    It is generating Excel file but i am getting small problem here i.e i would like to display numbers(time) in four digits.For if i display 0021 it is displaying 21. But it is wrong. Here i ma using rs.getString("time")--> value is '0021'
    But while displaying rs.getString("time") in excel format it is dispaying 21.
    can any one please help me regarding this issue.
    Thanking You,
    Dasaradh.

    what does this have to do with EJBs?
    %

Maybe you are looking for

  • ITunes stalls when trying to update my photos - can it be fixed?

    From what I've seen of 7.0, there are a lot of problems, and I've searched these posts but haven't found anything on my specific problem. Basically, when I try to update my iPod and I have the "sync photos from folder" checked, iTunes never finished

  • Importing visual jsf page into another jsp page

    Hi I am developing a web application using jsp and struts. I want to embed a visual jsf page that Ive created into another jsp page (which is a normal jsp page, not a jsf one.) Ive tried quite a few things but nothing seems to work.. <jsp:include pag

  • Order being Blocked even if payment being made via financial document

    A customer has credit limit 0 and recievables in 3.5 million. The customer always makes order via LC and all his sales orders are processed with a financial document being attached. An order is made and financial document which is being attached with

  • Event triggering

    Hi guys, I created events in sm64. These events should start a process chain. However when I trigger them manually I do not get the event in the event history nor does my process chain start. Do I have to activate any other stuff for events? Thanks i

  • How adutilities comes to know that the file system is shared file system

    How adutilities comes to know that the file system is shared file system ? In multinode shared file system : if we want genearte message file we can invoke adadmin from any node and perform this activity. In this case, how adadmin knows that the file