Excel file in CRM "WITHOUT TAB LIMITED CONVERSION"

Hi experts,
  tHIS QUESION HAS BEEN ASKED SO MANY TIMES BUT I COULDNT FIND A SINGLE ANSWER WHICH EXPLAINS UPLOADING WITHOUT CONVERTING THE EXCEL FILE IN TAB LIMITED.
Can somebody please tell me how to upload an excel file in crm without converting the excel file into tab limited.
the FM "TEXT_CONVERT_XLS_TO_SAP",
"ALSM_EXCEL_TO_INTERNAL_TABLE"
"ALSM_EXCEL_TO_INTERNAL_TABLE"
ARE NOT ABAILABLE IN CRM 5.0.
I can use GUI_UPLOAD but i need to convert the excel file to tab limited which i dont want to. So, somebody can please help me out FINDING AN ALTERNATE FUNCTION MODULE.

Hello,
The FM TEXT_CONVERT_XLS_TO_SAP use class like I_OI_DOCUMENT_PROXY and I_OI_SPREADSHEET which are avalaible in CRM5.O.
You can maybe check program SAPRDEMO_TABLES_IN_EXCEL and use it to write your own logic.
Regards,
Frederic

Similar Messages

  • Upload excel file in crm

    Hi experts,
    Can somebody please tell me how to upload an excel file in crm without converting the excel file into tab limited.
    the FM "TEXT_CONVERT_XLS_TO_SAP",
           "ALSM_EXCEL_TO_INTERNAL_TABLE"
           "ALSM_EXCEL_TO_INTERNAL_TABLE"
    are not available in CRM 5.0.
    I can use GUI_UPLOAD but i need to convert the excel file to tab limited which i dont want to. So, somebody can please help me out.

    Hello,
    The FM TEXT_CONVERT_XLS_TO_SAP use class like I_OI_DOCUMENT_PROXY and I_OI_SPREADSHEET which are avalaible in CRM5.O.
    You can maybe check program SAPRDEMO_TABLES_IN_EXCEL and use it to write your own logic.
    Regards,
    Frederic

  • How to read an excel file which contains multiple tabs using File adapter

    Hi BPEL gurus,
    I have a requirement where i need to read an EXCEL file, which has three tabs inside the file. All the three tabs has data in it. I have seen few examples where file adapter reads an excel file with data present inside a single tab but not with multiple tabs.
    If anyone has worked on this scenario, please provide your suggestions/inputs/links etc.
    Thanks in advance

    hi Sathish,
    this might help
    PI/XI: Reading MS Excel's XLSX and XLSM files with standard PI modules - easily...
    thanks and regards,
    Praveen T

  • Date migration from Legacy system (excel file) to CRM 7.0

    Hi,
    Can any one guide me on the below:
    I am provided with excel files having prospect data with 63 fields and most of them are not the part of standard fields available.
    The requirement is to create the same data in CRM. I am unable to use ELM as most of the fields are not available. I suppose i need to get the fields created by technical team. However need some knowledge sharing on this. I think even BAPI approach would need fields to be created first.
    Should i revert back to the client asking for detailed information on the tabs or sections under which the missing fileds have to be created?
    Also guide me with alternate solution to map the data from legacy to CRM
    Please mark your solution on this
    thanks

    Agarwal,
    In your situation you need to have the additional attributes created in CRM, before you can do an upload.  Now if the new attributes are marketing attributes for the business partner, you can use ELM.  Otherwise if you still want to do ELM then you need to use the BADI.
    Your other option is use XIF adapter with LSMW to perform the upload, but the custom fields must appear in the bdoc structure on the CRM for them to appear.  Normally this won't be a problem if the CRM system has been extended via EEWB or AET.
    Take care,
    Stephen

  • Upload data from excel file to mii without UDS and PCo

    Hi Experts,
    I am trying to upload data from excel file to mii db without using UDS and PCo. Is there any other ways that we can achieve it.
    I am thinking one solution , writing stored procedure. any other solutions?
    Thanks in advance,
    Eswar.

    Hi,
    Thanks for reply.
    I tried to create OLEDB data server which will point to my excel file in D drive.Its created successfully and i tried to query the datasource using sql query, I am not getting any modes in sql query template.
    can u provide some steps..how to access this file.
    Thanks, Eswar

  • How to set the size of an Excel-file,Java created in tabbed forma

    Hi all,
    I'm creating an Excel-file by writing data to an outputStream in tabbed format.
    My problem is : How can I set the width of the columns of that Excel-file, not the default-size?
    If anyone can help, that would be very nice.
    Thanks a lot,
    Regards,
    Tim

    You can write a generic xls file containing a Macro to open and set the column widths of text or csv files. Your java program can then call this generic file to open your text files.

  • Issue related to Excel to Text tab delimited conversion

    Hi,
    I am facing a strange issue in converting an excel file to a text tab delimited file. I have an excel sheet which contains two columns:
    vendor         new_zip
    153357      99645-6340
    162642         99669-7631
    $209930-1   91320-1201
    $209989-1   91710-5766
    When i save this file as a text tab delimited file  this is how it turns into:
        vendor  new_zip
        153357  99645-6340
        162642  99669-7631
        $209930-1     91320-1201
        $209989-1     91710-5766
    i am using WS_UPLOAD since i am not using the enterprise version of SAP. In the above mentioned u can see that the zip values(first character) of the first two records and the vendor numbers(last character) of the last two records get in line with each other. so when i load this file it gives a "File open error" exception. if i move the zip codes of the first two records by one space so that they are not in line with the vendor numbers of the last two records the file uploading happens fine. but this is something which cant be done from the user point of view. so can anyone tell as to what can be done without changing the concept of using text tab delimited file and aviod this problem?
    thanks & regards,
    Bala.

    The following program uses alsm_convert_excel_to_internal_table.but i want to use split at tab delimiter.pls help.
    REPORT ZSAINAL_BDC_TRAN .
    *INCLUDE BDCRECX1.
    *definition of selection screen
    SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME .
    SELECTION-SCREEN BEGIN OF BLOCK bl2 WITH FRAME TITLE text-t01.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 10(20) text-c01.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 10(10) text-c02.
    SELECTION-SCREEN POSITION 22.
    PARAMETERS: p_txt RADIOBUTTON GROUP grp1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 30(12) text-c03.
    SELECTION-SCREEN POSITION 46.
    PARAMETERS: p_xls RADIOBUTTON GROUP grp1 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK bl2.
    *PARAMETERS
    PARAMETERS ctumode LIKE ctu_params-dismode DEFAULT 'A'.
    PARAMETERS cupdate LIKE ctu_params-updmode DEFAULT 'S'.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK bl1.
    *DATA
    DATA : bdc_data LIKE STANDARD TABLE OF bdcdata INITIAL SIZE 10
           WITH HEADER LINE.
    *DATA: bdc_tab LIKE TABLE OF bdcdata INITIAL SIZE 0 WITH HEADER LINE.
    *Internal table to get legacy data records structured in
    *target format
    DATA: BEGIN OF inrec OCCURS 0,
              lifnr LIKE lfa1-lifnr,
              name1 LIKE lfa1-name1,
              stras LIKE lfa1-stras,
              ort01 LIKE lfa1-ort01,
          END OF inrec.
    *Internal table of structure ALSMEX_TABLINE suitable for
    *uploading records from an Excel worksheet
    DATA: it_excel TYPE STANDARD TABLE OF alsmex_tabline
                  INITIAL SIZE 0 WITH HEADER LINE,
          it_excel_dummy TYPE  alsmex_tabline.
    data: messtab like bdcmsgcoll occurs 0 with header line.
    DATA: L_MSTRING(480).
    DATA: L_SUBRC LIKE SY-SUBRC.
    *START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM read_data.
      PERFORM populate_bdcdata.
    *START NEW SCREEN
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdc_data.
      bdc_data-program  = program.
      bdc_data-dynpro   = dynpro.
      bdc_data-dynbegin = 'X'.
      APPEND bdc_data.
    ENDFORM.
    *INSERT FIELD
    FORM bdc_field USING fnam fval.
    IF FVAL <> NODATA.
      CLEAR bdc_data.
      bdc_data-fnam = fnam.
      bdc_data-fval = fval.
      APPEND bdc_data.
    ENDIF.
    ENDFORM.
    *&      Form  read_data
          text
    -->  p1        text
    <--  p2        text
    FORM read_data.
      IF p_txt = 'X'.
        CALL FUNCTION 'GUI_UPLOAD'
            EXPORTING
              filename                      = 'C:\URMILA.TXT'
             filetype                      = 'ASC'
             has_field_separator           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
            TABLES
              data_tab                      = inrec
       EXCEPTIONS
         file_open_error               = 1
         file_read_error               = 2
         no_batch                      = 3
         gui_refuse_filetransfer       = 4
         invalid_type                  = 5
         no_authority                  = 6
         unknown_error                 = 7
         bad_data_format               = 8
         header_not_allowed            = 9
         separator_not_allowed         = 10
         header_too_long               = 11
         unknown_dp_error              = 12
         access_denied                 = 13
         dp_out_of_memory              = 14
         disk_full                     = 15
         dp_timeout                    = 16
         OTHERS                        = 17
        IF sy-subrc <> 0.
          WRITE: /'ERROR UPLOADING TXT FILE FROM PRESENTATION SERVER!',
                 / 'RETURN CODE : ',sy-subrc.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ELSE.  "filetype is excel
    -read excel file into an int. table in row/col format--
        CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
             EXPORTING
                  filename                = 'C:\URMILA.XLS'
                  i_begin_col             = 1
                  i_begin_row             = 1
                  i_end_col               = 4
                  i_end_row               = 3
             TABLES
                  intern                  = it_excel
             EXCEPTIONS
                  inconsistent_parameters = 1
                  upload_ole              = 2
                  OTHERS                  = 3.
        IF sy-subrc <> 0.
          WRITE: /'ERROR UPLOADING XLS FILE FROM PRESENTATION SERVER!',
                 / 'RETURN CODE : ',sy-subrc.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ELSE.
    --now fill data from it_excel into final legacy data itabinrec----
          IF NOT it_excel[] IS INITIAL.
            CLEAR inrec.
            REFRESH inrec[].
            LOOP AT it_excel.
              it_excel_dummy = it_excel.
              AT NEW col.
                CASE it_excel_dummy-col.
                  WHEN 1.
                    inrec-lifnr = it_excel_dummy-value(10).
                  WHEN 2.
                    inrec-name1 = it_excel_dummy-value(35).
                  WHEN 3.
                    inrec-stras = it_excel_dummy-value(35).
                  WHEN 4.
                    inrec-ort01 = it_excel_dummy-value(35).
                    APPEND inrec.
                    CLEAR inrec.
                ENDCASE.
              ENDAT.
             AT END OF row.
             ENDAT.
            ENDLOOP.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.
    *&      Form  populate_bdcdata
      to populate BDCDATA table from legacy file data contained in
      internal table inrec.
    -->  p1        text
    <--  p2        text
    FORM populate_bdcdata.
      IF  not inrec[] IS INITIAL.
        LOOP AT inrec.
          CLEAR bdc_data.
          REFRESH bdc_data.
          PERFORM bdc_dynpro      USING 'SAPMF02K' '0106'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM bdc_field       USING 'RF02K-LIFNR'
                                        inrec-lifnr.
          PERFORM bdc_field       USING 'RF02K-BUKRS'
                                        '1000'.
          PERFORM bdc_field       USING 'RF02K-D0110'
                                        'X'.
          PERFORM bdc_dynpro      USING 'SAPMF02K' '0110'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=PF03'.
          PERFORM bdc_field       USING 'LFA1-NAME1'
                                       inrec-name1.
          PERFORM bdc_field       USING 'LFA1-SORTL'
                                        'ALLGEMEIN'.
          PERFORM bdc_field       USING 'LFA1-STRAS'
                                        inrec-stras.
          PERFORM bdc_field       USING 'LFA1-PFACH'
                                        '645793'.
          PERFORM bdc_field       USING 'LFA1-ORT01'
                                        inrec-ort01.
          PERFORM bdc_field       USING 'LFA1-PSTLZ'
                                        '12001'.
          PERFORM bdc_field       USING 'LFA1-ORT02'
                                        'COOK'.
          PERFORM bdc_field       USING 'LFA1-PSTL2'
                                        '76905'.
          PERFORM bdc_field       USING 'LFA1-LAND1'
                                        'DE'.
          PERFORM bdc_field       USING 'LFA1-REGIO'
                                        '11'.
          PERFORM bdc_field       USING 'LFA1-SPRAS'
                                        'DE'.
          PERFORM bdc_field       USING 'LFA1-TELF1'
                                        '06894/55501-0'.
          PERFORM bdc_field       USING 'LFA1-TELFX'
                                        '06894/55501-100'.
          PERFORM bdc_dynpro      USING 'SAPLSPO1' '0100'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=YES'.
          CALL TRANSACTION 'FK02'
                           USING bdc_data
                           MODE ctumode
                           UPDATE cupdate
                           MESSAGES INTO MESSTAB.
        ENDLOOP.
        perform mess_handling.
      ENDIF.
    ENDFORM.                    " populate_bdcdata
    *&      Form  mess_handling
          ERROR MESSAGE HANDLING IN CALL TRANACTION
    -->  p1        text
    <--  p2        text
    form mess_handling.
    tables:T100.
    LOOP AT MESSTAB.
            SELECT SINGLE * FROM T100 WHERE SPRSL = MESSTAB-MSGSPRA
                                      AND   ARBGB = MESSTAB-MSGID
                                      AND   MSGNR = MESSTAB-MSGNR.
            IF SY-SUBRC = 0.
              L_MSTRING = T100-TEXT.
              IF L_MSTRING CS '&1'.
                REPLACE '&1' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                REPLACE '&2' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                REPLACE '&3' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                REPLACE '&4' WITH MESSTAB-MSGV4 INTO L_MSTRING.
              ELSE.
                REPLACE '&' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV4 INTO L_MSTRING.
              ENDIF.
              CONDENSE L_MSTRING.
              WRITE: / MESSTAB-MSGTYP, L_MSTRING(250).
            ELSE.
              WRITE: / MESSTAB.
            ENDIF.
          ENDLOOP.
    endform.                    " mess_handling

  • Can we combine multiple excel files into one excel file using SSIS?

    I have a bunch of excel files in a specified folder. I wanted to combine all the excel files into one excel file by adding additional tabs in one excel file. Can I do this using SSIS?
             OR
    I know using macro we can combine multiple excel files. Can we run a excel macro in SSIS? Please help me.
    Actually the complete package is this:
    Step1: Using FTP task I'm downloading the bunch of excel files into a folder.
    Step2: Above implementation is the second step that I have to do.  

    You can do it in two steps
    1. First get all data from excel sheets to a sql staging table. For that you need to use a looping logic as explained in below link (you dont required the additional logic used for checking file name etc in below example as you need all files). Also make
    source as excel instead of flat file
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    2. Once you get the data onto a single table, use below to get it exported to multiple sheets within same excel destination file
    http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • After upgrade, cannot open Excel file

    I just upgraded to Snow Leopard, am running 10.6.8.  My old excel files In MS Ofc for Mac will not open as Excel, rather they do in "Numbers."  How do I view and update my old spreadsheets?
    Thanks

    Cid Gillispie wrote:
    It's kind of old - 2004.
    MS Office 2004 will not run under Lion. You need to upgrade to MS Office 2008 or MS Office 2011.
    If I chose to go with Numbers, Pages, etc would the Ofc files convert?
    As you've seen, Pages and Numbers can open Word and Excel files, respectively. How good the conversion is depends on the documents themselves and the additional resources they use (eg, fonts). The rule of thumb is that the more complex the document and the more advanced features it uses, the more flawed the conversion will be. I should expect minimal or no problems with simple docs, such as a résumé or an expenses sheet. You may have problems with Entourage, though. You need to look into that yourself.
    For higher compatibility with MS Office, you can try OpenOffice or LibreOffice, which are free, or NeoOffice, which is very cheap.

  • Generate and display excel file

    Hi guys,
    Is there a way to generate and display excel file in sapgui without the need of downloading the excel file to local directory first?
    I found the following 2 ways of doing it, but both require me to download the generated xls file to local directory:
    #1 way:
    1. Generate the xls file using GUI_DOWNLOAD with the filename = 'c:\test.xls'.
    2. Call fm SAP_STARTS_EXCEL and pass in the parameter i_filename = 'c:\test.xls'
    #2 way:
    1. Generate the xls file using GUI_DOWNLOAD with the filename = 'c:\test.xls'.
    2. Upload it back using the below so that i can get it in xstring format.
    CALL FUNCTION 'GUI_UPLOAD'
         exporting
           filetype =  'BIN'
           filename = 'C:\test.xls'
         tables
           data_tab = itab.
    3. Then pass it to the cl_gui_html_viewer to display it.
    call method html_control->load_data
        exporting
          url          = 'test.xls'
          type         = 'application'
          subtype      = 'vnd.ms-excel'
        importing
          assigned_url = l_url
        changing
          data_table   = l_pdf_data
        exceptions
          others = 1.
    I prefer the #2 way as my program will get wrapped thru ITS server, and it seems the #1 way will not work. So is there any way i can get the excel file to be generated in xstring format so that i can pass to cl_gui_html_viewer straight away to display without having to save to local directory first?
    Any other suggestion apart from the above 2 ways are welcome as well.
    Thanks guys.

    Use function module ALV_XXL_CALL. It will solve ur prob immediately.
    REPORT  ZSKC_ALV_XXL.
    TYPE-POOLS : KKBLO.
    DATA : ITAB LIKE T100 OCCURS 0,
           T_FCAT_LVC TYPE LVC_S_FCAT OCCURS 0 WITH HEADER LINE,
           T_FCAT_KKB TYPE KKBLO_T_FIELDCAT.
    START-OF-SELECTION.
    * Get data.
      SELECT * UP TO 20 ROWS
      FROM   T100
      INTO   TABLE ITAB
      WHERE  SPRSL = SY-LANGU.
      CHECK SY-SUBRC EQ 0.
    * Create the field catalog.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
          I_STRUCTURE_NAME             = 'T100'
        CHANGING
          CT_FIELDCAT                  = T_FCAT_LVC[]
        EXCEPTIONS
          INCONSISTENT_INTERFACE       = 1
          PROGRAM_ERROR                = 2
          OTHERS                       = 3.
      CHECK SY-SUBRC EQ 0.
    * make sure you pass the correct internal table name in the field catalog.
      t_fcat_lvC-tabname = 'ITAB'.
      MODIFY T_FCAT_LVC TRANSPORTING TABNAME WHERE TABNAME NE SPACE.
    * Transfer to KKBLO format.
      CALL FUNCTION 'LVC_TRANSFER_TO_KKBLO'
        EXPORTING
          IT_FIELDCAT_LVC                 = T_FCAT_LVC[]
        IMPORTING
          ET_FIELDCAT_KKBLO               = T_FCAT_KKB
       EXCEPTIONS
         IT_DATA_MISSING                 = 1
         IT_FIELDCAT_LVC_MISSING         = 2
         OTHERS                          = 3.
      CHECK SY-SUBRC EQ 0.
    * Call XXL.
      CALL FUNCTION 'ALV_XXL_CALL'
        EXPORTING
          I_TABNAME                    = 'ITAB'
          IT_FIELDCAT                  = T_FCAT_KKB
        TABLES
          IT_OUTTAB                    = ITAB[]
        EXCEPTIONS
          FATAL_ERROR                  = 1
          NO_DISPLAY_POSSIBLE          = 2
          OTHERS                       = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    It will open the Excel in front of you and populate the cells from your internal table
    with color for Key columns.
    Cheers
    SKC.

  • Saving the data into the tab limited text file

    Dear Friends ,
    please help me at the earliest possible , i want to store the data into an text file which is tab limited ,previously i was able to the same into the excel sheet using the jakarta HSSF POI , an open source library to store the data into the EXCEL sheet , now friends please tell me whether is there any other open source to store the data into the tab limited text file what i mean by tablimited is the data is to be saved as
    Name        Email-id        phone          streeet          city
    sri            @some.com     9434           jahdui          hye
    asdf         @.com           3455           sdgsdf         retlike this so please suggest me
    thank you in advance,
    bye
    sriharsha

    Consult the docs for BufferedWriter and from there.
    regards
    Christian
    import java.io.*;
    public class Test
         public static void main(String[] args)
              BufferedWriter writer;
              String[][] s = { {"Name","Email-id","phone","streeet","city"},
                        {"sri","@some.com","9434","jahdui","hye"},
                        {"asdf","@.com","3455","sdgsdf","ret"}};
              try {
                   writer = new BufferedWriter(new FileWriter("out.txt"));
                   for (int j=0; j< s.length; j++) {
                        for (int i = 0; i < s[j].length; ++i) {
                             writer.write(s[j]+"\t");
                        writer.newLine();
                   writer.close();
              } catch (IOException e) {
                   e.printStackTrace();

  • How to print an excel file (2010 version) with multiple tabs into a pdf file with bookmarks (acrobat 9). I was able to do this easily using excel (2007 version).

    Recently I got a new laptop, with excel 2010 version and acrobat 9 standard.
    I could no longer print (save as) an excel file with multiple tabs into a pdf file with bookmarks.
    My old computer has excel 2007 version and acrobat 9 standard.
    Print an excel file into pdf with bookmarks was a piece of cake.
    Both machine has the same add-in -- Acrobat PDFMaker Office COM addin
    Thanks if anyone could help me with this.
        Tom

    You need to upgrade Acrobat to a newer version.
    On Thu, Oct 30, 2014 at 4:12 PM, excel-pdf-bookmarks <

  • How do I merge multiple Excel files with more than one tab in each file using PowerQuery?

    Hello
    I have 12 Excel (.xlsx) files and each file has three identically named and ordered tabs in them. 
    I know how to merge multiple Excel files in a folder using M (those guides are all over the web) but how do I merge multiple Excel files with multiple (yet identically named and ordered) tabs? Surely it is possible? I just don't know how to do it in M.
    Cheers
    James

    What Laurence says is correct, and probably the best thing to do when the sheets have differing structures. Here is an alternate approach that works well when the sheets all have the same structure.
    When you first open the Excel file from Power Query, you can see its structure in the navigator at the right-hand-side of the screen. If you select the root (which is the filename itself) and click Edit, you'll see all the tabs in the sheet as a single table.
    You can now do filtering based on the Name, Item and Kind values. When you've reduced the set of things down to the sheets you want, select the Data column and say "Remove Other Columns". If the sheets don't have any header rows, you can just click the expand
    icon in the header and you'll be done.
    Otherwise, if the sheets have headers or if some other kind of sheet-level transformation is required against each sheet before doing a merge, you'll have to write some M code manually. In the following example, each sheet has a header row consisting of
    two columns: Foo and Bar. So the only step I need to perform before merging is to promote the first row into a header. This is done via the Table.TransformColumns operation.
    let
        Source = Excel.Workbook(File.Contents("C:\Users\CurtH\Desktop\Test1.xlsx")),
        RemovedOtherColumns = Table.SelectColumns(Source,{"Data"}),
        PromotedHeaders = Table.TransformColumns(RemovedOtherColumns,{{"Data", each Table.PromoteHeaders(_)}}),
        ExpandData = Table.ExpandTableColumn(PromotedHeaders, "Data", {"Foo", "Bar"}, {"Data.Foo", "Data.Bar"})
    in
        ExpandData

  • Can I programmatically force saving an XLTM template to save as an XLSM file in Excel 2010 without defaulting all Excel file types?

    I created an Excel template which includes VB and macros as an EXCEL.XLTM template file (I used a template file to keep users from overwriting the sample template file), but I have noticed that when users save the template, Excel 2010 defaults to saving
    the new file as a XLSX file (removing all the macros).
    I know you can set Excel 2010 to always save as a certain format, but I really would prefer not forcing all Excel files to be macro enabled for the user
    Is there a way to default the Save type to XLSM for this template only?  Like some code that I could put in that when the users saves, it saves as a macro enabled XLSM type only for this template file?
    My users aren't exactly Excel savvy, so I wanted to make it as simple as possible for them.
    Thanks!
    Alan Edwards

    Hi Alan,
    >> Is there a way to default the Save type to XLSM for this template only?  Like some code that I could put in that when the users saves, it saves as a macro enabled XLSM type only for this template file?
    In my option, you could achieve this by adding Application.GetSaveAsFilename Method to the workbook BeforeSave event. Some key code like below:
    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Dim FileNameVal As String
    If SaveAsUI Then
    FileNameVal = Application.GetSaveAsFilename(, "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
    Cancel = True
    If FileNameVal = "False" Then 'User pressed cancel
    Exit Sub
    End If
    ThisWorkbook.SaveAs Filename:=FileNameVal & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
    Application.EnableEvents = True
    End If
    End Sub
    But there is a limitation of this workaround, in this workaround, the save as will only support the macro enabled type, other save as types like "xlsx" will be ignored.​
    For more information about Application.GetSaveAsFilename Method (Excel), you could turn to the link below:
    #Application.GetSaveAsFilename Method (Excel)
    https://msdn.microsoft.com/en-us/library/office/ff195734.aspx
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How to export the text edit data to excel file without splitting the data in excel file?

    how to export the text edit data to excel file without splitting the data in excel file?
    I have a requirement in SAP HR where in the appraiser can add comments in the area given and can export that to excel file. Currently the file is getting exported but the comments getting split into deifferent rows.
    I want the entire comment to be fit in one row.
    Please help.
    Thank you

    Hi,
    if your text edit value is stored in 'lv_string' variable.
    then before exporting the value to excel you have to remove CL_ABAP_CHAR_UTILITIES=>NEWLINE
    that is '#' from the variable lv_string.
    for that use code some thing like this.
    REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>NEWLINE in lv_string WITH space.
    I think this will do the trick.

Maybe you are looking for

  • Error When Using DataBase LINK in pl/sql

    I have cursor fetching some values from remote db and i m trying to store values in local table (see code below) I can run the select query alone succefully but when i use it inside plsql it fails with error. DECLARE TYPE MY_CURSOR IS      REF      C

  • Sub Contracting g/l acct assignment

    Hi Friends,                    I have got a message during subcontracting goods reciept that, "field selection for movt type 543/ acct 41301100 differs for asset retirement(016). This account is for change in stock of semi finished material. Can we u

  • Searching... message from JSPs

    I have a number of Java/JSP applications which involve 'searches' based on pages that ask users to enter parameter values for a search in a database. These searches can take a long time and therefore what I would like to do is put up a message on the

  • Is it possible to execute simple class

    Sir, Is it possible to execute a simple program written in java in jdeveloper. If yes please let me know how to that. I creted a class using class wizard and added the following statement; System.out.println("testing"); I able to compile the program

  • TS1559 my iphone 4s wifi is not working. it seens wifi grey

    help me please. what i do