Format excel file when it is downloaded

How to format excel file when it downloaded from SAP table

Hi,
In my opinion this would not be straight forward . Actully there are two possibilities :
1. Create a dynamic itab with the structure as you desire in your requirement. But is it possible to have a itab where each row has a different structure. ? experts pls comment on this. ( extract & field group concepts are used to acheive the different structures for each line ).
2. The more possible way i feel is to use the OLE excel concepts. Here we can add data to the excel sheet as wanted by you. Pls check for a beginners article by Rehan Zaidi ( SAP tips ).
In this case you can keep on adding values to the excel ( may be in a loop over your data table ) . For ex : you can add the title Annual Price Book for Program - B4, then the customer & date data & finally the material data. This needs to be repeated again for the next Sales order.
Regards,
Sharat.

Similar Messages

  • How to get Formatted Excel file when downloading spool request of a r paint

    I have scheduled a Report painter program  in background  & spool is generated .
    When I download the output in the Excel file its not in the proper format . We need to format the file file by adding  deleting blank Line in the report .
    Can it be possible when we Download the Report painter. Its come The generated Excel file should come in formatted way.
    Thanks

    kiro123 wrote:
    I have scheduled a Report painter program  in background  & spool is generated .
    >
    > When I download the output in the Excel file its not in the proper format . We need to format the file file by adding  deleting blank Line in the report .
    >
    > Can it be possible when we Download the Report painter. Its come The generated Excel file should come in formatted way.
    >
    >
    > Thanks
    Yes the report painter report especially in the hierarchial format will not make much sense when you download to excel. Until now I also have not seen any solution to this.

  • How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an  horizontal format.

    How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an  horizontal format.

    Thanks for the quick reply.  I figured out how to get the desired results by using tagging.  For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option.  Hit ok, tag is added to the toolbar.  Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet.  Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.

  • HTML formate excel files

    Hi,
    I just recognized that the excel files which I can download from my OBI/Answers reports or which I used to send to customers are HTML formated excel files. I also found a remark in the Oracle OBI documentation.
    Now my problem ...those files are much bigger then the ordinary excel files. Opening those files and saving them again as pure excel decreases the size by the factor 10x.
    Unluckily some of those files a bigger then 10MB which is the size limit of mails of our mail server. My question is there a way to create normal, non-html formatted excel files (especially for sending them)?
    Thanks.

    The link is very helpful but unluckily it is no solution (maybe there is no solution). If the excel file is in MHTML format it is much too big ...on the other hand it needs to be Excel 2003. So finally the question is still whether it is possible to get am Excel 2003 file without MHTML?

  • Unable to write data into excel file when it's close

    Hi,
    I'm facing this problem and it's a bit weird. I'm using the following method to insert data into excel file. But when excel file is close, it unable to write data into the excel sheet. But it was able to write the data into the excel sheet if i open the excel file when running the program.
    Can anyone please tell me what's wrong to the code?
    public int updateLog(String sheet, String no, String cpId, String CatId, String rbtCode, String rbt, String rbtName, String artistName, String price, String rbtFileName, String songId, String msg){
            int result = -1;
            try{
                SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss",Locale.ENGLISH);
                String actionDate = formatter.format(new Date());
                rbtName = rbtName.replaceAll("'", "''");
                artistName = artistName.replaceAll("'", "");
                String sql = "insert into [Sheet3$] (Code, CpID, CategoryID, RBTCode, RBT, RBTName, ArtistName, Price, RBTFileName, SongID, UploadStatus, FileUploadedDateTime) ";
                sql = sql + " values ('" + no + "', '" + cpId + "', '" + CatId + "', '" + rbtCode + "', '" + rbt + "', '" + rbtName + "', '" + artistName + "', '" + price + "', '" + rbtFileName + "', '" + songId + "', '" + msg + "', '" + actionDate + "')";
                System.out.println(sql);
                log.writeLog(sql);
                result = stmnt.executeUpdate(sql);
            } catch(Exception e){
                e.printStackTrace();
                log.printStackTrace(e);
            return result;
        public int openConnection(){
            int result = -1;
            try{
                Class.forName(dbDriver);
                c = DriverManager.getConnection(conStr + excelFilePath+";ReadOnly=0;");
                stmnt = c.createStatement();
            } catch(Exception e){
                e.printStackTrace();
                log.printStackTrace(e);
                return -1;
            return 1;
        }Thanks

    HI,
    i hv a doubt regarding reading / opening of a
    password protected Excel file using jxl( java ) .
    How to read / open a password protected Excel file
    thro Java (jxl ) program .plz let me know some
    example also .
    Regards,
    Ramesh P
    845935822cross posting !! answered here
    http://forum.java.sun.com/thread.jspa?threadID=710466&messageID=9507085#9507085

  • Safari can't download file when trying to download movies

    Safari responds with "safari can't download file' when I use download app to download movies . I don't have issues downloading apps or searching net.  Would be grateful for assistance.

    You can't download something from Safari to your iPad.  iPad is a closed system, and not subject to virus intrusion.  Now, if for example you have a Kindle app and you go directly to Kindle in Safari and using your ID you buy a book, the book will download to your Kindle account, which you could then open your kindle App on your iPad and read the book you downloaded in your App.  But you can't go into Safari and just download a book or a movie directly to your iPad from the net........

  • Passing a parameter to an Excel file when opening it

    I would like to know if it is possible to pass a parameter to an Excel file when calling that file from within another Excel file using VBA. I am using the 2007 version. An example of what I would like to do is what we use to do with DOS programs and command
    line parameters. I would like to have the Excel file I just opened do something depending on the parameter passed to it and then close.
    Might be an easy question but I'm stumped. Any ideas?

    Step.1 Create a macro-enabled workbook
    Step.2 Open the workbook, and open the VBA, insert a moudle, copy and paste the following code sample in the module
    Option Base 0
    Option Explicit
    Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineW" () As Long
    Declare Function lstrlenW Lib "kernel32" (ByVal lpString As Long) As Long
    Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (MyDest As Any, MySource As Any, ByVal MySize As Long)
    Function CmdToSTr(Cmd As Long) As String
    Dim Buffer() As Byte
    Dim StrLen As Long
    If Cmd Then
    StrLen = lstrlenW(Cmd) * 2
    If StrLen Then
    ReDim Buffer(0 To (StrLen - 1)) As Byte
    CopyMemory Buffer(0), ByVal Cmd, StrLen
    CmdToSTr = Buffer
    End If
    End If
    End Function
    Step.4 Copy and paste the following code sample into ThisWorkbook
    Private Sub Workbook_Open()
    Dim CmdRaw As Long
    Dim CmdLine As String
    Dim myParam As String
    CmdRaw = GetCommandLine
    CmdLine = CmdToSTr(CmdRaw)
    myParam = Right(CmdLine, 6)
    MsgBox myParam
    End Sub
    Step.4 Sign your code or modify the macro security settings to allow the macro to run automatically
    Step.5 Save and close the workbook
    Step.6 Run command line with the parameter, for example:
    Excel "Server\ShareFolder\TheWorkbook.xlsm" /e/myParam
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The code sample above will pass the last 6 characters (modify the code if you need more or less) to the workbook
    The workbook will display a message box to display the parameter we passed from the command line, add the other function as you need
    The code sample refers to the reply from Air_Cooled_Nut in
    http://www.vbforums.com/showthread.php?366559-Excel-How-to-Pass-Command-Line-Parameter-DKenny-is-KING!
    Max Meng
    TechNet Community Support
    A new Office has arrived, try it now.
    A beautiful Start. It begins here. Windows 8 and Windows RT.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Why does Apple say that Numbers can open and save Excel files, when in actuality, it can only open .XLSX files and only Export to Excel (not save-as excel)?

    When attempting to open .XLS files in Numbers, the format is not recognized. When the format is .XLSX, the format is recognized. Why is it this way? It's still much more common for folks to have the .XLS file format on their excel files. Why would Numbers not be backwards-compatible?
    Additionally, to state in the benefits of this program that one can save to 'Excel' is a little misleading. You can't save to anything except .numbers. Sure, you can export to Excel (with file extension .XLS, I might add), but you can't save or save-as.
    Does anyone else see the irony in being able to export to .XLS but not be able to open an .XLS?
    There is something to be said for clarity.
    You can't expect folks to have Numbers and Excel on their systems, so how else are they supposed to open .XLS files in Numbers?
    And I don't need to see another advertisement for NeoOffice or OpenOffice here, thanks. I'd actually like Numbers to be a little more sensible.
    That is all.

    When the advertisements were written, there was no Lion so we were able to Save As Excel.
    At thiqs time there is no longer Save As command under Lion but the feature is always available.
    When your editing task is ended, you are free to use this scheme:
    File > Duplicate
    File > Save and in the dialog you will have the option save as Excel.
    Numbers isn't and I hope that it will not become an Excel editor.
    Its resources contain a flag defining it this way.
    I posted several times a script editing this resource.
    This morning I'm not in a mood allowing me to do your duty.
    Search by yourself in existing threads with a keystring like
    viewer AND editor
    Yvan KOENIG (VALLAURIS, France) jeudi 27 octobre 2011 09:40:23
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How can i print an Excel file when in the full screen mode (no print options on toolbar or right clk

    using Vista, sometimes after creating and saving an excel file, the document is not visible when the file is reopened.
    selecting full screen mode makes the document visible, but the toolbars disappear and the print option does not show up on a right click.  How can i print the document and see the document in some other mode than full screen?

    In order to print, you can click the CTRL+P keys to launch the print dialog,
    Regarding the missing toolbar, try clicking the ALT key to shouw the software menu, then look around under the view option for any available toolbar settings,
    If you cannot find it, i would recommend you to try the Microsoft support forums, as they have some more knowledge with their software features
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Maintaing the formulas from an existing excel file when creating a pdf form

    Im sure its been asked but I would like to maintain the active formulas in my existing excel (2013) file when I create a new form utilizind Adobe Acrobat XI Pro.
    Thanks,

    Not possible.  You have to re-create them.

  • User specified formatted Excel File

    Hello all,
    this forum has been extremely helpful to me earlier...i'm hoping for
    the same this time around.
    here is my query:
    I need to write information to an Excel file in a formatted fashion,
    as usual i'm using open book, open sheet, set value with range... i
    would like to format the data that i read from the PLC in to the EXCEL
    file in a specified manner is there a way to do this...
    date on the first row,
    columns seperated by colons ":" and then column names and the
    respective data below them...
    thanks,
    cheers,
    -U

    Try using the format into string function in the string subpalette. This will allow you to enter all of your inputs and build a string to write to file. You can use string constant to create the ":" and you can use a variety of tabs, end of lines, etc. to build the string the way you want. If you have LV 7 you can use the Build Text express vi. This will allow you to format easier with a nice property page. The drawback with using the build text is a limit of 8 inputs. The format into string will allow more than 8. Hope this helps.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor

  • Can't place formatted Excel file into ID?

    Can't place formatted Excel 2010 data base into InDesign CS5 on Mac? Won't place into newest version of ID either. Will place if I unmerge cells first, but I need thousands of the cells to be merged.

    I thought you might want to do that. No, once a PDF you can't edit to your heart's content.
    So, as to the matter of thousands of cells? You may have to look that one up but there is a limit on what you can do with an Excel file and InDesign; there are only so many cells, columns and rows that can be imported and let alone worked on inside InDesign.
    And you want to merge the cells in InDesign? What ever for? If thousands of cells then edit in Excel to your heart's content and output a PDF. InDesign is not designed as a spreadsheet and not the tool you need and will really bog down with thousands of cells to merge. Just do it in Excel.

  • Keep getting can not find %appdata% file when trying to download itunes. do you know of a fix?

    Have HP600PC with Windows 7 64-bit.  Keep getting Can not find %APPDATA% file when I try to download Itunes and other software.  Do you know of a fix?

    Here you go, this should do it.
    http://support.microsoft.com/kb/2258121

  • Remove Email Addresses From a Formatted Excel File

    I have an excel file that has some formatting in it that I
    would like to preserve (some cells have background color, etc). I'd
    like to remove a list of email addresses from this file. My first
    thought is to use cffile with action read, use the following in a
    cfloop: replace(emailAddressToDelete,
    excelFileVarCreatedFromCffileRead) and then save it back to excel
    format with cffile using action write. I tried this and the Excel
    file would not open. The error was:
    test.xls cannot be accessed. The file may be read-only, or
    you may be trying to access a read-only location. Or, the server
    the document is stored on may not be responding.
    I'm guessing something went wrong in the process of reading
    and writing the files contents and it's not as simple as I want to
    make it. Anyone have something to tell me that might help me remove
    email addresses from a formatted Excel spreadsheet?

    jqcf wrote:
    >
    > I'm guessing something went wrong in the process of
    reading and writing the
    > files contents and it's not as simple as I want to make
    it. Anyone have
    > something to tell me that might help me remove email
    addresses from a formatted
    > Excel spreadsheet?
    >
    Yup, .xls is a proprietary encrypted file format and
    <cffile.... is not
    going to be able to successfully read and modify it's
    content. You can
    copy it or move it, but not modify it with <cffile...>
    If the file format was a plain text such as .txt or .csv you
    could do
    what you are thinking about, but then you would probably not
    have the
    proprietary excel formating in the file.
    I've heard about the POI library that allows some native
    Excel access
    and such, but I am not knowledgeable in its ins and outs.

  • Cannot download pdf files.When attempt to download, screen turns black

    Cannot download pdf files. When attempt to download, screen turns black

    I have had this issue for a while ago. Very disappoointed that Mozilla had not addressed this .
    I have switched to using Safari and Chrome now as they do not have these issues.

Maybe you are looking for