Data upload to .XLSX file - problem using OLE2 object ?

Hi all,
Currently my abap program is able to upload data from .xls excel file  to internal table using OLE2 object.
But it is not doing the same with the .XLSX excel 2007 file.
I need to upload data from .XLSX file to internal table using OLE2 objects.
Is it possible ?. If yes kindly help me in solving this issue.

Yes it is Possible

Similar Messages

  • Problem in scheduling data refresh of excel file that uses PowerPivot

    I think I have successfully created and enabled the gateway and data sources for refresh - they are both seeming to connect.  However, when I try to schedule a data refresh to occur in the PowerBI site for the Excel file I receive an error message
    that the connection could not be established and receive error message "Correlation ID: d118ab93-436d-44a9-8c09-564f64fe0c58".  Appreciate any assistance in figuring out how to resolve.  Thanks a lotl

    Let's track it here: https://social.technet.microsoft.com/Forums/en-US/42c806dc-2d82-4bcf-ab6e-c279e2692a68/problem-in-scheduling-data-refresh-of-excel-file-that-uses-powerquery-and-powerquery?forum=powerbiforoffice365 
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • User cannot upload an xlsx file with charts to document library

    I have a number of users who are unable to upload documents to document libraries. When they attempt to upload, it will either just sit there like it's working but never finish or display an Internet Explorer cannot display this page screen. I have narrowed
    it down to the content of the file being the issue. The file is under 1MB in size so it isn't a size issue.
    Specific case:
    1.User trying to upload an xlsx file and it fails.
    2.I try to upload the file (win7 Sp1) and it uploads fine.
    3.I modified the file by removing 5 charts.
    4.User tried to upload the file again and it uploaded fine.
    So based on this it appears that the charts are causing the issue. I remember reading something a while back about SharePoint using different upload protocols based on the complexity of the document but I can't seem to find any info on that anymore.
    This issue has been intermittent over the last few months. It magically resolves itself after a random period of time then comes back.
    Any suggestions will be greatly appreciated.
    SharePoint Environment:
    1 WFE SharePoint 2007 Enterprise SP2 (WIndows Server 2003 Std 32bit SP2)
    1 SQL Server 2005 (Windows Server 2003 Ent 64bit SP2)
    Client PC:
    Windows XP 32bit SP3
    IE8

    Hello diver7,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Thanks,
    Wayne Fan
    TechNet Subscriber Support
    in forum
    If you have any feedback on our support, please contact
     [email protected]
    Wayne Fan
    TechNet Community Support

  • Export table data in a flat file without using FL

    Hi,
    I am looking for options where I can export table data into a flat file without using FL(File Layout) i.e., by using App Engine only.
    Please share your experience if you did anything as this
    Thanks

    A simple way to export any record (table/view) to an csv fiel, is to create a rowset and loop through all record fields, like below example code
    Local Rowset &RS;
    Local Record &Rec;
    Local File &MYFILE;
    Local string &FileName, &strRecName, &Line, &Seperator, &Value;
    Local number &numRow, &numField;
    &FileName = "c:\temp\test.csv";
    &strRecName = "PSOPRDEFN";
    &Seperator = ";";
    &RS = CreateRowset(@("Record." | &strRecName));
    &RS.Fill();
    &MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
    If &MYFILE.IsOpen Then
       For &numRow = 1 To &RS.ActiveRowCount
          &Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
          For &numField = 1 To &Rec.FieldCount
             &Value = String(&Rec.GetField(&numField).Value);
             If &numField = 1 Then
                &Line = &Value;
             Else
                &Line = &Line | &Seperator | &Value;
             End-If;
          End-For;
          &MYFILE.WriteLine(&Line);
       End-For;
    End-If;
    &MYFILE.Close(); You can of course create an application class for generic calling this piece of code.
    Hope it helps.
    Note:
    Do not come complaining to me on performance issues ;)

  • Upload a Dicom file into an OrdDicom object

    Hi,
    Is it possible to upload a Dicom file into an OrdDicom object using JSP?
    I now that an image file can be uploaded into an OrdImage object by passing that file from the jsp page to a java bean class through an OrdHttpUploadFile object, that has a method loadImage(OrdImage ob).
    Which is the mechanism for a Dicom file?

    Hi,
            Check the below code.
    TYPE-POOLS: truxs.
    TYPES:
      BEGIN OF ty_line,
        vbeln LIKE vbap-vbeln,
        posnr LIKE vbap-posnr,
      END OF ty_line.
    *data:  ty_Lines TYPE STANDARD TABLE of ty_Line WITH DEFAULT KEY.
    DATA: itab   TYPE STANDARD TABLE OF ty_line WITH DEFAULT KEY.
    DATA: itab1  TYPE truxs_t_text_data.
    SELECT
      vbeln
      posnr
      UP TO 10 ROWS
      FROM vbap
      INTO TABLE itab.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
      EXPORTING
        i_field_seperator    = ';'
      TABLES
        i_tab_sap_data       = itab
      CHANGING
        i_tab_converted_data = itab1
      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.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename = 'd:\TEMP\test1.txt'
      TABLES
        data_tab = itab1
      EXCEPTIONS
        OTHERS   = 1.
    IF sy-subrc eq 0.
      WRITE: 'Data downloaded successfully'.
    ENDIF.
    DATA: BEGIN OF IEXCEL OCCURS 0.
          INCLUDE STRUCTURE ALSMEX_TABLINE.
    DATA: END OF IEXCEL.
    PARAMETERS: FILENM   LIKE rlgrap-filename MEMORY ID M01,
                NOHEADER AS CHECKBOX.
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      exporting
        filename                      = FILENM
        i_begin_col                   = 1
        i_begin_row                  = 1
        i_end_col                     = 100
        i_end_row                     = 30000
      tables
        intern                        = IEXCEL
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3.
    if sy-subrc <> 0.
       WRITE: / 'EXCEL UPLOAD FAILED ', FILENM, SY-SUBRC.
    endif.

  • Uploading data from a xlsx file into an Oracle table

    Hi All,
    I want to know what would be the best approach and tool to upload the data from an xlsx (excel) sheet into an Oracle table.
    Can I use 'sqlldr'?
    ~Parag

    Parag Kalra wrote:
    What if the excel sheet is exported from some other third party database and not explicitly generated on Windows? I know if we can export it to excel why can't we also export it to csv but what if that option is also not available.
    Also what things do I need to take into account when I export a xlsx file to csv file. I mean I hope in no circumstances there would be a data loss.How about instead of of these "what ifs" and "I hopes" you tell us exactly what you have to work with and describe the real business problem. If you ask the wrong questions, you get the wrong answers.
    You "hope" that there would be no data loss? Do you really think Excel would survive as a product, much less be the overwhelming dominant product of its type, if it screwed up something that fundamental? The only thing that will be lost is the formatting meta-data.

  • I have a problem to  extract data from oracle dump file (.dmp) using oracle database or any other tools.

    There is IMP utility which provides me data as graphical way. But i need extract data in such a way so that i could able to use in my application.
    thanks,
    mohan

    Hi,
    EdStevens
    Actually I was using SQL Developer. Sorry for the wrong define question. Now the real problem is:
    I want to read or extract data in a txt file from Oracle Dump (.dmp) file without using Oracle sqlPlus or Oracle Database.
    No need to say that i am able to extract dump data using sqlPlus. But for that, there is a little burden to install oracle database
    or sql Developer.
    I also listen about Oracle Loader a little bit. Is it a tool for providing extraction of data from Oracle dump file.
    Thanks for your previous reply,
    And now waiting for your suggestion.
    thanks,
    mohan

  • Va31 shedule line agreement data upload from flat file

    Hi abapers
    I have to upload some data (va31) from flat file to my database (shedule line agreement data) I am using user exit for it...Cant get which user exit will solve the purpose and where to check it from..I tried using SDTRM001 , meeta001 and and the va45A series but its not working. I used break point on these user exits but its not stoping at break point.
    Can any one help me where to find which user exit will work in this case?
    Thanks in Advance
    Annu

    Hi Prash,
    Check these posts:
    Re: Increasing the length of Infoobject from 60 to 240 characters
    Re: InfoObject > 60
    Bye
    Dinesh

  • Urgent : How to upload a tif file without using upload element

    could someone please tell me how to upload a tif file(any file) without using upload element. Function Module GUI_UPLOAD does not work. Please suggest. Appreciate your suggestions.

    Hello Suri,
    there's currently no way to achieve this.
    Best regards,
    Thomas

  • Data upload from R3 to BPC using filters

    We are facing a performance issue on the uploading data flow from R3 to BPC. Two steps have been set up.
    Step1: R/3 --> ODS --> BW CUBE (No filters and full mode)
    Step2: BW  CUBE --> BPC CUBE (Standard BW upload package)
    The first one (from R3 to a BW Cube) has no filters, so it loads every data and it takes too much time. However, the second one (from the Cube to BPC)  has filtering options, so we can only load the data we need to (we usually use entity and time filters).
    Both are executed from the BPC DataManager.
    Any advice to improve the performance of the first step? Could we join the step 1 and step 2 and get the filters from the standard BW upload process using a custom process chain?
    Does anybody have any experience using filters to reduce the amount of records on the data uploading from R/3 to BPC?
    BPC Version 7.50.15

    Hi,
    for example in BI data is stored as below
    GroupAcc - Date - Balance
    100000 - 12.12.10 - 400
    **I'm not quite sure how you are getting the above data from infocube.Are you directly loading data from PSA to infocube with out loading data into DSO -0FIGL_O10(General ledger(New):Transaction figures) ?
    To get required format of following data, no need to do any thing while laoding the data into BPC. Your BI infocube should maitain the data in below format.
    GroupAcc - Date - Balance
    100000 - 12.12.10 - 100 - (LC)
    100000 - 12.12.10 - 100 - (TC)
    100000 - 12.12.10 - 200 - (GC)
    To acheive above format of data in the infocube please follow standard way of data flow given by SAP in BI Contect(http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e6/f16940c3c7bf49e10000000a1550b0/frameset.htm).
    Flow should be
    R/3 --> PSA --> DSO -->Infocube.
    In this flow its important to remember about infoobect 0CURKEY_TC in DSO.
    This is always the currency key of the transaction currency; it is also filled for records with a different currency type. Without this key field, postings with different transaction currencies would be overwritten after summarization and thereby be lost.
    (http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a8/e26840b151181ce10000000a1550b0/content.htm)
    Once you follow the standard flow, your infocube contains the requried format (LC,TC and GC )of data to load it into BPC application.
    hope it helps...
    regards,
    Raju

  • Adobe print engine failed to output your data due to an unknown problem using modified font

    I have a document I created in InDesign CS5.5 with no issues. One of the fonts had a some issues with how the letters looked, so I modified the font (True Type) with a font editor. The documet on screen looks fine and passes preflight with no issues, but when I try to print it to any printer or PDF (Adobe PDF or Winpdf wirter) I get the error: adobe print engine failed to output your data due to an unknown problem. I also tried to create a document in MS Word with the same modified font and had no issues printing. Can anyone check into the issue with InDesign with this font if I send it to you? I also did try to create a new document in InDesign with just some text using the modified font and it will not print that one either.

    ***Oops. Cross posted. Glad it is working.***
    If you desire to share the fonts I can look at them. Just send me a PM with a link.
    Did you change the internal naming/IDs when you created your varient? If not, try removing the version you began with. Paths all closed, etc?
    Ian's application works fine but I don't use the light version--isn't there some limitation with it?
    Mike

  • Procurement Card data upload from flat file to database

    Hi All,
    I need to upload Procurement Card data from a flat file to the database in the table BBP_PCMAS.
    I found a BAPI BAPI_PCARD_CREATEMULTIPLE which uploads the data perfectly, however the structure PCMASTER that it takes as input does not contain the field for Blocking reason PCBLOCK - Reason for blocking procurement card. I need to upload this file as well from the flat file.
    Any suggestions?
    Thanks

    Hi,
    You are correct the function module BAPI_PCARD_CREATEMULTIPLE  does not contain the PCBLOCK field.
    Alternatively what you can do is read the PC data after it is created and modify it with the PCBLOCK appropiately. The necessary function modules are given below.
    BBP_PCMAS_READ_PCMAS - Read Data
    BBP_PCMAS_MODIFY_PCMAS - Modify Data
    Note: BBP_PCMAS_MODIFY_PCMAS is a Update Task FM. Hence it shoild be called as given below, ( refer form write_data of the FM BAPI_PCARD_CREATEMULTIPLE)
      call function 'BBP_PCMAS_MODIFY_PCMAS' in update task
           exporting
                i_pcmas     = i_pcmas
    *         I_PCMAS_OLD =
    *         I_DELETE    =
          tables
               t_pcacc     = i_pcacc
    *         T_PCACC_OLD =
          exceptions
               not_found   = 1
               others      = 2.
    Regards
    Kathirvel

  • Saving a Text data to a PDF file without using print option

    Hi,
    I want to save a Text to a PDF file. I want to assign the path of the PDF file as a default one.
    If I use Print options, then it ask for the file path at the run time.
    Is there any method to save to a PDF file without using print option in Labview 8.2.
    Regards,
    Raja

    This question comes up a lot. Did you try searching? It depends on the PDF printer driver that you're using. See here, here, here, ...

  • File Count using SPFile Object

    Hi,
    I am trying to get the file count using through SPFile within the selected dates of date time controls as below.
    But not able to get the count of the files in the folder as there is not count property in the SPFile object.
    Please share your ideas/thoughts on the same.
                                    foreach (SPFile file in oFolder.Files)
                                        if ((file.TimeCreated > dtFromDate.SelectedDate) &&( file.TimeCreated<dtToDate.SelectedDate))
                                            int filecount;                              
    Regards,Sudheer
    Thanks & Regards, Sudheer

    Hi ,
    as you have int filecount, increase the count whenever it satisfies the if condition as mentioned
    above.
    int filecount=0;         
    foreach (SPFile file in oFolder.Files)
        if ((file.TimeCreated > dtFromDate.SelectedDate) &&( file.TimeCreated<dtToDate.SelectedDate))
                               filecount++;           
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • Problems Using DB Object

    I have created an Oracle DB object, I can use the object, open and close it but the I try and use ora_parse or ora_exec I get the following error message.
    Warning: Connection already closed for cursor index 111742996
    It's odd because I don't get an error when I close the object.
    Heres the code I'm calling and the object.
    <?php
    require_once('includes/oraDBObject.php');
    if ($oDb = new OraDBObject('scott','tiger','oracle'))
    {     echo "Object created <br />";} else {     echo "Object creation failed <br />";}
    #echo $oDb->sConnStr;
    if ($oDb->Open()){     echo "Opened <br />"; } else { echo "Failed during Open operation <br />"; }
    echo $oDb->sConnStr;
    if ($oDb->Query('select * from emp')) {echo "Query OK";} else {echo "Query Fail";}
    if ($oDb->Close()){     echo "Closed <br />";} else {     echo "Failed during Close operation <br />";}
    ?>
    <?php
    class OraDBObject {
              var $sUser = '';
              var $sPassword = '';
              var $sTNS = '';
              var $sConnStr = '';
         var $oConn = '';
    function OraDBObject($sUser, $sPassword, $sTNS)
    $this->sTNS = $sTNS;
    $this->sUser = $sUser;
    $this->sPassword = $sPassword;
    $this->sConnStr = "$sUser@$sTNS";
    function Open($bErrorCheck = true)
         $oLogon = ora_logon($this->sConnStr, $this->sPassword);      
         $this->oConn = ora_open($oLogon) or die('Could not connect.'.ora_error());                     
         return $this->oConn;
    function Close()
    return(ora_close($this->oConn));
    function Query($oQuery, $bErrorCheck = true)
         ora_parse ($this->oConn, $oQuery, 0);
                   if(!ora_exec($this->oConn))
    $QueryOk = false;
    } else {
         $QueryOk = true;
              return $QueryOk;
    ?>

    Hello,
    Here is what I just did:
    1. I downloaded the zip file includes the JDK 1.5.0_06, unzipped it into c:\sqldeveloper folder. And modified c:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf, it looks like:
    SetJavaHome C:\sqldeveloper\jdk
    IncludeConfFile ../../ide/bin/ide.conf
    AddVMOption -Dapple.laf.useScreenMenuBar=true
    AddVMOption -Dcom.apple.mrj.application.apple.menu.about.name="SQL_Developer"
    AddVMOption -Dcom.apple.mrj.application.growbox.intrudes=false
    AddVMOption -Dcom.apple.macos.smallTabs=true
    AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
    AddVMOption -Dsun.java2d.ddoffscreen=false
    AddVMOption -Dwindows.shell.font.languages=
    AddVMOption -XX:MaxPermSize=128M
    IncludeConfFile sqldeveloper-nondebug.conf
    2. Here is what I got in Help > About > versions Box:
    CVS Version     Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform     1.5.0_06
    Oracle IDE     1.5.4.59.40
    Versioning Support     1.5.4.59.40
    Could you please let me know if there is anything wrong here? I still cannot see my objects in the tree structure.
    Thank you so much for your help!!!

Maybe you are looking for

  • How to find out what program is using a file I am trying to delete?

    I know I could probably just reboot and then empty my trash without getting this error- but this is a good chance to learn. So, I have a video file I converted with Handbrake. I deleted the file- but it won't let me delete it- saying it is in use (th

  • New Agent and Image-safe Data

    Just built new images and used the latest agent from May 24, 2010/ZDM7SP1IR4HP4 (Agent v7.0.173.100324) - it appears that this new agent is not respecting a specified Restore Mask. I'm basing this on the observation that freshly imaged machines are r

  • Service Tax Returns

    Hi What is the use of T Code J2IC for service tax returns (ST3) and what are the configuration steps for the same? Regards Vaibhav

  • Outlook 2013 - "schedule an automatic send/receive" NOT functioning

    Here is yet another bug in Outlook 2013 which remains at large. Yes, "schedule an automatic send/receive" is not functioning, except in the case of Hotmail/Outlook.com The only time new emails  are getting download are when the Send/Receive button is

  • XML formating help Please

    Hi Everyone, I'm new to XML and hoping someone can help me. XML seems pretty straightforward, so I'm not sure why I can't get my head around this. Here's what I need. I'm building a webpage in Dreamweaver using Spry that will have a list of all 50 U.