Data Upload into SAP from Microsoft Excel

Hi Guys: I created a function module from a BDC program and made it RFC enabled. When I execute this in SAP, it works fine and creates a customer. But when I try to trigger it from Excel, it gives me the error “Object Variable or With Block Variable not set”.  Please HELP!...
Here is my VB code
Option Explicit
' Declaration for the necessary objects
Dim objBAPICortrol, objConnection, objCreateCustomer, objAcctGr, objCoCode, objReturn As Object
Dim objSalesOrg, objDistCh, objDiv, objName, objStreet, objPostalCode, objCity, objRegion, objCountry As Object
Dim objCountycode, objCityCode, objReconAcnt, objPaymentHist, objCustPrPro, objCustStGrp, objIncoTerms, objSDPayTerms, objAcntAssGrp, objTaxClass As Object
Dim vLastRow, vRows As Integer
Private Sub CommandButton2_Click()
' Create an Email in Outlook
Application.Dialogs(xlDialogSendMail).Show
End Sub
Private Sub CommandButton3_Click()
' Getting the last filled Row in Column A
vLastRow = Cells(Rows.Count, "A").End(xlUp).Row
' Setting the necessary variables for R/3 connection
Set objBAPICortrol = CreateObject("SAP.Functions")
Set objConnection = objBAPICortrol.connection
' Establish a connection
If objConnection.Logon(0, False) Then
    MsgBox "Connection Established"
End If
On Error Resume Next
' Assign the Parameters
Set objCreateCustomer = objBAPICortrol.Add("Z_RFC_CUSTOMER_CREATE_XLS")
Set objAcctGr = objCreateCustomer.Exports("KTOKD_005")
Set objCoCode = objCreateCustomer.Exports("BUKRS_001")
Set objSalesOrg = objCreateCustomer.Exports("VKORG_002")
Set objDistCh = objCreateCustomer.Exports("VTWEG_003")
Set objDiv = objCreateCustomer.Exports("SPART_004")
Set objName = objCreateCustomer.Exports("NAME1_006")
Set objStreet = objCreateCustomer.Exports("STRAS_007")
'Set objHouseNumber = objCreateCustomer.Exports("House Number")
Set objPostalCode = objCreateCustomer.Exports("PSTLZ_009")
Set objCity = objCreateCustomer.Exports("ORT01_008")
Set objRegion = objCreateCustomer.Exports("REGIO_011")
Set objCountry = objCreateCustomer.Exports("LAND1_010")
Set objCountycode = objCreateCustomer.Exports("COUNC_013")
'Set objPhone = objCreateCustomer.Exports("Phone")
'Set objContact = objCreateCustomer.Exports("Contact")
'Set objFax = objCreateCustomer.Exports("Fax")
'Set objEmail = objCreateCustomer.Exports("Email")
'Set objDirections = objCreateCustomer.Exports("Directions")
Set objCityCode = objCreateCustomer.Exports("CITYC_014")
Set objReconAcnt = objCreateCustomer.Exports("AKONT_015")
Set objPaymentHist = objCreateCustomer.Exports("XZVER_017")
Set objCustPrPro = objCreateCustomer.Exports("KALKS_019")
Set objCustStGrp = objCreateCustomer.Exports("VERSG_020")
Set objIncoTerms = objCreateCustomer.Exports("INCO1_021")
Set objSDPayTerms = objCreateCustomer.Exports("ZTERM_023")
Set objAcntAssGrp = objCreateCustomer.Exports("KTGRD_024")
Set objTaxClass = objCreateCustomer.Exports("TAXKD_01_025")
' Now looping through all values create customer
' The data begin row is set to 2
For vRows = 2 To vLastRow
' Set the Parameter Values
objAcctGr.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 1).Value
objCoCode.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 2).Value
objSalesOrg.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 3).Value
objDistCh.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 4).Value
objDiv.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 5).Value
objName.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 6).Value
objStreet.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 7).Value
'objHouseNumber.value = ThisWorkbook.ActiveSheet.Cells(vRows, 8).Value
objPostalCode.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 9).Value
objCity.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 10).Value
objRegion.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 11).Value
objCountry.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 12).Value
objCountycode.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 13).Value
'objPhone.value = ThisWorkbook.ActiveSheet.Cells(vRows, 14).Value
'objContact.value = ThisWorkbook.ActiveSheet.Cells(vRows, 15).Value
'objFax.value = ThisWorkbook.ActiveSheet.Cells(vRows, 16).Value
'objEmail.value = ThisWorkbook.ActiveSheet.Cells(vRows, 17).Value
'objDirections.value = ThisWorkbook.ActiveSheet.Cells(vRows, 18).Value
objCityCode.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 19).Value
objReconAcnt.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 20).Value
objPaymentHist.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 21).Value
objCustPrPro.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 22).Value
objCustStGrp.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 23).Value
objIncoTerms.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 24).Value
objSDPayTerms.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 25).Value
objAcntAssGrp.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 26).Value
objTaxClass.Value = ThisWorkbook.ActiveSheet.Cells(vRows, 27).Value
' Function call
objCreateCustomer.call
' Get return parameters & display in excel
Set objReturn = objCreateCustomer.Imports("RETURN")
ActiveSheet.Cells((vLastRow + vRows), 1) = objReturn.Value("MESSAGE")
' Error handling
If Err Then
    MsgBox Err.Description
End If
Next vRows
End Sub

Hello,
Whatz impossible ??
Yes you can export the data from excel to SAP using VBA, but you need to create fome RFC in SAP as well that will handle the data you will send.
1. Create a RFC function in R/3 that will read a file from specific location and perform the respective transaction.
2. Create your excel file with respective file format and call the RFC function in SAP passing the parameters as file name and other required details.
3. SAP coding for RFC will be a single time activity and then onwads you can just create excel file for upload and use VBA code to initiate the RFC call.
Hope this make some sence. Tell me if you have more queries.
Regards,
Vishal
Reward points.. if helpful

Similar Messages

  • Mass Data upload in SAP from 3rd party system

    Hi Experts.
    Can anyone help me how to do mass data upload in SAP. Actually, when any new joining is done, a form is being filled by employee(joining form), and that data is finally updated in SAP manually using various infotypes. Now, i m planning to make that form available in webpage. The employee will go to the webpage, fill the data , also the HR will fill the required fields, and once the form is complete, the data will get updated in SAP, in resp. infotypes. Like personal details in infotye 2, address in infotype 6, bank details in 9 and so on, in a single shot. Is there any BAPI or something like that, using which this can be achieved.
    Thnx
    S Kumar

    You can try BAPI_BANK_CREATE for IT0009, BAPI_ADDRESSEMP_CREATE for IT0006 and BAPI_PERSDATA_CREATE for IT0002. Otherwise, you can also use FM HR_MAINTAIN_MASTERDATA to create any infotype.
    Have a look also at the Life and Work Events functionality in SAP Portal (http://help.sap.com/erp2005_ehp_04/helpdata/EN/f6/263359f8c14ef98384ae7a2becd156/frameset.htm)

  • Master data upload into SAP system

    Hello,
    I want to know if there is any standard method to upload material master, customer master, vendor master and finance master data into SAP system.
    I am not referring to LSMW's, BDC's and using BAPI's. I am aware of standard programs like RMDATIND for material master upload, RFBIDE00 for customer master upload and RFBIKR00 for vendor master upload. But these are using direct input method and SAP recommends this only for testing purpose. I am not sure if this could be really used in actual live scenarios.
    From some other posts in the forum, I came to know about some transactions like BDLR, SXDB and BMVO. Can some one tell me how to use these T.Codes?
    If some one has any detailed documentation on these T.codes or in general standard master data upload techniques please send it to [email protected]
    Thanks in advance,
    CMV

    Hi,
    Define the following attributes, using the F4 input help and F1 field help:
    Report
    Name of a registered program for this program type
    Variant
    You can only specify a variant with programs that are started directly.
    With direct input, data from the data transfer file undergoes the same checks as with the online transaction and is then transferred directly into the SAP System. The database is updated directly with the transferred data.
    For the documentation of other transactions please refer the correponding program documentation..which is more helpful,
    <b>Reward points if helpful,</b>
    Regards,
    jinesh

  • How to upload Sales Orders into B1 from an excel file?

    Hi,
      I'm a new comer. I'm looking for a program of uploading Sales Orders into B1 from an excel file. Where can I find a reference book for it? Or I appreciate if someone could offer a program sample.
      Thanks
      ZAP

    Hello ZAP.
    I do not have such code, but i this link /people/janos.nagy/blog/2010/01/25/exporting--importing-authorization-using-ms-excel-in-sap-b1 you can find an excel example about authorization, and using Single Sign On (SAP B1 must have run with excel)
    The method is similar, you can run any DI API operation from excel.
    Here is an example to add a sales order
    Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
            oDoc.CardCode = CUSTOMER_CODE
            oDoc.DocDate = Today
            oDoc.DocDueDate = Today
            oDoc.Lines.SetCurrentLine(0)
            oDoc.Lines.ItemCode = ITEMCODE
            oDoc.Lines.Quantity = QTY
            oDoc.Lines.UnitPrice = PRICE
            If oDoc.Add <> 0 Then
                MsgBox("Error " + oCompany.GetLastErrorDescription())
            Else
                MsgBox("SAles order added")
            End If
    You can repeat the setcurrentline section as many time as lines you have in the SO:
    Regards,
    J.
    Ps: Reference: SDK help and sample programs, which included in every patch.
    Edited by: János Nagy on Feb 10, 2010 9:50 AM

  • Data load into SAP ECC from Non SAP system

    Hi Experts,
    I am very new to BODS and I have want to load historical data from non SAP source system  into SAP R/3 tables like VBAK,VBAP using BODS, Can you please provide steps/documents or guidelines on how to achieve this.
    Regards,
    Monil

    Hi
    In order to load into SAP you have the following options
    1. Use IDocs. There are several standard IDocs in ECC for specific objects (MATMAS for materials, DEBMAS for customers, etc., ) You can generate and send IDocs as messages to the SAP Target using BODS.
    2. Use LSMW programs to load into SAP Target. These programs will require input files generated in specific layouts generated using BODS.
    3. Direct Input - The direct input method is to write ABAP programs targetting on specific tables. This approach is very complex and hence a lot of thought process needs to be applied.
    The OSS Notes supplied in previous messages are all excellent guidance to steer you in the right direction on the choice of load, etc.,
    However, the data load into SAP needs to be object specific. So targetting merely the sales tables will not help as the sales document data held in VBAK and VBAP tables you mentioned are related to Articles. These tables will hold sales document data for already created articles. So if you want to specifically target these tables, then you may need to prepare an LSMW program for the purpose.
    To answer your question on whether it is possible to load objects like Materials, customers, vendors etc using BODS, it is yes you can.
    Below is a standard list of IDocs that you can use for this purpose to load into SAP ECC system from a non SAP system.
    Customer Master - DEBMAS
    Article Master - ARTMAS
    Material Master - MATMAS
    Vendor Master - CREMAS
    Purchase Info Records (PIR) - INFREC
    The list is endless.........
    In order to achieve this, you will need to get the functional design consultants to provide ETL mapping for the legacy data to IDoc target schema and fields (better to ahve sa tech table names and fields too). You should then prepare the data after putting it through the standard check table validations for each object along with any business specific conversion rules and validations applied. Having prepared this data, you can either generate flat file output for load into SAP using LSMW programs or generate IDoc messages to the target SAPsystem.
    If you are going to post IDocs directly into SAP target using BODS, you will need to create a partner profile for BODS to send IDocs and define the IDocs you need as inbound IDocs. There are few more setings like RFC connectivity, authorizations etc, in order for BODS to successfully send IDocs into the SAP Target.
    Do let me know if you need more info on any specific queries or issues you may encounter.
    kind regards
    Raghu

  • Importing data from Microsoft excel file to Oracle Database with Multiple Data Tables. Need expert advice and guidance

    I posted a query on Importing data from Microsoft Excel to Oracle Database (Multiple Data Tables). I got some answer and reference from the forum.
    I presented to my Oracle consultant and representative from Oracle Malaysia. They said impossible. I do not believe what they said. I do believe can be done.
    Can someone help or direct me to an expert that can help me on this

    e90f478a-c529-4c48-b189-51eebeaed477 wrote:
    I posted a query on Importing data from Microsoft Excel to Oracle Database (Multiple Data Tables). I got some answer and reference from the forum.
    I presented to my Oracle consultant and representative from Oracle Malaysia. They said impossible. I do not believe what they said. I do believe can be done.
    Can someone help or direct me to an expert that can help me on this
    We don't know the "query on Importing data from Microsoft Excel to Oracle Database (Multiple Data Tables). "
    We don't know where you posted said query.
    We don't know what "some answer and reference" you received "from the forum."
    We don't know what it was that your "Oracle consultant and representative from Oracle Malaysia" said was "impossible".
    So on what basis are we supposed to "help or direct" to "to an expert that can help "?

  • Auto Expand Html table when we paster data from Microsoft Excel sheet

    hi,
    I need copied data to my Html table.
    Actual requirement is like that when i copy selected rows with selected columns from Microsoft excel sheet and press "ctlr v" on my jsp page then table on jsp must be auto expand as data in excel sheet.
    Take an example.
    I copy 4 rows with 3 columns from excel sheet.
    I have JSP page with 1 row and 3 columns.
    when i press "ctrl v" on first cell of my jsp table then table should be auto expand to accommodate 4 rows of excel sheet.
    here i have some of the code which is near to this, this code just copy past only one row, but i need multiple rows.
    If need then please refer below code and if possible then give me the solution to auto expand HTML table on JSP
    Code to copy paste cell in to HTML Table
    <form>
    <table>
    <tr>
    <td><input type="text" name="t1_0" onchange="formatCells(this.value,'t1')"></td>
    <td><input type="text" name="t1_1"></td>
    <td><input type="text" name="t1_2"></td>
    <td><input type="text" name="t1_3"></td>
    <td><input type="text" name="t1_4"></td>
    </tr>
    <tr>
    <td><input type="text" name="t2_0" onchange="formatCells(this.value,'t2')"></td>
    <td><input type="text" name="t2_1"></td>
    <td><input type="text" name="t2_2"></td>
    <td><input type="text" name="t2_3"></td>
    <td><input type="text" name="t2_4"></td>
    </tr>
    </table>
    </form>
    <script type="text/javascript">
    function formatCells(xls,group){
    var arrGroup = xls.split(/\t/gi);
    for(var i=0;i<arrGroup.length;i++){
    document.forms[0].elements[group + "_" + i].value = arrGroup;
    </script>
    Thanks
    Chintan Patel

    Hi Ross,
    >> In our testing environment using both Excel 2010 and 2013 this file is imported successfully, so we cannot replicate.
    I suspect it is caused by the difference of web server security settings.
    KB: Error message when you use Web query to a secure Web page (HTTPS://) in Excel: "Unable to open"
    Hope it will help.
    By the way, this forum is mainly for discussing questions about Office Development (VSTO, VBA and Apps for Office .etc.). For Office products feature specific questions, you could consider posting them on
    Office IT Pro forum or Microsoft Office Community.
    Regards,
    Jeffrey
    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.

  • Extracting data from Microsoft Excel spreadsheet

    Hi,
    I am currently developing an application that requires to extract data from Microsoft Excel spreadsheet. Is that possible to archieve it?
    If it is possible,your precious guidience will be much appreciated.
    Thank you.

    There are several approaches.
    1) Export the data from the Excell in "CSV" format, which is simple enough to read as an ordinary text file.
    2) Use the open source POI package, which reads and writes XSL files (amongst other popular formats).
    3) Use the JDBC/ODBC bridge and the Windows ODBC driver which allows and Excell file to be treated as a database. (More details in above reference).
    4) Use another open source package to connect to Excell via the COM+ interface, and access data therein.
    Personally I favour the POI package.

  • Create a table in SQL Server, Export tables from Microsoft Excel to Microsoft SQL Server, Populate the created table

    Hello team,
    I have a project that I need to do, what is the best approach for each step?
    1- I have to create a table in Microsoft SQL Server.
    2- I have to import data/ tables from Microsoft Excel or Access to Microsoft SQL Server. Should I use Microsoft Visual Studio to move data from Excel or Access?
    3-I should populate the created table with the data from the exported data.
    4-How should I add the second and third imported table to the first table? Should I use union query?
    After I learn these, I will bring up the code to make sure what I do is right.
    Thanks for all,
    Guity
    GGGGGNNNNN

    Hello Naomi,
    I have imported all the tables into SQL Server,
    I created a table:
    CREATE
    TABLE dbo.Orders
    Now I want to populate this table with the values from imported tables, will this code take care of this task?
    INSERT INTO dbo.Orders(OrderId, OrderDate)
    SELECT OrderId, OrderDate
    FROM Sales.Orders
    UNION
    SELECT OrderId, OrderDate
    FROM Sales.Orders1
    Union
    SELECT OrderId, OrderDate
    FROM Sales.Orders2
    If not, what is the code?
    Please advise me.
    GGGGGNNNNN
    GGGGGNNNNN

  • Import data Automatically into SAP

    Hi all,
    Is is possible to import data Automatically in SAP?
    For Ex: if the client having online filling form (through website) is is possible to upload data directly into SAP?
    one getting the alert or approval they will add the document.
    Regards
    Anish

    Hi Anish,
    This can be done through scheduled DTW job.
    Thanks,
    Gordon

  • DATA UPLOADING IN SAP SYSTEM

    What is the meaning of data uploading in SAP system?Which TCode is used and how it is done?

    Data Uploading : This is uploadig the master datas like material master,BOM,Routing etc from a legacy system or new created in uploadale format.
    Then using the uploading tools like SCAT,LSMW,BDC ETC the datas would be uploaded.
    When you first set up SAP landscape the system will not have any datas and configuration it will be a plain box.
    So configuration has to be done by the consultants and later all the master datas,static and dyanamic datas etc has to be uploaded to start working on SAP

  • Mass data load into SAP R/3 - with XI?

    Hi guys!
    I have an issue - mass data migration into SAP R/3. Is XI a good solution? It will be about 60GB of data. Or is there a better way of this data load?
    Thanx a lot!
    Olian

    hi,
    SAP doesn't recomment using XI for mass data migration
    and 60 Gb is certainly too much
    use LSMW for that purpose
    Regards,
    michal

  • Importing development class into SAP from out site

    Hi Guys,
    I am integrating SAP-GIS Using Smallworld business integrator 4 for SAP.
    In the doumentaion they asked to import
    K900363.DEV
    D900363.DEV
    R900363.DEV
    into SAP from SBI4 with TR
    All development classes are located in one single transport request:
    DEVK900363.
    can any body tell me what is the procedure to do in SAP.
    how to import into SAP Development class?
    thanks in advance.
    rgdasari

    Dear Prasada,
      The document what we got with SBI4(integrator for SAP and Smallworld)is giving below. full description giving below.I am a ABAP with BAPI Consultant.I don't have BASIS knowledge.if possible pls send me in detail where we need to which TRCOD we need import those .dev files and how to create ne Dev clall with Given TR requerst..ect..
    Importing the Business Integrator source files You import the Business Integrator sources for SAP as transport files. To transport development objects from one SAP system to another, you create a Request. Different kinds of requests exist. Change Requests usually transport
    changes from one known system into another in a known Target Transport Layer. This is the usual method in an SAP environment in which you have a development system, a quality system and a production system. For the Business Integrator SAP sources, Transport of Copies is used. All objects from the Business Integrator are included in the development classes ZPLUG, ZPL_DDIC, and ZPLUG_EXT. They are packed in one single transport file. Ask your SAP system administrator to import the files into the SAP environment.When you import copies into different systems, in the development class, the properties TRANSPORTLAYER and HOMESYSTEM do not change. You must change them manually using transaction SE03 (Transport Organiser Tools). Select CHANGE OBJECT CATALOG ENTRIES and select R3TR DEVC xxx (xxx stands for the development class, for example, ZPLUG). Press F8 to change the TransportLayer, the owner, and the home system of the development class. Repeat this for all three
    development classes (ZPLUG, ZPL_DDIC and ZPLUG_EXT).

  • Regarding Upload of data into SAP from Application server using DATA SETS

    Hi all,
    I have a problem when uploading data that is application server [.txt file] into SAP using OPEN DATA SET,READ DATA SET & CLOSE DATA SET it is now going to dump. The file is actually splits the fields by using Tab Delimiter.  
    During uploading some junk values are coming with '#' so it going to dump and giving follow type of error.
    Runtime Errors         CONVT_NO_NUMBER          
    Exception              CX_SY_CONVERSION_NO_NUMBER
    Unable to interpret "#0#0#0#0#0#0#0#" as a number.
    Can any one solve the above issue as i need it urgently.
    Thanks in advance.
    Thanks & Regards,
    Rayeezuddin.

    Hi Hielman,
    Thnaks for that reply and for effort you are putting to solve my issue.
    I had done the same thing what u have posted prior to your reply but still i am getting dump.
    FORM f_get_legacy_data .
      DATA: l_tab type xstring,
            l_tab1(1) type c,
            s type x.
      move '23' to l_tab.
      move l_tab to l_tab1.
    OPEN DATASET v_pfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      OPEN DATASET v_pfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc <> 0.
       MESSAGE text-207 TYPE c_e.
    ELSE.
      DO.
        CLEAR wa_input1.
       READ DATASET v_pfile INTO wa_input1.
        READ DATASET v_pfile INTO wa_read.
        IF sy-subrc EQ 0.
          move wa_read to i_txt-txt.
          append i_txt.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      s = '09'.
      loop at i_txt.
       move i_txt-txt+10(1) to l_tab1.
       move '#' to l_tab1.
       split i_txt-txt at s into wa_input1-vbeln wa_input1-posnr
        split i_txt-txt at '#' into wa_input1-vbeln wa_input1-posnr
                                       wa_input1-per0bal wa_input1-per1val
                                       wa_input1-per2val wa_input1-per3val
                                       wa_input1-per4val wa_input1-per5val
                                       wa_input1-per6val wa_input1-per7val
                                       wa_input1-per8val wa_input1-per9val
                                       wa_input1-per10val wa_input1-per11val
                                       wa_input1-per12val.
        APPEND wa_input1 TO i_input1.
        CLEAR wa_input1.
      endloop.
    ENDIF.
      CLOSE DATASET v_pfile.
      IF i_input1[] IS INITIAL.
    If there is no data in the legacy file or if the structure of the
    legacy data does not match with that of internal table error message
    need to be displayed.
        MESSAGE text-211 TYPE c_e.
    *&--begin of change--
      ELSE.
        CLEAR: wa_input, wa_input1.
        LOOP AT i_input1 INTO wa_input1.
         MOVE wa_input1 TO wa_input.
          MOVE: wa_input1-vbeln TO wa_input-vbeln,
                wa_input1-posnr TO wa_input-posnr,
                wa_input1-per0bal TO wa_input-per0bal,
                wa_input1-per1val TO wa_input-per1val,
                wa_input1-per2val TO wa_input-per2val,
                wa_input1-per3val TO wa_input-per3val,
                wa_input1-per4val TO wa_input-per4val,
                wa_input1-per5val TO wa_input-per5val,
                wa_input1-per6val TO wa_input-per6val,
                wa_input1-per7val TO wa_input-per7val,
                wa_input1-per8val TO wa_input-per8val,
                wa_input1-per9val TO wa_input-per9val,
                wa_input1-per10val TO wa_input-per10val,
                wa_input1-per11val TO wa_input-per11val,
                wa_input1-per12val TO wa_input-per12val.
          APPEND wa_input TO i_input.
          CLEAR: wa_input, wa_input1.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " GET_LEGACY_DATA
    When i am giving input as
    Directory  /pw/data/erp/D5S/fi/up
    Name: Backlog1616_D1S.txt
    BKCOPO1           BKSOI1        1000.00                100.00                 -200.00                0                      0                      0                      0                      0                      0                      0
    BKSOPO2           BKSOI2        2222.22                0                      300                    0                      0                      0                      0                      0                      0                      0
    BKSOPO3           BKSOI3        -3000                  400                    0                      0                      0                      0                      0                      0                      0                      0
    BKSOPO4                         4000.55                500                    600                    0                      0                      0                      0                      0                      0                      0
    0040000000        000010        -100                   -110                   -110                   0                      0                      -600                   0                      0                      0                      0
    0040000001        000010        -110                   -110                   0                      0                      0                      -610                   0                      0                      0                      0
    I am getting i_input internal table populated as follows at the end of that subroutine.
    After appending [APPEND wa_input TO i_input].
    BKCOPO1#BK|000000|            0.00 |            0.00 |            0.00    |
    BKSOPO2#BK|000000|            0.00 |            0.00 |            0.00    |
    BKCOPO3#BK|000000|            0.00 |            0.00 |            0.00    |
    BKCOPO4##4|000000|            0.00 |            0.00 |            0.00    |
    0040000000|000000|            0.00 |            0.00 |            0.00    |
    0040000001|000000|            0.00 |            0.00 |            0.00    |
    And output is showing erronious records: 6
    No entries inserted.
    Can you solve this issue.

  • Data extraction into sap table  from legacy oracle database

    Hello All,
        I have a scenario where I have two different software systems (SAP and xyz systems), where a intermediate table will be created in between the two systems that is shared. Data will be updated by the xyz systems into this shared table. Now, my questions regarding this shared table.
       1) Can we write some program or something to get the data from shared table to update the SAP?
       2) If possible send me the suggestions
       3) Please also send me the sample code to get the data from the shared table
    Thanks in advance,
      SDN powered

    this shared table should be compatiable to sap fields...write code to fetch data from this table and assign data to appropriate fields in SAP and insert the data into sap.
    1. Push mechanism
    Write a RFC on SAP side to insert entries into the table.
    Call the RFC from xyz application passing the data you want to insert.
    2. Pull mechanism
    Write a ABAP Program, where you can somehow read the data of the xyz application and insert data into the table.
    3. Flat file
    Dump the data from xyz application into the file.
    Write a ABAP program to read the file and update the table.

Maybe you are looking for

  • Ragitt01 fixed assets /function module

    Hello Anybody knows maybe the FM which returns the same data like the module RAGITT01, I must read assets in my program but without logical DB logic so far I run this report in my program as BI, but it causes long performance. Is there any FM that si

  • 10.4.6 Causes photobooth Flicker

    Just posted further down the page. I just installed 10.4.6 and when I launch photo booth the camera flickers like it is adjusting to the light--never used to do that at all. I also have the effects page slow down to slow motion when I click on it. **

  • [solved] gpg lsign unresponsive

    [root@KRISHNA san2ban]# # pacman-key --edit-key 0x6AC6A4C2 [root@KRISHNA san2ban]# gpg>lsign ^C gpg: Interrupt caught ... exiting [root@KRISHNA san2ban]# # pacman-key --init [root@KRISHNA san2ban]# # pacman-key --edit-key 0x824B18E8 [root@KRISHNA san

  • DB2 change the database recovery mode

    Hi Friends, We are doing an upgrade, in the process will be necessary to change the DB recovery mode. Database is DB2 9.5 and the platform is Unix (AIX). I wold like to clarify the process of change the recovery mode, I underestand that it is to swit

  • My lock button is broken. How long would it take to get that fixed?

    The screen lock button is broken so I can no longer take screen shots or lock my phone. Would I have to send my phone away to get this fixed and how long would it take? Also do I need to go to an apple store or can I take it to the verizon store that