Error while uploading data to ztable from excel file

Hi,
I have a requirement where i have to upload data from excel file to ztable.I have used the fm 'ALSM_EXCEL_TO_INTERNAL_TABLE' for reading the excel file.After reading the excel file i have used INSERT zrb_hdr from table t_zrb_hdr for updating the ztable with data .
here it is giving error as the data base table zrb_hdr and the internal table t_zrb_hdr should be declared of same type .
I got this error b'coz i have changed the date and time fields in t_zrb_hdr table to char type.so the structure of zrb_hdr and t_zrb_hdr are not same.If i don't change the date and time fields,in the o/p i am not getting proper date and time formats.
now how can i upload data into ztable?

Hi,
Try this.
Data: itab type standard table of ztable,
         wa_itab type ztable.
loop at t_zrb_hdr into wa_t_zrb_hdr.
   wa_itab-date = wa_t_zrb_hdr-date.
   wa_itab-time = wa_t_zrb_hdr-time.
   like  move all the fiedl to wa_itab...........
   append itab with wa_itab.
Endloop.
now insert the records from itab to the database table ztable.
Thanks,
Muthu.

Similar Messages

  • Random Records are being skipped while uploading data in PSA from CSV File

    Hi Experts,
    I am facing issue in data uploading in PSA through CSV file, Random Records are being skipped while uploading data in PSA.
    First Load
    We have flat file (.txt in CSV format), which contains 380240 Records.
    We are uploading the flat file data into PSA from Application Server. But it uploads Only 380235 records, 5 Records are being skipped.
    Second Load
    We have re-generated same file next day, which contains same No of Records (380240), but this time it uploads Only 380233 records, 7 Records are being skipped.
    We found 1 skipped record (based on key columns combination, by cross verifying from source and PSA table) from First load. But same records (combination of key column) is available in second load. It means same records are not being skipped every time.
    Earlier (5 months ago) , We have loaded 641190 Records from flat file in same PSA and all records (641190) were uploaded successfully.
    There is no change is Source, PSA and flat file structure.
    Thanks & Regards
    Bijendra

    Hi Bijendra,
        Please check in the file if at the begining if it has got any excape sign then that record may be skipped so the records may be mssing
    Please check the excape sign like ; if they are present at the beginign that recor entirely will be skipped.
    Regards
    vamsi

  • DB Connect Load - "Unknow error while uploading data from the DB Table"

    Hi Experts,
    We have our BI7 system connected to Oracle DB based third party tool. The loads are performing quite well in DEV environment.
    I would like to know, how we transport DB Connect datasources to Quality systems? Any different process to be followed for DB Connect datasources?
    At present the connections between BI Quality and the third party quality systems are established. We transported the DataSource from BI DEV system to BI quality system, but on trigerring an infopackage we are not able to perform loads. It prompts - "Unknow error while uploading data from the DB Table".
    Also on comparing the DataSources in DEV system and Quality system there are no fields in "Proposal" tab of datasource in Quality system. Also I cannot change or activate Datasource in Quality system as we dont have change access in quality.
    Please advice.
    Thanks,
    Abhijit

    Hi,
    Sorry for bumping an old thread ....
    Did this issue get ever get resolved?
    I am facing the same one. The loads work successfully in Dev. The transport for DBConnect DS also moved in successfully.
    One strange this is that DB User for dev did not automatically change to db user from quality when I transported the DBConnect datasource. DBCon DS still shows me the DB User from Dev in Quality system
    I get "Unknown Error" whenever I trigger the data package.
    Advait

  • How to update Ztable from Excel file and how to check conditions ,

    HI this uday,
    pls help me how can i update Ztable from Excel file and how to check conditions .
    regards
    uday
    Moderator message: please (re)search yourself before asking.
    Edited by: Thomas Zloch on Jul 13, 2010 12:00 PM

    Hi
    Use Fm : ALSM_EXCEL_TO_INTERNAL_TABLE.
    L_INTERN : internal table with your fields .
    make sure that the fields in the Excel should be formatted (as numeric , characher ) depending upon the data types .
    LOOP AT L_INTERN INTO WA_LINTERN .
            MOVE WA_LINTERN-COL TO L_INDEX.
            ASSIGN COMPONENT  L_INDEX OF STRUCTURE WA_INREC TO <FS> .
            IF SY-SUBRC = 0.
              MOVE WA_LINTERN-VALUE TO <FS>.
            ENDIF.
            AT END OF  ROW .                                    "#EC *
              APPEND WA_INREC TO IT_DATA.  "
              CLEAR WA_INREC.
            ENDAT.
         ENDLOOP.
    Regards
    Swapnil

  • How to upload the invocie verify from excel file?

    How to upload the invocie verify from excel file?
    there is more items requied to input.
    refer to MIR7
    thanks

    How to upload the invocie verify from excel file?
    there is more items requied to input.
    refer to MIR7
    thanks

  • Error  while uploading data in table t_499s through BDC Prog

    Hi
    am facing problem while uploading data in table t_499s through BDC Program  , if there is more than 15 records in file its not allowing to upload kindly suggest what to do
    Thanx
    Mukesh s

    Hi,
    See if you want to update only single table, which has User maintenance allowed
    Use Modify statement.
    EX:
    LOOP AT ITAB INTO WA_TAB.
        MOVE-CORRESPONDING WA_TAB TO T499S.
        MODIFY T499S.
        CLEAR T499S.
      ENDLOOP.
    It will update the table, to check go to sm30 , and check in V_T499S.
    Rgds
    Aeda

  • ERROR while uploading data from EXCEl to sap using ALSM_EXCEL FUNCION MODULE

    Hi Experts,
    I am uploading excel data into sap suing function module ALSM_EXCEl_TO_INTERNAL_TABLE , used this funcion module in the program while running the program one blank excel sheet is opening and data is not uploading into internal table . even same blank sheet is opeining if we user
    CONVERT_EXCEL_TO_INTERNAL function module also.
    can you please tell me why this error is coming how to over come this error.
    My excel sheet data records are less then 10000.
    Thanks & regards
    kiran

    Hi Taranam,
    Use FM ALSM_EXCEL_TO_INTERNAL_TABLE.
    Regards,
    Atish

  • Reg : Error While uploading Datas from EXCEL in to SAP

    Hi Experts,
                          Please help me with code inorder to upload EXCEL File DATA in to SAP.... I tried with FM : ALSM_EXCEL_TO_INTERNAL_TABLE   &   TEXT_CONVERT_XLS_TO_SAP but exception raised like  UPLOAD_OLE for me..
    Wat to do...?
    Please help with exact data (EXCEL) and code...
    regards
    e arthi

    Hi arthi
    save you file as CSV file in excel.
    that means your file will be coma separated,
    and then use fm
    GUI_UPLOAD.
    This will solve your problem.
    Regards,
    Vijay

  • Error while uploading data from a flat file to the hierarchy

    Hi guys,
    after i upload data from a flat file to the hierarchy, i get a error message "Please select a valid info object" am loading data using PSA, having activated all external chars still get the problem..some help on this please..
    regards
    Sri

    there is o relation of infoobject name in flat file and infoobjet name at BW side.
    please check with the object in the BW and their lengths and type of the object and check your flat file weather u have the same type there,
    now check the sequence of the objects in the transfer rules  and activate them.
    there u go.

  • Getting error while uploading data  using the EXCEL( GUI_upload)

    Dear Freinds,
    I am uploading data from my excel sheet to my Custom table . I am using the below code
    call function 'GUI_UPLOAD'
    exporting
    filename = l_fn
    filetype = 'BIN' "'ASC'
    has_field_separator = 'X'
    tables
    data_tab = p_i_ins_db
    exceptions
    others = 17.
    i can see in my internal P_i_ins_db ...all the data is coming in encrypted format.
    The flat given to me is the .CSV file .
    Could any one please let me know how i can upload the data which is there in .csv file.
    regards
    syamala

    Hi Syamala,
    Before using the GUI_UPLOAD to upload the data from the excel file to the internal table,you can try usng the Function Module 'SAP_CONVERT_TO_TEX_FORMAT' or 'SAP_CONVERT_TO_CSV_FORMAT' as it helps n formatting the data.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • Error while uploading data from ODS to Cube

    Hi All,
    Will you please help out this issue.As this is a priority high issue,please reply if you know the answers.
    I am facing an error while loading the data from ODS to CUBE,the error
    is
    <b>1.Name is not in the namespace for generated BW Metaobjects
    2.Error 18 in the update</b>
    And this error is occuring only in quality server.
    Thanks,
    Ram.

    HI RAM SIVA,
    make sure that the Data source is replicated and tranfer rules r active.
    And also check whether the all transport requests r imported properly.
    hope it helps
    bhaskar

  • Getting error while uploading data to the CCM thru excel file.

    Hi
    while uploading supplier data to CCM i am getting error " The destination FXP_HTTP_ADAPTER has not been maintained! (see long text)  "  Error when sending to SAP XI; upload canceled  ".
    FXP_HTTP_ADAPTER (Production) - is not maintained in SM59 transaction.
    we have maintained FXT_HTTP_ADAPTER (TEST) in SM59 transaction.
    we want to connect to test link not production link.but it is taking production link.
    How it could pointing to production link.
    thanks,
    Prashsanth.

    Hi Prashsanth
    Please check in customizing which RFC destination is maintained for uploading catalogs.
    SPRO -> Cross Application Components -> SAP Catalog Authoring Tool -> Specify Settings for Uploading Catalogs.
    This is probably wrong.
    Regards.
    Jason

  • Runtime Error while uploading data using a BAPI

    Hi ALL,
        I am trying to upload duties for PO items using BAPI from a excel sheet.In this BAPI I am saving the data into a z table(Customizing table, maintenance only by cust., not SAP import).The data is getting saved into the table and it shows the data uploaded successfully message also,but when I scroll up I see RUN time error,althogh the data is getting saved.
            I have seen in the st22 and it shows the following information.
    Internal error: Invalid page number.                                                                               
    What happened?                                                                               
    The current ABAP program had to be terminated because the                    
    ABAP processor detected an internal system error.                            
    The current ABAP program "ZFI_UPD_BOE_UPLOAD" had to be terminated because the
    ABAP                                                                        
    processor discovered an invalid system state.                                
        My functional consultants opinion is after data getting saved it comes into me23n's  condition tab.He has done it many times.But for one PO it is not showing.
        I checked the upload program.In upload program a BAPI is written which simply takes the data from a excelsheet and saves into the z table.
      My query is whether we can show the data of a z table into standard tocde?

    Thanks Lakshman!
               I debug the program.There is no BDC used update.In this program after taking the data from excel sheet one internal table is prepared and this internal table is directly used to insert data into z table.This is the last code which executes.
      INSERT zmmpoamend FROM TABLE t_zmmpo_amend_tab.
      IF sy-subrc EQ '0'.
        MESSAGE 'Data Upload Successfully completed' TYPE 'S'.
      ELSE.
        ROLLBACK WORK.
        MESSAGE 'Data Upload failed ' TYPE 'E'.
      ENDIF.
      CLEAR t_zmmpo_amend_tab.
      REFRESH t_zmmpo_amend_tab.
         Is it possible to configure z table using SPRO tcode,such that this z tables data will go to standard table and then we can see it in the standard tcode?
    I am not sure but it's just a guess.

  • Error while uploading data!!its urgent

    Hi,
    this is vijay
    when iam uploading data(transactional data)through flatfile iam getting the error like
    error in abap program it could not be executed
    cx_sy_conversion_no_ number
    the data is not loading into psa also
    iam doing in developmentside.
    i have download the data from production and uploading into development.
    can any one explain and give some suggestions

    Hi Vijay,
    Check the Flat file structure is same as that of transfer structure!
    Also in the transfer rule if u scroll right u will find a column Conversion and it will show you check box!
    Enable the check box , activate the info source again and load the data !
    Regards
    Ram

  • Error while uploading data

    We are facing the problem while uploading forecast in APO (Base / Consensus) in each cycle.
    While incorporating some forecast corrections and uploading the consensus forecast in APO, the following error was encountered, and not able to save the data.
    "Error COM routine using application programe (return code 40,301) "
    could any one help me in this regard

    Hello SRIRAMULU CHANDU ,
    -> What SCM SP & version is on your system?
    -> What LCA build do you have on your system?
          < See in the TA /n/sapapo/om13 or /n/sapapo/om04 >
    The COM ERROR 40,301 means that the key figure became negative although      
    this is not permitted.
    Run /n/sapapo/om10 -> Returncode: 40301     => Execute
      Negative value not permitted for this key figure     
        ( om_ts_negative_kez_not_allowed )     
    < See more info by clicking on '?' >
    If you have not entered negative values for the key figure and there are no fixings at aggregate level, please open an OSS message in accordance with SAP Note 167280.
    Thank you and best regards, Natalia Khlopina

Maybe you are looking for