EXCEL document's book size format after downloading from SAP

Dear forumers,
we have developed a user report in ABAP, this report downloads table containing data into Excel. The problem is that the downloaded table is wide and the page format in Excel-document is broad size as default. We need the system to download the table into Excel in book size format by default. How to make it automatically?
To do it every time manually takes time. At the moment we have to go to File -- Parameters -- Page Orientation -- pick Book size, and put the Scale 90%. After that table in Excel fits a book size page.
<REMOVED BY MODERATOR>
Best regards,
Eldar
Edited by: Alvaro Tejada Galindo on Aug 13, 2008 5:39 PM

Hello,
Please check with following code .. if it works .. pls close this issue
Example: Interface between Microsoft Excel and ABAP/4 with up- and   *
downloading of data plus executing Microsoft Excel.                  *
TABLES: USR04.
DATA: SIZE TYPE I.
DATA: BEGIN OF USER OCCURS 100.
        INCLUDE STRUCTURE USR04.
DATA: END OF USER.
Example: Select some data into an internal table.                    *
  SELECT * FROM  USR04 INTO TABLE USER .
Example: Downloading data in Microsoft Excel Format with automatic   *
prompt popup dialog.                                                 *
  CALL FUNCTION 'DOWNLOAD'
    EXPORTING
      FILENAME     = 'C:\tmp\SAPEXL1.XLS'
      FILETYPE     = 'WK1'   "ASC, WK1, DBF, DAT, bin
      MODE         = ' '     "Mode ' ' = Rewrite Mode 'A' = Appending
    TABLES
      DATA_TAB     = USER.
Example: Downloading data in Microsoft Excel Format without automatic*
prompt popup.                                                        *
  CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
      FILENAME     = 'C:\tmp\SAPEXL2.XLS'
      FILETYPE     = 'WK1'   "ASC, WK1, DBF, DAT, bin
      MODE         = ' '     "Mode ' ' = Rewrite Mode 'A' = Appending
    TABLES
      DATA_TAB            = USER.
CLEAR USER.      "Clear buffer
REFRESH USER.    "Refresh, empty internal table

Similar Messages

  • Excel-document's book size format after downloading

    Dear forumers,
    we have developed a user report in ABAP, this report downloads table containing data into Excel. The problem is that the downloaded table is wide and the page format in Excel-document is broad size as default. We need the system to download the table into Excel in book size format by default. How to make it automatically?
    To do it every time manually takes time. At the moment we have to go to File -- Parameters -- Page Orientation -- pick Book size, and put the Scale 90%. After that table in Excel fits a book size page.
    Best regards,
    Eldar

    Hello,
    Please check with following code .. if it works .. pls close this issue
    Example: Interface between Microsoft Excel and ABAP/4 with up- and   *
    downloading of data plus executing Microsoft Excel.                  *
    TABLES: USR04.
    DATA: SIZE TYPE I.
    DATA: BEGIN OF USER OCCURS 100.
            INCLUDE STRUCTURE USR04.
    DATA: END OF USER.
    Example: Select some data into an internal table.                    *
      SELECT * FROM  USR04 INTO TABLE USER .
    Example: Downloading data in Microsoft Excel Format with automatic   *
    prompt popup dialog.                                                 *
      CALL FUNCTION 'DOWNLOAD'
        EXPORTING
          FILENAME     = 'C:\tmp\SAPEXL1.XLS'
          FILETYPE     = 'WK1'   "ASC, WK1, DBF, DAT, bin
          MODE         = ' '     "Mode ' ' = Rewrite Mode 'A' = Appending
        TABLES
          DATA_TAB     = USER.
    Example: Downloading data in Microsoft Excel Format without automatic*
    prompt popup.                                                        *
      CALL FUNCTION 'WS_DOWNLOAD'
        EXPORTING
          FILENAME     = 'C:\tmp\SAPEXL2.XLS'
          FILETYPE     = 'WK1'   "ASC, WK1, DBF, DAT, bin
          MODE         = ' '     "Mode ' ' = Rewrite Mode 'A' = Appending
        TABLES
          DATA_TAB            = USER.
    CLEAR USER.      "Clear buffer
    REFRESH USER.    "Refresh, empty internal table

  • Cant find books on kindle after downloading from openlibrary. maybe need to add code to adobe digital edition

    i cannot find my books on my kindle after downloading from open library...
    is it because i didnt enter a code into adobe digital before i downloaded
    is it because my kindle is not supported by adobe
    what is wrong. i want to be able to read my books on my kindle from open library and i cannot.

    Kindle does not read epub files.  You could try searching the net for a conversion program form epub to mobi.  Calibre might do it?

  • Music and books not sync after downloading from prurchased

    Hello everyone,
    I have a problem that I don't undestand.
    When I download a previously purchased app in my iPhone, it appears automatically as syncronized in iTunes but when I download even a song or a book, in iTunes it keeps as it is not syncronized and I don't understand it as now that book or song is in both devices, iPhone and Macbook so it should be sync.
    Maybe that is a bug or am I doing anything wrong?
    Thanks for your help and best regards

    I see now that iTunes Match is a solution for music tracks.  Does it also include iBooks content. or is there another solution for those books that were not purchased in the iBooks store?
    Is there another way altogether to do this, using Dropbox or some other service not provided by Apple?

  • Mountain lion has killed my mac book pro. After downloading and trying to install, I am stuck in a loop of "not enough room to install on this disk" and not being able to access the old disk's data to open up space.

    Mountain lion has killed my mac book pro. After downloading and trying to install, I am stuck in a loop of "not enough room to install on this disk" and not being able to access the old disk's data to open up space.

    Nope. It just opened the installer and stayed in the same loop.
    It tells me to choose a startup disk but the only option is the HD which it will not use because it says it cannot gather enough information.
    Eveything was working fine until the mountain lion failed install.

  • Permission not given to copy books to Nook after download

    permission not given to copy books to Nook after downloading to computer. What change needs to be made?

    send problem to Apple.
    http://www.apple.com/feedback/ipad.html
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
     Cheers, Tom

  • Can't open any apps on my mac book pro that i downloaded from the cloud

    can't open any apps in i-tunes on my mac book pro that i downloaded from the cloud

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output andWi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder., Is there

    Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder., Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder.

    Bridge will do the job. View > Sort > ByType. Then you can choose a group of one type and put the files in a separate folder.

  • I only get 30 seconds of show after downloading from iTunes. how do i get the full episodes?

    i only get 30 seconds of show after downloading from iTunes. how do i get the full episodes?

    Are you sure to have the full length file in the library? If you start playing it, will it show the full runtime on the controls?

  • HT1338 exe files won't open after downloaded from Safari on my Mac OS X 10.4.11

    exe files won't open after downloaded from Safari on my Mac OS X 10.4.11

    I use the free Unarchiver: http://unarchiver.c3.cx/unarchiver
    I have just tested it on a self-extracting Windows Internet Explorer and it opened it first time on my Mac.
    However, as you have been told, normally Windows executable files cannot be opened or used on Macs.

  • How do i play games after downloading from the app store on my laptop

    How do i play games after downloading from apps on my windows 8 laptop??

    iOS applications can't be run on a computer.
    (100210)

  • Guideline Performance Initial Download from SAP for Utility into SAP CRM

    Hello,
    Please find below a link (valid for 10 weeks) to the document Guideline Performance Initial Download from SAP for Utilities into SAP CRM. The document is also published in the SAP Service Market Place at http://service.sap.com/utilities. Then choose Technical Information Center - Migration.
    The purpose of the document is to give guidelines as well as to share experience for an efficient and high performance execution of an initial download from an SAP for Utilities system to an SAP CRM system, such as:
    - Configuration of the initial download
    - Ensure optimum performance for the initial download of the relevant business objects
    - Avoid unnecessary business data being downloaded
    - Monitoring of the initial download and taking corrective actions in case of problems
    - Handle errors occurring during the initial download of business objects
    - Minimize performance bottlenecks
    The document explains the setup and configuration of the SAP for Utilities and SAP CRM systems only if necessary for the understanding of the solution of a described performance problem. This document does not cover the performance optimization of the delta down- and upload and the synchronization download.
    The document has the following structure:
    Chapter 1 describes the basics of an initial download
    Chapter 2 describes how to plan and execute tests to achieve an acceptable performance
    Chapter 3 describes the most important technical activities to prepare the involved systems
    Chapter 4 describes the most important functional activities to prepare the involved system
    Chapter 5 describes how to perform an initial download
    Chapter 6 describes measures to improve the performance of an initial download
    Chapter 7 provides a list of important repository tables
    Chapter 8 contains a list of important SAP Notes related to initial download
    I'd highly appreciate your valuable feedback on this document.
    Kind regards,
    Fritz
    Edited by: William Eastman on Feb 17, 2011 2:34 PM

    Hi Fritz,
    sorry for the late late reply but I didn't notice your answer.
    Here are my answers:
    (1) I monitored the behaviour on the CRM system, CRM 7.0, SP5
    (2) The change should be implemented in the CRM system
    (3) Deactivate buffering for scenarios marketing, sale and service via SM30 and table T770MATTR.
    By doing this the initial load of 3.2 million business agreements took around 2 hours, with activated scenario buffering I was at least ten times slower.
    After the initial load you have to activate the buffering again.
    Interesting to know would be why the scenario buffering only affects the initial load of business agreements and no other object. As far as I know the scenario buffering is relevant for the organizational management.
    Regards
    Alexander

  • Error after upgrading from  sap b1 pl 35 to pl 49

    hello sap experts 
    iam getting the following error after upgrading from  sap b1 pl 35 to pl 49 this error is coming if we have given round off or discount in the below cell
    "Discount deviates from authorised ranges (sales oreder-discount%for document) [message 439-15] pls make it as soon as possible an i will be thankful to those guys .
    regards
    Jenny

    Hello Jenny,
    You may check by supreuser account first to see if you got the same error.  If not, it probably just related to user authorization.  If yes, it must be a bug.
    Thanks,
    Gordon

  • Impact on BPS after upgradtion from SAP BW 3.5 to 7.0

    HI All,
    What will be the impact on BPS after upgradtion from SAP BW 3.5 to 7.0 ?
    and  what all care need to be taken befor upgradation.
    Regards,
    Prateek

    There is no special impact - BPS is still the same. The impact is in BW.

  • How do I download or copy my saved sites, usernames and passwords to an Excel document? (I also need to download or copy my bookmarks)

    I need to put all password info and my bookmarks in Excel documents for my private drive without typing each one into the document. The only method I've found so far is Alt-Print Screen then Ctl-V. This only copies the information as a picture and leaves me a lot of work typing everything into a document. Life is too short......Please Help!

    https://addons.mozilla.org/en-US/firefox/addon/password-exporter/
    This extension will export password data to a CSV file type, which as I recall can be imported into Excel.
    See this for exporting bookmarks into the HTML file format.
    https://support.mozilla.org/en-US/kb/export-firefox-bookmarks-to-backup-or-transfer

Maybe you are looking for

  • File not on local disk??

    I am suddenly getting -  "file" not on local disk. GET - when I open any of my local sites in dreamwearver. All the files show up in the Files Panel and  If I double click on the file names in the files panel the file WILL open. So obviously it is th

  • My bank has offered me Kaspersky Anti-Virus 2011 for Mac for Free, should I bother?

    Thoughts? I am a reasonably experienced Mac user, have never had a problem (that I am aware of) with security on my iMac. I'm erring towards, what's the point, why bother. But I thought I would throw it out there? Perhaps another question is, what st

  • Cannot get permanent PATH variable in Vista working.

    Just like [this thread|http://forum.java.sun.com/thread.jspa?forumID=31&threadID=5219380], I made "C:\program files\java\jdk1.6.0_06\bin" as a new "variable value" in Vista but I get the error: "javac is not recognized as an internal or external comm

  • Unable to update Boot Camp to 3.1 on Windows XP

    I'm trying to fix the scrolling issues with the Magic Mouse by updating to 3.1 on the Windows XP side, but it says I must have version 3.0 first. According to my Mac I'm running v3.0.4. Does that mean that Windows is running the same version? I would

  • When will Adobe update distributable Reader to 9.1.1?

    Looks like it's still at 9.1.0