CAN we upload data periodically in LSMW?

HI Expert,
                 In LSMW , maintain object attributes step , there is periodic option if we select that option then  would the data transfer periodically?How does it differ from periodic in BDC?
LSMW we can not schedule  updation write?
we have extracting data from legacy system into flat file
now we want to map legacy format  data into inputfile ( sap format data). how could we do that?
Further i have to use BAPI to upload

To a limited extent, the LSM Workbench also supports periodic data transfer. Preconditions are:
u2022     The LSMW object has been created and tested completely.
u2022     The "source application" periodically makes available one or several files on the SAP application server.
u2022     The LSMW object does not access files on the frontend. (Files on the frontend cannot be read in batch mode.)
If all these conditions are met, you can set select button "Periodic" in step "Maintain object attributes". Then, step "Control program for periodic data transfer" is displayed in the overview of work steps. This program carries out the following steps in sequence:
     Read data
     Convert data
     Import data
This program (name: /SAPDMC/SAP_LSMW_INTERFACE) can be used according to your requirements.

Similar Messages

  • How can I upload date data, like 2015/03/23 to Hyperion planning 11.1.2.3 ?

    Hi all,
    how can I upload date data, like 2015/03/23 to Hyperion planning 11.1.2.3 ?
    Not necessary do it by FDM, please let me know if there is a way to do it.
    Thanks a lot in advance.

    FDM is not the best tool for doing something like this as it loads direct to Essbase and doesn't have the same support for loading text and date values that you get when loading this type of data via the Planning layer. Take a look at using the Outline Load Utility, the sage John Goodwin has a detailed description on his blog - More to life than this...: Planning 11.1.2.2.300 Outline Load Utility Enhancements Part 2 - on how to do this from a relational source although the bulk of it holds true if you were loading from a flat file.

  • Upload Data Periodically using FV75 based on Customer No

    Hi Guys,
    I'm very new to SAP. Here i'm facing one problem that i've to upload Data from File to SAP for FV75 transaction. I tried Recording but it's not possible. Then i tried BAPI like MRM_PARKED_INVOICE_ACCDATA,  AC_DOCUMENT_PARKING_NO_UPDATE, and BAPI_INCOMINGINCOICE_PARK. Here all the fields i'm able to MAP in BAPI_INCOMINGINVOICE_PARK what i'm posting but the problem is that it's used for Vendor. I need for Customer thruogh which i'll post the document. I also Tried LSMW as well, using DI, BI, BAPI, IDOC etc.... could any one suggest me to where i'm doing mistake or which Method and how i'll update. I need quick response.
    Pawan Pandit
    Associate Consultant

    Actually my requirement is very straight. If you will go to FV75 tcode. This process is used to enter data for Outgoing Invoices based on Customer no. I need this transaction for Credit Memo and i want to park all the documents not to post. I'm able to post no doubt but my clients wants to park the document. I tried SHDB for recording so that i can use. But i'm geeting message that parking documents Batch Input is not possible.

  • To display the Attendee name in LSO_PV15, how can a upload data in system

    Hi Gurus,
    I have a requirement, that is... in the LSO_PV15... generally data will be displayed of the learning solutions attendee data. but my client requirement is... he will give the text file with employee name, emplyee number, pass... the data to be uploaded and it will be displayed in LSO_PV15... how can I upload the data... and which tables will be updated while uploading the data... is there any BAPI or function module to upload the data... kindly help me... actually LSO_PV15 is a report program... but the data to be loaded in to the system and it will be displayed in the LSO_PV15... your suggestion is great help to me... thanks in advance...

    hi,
    is there any generic fix for this. if we want to display then we need to change the each page CO . is it a possible solution. or any generic solution. Please provide
    Thanks
    Smarak

  • Can I Upload Data from a table to matrix, while matrix is bound to another table??

    Hi Friends,
            right now i am uploading records to matrix row by row, but when records are very large in numbers then its taking too much time, so how can i upload these record directly to matrix without changing current data binding of the matrix.

    Hi Shrinivas,
    Can you please paste your code how your are copying your data to matrix ?
    Also have you tried this ?
    this.oDBDataSource= (DBDataSource)oForm.DataSources.DBDataSources.Add("@DETAILTABLE");
                                                                oForm.DataSources.DBDataSources.Item("@DETAILTABLE").InsertRecord(oDBDataSource.Size);
    this.oDBDataSource.SetValue("U_Field1", oDBDataSource.Size - 1, Convert.ToString(oDBDataSource.Size));
    this.oDBDataSource.SetValue("U_ICode", oDBDataSource.Size - 1, Convert.ToString(oRecSet.Fields.Item("ItemCode").Value));
    this.oDBDataSource1.SetValue("U_IName", oDBDataSource.Size - 1, Convert.ToString(oRecSet.Fields.Item("ItemName").Value));
    Finally use oMatrix.LoadFromDataSource()
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • GUI_UPLOAD can't upload data in a tab-delimited text file

    Hi.
    I was trying to upload data in a tab-delimited textfile.
    I could do it for a ASC textfile (by setting FILETYPE = 'ASC'), but I couldn't do it for a tab-delimited textfile (by setting FILETYPE = 'DAT').
    Any help is appreciated.

    hi kian,
    If u r using DAT file then HAS_FIELD_SEPERATOR should contain X.
    <b>check the following code:</b>
    parameters: p_file  like rlgrap-filename. " File Name.
    call function 'GUI_UPLOAD'
        exporting
          filename              =  p_file      " NAME of the file
    <b>  filetype                = 'DAT'
          has_field_separator     = 'X '</b>  "  <b>X  indicates Fields are separated by tabs.</b>
        tables
          data_tab                = t_file   " Internal table that contains the file data
        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.
    <b>IF the file type is DAT then following rules applies.</b>
    The components of the internal table are filled from the file. If the
    table contains several columns, the entries in the file must be
    separated by tabs. No conversion exits are carried out.
    The following applies for the different data types:
      -   I or N or P or F
       The numbers must be formatted according to the decimal representation
       defined in the user settings.
        -   D
       The date must be defined according to the date format defined in the
       user settings.
        -   T
       The time must have the format hh:mm:ss.
    Reward me if useful...
    Harimanjesh AN

  • How can we get date period in out put screen as a header (PLS Urgent)

    Hi frdz,
    In ad hoc reports client want to get date field in out put screen as per selection screen date priod.
    Kindly let me know how can we get the same.
    EX: My report selection peiod is 01.01.2006 to 31.12.2006
    The same above date I want to get in out field screen header.
    Thanks,
    $ Lakshmi
    Message was edited by:
            Lakshmi

    see if this link helps http://support.apple.com/kb/ht1212
    you will probably have to restore the iphone as new.

  • Can we upload data in ASO Cube version 11.1.2

    Hi,
    I have a requirement where in ASO cube users need the ability to enter their plan data into the ASO application. Do we need to create Transparent Partition for that. I have an ASO and Hyperion Planning cube and in my Planning cube I have more number of dimensions as compare to ASO.
    Please advise
    Thanks in advance.

    If you are using the Excel add-in you do NOT do a lock, just a send. The lock is a BSO concept to put a hold on blocks. ASO has no blocks to lock. From smartview you do a submit and it handles it all for you. The beauty of using ASO is exactly what you mention, results are immediate without a calc.

  • Crashed and burned computer can't upload data file

    I have always kept my working file in a separate folder (thunderbird). My computer burned two weeks ago. I downloaded thunderbird onto my new computer then directed the program to the folder and file. All i got was a the group of files eg. Bk1, bk2 etc not the 15 years of e mails set up by date I normally have below my inbox.
    Every time I try to reinstall I have to uninstall the program and start fresh. Any pointers to get back to normal ?
    Len Lavoie

    There actually is a separate support site for Thunderbird where presumably they would be better able to answer your question. (I'm an Outlook user myself.)
    https://support.mozillamessaging.com/en-US/home

  • Which one is better for uploading data LSMW or ECATT ?

    I am going to implement my product in customer place.which tool I can use for uploading data.ECATT or LSMW whch one is better to upload master data and transaction data ,which one is user friendly?kindly guide me on this.

    Hello TJK,
    LSMW and eCATT has different functionalitites and different advantages, but common thing is they are used for data upload.
    eCATT is mainly used as a testing tool for follow-on transactions i.e. Purchase Requisition, Purchase order, Goods Receipt etc.
    Where as LSMW is used for Master data (Materials, Customer, Vendor, BOM, Inforecord etc) and some of the transactions data (Purchase order, purchase requisition)
    There are many standard objects are available in LSMW so most of the consultants use LSMW, but again depends on the requirement.
    This will help to understand the basics of eCATT.
    /people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
    and here it is for LSMW
    /people/hema.rao/blog/2006/09/14/lsmw--step-by-step
    Hope this will help.
    Regards
    Arif Mansuri

  • Upload data from excel:can we upload from .csv only?

    Hi Experts,
    Can we upload data from .CSV file only? Is this a limitation in ABAP? What if i have an excel sheet with multiple worksheets and I want to pick data from one of the worksheet. Is this scenario possible?
    Thanks and Regards,
    Rohit

    Hi Rohit.
    In CRM , it works somewhat differently. Following code snippet will help u.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_infile.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          DEF_FILENAME     = 'p_infile'
          DEF_PATH         = ' '
          MASK             = '*.txt'
          MODE             = '0'
          TITLE            = 'UPLOAD TAB DELIMITED FILE'(078)
        IMPORTING
          FILENAME         = p_infile
    *     RC               =
        EXCEPTIONS
          INV_WINSYS       = 1
          NO_BATCH         = 2
          SELECTION_CANCEL = 3
          SELECTION_ERROR  = 4
          OTHERS           = 5.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *START-OF-SELECTION
    START-OF-SELECTION.
      gd_file = p_infile.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                    = gd_file
    *   FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR         = 'X'
    *   HEADER_LENGTH                 = 0
    *   READ_BY_LINE                  = 'X'
    *   DAT_MODE                      = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   CHECK_BOM                     = ' '
    *   VIRUS_SCAN_PROFILE            =
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
    *   HEADER                        =
        TABLES
          DATA_TAB                   = it_record
    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.
        write: 'Error' , sy-subrc .
        skip.
      ENDIF.

  • LSMW to upload data into "Note" in IT0024

    Hi experts,
    How can I upload data into field "Note" in IT0024.
    Now I record PP02 to upload data into IT0024, but cannot find where to maintain "Note".
    Could anybody give a help, please?
    Thanks a lot!!
    YF

    just once,  make sure to enter text in all lines that you may need in the recording.
    in my example I have only entered text in one line (RSTXP-TDFIRST = 1):
    This way all lines will be available to you.

  • Upload multiple files using lsmw

    I have to upload 2 different files using lsmw..
    Please explain me the procedure..
    I made the option as sequential file in specified files..
    but i am getting error.. Using different sequential files is not allowed...

    is der some problem or just u need clarification?
    When I import the data everything seems fine... 52 entries from file 1, and 682 entries from file 2.
    In my "Fieldmapping and conversion rules" i have a statement like this:
    read table FILE2 with key oldsls = FILE1-lgart.
    My problem is that FILE2 is empty, even that I saw in my import screen that 682 entries was imported.
    in one statement, you are saying ki it seems fine then u r saying that ur file 2 is empty. HOW CAN U UPLOAD DATA FROM AN EMPTY FILE ?
    and we don't don anything in field mappng until unless v don't use complex stuctures while uploading data. LSMW takes care of everything by itself.
    Most important thing is
    reward point
    hope this will help
    bye tc
    sandy
    waiting for reward point

  • Upload data from excel with vba by calling a function module

    Hello all,
    i have a problem with the function module "ALSM_EXCEL_TO_INTERNAL_TABLE". I will call this function module with vba to load data from excel to sap with a Buttonclick. I have copied this function module and set it remotable. But i can´t call it from excel.
    Can you give me some tips how can i
    upload data from excel with vba by click a button.
    The problem seems the function: call method cl_gui_frontend_services=>clipboard_import in the function module, because when i comment this function call the vba-call is true but no results. 
    How can I call the function module correct with vba?
    Thanks a lot for your tips!!!!
    Chris
    Message was edited by:
            Christoph Kirschner

    HI
    Uploading data directly from Excel file format
    * Upload data direct from excel.xls file to SAP
    REPORT ZEXCELUPLOAD.
    PARAMETERS: filename LIKE rlgrap-filename MEMORY ID M01,
                begcol TYPE i DEFAULT 1 NO-DISPLAY,
                begrow TYPE i DEFAULT 1 NO-DISPLAY,
                endcol TYPE i DEFAULT 100 NO-DISPLAY,
                endrow TYPE i DEFAULT 32000 NO-DISPLAY.
    * Tick don't append header
    PARAMETERS: kzheader AS CHECKBOX.
    DATA: BEGIN OF intern OCCURS 0.
            INCLUDE STRUCTURE  alsmex_tabline.
    DATA: END OF intern.
    DATA: BEGIN OF intern1 OCCURS 0.
            INCLUDE STRUCTURE  alsmex_tabline.
    DATA: END OF intern1.
    DATA: BEGIN OF t_col OCCURS 0,
           col LIKE alsmex_tabline-col,
           size TYPE i.
    DATA: END OF t_col.
    DATA: zwlen TYPE i,
          zwlines TYPE i.
    DATA: BEGIN OF fieldnames OCCURS 3,
            title(60),
            table(6),
            field(10),
            kz(1),
          END OF fieldnames.
    * No of columns
    DATA: BEGIN OF data_tab OCCURS 0,
           value_0001(50),
           value_0002(50),
           value_0003(50),
           value_0004(50),
           value_0005(50),
           value_0006(50),
           value_0007(50),
           value_0008(50),
           value_0009(50),
           value_0010(50),
           value_0011(50),
           value_0012(50),
           value_0013(50),
           value_0014(50),
           value_0015(50),
           value_0016(50),
           value_0017(50),
           value_0018(50),
           value_0019(50),
           value_0020(50),
           value_0021(50),
           value_0022(50),
           value_0023(50),
           value_0024(50),
           value_0025(50),
           value_0026(50),
           value_0027(50),
           value_0028(50),
           value_0029(50),
           value_0030(50),
           value_0031(50),
           value_0032(50),
           value_0033(50),
           value_0034(50),
           value_0035(50),
           value_0036(50),
           value_0037(50),
           value_0038(50),
           value_0039(50),
           value_0040(50),
           value_0041(50),
           value_0042(50),
           value_0043(50),
           value_0044(50),
           value_0045(50),
           value_0046(50),
           value_0047(50),
           value_0048(50),
           value_0049(50),
           value_0050(50),
           value_0051(50),
           value_0052(50),
           value_0053(50),
           value_0054(50),
           value_0055(50),
           value_0056(50),
           value_0057(50),
           value_0058(50),
           value_0059(50),
           value_0060(50),
           value_0061(50),
           value_0062(50),
           value_0063(50),
           value_0064(50),
           value_0065(50),
           value_0066(50),
           value_0067(50),
           value_0068(50),
           value_0069(50),
           value_0070(50),
           value_0071(50),
           value_0072(50),
           value_0073(50),
           value_0074(50),
           value_0075(50),
           value_0076(50),
           value_0077(50),
           value_0078(50),
           value_0079(50),
           value_0080(50),
           value_0081(50),
           value_0082(50),
           value_0083(50),
           value_0084(50),
           value_0085(50),
           value_0086(50),
           value_0087(50),
           value_0088(50),
           value_0089(50),
           value_0090(50),
           value_0091(50),
           value_0092(50),
           value_0093(50),
           value_0094(50),
           value_0095(50),
           value_0096(50),
           value_0097(50),
           value_0098(50),
           value_0099(50),
           value_0100(50).
    DATA: END OF data_tab.
    DATA: tind(4) TYPE n.
    DATA: zwfeld(19).
    FIELD-SYMBOLS: <fs1>.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                mask      = '*.xls'
                static    = 'X'
           CHANGING
                file_name = filename.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = filename
                i_begin_col             = begcol
                i_begin_row             = begrow
                i_end_col               = endcol
                i_end_row               = endrow
           TABLES
                intern                  = intern
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE:/ 'Upload Error ', SY-SUBRC.
      ENDIF.
    END-OF-SELECTION.
      LOOP AT intern.
        intern1 = intern.
        CLEAR intern1-row.
        APPEND intern1.
      ENDLOOP.
      SORT intern1 BY col.
      LOOP AT intern1.
        AT NEW col.
          t_col-col = intern1-col.
          APPEND t_col.
        ENDAT.
        zwlen = strlen( intern1-value ).
        READ TABLE t_col WITH KEY col = intern1-col.
        IF sy-subrc EQ 0.
          IF zwlen > t_col-size.
            t_col-size = zwlen.
    *                          Internal Table, Current Row Index
            MODIFY t_col INDEX sy-tabix.
          ENDIF.
        ENDIF.
      ENDLOOP.
      DESCRIBE TABLE t_col LINES zwlines.
      SORT intern BY row col.
      IF kzheader = 'X'.
        LOOP AT intern.
          fieldnames-title = intern-value.
          APPEND fieldnames.
          AT END OF row.
            EXIT.
          ENDAT.
        ENDLOOP.
      ELSE.
        DO zwlines TIMES.
          WRITE sy-index TO fieldnames-title.
          APPEND fieldnames.
        ENDDO.
      ENDIF.
      SORT intern BY row col.
      LOOP AT intern.
        IF kzheader = 'X'
        AND intern-row = 1.
          CONTINUE.
        ENDIF.
        tind = intern-col.
        CONCATENATE 'DATA_TAB-VALUE_' tind INTO zwfeld.
        ASSIGN (zwfeld) TO <fs1>.
        <fs1> = intern-value.
        AT END OF row.
          APPEND data_tab.
          CLEAR data_tab.
        ENDAT.
      ENDLOOP.
      CALL FUNCTION 'DISPLAY_BASIC_LIST'
           EXPORTING
                file_name     = filename
           TABLES
                data_tab      = data_tab
                fieldname_tab = fieldnames.
    *-- End of Program
    <b>Excel Upload Alternative - KCD_EXCEL_OLE_TO_INT_CONVERT</b>
    *Title : Excel Uploading
    TYPES:   BEGIN OF t_datatab,
             col1(25)  TYPE c,
             col2(30)  TYPE c,
             col3(30)  TYPE c,
             col4(30)  TYPE c,
             col5(30)  TYPE c,
             col6(30)  TYPE c,
             col7(30) TYPE c,
             col8(30)  TYPE c,
             col9(30)  TYPE c,
             col10(30)  TYPE c,
             col11(30)    TYPE c,
           END OF t_datatab.
    DATA: it_datatab TYPE STANDARD TABLE OF t_datatab INITIAL SIZE 0,
          wa_datatab TYPE t_datatab.
    Data : p_table type t_datatab occurs 0 with header line.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA: it_tab TYPE filetable,
          gd_subrc TYPE i.
    field-symbols : <fs>.
    *Selection screen definition
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename
                   DEFAULT 'c:test.xls' OBLIGATORY.   " File Name
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      REFRESH: it_tab.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title     = 'Select File'
          default_filename = '*.xls'
          multiselection   = ' '
        CHANGING
          file_table       = it_tab
          rc               = gd_subrc.
      LOOP AT it_tab INTO p_file.
    *    so_fpath-sign = 'I'.
    *    so_fpath-option = 'EQ'.
    *    append so_fpath.
      ENDLOOP.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    * END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3,
                wa_datatab-col4,
                wa_datatab-col5,
                wa_datatab-col6,
                wa_datatab-col7,
                wa_datatab-col8,
                wa_datatab-col9,
                wa_datatab-col10,
                wa_datatab-col11.
      ENDLOOP.
    *&      Form  UPLOAD_EXCEL_FILE
    *       upload excel spreadsheet into internal table
    *      -->P_TABLE    Table to return excel data into
    *      -->P_FILE     file name and path
    *      -->P_SCOL     start column
    *      -->P_SROW     start row
    *      -->P_ECOL     end column
    *      -->P_EROW     end row
    FORM upload_excel_file TABLES   p_table
                           USING    p_file
                                    p_scol
                                    p_srow
                                    p_ecol
                                    p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    * Has the following format:
    *             Row number   | Colum Number   |   Value
    *      i.e.     1                 1             Name1
    *               2                 1             Joe
      DATA : ld_index TYPE i.
    * Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = LT_INTERN
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
         MOVE lt_intern-col TO ld_index.
         assign component ld_index of structure
         p_table to <fs>.
    move : lt_intern-value to <fs>.
    *     MOVE lt_intern-value TO p_table.
          AT END OF row.
            APPEND p_table.
            CLEAR p_table.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "UPLOAD_EXCEL_FILE
    Regards
    Pavan

  • Upload data from excel (not the excle file) into SAP

    Guys,
    how can we upload data from excel sheet into SAP? I mean just the data not the entire file,
    I have a requirement where user press a button in excel sheet and the data in the sheet will get uploaded into SAP.
    I am sure we have to use BAPI and some VB programming for macros, I will really appriciate if anyone can help how to achive this.
    some sample code exampe will help.
    Cheers!

    I think u r writing BDC for Uploading the data from excel flile to sap. for this is the code I am sending u can use then for Uploading data from excel to sap.
    DATA: lv_filename TYPE rlgrap-filename.
    FIELD-SYMBOLS : <fs>.
    DATA : l_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA : l_index TYPE i.
    PARAMETERS : startcol TYPE i ,
          startrow TYPE i ,
          endcol TYPE i ,
          endrow TYPE i .
    PARAMETERS: p_flnam LIKE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_flnam.
      CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       program_name        = sy-repid
      FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_flnam .
      MOVE p_flnam TO lv_filename.
    Uploading the flat file from the desktop
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                      = lv_filename
          i_begin_col                   = startcol
          i_begin_row                   = startrow
          i_end_col                     = endcol
          i_end_row                     = endrow
        TABLES
          intern                        = l_intern
    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.
      SORT l_intern BY row col.
      LOOP AT l_intern.
        MOVE l_intern-col TO l_index.
        ASSIGN COMPONENT l_index OF STRUCTURE itab TO <fs>.
        MOVE l_intern-value TO <fs>.
        AT END OF row.
          APPEND itab.
          CLEAR itab.
        ENDAT.
      ENDLOOP.
    I hope it will help u.
    Regards
    Nayan

Maybe you are looking for

  • How to use webservices in blackberry 8800 device using jde4.2.1

    Hi All, I develop mobile webservice applications in Java ME. Nowadays i am working on porting of an Application named "Newstouch". I am having problem in running it on JDE version 4.2.1. I successfully installed the JDE 4.2.1 with JDK 1.5. When I bui

  • How to enable SSL in order to access web appln. deployed in CE using https?

    Hi, I am new to Netweaver and this forum. Not sure if I am posting my question in right forum category. Please let me know otherwise. Question - I would like to know how to enable SSL in order to access the deployed web application in Netweaver envir

  • Magic Mouse not working correctly??

    I just installed the new Mountain Lion OS and now my Magic Mouse does not work correctly. First after I log in, I have to turn the mouse off and on then then it will move. When I goto the options menu for the mouse none of the addtional features are

  • How can I ensure that Adobe Encode will find the files Adobe Premier creates

    I can't export  video audio sequence. I invoke the "Export" function and Adobe Encoder starts. When I click on the "Start Queue" button the Adobe Encoder fails and gives the following message. - Source File: C:\Users\stan\AppData\Local\Temp\road walk

  • Can you torrent the Apple Hardware test?

    I'm having frequent Kernel Panics and I need to check the hardware in my system. I don't remember if my system ever came with an Apple Hardware test disc. Do you think Apple would frown on torrenting an ISO of the Hardware test? If not, is there anyb