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

Similar Messages

  • 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

  • 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

  • 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

  • How to turn a pdf file into excel document and keep original format

    I Have an excel bid form that i use all the time ,then i convert it into a PDF  And once in a while i need to add something to it  I paid for acrobat but when i try to turn the PDF back into an excel document the format is changed , the columns are in the wrong places And it does not look at all like the original excell form is there any thing i can do to  fix this If not this will be useless to me  any help appreciated

    A PDF does not contain any spreadsheet, word processing or page layout file format information.
    No "format", columns, rows, etc.
    "When you create a PDF, you’re painting a picture. Your paintbrush is the is the result of a combination of the software used to create the source document and the software you’ve chosen to convert your source document into the universal electronic document format we all know as PDF.
    Like the painter’s brushstrokes, each character, each line and each image is fundamentally independent, but they can interact with each other to produce particular visual effects. On the PDF page, objects are connected by a coordinate system and not a lot else. There’s no logical, semantic connection between the letters comprising a word; characters simply happen at a series of locations on the rendered page.
    As originally designed, PDF is fundamentally a system for painting objects onto a page, plus a whole lot of other features we aren’t talking about right now! There’s no innate concept of words, sentences, paragraphs, columns, headings, images, tables, lists, footnotes – any of the semantic structures that distinguish a “document” from a meaningless heap of letters, shapes and colors. PDF is fundamentally about how the document appears on the page, not how it looks when abstracted from the page."
    Duff Johnson, Each PDF Page Is a Painting
    http://talkingpdf.org/each-pdf-page-is-a-painting/ 
    Be well...

  • 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?

  • Problem download document into Micro Word format after clicking a converting file

    Dear friends,
    Pls help as i am not able open document from microword . It happened after i click converting file into ???something that i forget. The document that open is in not complete sentence and mix with symbols .
    I cant download my lecture note anymore .
    Pls help me how to convert back to my previous function pls.
    Many thks
    Tess

    Hi Tess Tay,
    If you are not able to open any word document then please contact Microsoft Support.

  • Mac Book Pro slow after downloading Yosemite

    Downloaded Yosemite now computer is too slow. Barely able to use it but i ran an Etrecheck test and here are the results.
    Problem description:
    every
    EtreCheck version: 2.1.3 (106)
    Report generated December 15, 2014 at 8:24:59 PM PST
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Early 2011) (Verified)
      MacBook Pro - model: MacBookPro8,1
      1 2.3 GHz Intel Core i5 CPU: 2-core
      4 GB RAM Upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1333 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1333 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 3000 - VRAM: 384 MB
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 1:44:38
    Disk Information: ℹ️
      Hitachi HTS545032B9A302 disk0 : (320.07 GB)
      EFI (disk0s1) <not mounted> : 210 MB
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      Macintosh HD (disk1) / : 318.84 GB (213.87 GB free)
      Encrypted AES-XTS Unlocked Failed
      Core Storage: disk0s2 319.21 GB Online
      MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Adware: ℹ️
      Conduit [Remove]
    Launch Agents: ℹ️
      [running] Safe.Connect.client.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [running] com.perion.searchprotectd.plist [Support]
      [running] Safe.Connect.plist [Support]
    User Launch Agents: ℹ️
      [invalid?] cinemas-+-plus-+.ver [Support]
      [invalid?] cinemas-+-plus-+_enabler.plist [Support]
      [invalid?] cinemas-+-plus-+_enabler.sh [Support]
      [invalid?] cinemas-+-plus-+_updater.plist [Support]
      [invalid?] cinemas-+-plus-+_updater.sh [Support]
      [invalid?] Safari Security [Support]
    User Login Items: ℹ️
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
      CSA UNKNOWN (missing value)
    Internet Plug-ins: ℹ️
      Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Support]
      FlashPlayer-10.6: Version: 15.0.0.246 - SDK 10.6 [Support]
      Flash Player: Version: 15.0.0.246 - SDK 10.6 Mismatch! Adobe recommends 16.0.0.235
      QuickTime Plugin: Version: 7.7.3
      Default Browser: Version: 600 - SDK 10.10
    User internet Plug-ins: ℹ️
      TroviNPAPIPlugin: Version: 1.0 - SDK 10.9 [Support]
    3rd Party Preference Panes: ℹ️
      Flash Player  [Support]
    Time Machine: ℹ️
      Mobile backups: ON
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 318.84 GB Disk used: 104.97 GB
      Destinations:
      ext seagate hard drive [Local]
      Total size: 499.76 GB
      Total number of backups: 2
      Oldest backup: 2014-09-12 04:17:49 +0000
      Last backup: 2014-09-12 05:12:51 +0000
      Size of backup disk: Adequate
      Backup size 499.76 GB > (Disk used 104.97 GB X 3)
    Top Processes by CPU: ℹ️
          13% WindowServer
          8% Activity Monitor
          3% mds_stores
          2% launchservicesd
          2% launchd
    Top Processes by Memory: ℹ️
      99 MB Finder
      94 MB Safari
      86 MB mds_stores
      77 MB spindump
      69 MB WindowServer
    Virtual Memory Information: ℹ️
      970 MB Free RAM
      1.60 GB Active RAM
      637 MB Inactive RAM
      1.09 GB Wired RAM
      1.27 GB Page-ins
      0 B Page-outs
    Diagnostics Information: ℹ️
      Dec 15, 2014, 06:49:35 PM Self test - passed

    nikov26 wrote:
    Disk Information: ℹ️
      Hitachi HTS545032B9A302 disk0 : (320.07 GB)
      EFI (disk0s1) <not mounted> : 210 MB
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      Macintosh HD (disk1) / : 318.84 GB (213.87 GB free)
      Encrypted AES-XTS Unlocked Failed
      Core Storage: disk0s2 319.21 GB Online
    Failed? That's a new one. Is that your original hard drive? I suggest you replace it. SSDs are finally affordable these days.
    You also only have 4 GB RAM. Yosemite is very RAM hungry. I suggest upgrading your RAM too.
    Adware: ℹ️
      Conduit [Remove]
    Click the "Remove" link to remove your adware.
    Launch Agents: ℹ️
      [running] Safe.Connect.client.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [running] com.perion.searchprotectd.plist [Support]
      [running] Safe.Connect.plist [Support]
    Search protect? Safe connect? I don't like the sound of those. Hopefully when you run AdwareMedic, one or both of those will be gone. If not, I strongly suggest uninstalling them.
    User Launch Agents: ℹ️
      [invalid?] cinemas-+-plus-+.ver [Support]
      [invalid?] cinemas-+-plus-+_enabler.plist [Support]
      [invalid?] cinemas-+-plus-+_enabler.sh [Support]
      [invalid?] cinemas-+-plus-+_updater.plist [Support]
      [invalid?] cinemas-+-plus-+_updater.sh [Support]
      [invalid?] Safari Security [Support]
    Where did all of this come from? Normally I always recommend using only vendor-provided uninstallers or uninstallation instructions. But I have never seen anything like these. In Finder, click the "Go" menu, hold down the option key, and choose "Library". Open the "Launch Agents" folder. Move the items listed above to the desktop and restart your machine.
    Do this after running AdwareMedic.
    User Login Items: ℹ️
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
      CSA UNKNOWN (missing value)
    What is CSA? You have a lot of suspicious things on this machine.
    User internet Plug-ins: ℹ️
      TroviNPAPIPlugin: Version: 1.0 - SDK 10.9 [Support]
    This adware will be deleted when you run AdwareMedic.

  • 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?

  • Why does my mac book pro freeze after downloading mountaion lion?

    I downloaded the Mountain Lion and now my macbook pro and it keeps freezing.  I have to keep restarting. I have tried both safari and firefox and it does not seem to make any difference.  Please help as I am getting very frustrated.

    What version of Photoshop are you using?
    Clinton

  • Can't read kindle books after downloading ios6

    I can't real my kindle books in iphone, after downloading ios6

    Any ideas here-- besides going back to OS5?  I have removed and re-downloaded my kindle app at least 10x.  But I get the error message ecah and every time.  At 1st it loks like all is working well-- the book downloads...but, when I go to open it -- up comes the error message--saying to remove and redownlaod and or dregister tha app...  Which I have done and get NO results.  So frustrating as I read most everything on my iphone... 
    Any other ideas?
    thanks!

  • Automating using Photoshop Actions & Excel document??

    Hi - I'm new to automator and I wanted to know if it was possible to have automator run photoshop actions and also pull info from an excel document. Here is ideally what I’d like to do:
    I receive hundreds of images (book covers & interiors) that I’d like to resize and rename automatically when they are Dropped into a folder.
    There are 3 different resizes that I’d like to be done. I have the resizing actions in photoshop already. I run the automate>batch command in photoshop, but I’d still like to make it simpler.
    Original files – These are how I receive the files and I clean them up to look like this.
    - COVERS – i.e. 140394877213_ccvr.tif
    - SPREADS – i.e. 140394877213_csp1.tif, 140394877213_csp2.tif, etc.
    Here are the different folders
    Folder 1(sized for catalog use) – action set up in photoshop cs2 that will size covers, another action to size spreads at a different size.
    - covers – bookname.tif
    - spreads – 140394877213_csp1.tif
    Folder 2 (smallest sized cover) – action in photoshop to resize cover
    - covers – 140394877213.tif
    Folder 3(sized for powerpoint presentation) – action in photoshop that will resize covers to a certain size, and a separate action that will size spreads to another size.
    - covers – bookname.tif
    - spreads – bookname_csp1.tif, etc.
    5 photoshop actions in total
    When the original files are dropped into the specified folders (folder 1, folder 2, folder 3), a photoshop action is run that resizes all the files in the folder and also renames the files.
    Can I do this? I have all the books and isbns in an excel document that I’d like automator or applescript to pull the information from the excel doc to rename the files accordingly.
    Also, is there a way to record the names of the files I receive in an excel document?
    Or even better, after the images are placed in the folder, can a script check the excel document (that has the listing of the booknames and isbns) and mark off which files where received and placed in the folder. I hope that was clear.
    Any help or advice would be much appreciated!
    MacBook   Mac OS X (10.4.8)  

    ngb111,
    I know this is possible through AppleScript as I just finished off a script that renames files based on an Excel list.
    http://discussions.apple.com/thread.jspa?threadID=871047&tstart=0
    It might be also be possible using Automator through some third-party Automator actions.
    http://www.hanaan.com/Automatorbookonline/Automator%20Actions%20Download.html

  • Xcelsius not linking to Excel document

    When attempting to link in cells from my Excel document.  I get nothing in return.  For example:  If I was to try to link a single value box to a cell in my Excel document I wouldu2026
    1.     Create a single value box
    2.     Click u201Clink to Cell:u201D
    3.     Select the cell in the workbook
    This should return the value in that cell and display the path in the u201Clink to Cellu201D box in the single value boxu2019s properties.  Neither happens, the "link to cell" box remains with the value "0.0" in it as if I had not done anything.
    Info on my Excel document
    1. Size 372 KB (is this too large?)
    2  Formulas used: Vlookup, concatenate
    3. Linked to external source: No
    I have created dashboards before and never had this issue.  If you have any advise, it would be much appreciated!

    Have you updated your Xcelsius to the latest FP2?  [Xcelsius 2008 Engage Fix Pack 2 (FP2) is available;
    After that when you originally load the xlf file do you get any error message? Sounds like the xlf is not completely loaded making the spreadsheet unusable.
    Is this only happening with one particular xlf?

  • What is the best free app for editing word and excel documents in ipad?

    what is the best free app for editing word and excel documents in ipad?

    You can download free Quickoffice.
    https://itunes.apple.com/sg/app/quickoffice/id578386521?mt=8

Maybe you are looking for

  • IMporting Excel Spreadsheets

    Hello We recently upgraded RH in our company from x5 to HTML 6, build 099. In a project I worked on with X5, I had imported Excel spreadsheets saved as html and generated a primary layout without any problem. However, in 6, when I would generate a la

  • Unable to edit birthday field in Address book

    I am unable to edit a card in address book properly. If I try to enter a birthday in the birthday field by either May 2, 1972 or 05/02/1975 no input of any kind sticks.  Can anyone tell me why and how to fix this problem?

  • CS5 Missing Images In IE Local Preview

    Hi, I do not know if my issue is related to this post: http://forums.adobe.com/message/2798144#634677 Or if I have made an error I just cannot see. When previewing template or html pages in IE it seems to be hit or miss if I see them or not. All is f

  • File "iTunes Library.itl" HELP!!!

    OK, so I tried 2 be slick about this iTunes thing, and I did a System Restore on my comp. Reinstalled iTunes 6.0.5, but now I can't open iTunes, and I keep getting this message: The file "i Tunes Library.itl" cannot be read because it was created by

  • Frame around my Spry Menu button when clicking?

    Hi experts not sure if you can get rid of this but on my spry menu I have 5 options to click on, each change colour when you hover the mouse over them which is great but once you click on any of them this dotted frame around them shows up? Can I some