Reg:processing of excel sheet by SAP XI

Hi all,
Is it possibel for XI to pick data from an excel sheet.
If so,can anyone please let me know some useful blogs.
Thanks in advance.

hi,
u can check the below blogs to process the Excel sheet and generate Excel sheet using XI
/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter (process excel sheet)
/people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible (Generate Excel sheet)
Thank You,
Madhav.
Note: Points If useful.

Similar Messages

  • Uploading data from Excel sheet into SAP.

    Dear All,
    I want to upload data existing in Excel sheet into SAP. Is there any possibility with the following requirements?
    1) Excel file contains serial numbers with different values.Like power(230Wp),Voc,Isc,Vmp and Imp.
    2) We need to upload the same data into SAP with validations.
    3) Validations are like no serial number should be repeated.
    4) And depending on the Power value, the serial number should be assigned to different batches.Eg:The batches are as follows:
         201 - 210
         210 - 220
         220 - 230
       and if the Pmax of the serial number is 205.It should be assigned to batch 201 - 210 .
    5) At present we are using MB31 to post the serial numbers which are existing in the flat file.
    Thanks and Regards,
    Varun Siddharth

    Hi,
    Refer to the following code:
    DATA: lv_filetype(10) TYPE c,
            lv_gui_sep TYPE c,
            lv_file_name TYPE string.
      lv_filetype = 'ASC'.
      lv_gui_sep = 'X'.
      lv_file_name = pa_dfile.
    FM call to upload file
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = lv_file_name
          filetype                = lv_filetype
          has_field_separator     = lv_gui_sep
        TABLES
          data_tab                = gi_zhralcon_file
        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.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    The excel file must be a tab delimited file.
    Hope it helps.
    Regards,
    Rajesh Kumar

  • How to upload the Excel sheet into SAP

    Hello Gurus,
    Please let me know the steps how to upload excel sheet file in sap at one time.Suppose i have entered the employee details and their caste .This detail has been maintained in Excel.I want to know the total steps how to upload this total file into SAP System.
    Regards
    AM

    . TCode : LSMW.
    2. Enter Project name, sub project name and object name.
    Execute.
    3. Maintain object attributes.
    Execute
    select Batch Input recording
    goto->Recording overview
    create
    recording name.
    enter transaction code.
    start recording
    do recording as per ur choice.
    save + back.
    enter recording name in lsmw screen.
    save + back
    Now there will be 14 steps.
    2. MAINTAIN SOURCE STRUCTURES.
    Here you have to enter the name of internal table.
    display change
    create
    save + back
    3. MAINTAIN SOURCE FIELDS.
    display change
    select structure
    source_fields->copy fields.
    a dialogue window will come .
    select -> from data file
    apply source fields
    enter No. of fields
    length of fields
    attach file
    save + back
    4. MAINTAIN STRUCTURE RELATIONS
    display change
    save + back
    5. MAINTAN FIELD MAPPING & CONVERSION RULE
    display change
    click on source field, select exact field from structue and enter
    repeat these steps for all fields.
    save+back
    6. MAINTAIN FIXED VALUES, TRANSACTION, USER DEFINED
    execute
    save + back
    7. SPECIFY FILES.
    display change
    click on legacy data
    attah flat file
    give description
    select tabulatore
    enter
    save + back
    8. ASSIGN FILE
    execute
    display change
    save + back
    9. IMPORT DATA.
    execute
    display change
    save + back
    10. DISPLAY IMPORTED DATA
    enter ok, it willl show records only.
    back
    11. CONVERT DATA
    execute
    display change
    save + back
    12. DISPLAY CONVERTED DATA
    execute
    display change
    save + back
    13. CREATE BATCH INPUT SESSION
    tick keep batch input folder
    F8
    back
    14. RUN BATCH INPUT SESSION.
    sm35 will come
    Object name will be shown here
    select object & process
    inputs given by KAPIL

  • How to downlaod vednor master data into excel sheet in SAP Application serv

    Hi friends
    I want to download SAP vendor master data into excel sheet and the file should be stored in SAP Application server Location with padding zeros.
    Please help me.
    Thanks

    Hi Ramesh,
    It is not possible to download data in Excel file on application server. You can better download the same in tab separated text file and then convert that text file to XLS.
    Please do not open multiple threads for same problem.
    Regards,
    Atish

  • How to downlaod vednor master data into excel sheet in SAP Application ser

    Hi friends
    I want to download SAP vendor master data into excel sheet and the file should be stored in SAP Application server Location with padding zeros.
    Please help me.
    Thanks

    Hi Ramesh,
    You can download the data into application server using the following code. You will have the vendor details in the internal table. Then you will open a file and transfer the data as follows.
    *   Download internal table to Application server file(Unix)
    DATA: e_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.     
      open dataset e_file for output in text mode.
      lOOP AT it_datatab......
        transfer it_datatab to e_file.
      ENDLOOP.
      close dataset e_file.
    In application server you will have only files and not excel sheets.
    Reward points if useful,
    Aleem.

  • Reg:Headings in Excel sheet

    Hi all,
    How to place headings in Excel sheet when we are downloading
    the item details. Can any one help me to resolve this problem.

    Hi Radhika ,
    Try like this
    PARAMETERS : p_dload TYPE rlgrap-filename.
    DATA : w_dload TYPE string.
    TYPES : BEGIN OF ty_kna1,      " structure
            kunnr TYPE kna1-kunnr,
            name1 TYPE kna1-name1,
            ort01 TYPE kna1-ort01,
            land1 TYPE kna1-land1,
            END OF ty_kna1.
    TYPES : BEGIN OF ty_head,      " structure
            kunnr(20),
            name1(20),
            ort01(20),
            land1(20),
            END OF ty_head.
    DATA :  it_kna1 TYPE TABLE OF ty_kna1.  "table to download records
    DATA : wa_hedtab TYPE ty_head,
           it_hedtab TYPE TABLE OF ty_head. " table for heading
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dload.
      PERFORM f_dload.
    START-OF-SELECTION.
      PERFORM f_header.
      PERFORM f_extract.
      PERFORM f_download.  " download file to presentation server
    *&      Form  f_dload
    FORM f_dload .
      CALL FUNCTION 'F4_FILENAME'
    * EXPORTING
    *   PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
        IMPORTING
          file_name           = p_dload
    ENDFORM.                    " f_dload
    *&      Form  f_extract
    FORM f_extract .
      SELECT kunnr
              name1
              ort01
              land1 FROM kna1 INTO TABLE it_kna1 .
    ENDFORM.                    " f_extract
    *&      Form  f_download
    FORM f_download .
      w_dload = p_dload.
      CALL FUNCTION 'GUI_DOWNLOAD'           " downloading header here
          EXPORTING
    *   BIN_FILESIZE                    =
            filename                        = w_dload
         filetype                        = 'ASC'
    *   APPEND                          = ' '
         write_field_separator           = 'X'
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    * IMPORTING
    *   FILELENGTH                      =
          TABLES
            data_tab                        = it_hedtab
    *   FIELDNAMES                      =
       EXCEPTIONS
         file_write_error                = 1
         no_batch                        = 2
         gui_refuse_filetransfer         = 3
         invalid_type                    = 4
         no_authority                    = 5
         unknown_error                   = 6
         header_not_allowed              = 7
         separator_not_allowed           = 8
         filesize_not_allowed            = 9
         header_too_long                 = 10
         dp_error_create                 = 11
         dp_error_send                   = 12
         dp_error_write                  = 13
         unknown_dp_error                = 14
         access_denied                   = 15
         dp_out_of_memory                = 16
         disk_full                       = 17
         dp_timeout                      = 18
         file_not_found                  = 19
         dataprovider_exception          = 20
         control_flush_error             = 21
         OTHERS                          = 22
      IF sy-subrc  NE 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'     "-----> downloading data here
        EXPORTING
    *   BIN_FILESIZE                    =
          filename                        = w_dload
       filetype                        = 'ASC'
       append                          = 'X'
       write_field_separator           = 'X'
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    * IMPORTING
    *   FILELENGTH                      =
        TABLES
          data_tab                        = it_kna1
    *   FIELDNAMES                      =
    EXCEPTIONS
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       invalid_type                    = 4
       no_authority                    = 5
       unknown_error                   = 6
       header_not_allowed              = 7
       separator_not_allowed           = 8
       filesize_not_allowed            = 9
       header_too_long                 = 10
       dp_error_create                 = 11
       dp_error_send                   = 12
       dp_error_write                  = 13
       unknown_dp_error                = 14
       access_denied                   = 15
       dp_out_of_memory                = 16
       disk_full                       = 17
       dp_timeout                      = 18
       file_not_found                  = 19
       dataprovider_exception          = 20
       control_flush_error             = 21
       OTHERS                          = 22
      IF sy-subrc  NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " f_download
    *&      Form  f_header
    FORM f_header .
      wa_hedtab-kunnr = 'Customer No'.
      wa_hedtab-name1 = 'Name'.
      wa_hedtab-ort01 = 'city'.
      wa_hedtab-land1 = 'Country'.
      APPEND wa_hedtab TO it_hedtab.
    ENDFORM.                    " f_header
    Thanks & Regards

  • Have a pushbutton on downloaded excel sheet from SAP

    Hello
         Is it possible to have a Pushbutton on downloaded excel sheet from SAP

    Check OLE for this.

  • Open excel sheet in sap customize screen

    hi
        i want to open a excel sheet in my customize screen and display data from a table in the excel sheet.
    if any sample program or any idea please suggest.
    thanks.
    biswakalayana

    Welcome to SCN.
    Search forum for OLE to get your solution.
    ~ Read rules of Engagements.
    ~ Search the forum before posting the query.

  • Uploading Data From Excel Sheet to SAP Database Tables

    Dear Friends,
    We are having an Excel Sheet with 90 different columns. Now we want only 2 of the columns to be uploaded in the database tables. So, Plz tell me which function module will be suitable for this. And plz help me with the code also.
    Thanks,
    Nishant Jain

    Hi Nishu,
    A sample for the same..
    data it_excel like table of ALSMEX_TABLINE with header line.
    here we retrieve only 2 cols directly..
    now itab will contain only 2 cols of all rows seperated by comma ..
    data str(1000).
    data itab like table of str with  header line.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = 'C:sample1.xls'
        i_begin_col                   = 1
        i_begin_row                   = 1
        i_end_col                     = 2
        i_end_row                     = 100
      tables
        intern                        =  it_excel
      LOOP AT it_excel.
        AT NEW row.
          CLEAR itab.
        ENDAT.
        IF itab IS INITIAL.
          MOVE it_excel-value TO itab.
        ELSE.
          CONCATENATE itab ',' it_excel-value INTO itab.
        ENDIF.
        AT END OF row.
          APPEND itab.
        ENDAT.
      ENDLOOP.
    regards
    satesh

  • Reg download to excel sheet

    Hi
         I have to download table contents to excel sheet for printing purpose,or is there any other facility through which we can directly print the table data?
        please explain in detail.
    thanks
    prajakta

    Hello,
    Try If the following code help you
    //Take This is sample data in table with three records
    String str[][]={{"One ","Hyd","MG","Manager"},{"Two","Chennai","ASM","AsstManager"},{"Three","Chennai","SREX","SrExecutive"},{"Four","Hyd","EX","Executive"}};
    for(int i=0;i<str.length;i++)
         String aa[]=str<i>;
         byte b[]=aa[0].getBytes();
         fos.write(b);
                    fos.write("\t".getBytes());
         b=aa[1].getBytes();
         fos.write(b);
         fos.write("\t".getBytes());
        b=aa[2].getBytes();
                    fos.write(b);
         fos.write("\t".getBytes());
         b=aa[3].getBytes();
         fos.write(b);
                   fos.write("\t".getBytes());
         fos.write("\n".getBytes());
    // Find the URL of this File and bind to Context Using Following Code
    FileInputStream fis = new FileInputStream(f);
               FileChannel fc = fis.getChannel();
               byte[] data = new byte[(int)(fc.size())];
               ByteBuffer bb = ByteBuffer.wrap(data);
               fc.read(bb);
                IWDCachedWebResource objCachedWebResource = null;
               if (data != null)
                   objCachedWebResource = WDWebResource.getWebResource(data,WDWebResourceType.XLS);
                   objCachedWebResource.setResourceName(f.getName());
               wdContext.currentContextElement().setResource(objCachedWebResource.getAbsoluteURL());
    Regards
    LakshmiNarayanaChowdary.N

  • Process a excel sheet in Emigall.

    Hi Experts,
    1. While on the Process Import File within the Emigall, under the Edit --> Data menu, there is a "Process in Excel" option. Can anyone share as to what is it used for and how to use the same?
    2. Can we upload data from an Excel into Emigall like we do with a text file? If so, then do we need to follow the same format in excel as in a .txt?
    Thanks,
    Karan

    Dear Karan,
    The best way is while downloading the format file go to Edit -Data -download and save the file as .Xls in the system. Then process the file in the excel format, after processing, use save as option and  save the excel file as .txt and then upload it in the emigall using the same path Edit-Data- Upload.
    I follow this way in downloading the format, processing it in excel and uploading back to the system as .txt
    Hope this helps
    With Regards
    Balaji.J

  • Uploading data from excel sheets through BDC's into sap system

    hi guys,
    can you please help me with this. As we use gui_upload to upload data from flat file to sap system, which function module you use to upload data from Excel sheet to sap system through bdc's

    hello pavan,
    welcome to SDN
    check the below program
    REPORT ZEXCEL_TO_INTERNAL .
    data: begin of itab occurs 0,
          name(20) type c,
          addre(20) type c,
          end of itab.
    DATA : ITAB1 LIKE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    DATA : B1 TYPE I VALUE 1,
           C1 TYPE I VALUE 1,
           B2 TYPE I VALUE 100,
           C2 TYPE I VALUE 9999.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                   =
        'C:\Documents and Settings\administrator\Desktop\ppcon001bd_24.xls'
        I_BEGIN_COL                   = B1
        I_BEGIN_ROW                   = C1
        I_END_COL                     = B2
        I_END_ROW                     = C2
      TABLES
        INTERN                        = itab1
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at itab1.
    write:/ itab1.
    Endlop.
    Regards,
    Naveen

  • Auto-Resizing of downloaded Excel Sheet

    I am downloading data into excel sheet from sap program. When I open the excel sheet it shows the fields. Here, material description field is of length 50 chars, but it shows only 12 char. When I double click on the field everything is shown.
    I want to download data and when opened excel sheet it should show all the contents ie material descrption of 50 chars should be shown up.
    Pl. provide neccessary inputs on achieving this functionality.

    Hi try with by giving
    value 'DBF' for the parameter File Type.
    Regs
    Manas Ranjan Panda

  • Uploading the excel  sheet in XLSX format

    Hi ,
    While   uploading  excel sheet  into sap , I am using the FM  'TEXT_CONVERT_XLS_TO_SAP' .This FM works fine when the excel  sheet is in 'XLS' format .But when the excel  sheet is in 'XLSX'  format this FM  is giving  error .Please advice how to correct  the error.
    Any pointers will be highly  appreciated.
    Thanks ,
    Nikhil

    Copied from the link given above
    hi,
    try like this once
    After calling FM 'ALSM_EXCEL_TO_INTERNAL_TABLE', need to fill the final table at each row and column level,
    Please check this sample of code below.
    Call FM to upload file from Presentation server.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    filename = rp_file
    i_begin_col = 1
    i_begin_row = 2
    i_end_col = 3
    i_end_row = 6000
    TABLES
    intern = rt_excel[]
    EXCEPTIONS
    inconsistent_parameters = 1
    upload_ole = 2
    OTHERS = 3.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Process Records and get only records into table T_FINAL.
    IF rt_excel[] IS NOT INITIAL.
    LOOP AT rt_excel INTO lw_file.
    Move the records into final table.
    IF lw_file-col = c_1.
    lw_final-bukrs = lw_file-value .
    ELSEIF lw_file-col = c_2.
    lw_final-csl_type = lw_file-value.
    ELSEIF lw_file-col = c_3.
    lw_final-fpl = lw_file-value.
    ENDIF.
    AT END OF row.
    APPEND lw_final TO rt_final.
    CLEAR lw_final.
    ENDAT.
    CLEAR : lw_file.
    ENDLOOP.
    endif.
    regards,
    bab
    Edited by: Matt on Jan 14, 2010 9:20 AM

  • Error while download the data to an Excel sheet for ECC report from EP

    Hi experts,
    I had created a report program which will download the data to an Excel sheet using SAP OLE object
    For this report i had created a tcode too. The report which i developed is perfectly working fine in SAPGUI. But if i download the data to an Excel sheet for the same report throught SAP EP.I am getting the  error that "Error in excel downlaod"
    I analyed by putting dubigg point and it throws exception while calling Function module.
    The excpetion is " OLE object id not found".
    Can any body gives a light on this why i'm not able download the excel in ep?
    Thanks,
    JB

    Hello,
    (by the way I came here to ask my question and is my first time visit but...)
    The problem is obvious: How do you expect OLE handler can "touch" the local PC Excel through a web browser? I believe that is not possible. That means (at least for me) that I have to create the whole documents before I return them to the user. That is why I use XML Office documents generation or you can try to hack some Export to excel features of ERP reports.
    Regards Otto

Maybe you are looking for

  • How to ADD field in iview ?

    hi, in portal-iview i want to add a field. when i go to 'portal-content -> open the iview with right click -> preview' and then do ctrl-alt-right-mouse click i got to the customizing of the fields. i know how to HIDE fields there, but i don't know ho

  • How to set a page to not update the session

    Hi all, I have a page that has Ajax on it and because it updates the session all the time the page does not timeout! So how can I make the page timeout after 20 min. like all the other pages?? Regards Martin

  • Please help !... So desperate !

    Greetings ! I just created a web site for a client and it looks perfect on both IE7 and FireFox. We just find out that the horizontal Spry navigation is a complete mess on IE6. (See the screenshots below.) So i created a small demo page to illustrate

  • HT2946 quit using external editor

    Currently using Photoshop elements as editor.  Photoshop Editor opens but photos do not open in editor. Either make photos ope , or just quit exporting.Help with either solution, please.

  • Action Cam Error 513 no streaming function

    Hello-- wonder if anyone else has come across this- I am paired fine on both apps however when I try to turn on live streaming the EE Action App says 'unknown error 513' and the digital display shows a warning triangle Only had it a few hours-- very