How to download the values to excel from spool sap abap

Dear All,
I am facing  a problem in downloading the Zreport to excel file ( where it consists of 95 fields) ,
1.if am running the report in foreground and downlaod to excel file , the all 95 fields are upadting in excel file .
2.if i am schecduling the programe in background and saving inspool, then form spool , i am download to excel file , at that time some of the fields are overllapning ,
for this i want to download t o excel file without overlapping fields,
can any one suggest , how to do same procedue.
regards,
manoranjan

Hi,
whenever you click on Excel download option select spreadsheet instead of unconverted
There is a possibility of download the spool file as txt-file. .
Use Tranx SP01 - select the spool entry -->"spool request --> forward as text . You will find the file in your SAP work directory as <sid><spool#>.
or use fm RSPO_DOWNLOAD_SPOOLJOB.
  Download in Background in Excel Format
How to download the data in excel format directly while executing in background mode? 
If you will execute it in bacground with ws_download or download, it will be aoutomatically cancel. so what is the procedure to do this.  How is can directly read the spool from program?
Download from background is possible, if you could setup the environment
1. create a custom table first
    Table  : Y001
    Displayed fields:   4 of   4  Fixed columns:
       MANDT BNAME       Y_SITE    Y_PATH
       010      <userid>     <site>      cd <novell_path>
2. rewrite ws_download to z_download (light modification required, see attachment)
3. ask your basis team to make a copy of command FTP and CHMOD to ZFTP and ZCHMOD resp., make the setting according to your environment.
Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code
Hope this will will helps you,
Thanks and Regards,
Manjunath M
Edited by: manjunath4sap on Dec 23, 2010 6:20 PM
Edited by: Rob Burbank on Dec 23, 2010 9:02 PM

Similar Messages

  • How to get the value of column from previous row to current row?

    Hi All,
    I am facing a critical problem in SQL query (for reporting purpose (COGNOS)). please reply to my query.
    REQUIREMENT: i want to retrive value of a column (this is not a table column, this will be calculated based expression) from previous row to current row.
    EXAMPLE:
    TABLE NAME: i have to join multiple tables. so, i am not mentioning table names here.
    DISPLAY COLUMNS in the report: item, loc, sku, beginval (not table column), endval (not table column, this will calculated based on some expressions), etc. Here, first time the value of BEGINVAL will be taken from some x column name of x table. ENDVAL will calculated based on the expression. For the next row onwards, BEGINVAL will become the value of ENDVAL and the value of ENDVAL will be calculated based on the expression and this expression uses the value of BEGINVAL.
    my report will look like below.
    ITEM LOC SKU BEGINVAL ENDVAL
    1 HYD 1-HYD 10 10+1+2 (13)
    2 HYD 2-HYD 13 13+1+2 (16)
    3 SEC 3-SEC 16 16+1+2 (19)
    4 SEC 4-SEC 19 19+1+2 (22)
    etc....
    in the above output, BEGINVAL and ENDVAL columns are not part of any table. they are alias column names.if you observe intially BEGINVAL will be assigned to some value, but from subsequent rows, BEGINVAL will become the ENDVAL of previous row.
    Please help me on how to write this query?

    Hi, please find the detail description of the problom.
    DDL (table scripts)
    ITEM
    CREATE TABLE ITEM
    ITEM VARCHAR2(50 CHAR) NOT NULL,
    DESCR VARCHAR2(50 CHAR) DEFAULT ' ' NOT NULL,
    UOM           VARCHAR2(50 CHAR)
    SKU
    CREATE TABLE SKU
    ITEM VARCHAR2(50 CHAR) NOT NULL,
    LOC VARCHAR2(50 CHAR) NOT NULL,
    OH float
    SKUPROJSTATIC
    CREATE TABLE SKUPROJSTATIC
    ITEM VARCHAR2(50 CHAR) NOT NULL,
    LOC VARCHAR2(50 CHAR) NOT NULL,
    STARTDATE DATE
    VehicleLoad
    CREATE TABLE VEHICLELOAD
    LOADID VARCHAR2(50 CHAR) NOT NULL,
    DESCR VARCHAR2(50 CHAR) DEFAULT ' ' NOT NULL,
    SHIPDATE DATE DEFAULT TO_DATE('01/01/1970','MM/DD/YYYY') NOT NULL,
    ARRIVDATE      DATE
    VEHICLELOADLINE
    CREATE TABLE VEHICLELOADLINE
    LOADID VARCHAR2(50 CHAR) NOT NULL,
    ITEM VARCHAR2(50 CHAR) NOT NULL,
    QTY float(126)
    DML scripts
    I can't provide the the DML scripts, because its very huge data.
    Main QUERY is below.
    below is the query which i have to write and execute.
    select
    i.item,
    i.descr,
    i.unitsperpallet,
    sp.loc,
    sp.startdate,
    'Crucial_IND',
    LAG (EndBal,1,0) OVER (ORDER BY STARTDATE) BeginBal,
    SP.FCSTCUSTORDERS CustOrders,
    SP.COMMITINTRANSOUT,
    SP.RECARRIV,
    SP.TOTINTRANSIN,
    (BeginBal - sp.FCSTCUSTORDERS - sp.COMMITINTRANSOUT + sp.TOTINTRANSIN ) EndBal,
    'CuttingQty',
    VLL.QTY,
    vl.source,
    vl.arrivdate,
    vl.shipdate,
    vl.loadid,
    s.oh
    from item i, skuprojstatic sp, sku s, VehicleLoad vl, VehicleLoadLine vll
    where sp.item = i.item
    and s.item=i.item
    and sp.item =s.item (+)
    and sp.loc = s.loc (+)
    and vll.item = s.item
    and vll.loadid = vl.loadid
    and to_char(sp.startdate ,'mm/dd/yyyy') = to_char(vl.arrivdate,'mm/dd/yyyy')
    and sp.loc = vl.dest (+)
    order by sp.startdate
    problem description: in the above query, BeginBal and EndBal is what i am looking for. when i execute this query, oracle throwing an error saying that alias names can't be used as expressions. For the first row, the BeginBal should be the value sku.OH and for the subsequent rows, this value will be the previous row value of EndBal.

  • How to get the Values i need from a String???

    hi i need some help on my program,
    I have a Server that actually sent some data to my Client.
    The data consist of some messages and intergers . The whole piece of data is stores as a String message.
    ARRAY 'Monitor Chart' 2 5
    'Total OverFlow' 'Queued' 'Completed' 'Host Resets' 'Errors'''
    0.0 1.0 2.0 3.0 4.0
    'Series1' 11.0 0.6 8.6 11.5 6.6
    'Series2' 12.8 6.7 21.6 11.1 30.0Inside the Client i need to get the values out to showed on my textfields
    Example :
    Tf1 = 11.0
    Tf2 = 0.6
    Tf3 = 8.6
    Tf4 = 11.5
    Tf5 = 6.6
    Question: How to i get the values out from the String???

    using the split() method. i am able to split everything now
    so it appear somthing like this :
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class testing{
         String d1 =     "ARRAY 'Monitor Chart' 1 5";
         String d2 = "'Total OverFlow' 'Queued' 'Completed' 'Host Resets' 'Errors'";
         String d3 = "'' 0.0 1.0 2.0 3.0 4.0 ";
         String d4 = "'Series1' 11.0 0.6 8.6 11.5 6.6 ";
         String d5 = "'Series2' 12.8 6.7 21.6 11.1 30.0 ";
         String data = d1 + d2 + d3 + d4 + d5;     
         public testing(){
              System.out.println(data);
              String[] result = data.split("\\s");
              for(int x=0;x<result.length;x++)
              System.out.println(result[x]);
         public static void main (String args[])throws IOException{
            testing Application = new testing();
    }ARRAY
    'Monitor
    Chart'
    2
    5
    'Total OverFlow'
    'Queued'
    'Completed'
    'Host Resets'
    'Errors'''
    0.0
    1.0
    2.0
    3.0
    4.0
    'Series1'
    11.0
    0.6
    8.6
    11.5
    6.6
    'Series2'
    12.8
    6.7
    21.6
    11.1
    30.0
    but how do i get the values out ??how do i noe it is which index or wad?
    11.0
    0.6
    8.6
    11.5
    6.6

  • How to download the AppIntegrator zip file from the SAP Service Market Plac

    Hi All,
    I want to download com.sap.portal.howtos.webapp.par file from SAP Market Place. KIndly guide me how to download par file from market place.
    Regards,
    Bidyut

    Below documents will help you to download app integrator
    Step-By-Step Guide to implement Application Integrator
    Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator

  • How to download the "Sent Mail" folder from Gmail to Mail 4.1?

    Since updating to Snow Leopard I no longer have any mail in my Sent Mail folder
    when using IMAP in Mail 4.1. In fact just a few (258) of all my sent messages (3732)
    were properly downloaded.
    I noticed that after configuring my Gmail to work with Mail/IMAP some new folders were
    created. They are: [Gmail]/Sent Mail/Sent, [Imap]/Drafts, Sent messages, and Deleted Messages. Apart
    from those, my Gmail account has always had standard folders such as Inbox, Sent Mail (the majority of my sent messages are in here), Drafts, Spam, and Trash. Apparently Mail is only downloading the messages from the new "Sent messages" folder and not the standard "Sent Mail", wherein all my sent messages actually are.
    Another issue it that the spinning gear next to the Gmail Inbox in Mail 4.1 keeps spinning incessantly as if checking for new messages all the time even though it is set to check for new messages every 5 minutes and all messages has been downloaded. I have another IMAP account for my university's email which is working perfectly (neither problems with Sent Mail folder nor spinning gear). I will post the spinning gear problem in a separate question.
    In my old MacBook I didn't have this problem when using Gmail with POP. This is the first time I'm using IMAP.
    Is anybody having the same problems?
    I appreciate your help in advance.

    pbchaves wrote:
    Since updating to Snow Leopard I no longer have any mail in my Sent Mail folder
    when using IMAP in Mail 4.1. In fact just a few (258) of all my sent messages (3732)
    were properly downloaded.
    I noticed that after configuring my Gmail to work with Mail/IMAP some new folders were
    created. They are: [Gmail]/Sent Mail/Sent, [Imap]/Drafts, Sent messages, and Deleted Messages. Apart
    from those, my Gmail account has always had standard folders such as Inbox, Sent Mail (the majority of my sent messages are in here), Drafts, Spam, and Trash. Apparently Mail is only downloading the messages from the new "Sent messages" folder and not the standard "Sent Mail", wherein all my sent messages actually are.
    you can change Your Sent mailbox to "Sent Mail". select Sent Mail mailbox, go to mailbox menu->use this mailbox for->sent.
    Another issue it that the spinning gear next to the Gmail Inbox in Mail 4.1 keeps spinning incessantly as if checking for new messages all the time even though it is set to check for new messages every 5 minutes and all messages has been downloaded. I have another IMAP account for my university's email which is working perfectly (neither problems with Sent Mail folder nor spinning gear). I will post the spinning gear problem in a separate question.
    In my old MacBook I didn't have this problem when using Gmail with POP. This is the first time I'm using IMAP.
    Is anybody having the same problems?
    I appreciate your help in advance.

  • Does anyone know how to download the Beyonce visual album from a CD onto iTunes?

    So I bought the disc version of the Beyoncé album and it comes with an audio and a visual. When I put the visual into the computer, it launches into DVD player. Is there a way to download the videos onto iTunes? (I know that you can digitally purchase the videos on iTunes but I don't want to pay again for videos I already bought.) Thanks for any help you can give!

    Can't say for sure but I very, very, strongly suspect you have to get the video component via digital download.  iTunes does not support any kind of "ripping" from DVD, nor conversion from DVD format files to those used by iTunes.  Check if any kind of digital download code is included.

  • How to change the value of a variable in new ABAP debugger.

    Hi Guys,
                 I can't change the value of a variable in the new ABAP debugger.. when I change its revert back to old value. but this is not the case with the old version. How to do this..
    Cheers
    Senthil

    Hi,
    1. Dobule click in the variable in the variable tab.
    2. Click the Change icon in Detail.Dis.
    3. enter the new value and press enter
    Refer
    [http://www.sapdb.info/new-abap-debugger/|http://www.sapdb.info/new-abap-debugger/]
    [http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm]
    <removed_by_moderator_together_with_points>
    Regards,
    SB
    Edited by: Julius Bussche on Jun 24, 2008 8:21 AM

  • How to used the unicode in   interface program in sap abap

    hi expect,
          can any body give example how to convert the non-unicode into unicode in a interface program.please help me.

    First check the connection with the source system. If its ok then replicate the datasource and activate. Then try with running job.
    Time stamp error usually happens when source system in BI and r/3 side differs.

  • Re: How to save/download the report in excel from Report painter.

    Dear Sapmates,
    I have created Cost element and Cost centere reports using report painter. Both the reports consists of nine coloumns. I would like to have the report in the excel. I tried the folliwng options :
    1. System -> List -> Save -> Local file
    2. Settings -> Options -> Microsoft Excel
    3. Print and then try to save using the spool request number using SP02.
    But neither of the ways worked to download or save the file in the excel format.
    Could anybody of you please help me out with this.
    Many thanks in advance.
    Best regards,
    Pabbi.

    After executing the report, select from the top menu:
    Report --> Export
    In the export to presentation server screen, select spreadsheet as the export format and enter the file location and name in the output file section. Then hit enter or click on the green check mark.
    another pop up box will show and this time click on continue.
    It will now create the output. check the output location you have entered before for the file.
    Hope this helps.
    Shail

  • How to bind the value of slider from C# code in windows phone 8.1..?

    Hi, I want to bind a custom seek bar to the position of media element.
    I think from XAML we can achieve it by 
         Value="{Binding ElementName=mediaElement, Path=Position, Mode=TwoWay, Converter={StaticResource FormatConverter}}"
    where FormatConverter is a converter class written to convert mediaElement object to slider value during binding.
    But I am creating the media element from code, so I want to write C# code to achieve the above. How to do it..?

    You can create the same binding in C# by instantiating a
    Binding class and setting its Path, Source, etc. properties. See the remarks in the Binding class docs and
    Creating bindings in code in the
    Data binding with XAML docs.
    That said, the Position updates significantly more frequently than you want to update the seek bar, so you may want to use polling rather than binding for this specific use (especially since you're already in the code behind rather than in the Xaml).

  • How to download the SAPPCUI_GP.sca file from service market place

    hi
    i want to download SAPPCUI_GP.sca file from service market place
    could u please guide us.
    Thank u very much.

    hi
    Go to following url
    <a href="https://websmp205n.sap-ag.de/patches">service market place</a>
    click on <b>Enterby appliaction group</b> and the follow the given as below path
    SAP Application Components> SAP ERP> SAP ERP 2004> Entry by Component>SAP XSS (Self Services)

  • How to load the values in excel sheet directly into the table of smart form

    could u help me out of this

    Hi krishna,
    insert this code in u r smartform print program
    parameter p_file type rlgrap-filename.
    at selection-screen on value-request for p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = 'P_FILE'
    IMPORTING
    FILE_NAME = p_file
    start-of-selection.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER = 'X'
    i_tab_raw_data = it_type
    i_filename = p_file
    tables
    i_tab_converted_data = itab[]
    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.
    <b>U can also use ALSM_EXCEL_TO_INTERNAL_TABLE or KCD_EXCEL_OLE_TO_INT_CONVERT</b>
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    filename = wf_filename
    i_begin_col = v_start_col
    i_begin_row = v_start_row
    i_end_col = v_end_col
    i_end_row = v_end_row
    TABLES
    intern = int_excel
    EXCEPTIONS
    inconsistent_parameters = 1
    upload_ole = 2
    OTHERS = 3.
    CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = LT_INTERN
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.

  • How to get the size of uploaded file in sap ABAP MODULE POOL PROGRAMMING

    Hello,
    I am using a fucntion module GUI UPLOAD to upload a file from pc to SAP .
    I want to upload the details of the file.
    i.e TYPE NAME AND SIZE of the file.
    I am unable to do so.
    Help me.
    Gaur Mayank

    Perhaps you could count this by yourself...
    You could approach the correct size by calculating the number of bytes contained in each rows of your table.
    For this you will first need to upload the file to a table of string, so that each field separator is counted.
    something like:
    DATA: lt_data TYPE STANDARD TABLE OF string,
          l_len TYPE i.
    FIELD-SYMBOLS <data> TYPE string.
    "... gui_upload to lt_data              
    DESCRIBE TABLE lt_data LINES l_len.
    l_len = ( l_len - 1 ) * 2.        "Count 2 bytes at end of each line for CRLF
    LOOP AT lt_data ASSIGNING <data>. "Add length of each line
        l_len = l_len + strlen( <data> ).
    ENDLOOP.
    WRITE: l_len.
    This for a single-byte codepage of course... you can use charlen in order to have the length of one char on your system, here I'm asuming it is 1.
    Kr,
    Manu.

  • Oracle WebADI: How to Download the WebADI Excel File with Parameter

    Hello Friends,
    How to Download the Oracle WebADI Excel File with Parameter??
    For Ex: How to download the Employees for Specific Department from Oracle WebADI.
    And After to change the specific changes on Employee Data to Upload.
    Thanks in Advance.

    Hi Team.
    Any Advise on it!!

  • In MEK3 Transaction How to Download the Display Customs % Values

    Hi Friends, Please Guide me on this Issue
    Once User enters MEK3 Transaction and he follows below Steps
    Enters the Condition Type
    Clicks on -> Key Combination Button
    Checks the Radio Button -> Purch Org / Plant/ Vendor and Continue
    After Providing Inputs for
    Purch. Organization, Plant, Valid on Date User executes the report
    Then the data is displayed in Table Control
    Here the User needs to download the data which is displayed in the Table Control
    By Navigating through SYSTEM -> LIST -> SAVE -> LOCAL FILE
    Here LOCAL FILE is not in enable mode
    So how can we make that LOCAL FILE to enable mode and achieve the Download functionality
    Thanks & Regards
    Ganesh
    Edited by: ganesh yarramsetty on Mar 9, 2011 1:41 PM
    Edited by: ganesh yarramsetty on Mar 10, 2011 7:27 PM

    Hi,
    whenever you click on Excel download option select spreadsheet instead of unconverted
    There is a possibility of download the spool file as txt-file. .
    Use Tranx SP01 - select the spool entry -->"spool request --> forward as text . You will find the file in your SAP work directory as <sid><spool#>.
    or use fm RSPO_DOWNLOAD_SPOOLJOB.
      Download in Background in Excel Format
    How to download the data in excel format directly while executing in background mode? 
    If you will execute it in bacground with ws_download or download, it will be aoutomatically cancel. so what is the procedure to do this.  How is can directly read the spool from program?
    Download from background is possible, if you could setup the environment
    1. create a custom table first
        Table  : Y001
        Displayed fields:   4 of   4  Fixed columns:
           MANDT BNAME       Y_SITE    Y_PATH
           010      <userid>     <site>      cd <novell_path>
    2. rewrite ws_download to z_download (light modification required, see attachment)
    3. ask your basis team to make a copy of command FTP and CHMOD to ZFTP and ZCHMOD resp., make the setting according to your environment.
    Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code
    Hope this will will helps you,
    Thanks and Regards,
    Manjunath M
    Edited by: manjunath4sap on Dec 23, 2010 6:20 PM
    Edited by: Rob Burbank on Dec 23, 2010 9:02 PM

Maybe you are looking for

  • How do I re-install the apple USB mobile device driver once it has been deleted?

    Hi, I was having issues getting my Itunes to recognize my Iphone 4s so I followed the apple support instructions here: iOS: Device not recognized in iTunes for Windows and it said to delete the driver software (Step 2 of Reinstall the Apple Mobile De

  • Problem displaying an Excel File: Please Help

    Hello, I spent 3 hours this morning reading the forum on how to display an Excel file in the browser using JSP and I apologize in advance if the answer is in the forum. I cut and paste many examples: My goal is to display an excel file on the browser

  • ORA-00164 Autonomous Transactions in Distributed Env

    Hi, We are on 8.1.7 on AIX. We get ORA-00164 when we attempt to call an Autonomous transaction procedure whilst the main transaction has read a remote table. In 8.1.6.0.0 this used to check us out with Ora-600, In 8.1.7 it gives error 164. I have rea

  • Is it possible to set a default for "Time Span"?

    AME seems to default to the Time Span to "Work Area" when rendering AE compositions. Is there any method, either in the app or by preference file hackery, to change this default to "Entire Composition?" Coming from rendering in AE, this is a major pr

  • Multi Y-scale zoom problem

    I created two Y-scales on my XY Graph and attached one plot to each scale. The problem is that when i am trying to zoom the graph it changes both scales. I tried to set Active Scale before zooming but that didn' help. Is it possible to zoom scales in