Uploading data from a view in legacy system to SAP

Hi,
I am developing a custom table in sap. The data in this table will be loaded from a view which exists in the clients legacy system (Oracle db).There will be no middleware for the data transfer.
How can this be done in SAP? Can anybody provide a detailed procedure to do this?
Thanks in advance !!!!

Hi
Is the Legacy system capable of calling 'BAPI' or 'RFC'.
If yes, than you can create a RFC function module and with in the function module, you can write code to populate values to ZTABLE.
When the Legacy system calls the RFC with values, your Ztable will be updated
Regards
Madhan

Similar Messages

  • Read data from R/3 to Legacy system

    hi
    1. Does SAP store its master data in logical databases?
    2. Where can i find Bapi's to read data (master data )from R/3 into legacy system?
    3. Which is better - Bapi or Idoc?
    Thanks.
    Points will be awarded.

    U need the 2 technologies ( BAPI ( interfaces inbound/outbound) + IDOC ( files data transfer )
    Instead of Idoc, you can also built your own extract ABAP in specific files
    Take a look at the 'BAPI' txn
    Hope this helps,
    Erwan

  • 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

  • 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

  • Upload data from multiple worksheets of excel file into SAP by using MIME?

    Hi all,
    I'm trying to getting the data from a multiple worksheet excel file by usin the MIME Repository.
    First of all i realizied it like [here|http://abap-explorer.blogspot.com/2008/12/upload-data-from-multiple-worksheets-of.html] in a normal ABAP Report.
    By trying to transfer the code to a WebDynpro Component, i get problems.
    With this part of code, because ActiveX is not allowed in our Webbrowser. So i have to find another solution to get the data from the excel file.
    CALL METHOD c_oi_container_control_creator=>get_container_control
    IMPORTING
    control = iref_control
    error   = iref_error
    I tried to rebuild this solution in webdynpro. But it dont works.
    So my next step was trying to Read the Excel sheet directly from MIME by getting the Content (XString).
    But there is no useful information Just a mix out of '######' and other symbols.
    By converting it into String the same problem.
    Maybe someone has an idea how to rebuild [this code|http://abap-explorer.blogspot.com/2008/12/upload-data-from-multiple-worksheets-of.html] in Webdynpro that it works correctly.
    Currently Im Using the Fileupload UI Element. All Works fine. I can Upload the Excel file to MIME Repository and i can open it from there.
    But i cant get the same clear informationen from the file, to write it later in a Database, like before without webdynpro.
    i hope someone can help me.
    Edited by: Sascha Baumann on Apr 20, 2009 4:28 PM

    You can't read the native binary Excel Format in server side ABAP.  The functions and classes that did this in Classic Dynpro used OLE Automation via the SAPGUI Control Framework to remotely control Excel to read the data.  Because in the browser you have no connection to the SAPGUI or are sandboxed inside the browser; the same functionality is not possible. 
    I would suggest that you look into saving the Excel file as a open, text format.  You might be able to use XML (although the Excel XML format can be complex) to support multiple sheets. You would have to build the logic yourself (using XSLT or the iXML parser) to process the XML format back into ABAP data.

  • In B2c - How to Pass Additional Data from UI to the Backend Systems in SAP?

    Just wondering in SAP b2c how can I set/transfer data from UI to the back end database/SAP after confirmation step?
    Edited by: Sayed Ahmed on Jul 27, 2008 6:47 AM

    Hi,
       Just use extension data methods to send the data to backend systems.
    This method is clearly mentioned in the above links.
    If you want to send the data to a new function module then follow this process.
    [How To Call Function Module in E-Commerce|https://wiki.sdn.sap.com/wiki/display/Snippets/HowToCallFunctionModuleinE-Commerce]
    and
    [How To Import and Export data to Function Module|https://wiki.sdn.sap.com/wiki/display/Snippets/HowToImportandExportdatatoFunctionModule]
    Regards,
    Sateesh Chandra

  • Upload data from ms access to sap r/3

    Dear Experts,
    I have a requirement to upload data from one ms access database tables to sap r/3.I have searched a lot in sdn  but i am able to find to upload data from sap r/3 to ms access.
    Please give me a solution.
    Thanks And Regards
    Ansuman

    Hi ansuman,
    i tried this for getting the result..
    [access to sap|http://www.sdn.sap.com/irj/scn/advancedsearch?query=uploadfrommsaccessto+sap#sdn_content_category_value_forums]

  • Reg:when i was uploading data from legacy system

    Hi All,
    it is any Include  program
    for tcode mpr1
    when i was upload the data for forecast values from
    legacy system to sap system .
    only one record is geting updated
    other records are not updateding
    i have retun logic like this
    code,,,,,,,,
    TYPES: BEGIN OF TY_FILE,
            WERKS LIKE MAPR-WERKS,
            MATNR LIKE MAPR-MATNR,
            PRWRT LIKE PROW-PRWRT,
           END OF TY_FILE.
    DATA: IT_FILE TYPE STANDARD TABLE OF TY_FILE,
          WA_FILE TYPE TY_FILE.
    DATA : IT_MARA LIKE MARA OCCURS 0 WITH HEADER LINE,
           IT_MARC LIKE MARC OCCURS 0 WITH HEADER LINE.
    DATA : LV_FILE TYPE STRING.
    LV_FILE = I_MPR1USERPAR.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
      EXPORTING
        FILENAME                = LV_FILE
        FILETYPE                = 'DAT'
        HAS_FIELD_SEPARATOR     = 'X'
      CHANGING
        DATA_TAB                = IT_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
        NOT_SUPPORTED_BY_GUI    = 17
        ERROR_NO_GUI            = 18
        OTHERS                  = 19
    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 T_ARTICLES.
        CLEAR : IT_MARA,IT_MARC.
        SELECT SINGLE * FROM MARA INTO IT_MARA  WHERE MATNR = T_ARTICLES-MATNR.
        SELECT SINGLE * FROM MARC INTO IT_MARC  WHERE MATNR = T_ARTICLES-MATNR
                                                 AND  WERKS = T_ARTICLES-WERKS.
      ENDLOOP.
    LOOP AT IT_FILE INTO WA_FILE .
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT  = WA_FILE-MATNR
        IMPORTING
          OUTPUT = WA_FILE-MATNR.
      T_FORECAST_VALUES-WERKS = WA_FILE-WERKS.
      T_FORECAST_VALUES-MATNR = WA_FILE-MATNR.
      T_FORECAST_VALUES-PERKZ = IT_MARC-PERKZ.
      T_FORECAST_VALUES-ERTAG = T_ARTICLES-PRDAT_NEW.
      T_FORECAST_VALUES-KOPRW = WA_FILE-PRWRT.
      T_FORECAST_VALUES-MEINS = IT_MARA-MEINS.
      APPEND T_FORECAST_VALUES.
      CLEAR : T_FORECAST_VALUES.
    ENDLOOP.
    thanks
    mars

    For creating/uploading the master data from legacy system to SAP we either use below options
    1. BDC (recording)
    2. BAPI
    3. ALE iDoc.
    I would sugguest you to use BAPI and there's already this post which explains few details about the BAPI:
    Problems with BAPI_PROJECT_MAINTAIN
    Regards
    Sreenivas

  • Upload data from legacy system to SAP through ALE IDOC

    Hello All,
    I have a requirement where i need to upload the data from legacy system to SAP. So i am using ALE IDOC.
    In my requirement i need to extend the Standard IDOC. I have extended the IDOC and even found the exit for the updation of the extended fields to SAP. My data would be be placed in the application server.
    Can anybody tell me how to retrieve the data and update in the tables for the extended fields.
    Could you please provide a sample program for retrieving data for IDOC.
    Thanks

    Hi,
    You can find the sample code in the following link.
    Re: calling idoc_input_creditor
    Regards
    Sajid

  • Uploading data from Legacy System to SAP (In PS Module)

    While Implementing Project system Module, Whether LSMW is applicable for uploading data from Legacy sytem. If not, then what is the method used for uploading the data from Legacy sytsem to SAP

    For creating/uploading the master data from legacy system to SAP we either use below options
    1. BDC (recording)
    2. BAPI
    3. ALE iDoc.
    I would sugguest you to use BAPI and there's already this post which explains few details about the BAPI:
    Problems with BAPI_PROJECT_MAINTAIN
    Regards
    Sreenivas

  • How to extract non-sap data (A/R Invoices from Legacy system) into SAP ICR

    Hi
    We are trying to bring A/R invoices from a legacy system into SAP ICR special ledger so that ICR tool can be used these items for intercompany reconcilliation. Could you please let's know the way to load these legacy AR invoice items into ICR data base using any function moduels.
    Regards,
    Eswar.

    Hello Eswar,
    In what form do you have these "external" open items? If they are contained in a file you should simply import the file in ICR during data selection using the File Upload functionality. There is no need to store them in a special purpose ledger first. Actually you would have to create a BADI implementation to extract the data from that special purpose ledger during data selection. Please consider using File Upload standard functionality.
    If for some reason this cannot be used you could implement a logic calling RFC enabled function module FB_ICRC_ADD_DATA_RFC which will take the open items you are supplying in your logic and push them into the ICR database. This strategy could be used to include these external open items without them being processed during data selection.
    Best regards,
    Ralph

  • How to transfer data from legacy system  to SAP

    Hi Friends,
    I would like to know the process and the steps followed to transfer data from my legacy system to SAP.
    Suppose if i have all the data in the form of Excel sheet or doc type. How can i transfer this data into SAP.
    Please explain the steps followed.
    Appreciate your help
    Anil

    Hi ,
    Conversion of legacy data into SAP can be uploaded using a standard SAP Tool called LSMW ( TCode:LSMW).
    the below link gives a brief explanation of the LSMW tool
    http://tutorialsap.com/abap/sap-lsmw-tutorial-with-steps-to-create.html
    There are various methods to upload data within LSMW. If the number of records are very high like Article Master or  Conditions for Retail the IDOC method must be used.
    Standard IDocs
    1. Article Master - ARTMAS
    2. Conditions - COND_A
    3. Source list - SRCLST
    4. Customer Master or WRF3/WRF6 tables - DEBMAS
    5. Vendor master- CREMAS
    Etc. Use transaction code WE60 to see the structure of each of the idocs. New enhancements can be done for the idocs if the required field is not available.
    Regards
    Prabhu

  • Data migration from legacy system to SAP

    hi all,
      could you please post some docs on migration from legacy system to SAP system., also the problems faced while migration and best practices in data migration
    regards
    sridharan

    Hi ,
    I require few details from you.
    1. What ETL tool you are using, If Informatica, it already have PowerConnect to connect to SAP. So you can create source and Target Structure and also you can use RFC's to send data to R/3. Else, for other ETL tools, can you prepare RFC's or any other way to send data to R/3. let me know the tool.
    2. Does R/3 contains the master data tables? If yes, then try to use LSMW for Mass upload of data to tables.
    If your client don't want to use either of these options please elaborate, what is the case.
    Regards
    Aashish Sinha

  • Upload Opening balance of G/L accounts from legacy system to SAP, and also

    Hi Gurus,
    How to upload Opening balance of G/L accounts from legacy system to SAP, and also Vendor and Customer balance.
    My Doubt is when you upload the customer balance and vendor balance will it effect the sundry debtor account and sundry creditor account if not the how will the sundry debtor account and sundry creditor account will be posted with the balance. Please send me the general entry passed for posting the same.
    What I understood is that when we are uploading the customer and vendor balances through LSMW, no entry will be passed and it will update the customer and vendor sub ledger in FBL1N and FBL5N but it will not affect the sundry debtor account and sundry creditor account.
    To give effect to sundry debtor account and sundry creditor account we need to manually pass a journal entry as follows.
    1)  Sundry debtors account A/c -
    DR
          TO clearing account A/c
    2)     clearing account A/c -
    dr
         Sundry creditor account A/c
    Please let me know whether iam correct
    Also please tell me what will be the scenario for uploading of the assets balances through LSMW.
    THANKS AND REGARDS
    MV

    Hi,
         When you uploading any data from legacy system to sap normally we will be using LSMW or BDC,thru this we will be uploading master data like G/L,vendor,Customer and asset master these are the some examples and we will upload transaction data also that is P&L Account and Balance sheet.When we do uploading data thru LSMW system will update all the values of vendor,customer and asset values as well as subsidary ledger also.No need to do manully.
    Regards,
    satya,
    FICO

  • Loan upload from legacy system to SAP

    Hi Experts,
    I have a query regarding uploading Loan from legacy system to SAP.
    We are implementing SAP HR for a client going live by 1st jun 2011. The scenario is the client has few employees who have taken loan for various reason, i have configured the same through SPRO....now my query is when i ask the client to provide me with loan data:
    1. We are running payroll from 1st April 11, should i ask the client to give me the loan amount as the current standing loan amount
    2. when i am uploading loan in 0045, should i put something in third tab payment
    Thanks for your support.
    Regards,
    Jyoti

    Hi,
    This third tab basically create a record for info type 0078(Loan Payments). If you don't have any records in 3rd tab/0078, system will not start loan recovery in payroll.
    Find the response for 2 scenarios-
    Scenario 1 & Scenario 2:
    maintain these fields in the table control of 3rd tab-
    Date(GT_PAYM-ZAHLD) - 01.04.2011....Basically payments and repayments starts date also used for interest calculation
    PmntTyp(GT_PAYM-ZAHLA) - 100(Loan payment (external)) ....Contains information on the direction and method of payment. Also control wage type generation in loan PCR and Functions
    Amount(GT_PAYM-BETRG) - Balance Amount ....The total of payment or repayment amounts which you enter here, may not exceed the amount that you have entered in the Approved loan amount field on the Basic data tab page ....For your both of  the scenariof, this amount will be same.
    Regards.
    Suman
    Edited by: suman poddar on May 22, 2011 10:28 AM

Maybe you are looking for