Convert Excel to Binary

Dear All,
Has anyone experience convert excel to binary ?
For example, I have an excel file in my PC then I would like to set it as attachment in mail using CL_DOCUMENT_BCS. Attachment in this class only have two version, as text or as hexadecimal.
In order to create hexadecimal content I need a binary format, i will use function SCMS_BINARY_TO_XSTRING.
The problem is, how to convert excel to binary format.
Thanks in advance.
Rgds,
Deny

code snippet .
data: xml_tab1 type solix_tab .
call function 'GUI_UPLOAD'
    exporting
      filename            = filename
      filetype            = 'BIN'
      has_field_separator = ' '
      header_length       = 0
    importing
      filelength          = size
    tables
      data_tab            = xml_tab1
    exceptions
      others              = 1.
call method document->add_attachment
            exporting
              i_attachment_type    = 'XLS'
              i_attachment_subject = atta_sub
              i_att_content_hex    = xml_tab1.

Similar Messages

  • Error when trying to convert excel files to pdf

    I'm getting the following error when trying to convert .xls and .xlsx files to pdf, using the "Create PDF" option:
    Error message from the primary converter:
    ALC-PDG-010-012-PDFMaker reported an error while printing the document.
    Word, Powerpoint and Text files convert without any issues. Also I'm able to opent the excel files and convert them to pdf using the acrobat option in excel.
    Livecycle Version: 10.0.2, GM
    MS Office Version: 2007
    Any help would be appreciated. Thanks in advance.
    Regards,
    Suhail N.

    It is always difficult when you need to convert multiple xls files to pdf or multiple sheets to pdf. If you have a single file to convert then the best method would be to copy your data to doc file and then convert it into PDF . If you have multiple files to convert then it is really difficult to convert all the files manually. Then the better method would be to use converter tool to convert excel to pdf . By doing this you can convert many files in just few seconds.

  • Converting excel link in mac acrobat x pro

    I know you can maintain URL lionks when converting Excel to PDF on Windows with Acrobat X Pro. Can you do the same with the Mac version?

    What are you talking about?
    If you use the Save As... > PDF  within Office2011 and 2008  you use the Apple PDF engine.
    IF however you go to Print menu > PDF > Adobe PDF you make a genuine Adobe PDF using Adobe's PDF engine. It ieven uses the Acrobat Distiller Job options.
    No wonder Macusers have go it alone. When the adobe employess don't know what's going on.
    Click on the PDF button in the print menu.
    Then hold button until menu pops up. Choose Adobe PDF or Adobe quality PDF (depending upon the version of OSX used).
    menu choice will show High Quality , click on that button and choose desired job option. choose whether you want the PDF to open Reader as soon as its created or not.
    Click okay (or save)
    Now you will be given opportunity change name or give desired name, choose desired location to save.
    Then hit Save.
    Your Adobe quality PDF will be created.

  • Converting characters to binary

    Could anyone give me an idea how to convert characters to binary, and vice verse?
    It's like those hex and binary editors out there.

    See if this helps you out
    char c = 'a';
    String binaryString = Integer.toBinaryString(c);
    char translatedChar =
    (char)Integer.parseInt(binaryString, 2);
    System.out.println(binaryString);
    System.out.println(translatedChar);
    Thanks. It worked.

  • Converting float to binary

    Hi,
    I was wondering if anyone knew of a way to convert a float value (as ascii) to a binary value?
    I need a program that will take in a number of floating values from a file, convert the values to binary and then write out these values in another file, 4 bytes at a time.
    I know that you can convert decimals to binary with an easy function but i've searched for float to binary and came up with nothing.
    any help would be really appreciated,
    cheers!

    One of the Java's problems is that you can easily get lost in the sea of Javadocs...
    java.io.DataOutputStream
    writeFloat(float v)
    Converts the float argument to an int using the floatToIntBits method in class Float, and then writes that int value to the underlying output stream as a 4-byte quantity, high byte first.
    java.io.DataInputStream
    readFloat
    public float readFloat()
    throws IOException
    Reads four input bytes and returns a float value. It does this by first constructing an int value in exactly the manner of the readInt method, then converting this int value to a float in exactly the manner of the method Float.intBitsToFloat. This method is suitable for reading bytes written by the writeFloat method of interface DataOutput.

  • How to convert image to binary format

    Hi all,
      We have developed an Employee search  mobile web application in .net which is hosted on an exposed IP server, we need to show the employee data along with the image of the employee on mobile.
    When we run this application through our desktop we are able to see the image of the employee since we are doing this through <b>intranet</b> , but when we try to access the same from any mobile device we are able to see only the data but no image, since we are doing this through <b>internet(exposed server).</b>
    Please suggest some way to get this image,
    is there any<b> function module in ABAP</b> which can <b>convert image to binary format</b>
    so that we <b>export binary data</b> to .net application

    Hei evryone!
    CAn anyone pls help me on how to solve this error:
    java.security.AccessControlException: access denied (java.security.SecurityPermission insertProvider.SunJCE)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkSecurityAccess(Unknown Source)
         at sun.plugin.security.ActivatorSecurityManager.checkSecurityAccess(Unknown Source)
         at java.security.Security.check(Unknown Source)
         at java.security.Security.insertProviderAt(Unknown Source)
         at java.security.Security.addProvider(Unknown Source)
         at CryptoTest.processFile(SwingApplet.java:68)
         at CryptoTest.<init>(SwingApplet.java:65)
         at SwingApplet.init(SwingApplet.java:39)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Is it allright for a swing code to access local resources? like in my case i want my swing app to decrypt and encrypt an image file but when i tried to access the method for decrypting and encrypting i got this error message on my console. Do i have to make my code signed before i could write/read a file on my hard drive?
    Any help / suggestions would be much appreciated.Thanks!

  • How to convert pdf  to binary

    hi all,
       how to convert pdf  to binary .
    regards,
    sheetal

    refer this -
    http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_RMTIWARI_XSTRING_TEXT_CONVER.html

  • Converting ASCII as Binary... Transposed?

    Hello friends!
    I am building a VI to break apart a string of characters and convert each to binary code.   Please see the attached example.   When verifying the input string against the output boolean array, I notice that each 8bit code is transposed from left to right when compared against any standard ASCII to Binary table.   Am I understand that binary is usually read from right to left?   My concern is how other systems will translate this code after it is transferred.   The main question is this:  Do I leave it be, or transpose it before data transfer?
    Any advice or comments would be greatly appreciated!
    Thanks,
    Zach
    Solved!
    Go to Solution.
    Attachments:
    example_strobe_1.vi ‏7 KB

    Remember you are looking at an array.  Index 0 of an array (which corresponds to bit 0 of the number) will be to the left.  As long as you are just doing standard computer functions and bit manipulations, don't worry about it.
    If you are doing something where you want to graphically show on the front panel to a user what the bits look like and have the 0th bit on the right, then you will need to manipulate the array so that the 0th bit will be in index 7 and the 7th bit will be in index 0, and so on.

  • Converting excel worksheets with links

    I am converting excel worksheets to PDF. The excel worksheets have links to external files. When using Adobe X Pro, the links work properly in the converted PDF document. However, when using Adobe XI Pro, the links do not work. Any suggestions?

    Have you tried going to print menu and turning on Print entire workbook? If this is set all pages will be shown
    By the way don't put page numbers in excel. Add them In the PDF. They will be line up right.
    Even though This is the Mac version of the Print menu so layout will be different in PC version but should have similar controls.  and this  setting Print What: should be exactly the same.

  • Converting ASCII to Binary

    Hello I need some help.
    I need to convert the ASCII data to Binary form. Like if i have the character 'A' and its ASCII is 65 then its binary would be 01000001.
    If there is any function/method available in java to convert ascii to binary, i would be really thanful.

    Hello I need some help.
    I need to convert the ASCII data to Binary form. Like
    if i have the character 'A' and its ASCII is 65 then
    its binary would be 01000001.
    If there is any function/method available in java to
    convert ascii to binary, i would be really thanful.
    byte ascii = 65;
    String binresult = "";
    for(int i=0;i<8;i++) {
      if(ascii%(2^i)=0) binresult += "0";
      else binresult += "1";
    }

  • Converting Excel or other data to J2ME database

    My freeware tool for converting Excel or other data to J2ME database
    http://translate.google.com/translate?hl=en&sl=ru&u=http://sss1024.googlepages.com/
    Could anybody help me in testing?

    This is Java application. Run on Windows, Mac and Unix
    PS
    site moved to http://microforms.mobile-mir.com

  • Converting excel documents to rdf?

    anyone know how to convert excel spreadsheets to an rdf document? i know there are programs that do it but i would like to write my own! cheers.

    1. You need to know how to read an Excel sheet.you can use the Jakarta POI library to read and write MS Excel file.
    http://jakarta.apache.org/poi/
    Note: this library supports limited set of features (but it's one of the best free library to access MS document)
    2. You need to know how to write a RDF.you need to find a RDF API (much easier than to create one)
    http://jrdf.sourceforge.net/

  • How to convert XML to Binary in OSB Message flow

    Dear All,
    Can you please help me in converting XML to Binary in OSB Message flow.
    Please help.
    Thanks,

    ah ok, then you have to apply a transformation from XML to some fixed length format, EDI style
    probably you have 2 options: the traditional MFL
    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/consolehelp/mfls.html
    or the (probably) more supported nXSD with a JCA adapter
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/nfb.htm
    I will let you digest this info and then we can continue.
    There are a number of threads in this forum on whether one technology is better than the other (as usual, google can assist you)

  • Hi I would like to know if you can convert decimal to binary using actionscript 3.0?

    Hi I would like to know if you can convert decimal to binary using actionscript 3.0?

    Hi thanks for the response Ive tried to implement the code as you stated but it is not outputting please if you could check the following code and let me know where Ive gone wrong that would be much appreciated Thanks!.
    miles_txt.addEventListener(KeyboardEvent.KEY_DOWN,convertKilometres);
    miles_txt.restrict ="0-9";
    function convertKilometres (k:KeyboardEvent):void {
    var miles:Number;
    var kilometres:Number;
    if (k.keyCode == Keyboard.ENTER){
    miles=Number(miles_txt.text);
    kilometres=miles* 1.609344;
    kilometres_txt.text = kilometres.toPrecision(2);
    kilometreConvert_txt.addEventListener(KeyboardEvent.KEY_DOWN,convertKiloToMile);
    kilometreConvert_txt.restrict = "0-9";
    function convertKiloToMile(k:KeyboardEvent):void{
    var kilometreConvert:Number;
    var milesAnswer:Number;
    if (k.keyCode==Keyboard.ENTER) {
    kilometreConvert=Number(kilometreConvert_txt.text);
    milesAnswer=kilometreConvert* 0.621371192;
    milesAnswer_txt.text = milesAnswer.toPrecision(2);
    binary_txt.addEventListener(KeyboardEvent.KEY_DOWN, checkEnterKey2);
    function checkEnterKey2(e:KeyboardEvent):void{
    if(binary_txt.text != '' && e.keyCode == Keyboard.ENTER){
    decimal_txt.text=binaryToDecimal(binary_txt.text).toString();
    function binaryToDecimal(s:String):Number{
    var n:Number = 0
    for(var i:int=0;i<s.length;i++){
    n+=Number(s.substr(i,1))<<(s.length-1-i)
    return n;
    function decimalToBinary(n:Number):String{
    return n.toString(2);
    return_btn.addEventListener(MouseEvent.CLICK, goBackToCalculator);
    function goBackToCalculator(e:Event):void
    mybuttonSound.play();
    gotoAndStop("Calculator");
    clear_btn.addEventListener(MouseEvent.CLICK,clearField);
    function clearField(e:MouseEvent):void{
      mybuttonSound.play();
      miles_txt.text ="";
      kilometres_txt.text ="";
      milesAnswer_txt.text ="";
      kilometreConvert_txt.text ="";
      binary_txt.text ="";
      decimal_txt.text ="";

  • Autocad 2010 drawing pasted in microsoft excel 2007 spread sheet not visible after converting excel

    Hello, I am having an issue with Autocad 2010 drawings not showing up in a pdf document. Normally, I cut and paste part of an Autocad 2010 drawing into a Microsoft Excel 2007 spread sheet. Then, using Adobe Distiller, I convert the Excel spread sheet into a pdf document for propriatary purposes. However, recently the drawing pasted into Excel will not fully appear on the pdf, the drawing is cut off past a certain point. The drawing will print normally in Excel, but in pdf will not print normally. If the drawing is shrunk below the "cut off" point, it appears normally. If the drawing is expanded above the "cut off" point, any additional image is lost. Any suggestions on how to fix the problem would be appreciated.

    See "[Creating, Editing & Exporting PDFs] How to correct bad PDFdisplay
    of Excel 2007 graph-Adobe ProX?" and similar discussions.  Are you
    scaling it to less than 100%?
    Jeffry Calhoun
    Workforce Analytics Manager
    Ohio Department of Job & Family Services
    P.O. Box 1618, Columbus, OH 43216-1618
    InterAgency: F376, 4020 E. 5th Avenue
    614-644-0564
    Fax 614-728-5938
    [email protected]
    OhioMeansJobs.com -
    The next best thing to having an HR department.
    OhioMeansJobs.com -
    Ohio's premier website for connecting businesses and job seekers -
    quickly, easily, and for free!
    >>> jblairdynis <[email protected]> 4/19/2012 10:44 AM >>>
    autocad 2010 drawing pasted in microsoft excel 2007 spread sheet not
    visible after converting excel created by jblairdynis (
    http://forums.adobe.com/people/jblairdynis ) in Creating, Editing &
    Exporting PDFs - View the full discussion (
    http://forums.adobe.com/message/4346704#4346704 )
    Hello, I am having an issue with Autocad 2010 drawings not showing
    up in a pdf document. Normally, I cut and paste part of an Autocad 2010
    drawing into a Microsoft Excel 2007 spread sheet. Then, using Adobe
    Distiller, I convert the Excel spread sheet into a pdf document for
    propriatary purposes. However, recently the drawing pasted into Excel
    will not fully appear on the pdf, the drawing is cut off past a certain
    point. The drawing will print normally in Excel, but in pdf will not
    print normally. If the drawing is shrunk below the "cut off" point, it
    appears normally. If the drawing is expanded above the "cut off" point,
    any additional image is lost. Any suggestions on how to fix the problem
    would be appreciated.
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page:
    http://forums.adobe.com/message/4346704#4346704
    To unsubscribe from this thread, please visit the message page at
    http://forums.adobe.com/message/4346704#4346704. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Creating, Editing & Exporting PDFs by email (
    mailto:discussions-community-acrobat-creating__editing_%[email protected]
    ) or at Adobe Forums (
    http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=4697
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.
    Ohio Means Jobs
    You're looking for something unique. Use more than an ordinary site.
    http://www.ohiomeansjobs.com
    This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and/or privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, employee, or agent responsible for delivering this message, please contact the sender by reply e-mail and destroy all copies of the original e-mail message.

Maybe you are looking for

  • Exchange Provisioning - Class Not Found Error

    Hi, During the Exchange Provisioning, I am getting the following error for the "Create Mailbox" Task. I enabled XELLERATE.REMOTEMANAGER=DEBUG in the log.properties. After that, I see some errors during the provisioning. 11/04/05 02:09:35 Running EXEC

  • File Associations Lost?

    In have been trying to install Adobe Acrobat on my wifes laptop (windows vista) and everytime I do the install I loose all the file associations on the desktop icons. When I click on any of the corrupted ICONs I get the message "This file does not ha

  • Help! My PSE8 Editor will not work!

    When I try to open it, the editor will not load and I get an error message when I attempt to open a previously saved document I did in photoshop. the message says that the editor will not work. I already tried the ctrl+alt+shift keys at startup.

  • Alarm clock - inaudible

    Hello. I have the IPod Nano 5g and when put the alarm for a morning jog, a problem arises. If you choose to sound the alarm settings - a signal, the morning shows in the dynamics of just one short beep, which you can not hear. If you choose to sound

  • Query TimeOut Property

    Hi, I need to know which is the name of the property that allows to set the Query TimeOut, because when I run a query that last too much it throws me the error: java.sql.SQLException: [SQL0666] El tiempo calculado de proceso de consulta 338 excede el