DataTime type shows as Timestamp(6) in BAM Database Table

Hi,
I am new in BAM,
Am facing an issue with BAM Data Object. I have two DateTime fields in DataObject. But when I look in BAM database Table,the field data type is stored as TIMESTAMP(6).
I want both the elements in DateTime format. Is there any reason why BAM stores DateTime field as TIMESTAMP(6) in Database. If this is the case how can i change the datatype back to datetime in BAM.
Please help.
Thanks.

Thanks All,
Got my answer.
I would like to ask one more question, If i create new Data Object from BAM architect, Added fields. Now if i want to add more fields or have to change any data Type of existing field.
Is there any restart required for BAM server after making the changes.
Thanks.

Similar Messages

  • How to Find the Data Type of the Field In a Database Table

    Hi Experts,
    I'm currently working on a program which needs to find out the data type of the given field in a database table. In addition to accessing DD03L directly, is there any other workaround such as function module to help me achieve this? It would be helpful if a demo example could be provided.
    Thanks a lot.

    Hi,
    Use this..
    DESCRIBE FIELD dobj  TYPE typ.
    write typ.
    type will contain the data type of the object.
    and check this thread also....
    Re: How to get datatype of fields in dynamic structures
    Cheers,
    Simha.
    Reward all the helpful answers..

  • Timestamp field in BAM dataobject

    Hi,
    There is requirement for us to find response time of a service in milliseconds. For this we need to insert two timestamp fields in BAM data object. But BAM is allowing us to include only one Timestamp field in a data object.Is there any other work-around to overcome this problem.

    Hi,
    UPMOD     Record Mode -- check there is a filed record mode which will handle the images.
    Check the help link
    http://help.sap.com/saphelp_nw70/helpdata/en/be/928f40f5767d17e10000000a1550b0/frameset.htm
    In the delta process, the DataSource transfers the record data with the new status in each case. For this reason, the data cannot be updated directly to the InfoCube. The update is only possible using the ODS object (update with MOVE).
    For safety, the delta process uses a lower interval setting of one hour (this is the default setting). In this way, the system always transfers all postings made between one hour before the last delta upload and the current time. The overlap of the first hour of a delta upload causes any records that are extracted twice to be overwritten by the after image process in the ODS object with the MOVE update. This ensures 100% data consistency in BW.
    For deltas settings
    you can make important global settings in SAP R/ in the table BWOM_SETTINGS.
    Check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/41/4b73415fb9157de10000000a155106/content.htm
    Regards
    KP

  • Type Show Hidden Characters doesn't display hidden chars, what to do?

    When I select Type > Show Hidden characters, the display does not change and the hidden characters stay hidden. Is there something additional that I need to do to see the hidden characters?

    Under View, change your Screen Mode to Normal. In any other mode, guides and hidden characters won't show.

  • FileDialog File Types show *.txt, please help.

    Hi, I have created a very basic text editor. I created a FileDialog in order to save and open files. However, what's the method or class that I can use in order to make the File Types shows the specific extension I am looking for. e.g. *.txt instead of *.* ?

    Wow, two birds one stone:
    FileDialog fileDialog = new FileDialog( this.frame, "Save", FileDialog.SAVE );
    fileDialog.setFile( "FileNameGoesHere" );
    fileDialog.show();

  • Filedialog File type shows *.*, how can I change?

    I wanna change the file type showing in FileType in FileDialog, please help.

    This code is for JFileChoser. You should be able to adapt it for your requirement.
    JFileChooser chooser = new JFileChooser();
    chooser.addChoosableFileFilter(new FileExtensionFilter("Text files", new String[] {".txt"}));
    chooser.addChoosableFileFilter(new FileExtensionFilter("SQL files", new String[] {".sql"}));
    package net.sourceforge.squirrel_sql.fw.util;
    * Copyright (C) 2001 Colin Bell
    * [email protected]
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    import java.io.File;
    public class FileExtensionFilter extends javax.swing.filechooser.FileFilter
                    implements java.io.FileFilter {
        private String _description;
        private String[] _exts;
        public FileExtensionFilter(String description, String[] exts) {
            super();
            _exts = exts;
            StringBuffer buf = new StringBuffer(description);
            buf.append(" (");
            for (int i = 0; i < _exts.length; ++i) {
                buf.append("*").append(_exts);
    if (i != (_exts.length - 1)) {
    buf.append(", ");
    buf.append(")");
    _description = buf.toString();
    public boolean accept(File file) {
    if (file.isDirectory()) {
    return true;
    String name = file.getName().toLowerCase();
    for (int i = 0; i < _exts.length; ++i) {
    if (name.endsWith(_exts[i])) {
    return true;
    return false;
    public String getDescription() {
    return _description;

  • I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1.

    I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.

    Hi ,
    In your write back XML  try the below  query insert
    INSERT INTO TABLE_XYZ (attribute1)  values (SELECT CASE  WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
    Regards
    Rajagopal

  • How to change a field of type CHAR of a database table to DATS

    Dear ABAP experts,
    I have a database table: ZLT_aztnew with fields M1, M2, K1, K2, A1, A2, P1, P2, S2, D1, D2,  STD, BES. All these fields are of type 'Character'.  except D2 which is of type DATS. The field D1 is date and is in format DD.MM.YYYY.
    I want to convert this field D1 to type DATS so that I can use a date range through 'selection option' to select other  data of other fields (M1, M2, K1, K2, A1, A2, P1, P2, S2, D1, STD, BES.) related to field D1 from the database table Zlt_aztnew.
    How should I introduce this change (CONVERSION OF D1 CHAR to DATS in the .AZT file upload code itself.
    Problem: If I define D1 as Type  DATS in database table ZLT_AZTNEW then the UPLOAD fails.
    The AZT file upload code is:
    Data  it_string   type stringtab.
    Data  lv_string    type string.
    DATA:  itab  TYPE STANDARD TABLE OF zlt_aztnew.
    DATA:  wa_tab    TYPE zlt_aztnew.
    DATA: file_str1 type string.
    Data: it_tab TYPE STANDARD TABLE OF file_table,
            lw_file LIKE LINE OF it_tab,
            gd_subrc TYPE i.
    SELECTION-SCREEN begin of block blk with frame title text-100.
      SELECTION-SCREEN SKIP 2.
        parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
        window_title = 'Select only Text File'
        default_filename = '.azt'
        multiselection = 'X'
        CHANGING
        file_table = it_tab
        rc = gd_subrc.
    READ TABLE it_tab INTO lw_file INDEX 1.
       p_file = lw_file-FILENAME.
    Start-of-Selection.
      file_str1 = P_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
      tables
        data_tab                      = it_string
    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 it_string  INTO lv_string.
    clear wa_tab.
    SPLIT lv_string AT ';' INTO  wa_tab-M2   wa_tab-k2   wa_tab-A2   wa_tab-P2  wa_tab-S2   wa_tab-D1  wa_tab-STD  wa_tab-BES.
    Append wa_tab to itab.
    Write: sy-uline(120),
              / sy-vline,
                2 wa_tab-M2,
               11 sy-vline,
               13 wa_tab-k2,
               25 sy-vline,
               27 wa_tab-A2,
               32 sy-vline,
               34 wa_tab-P2,
               39 sy-vline,
               41 wa_tab-S2,
               46 sy-vline,
               48 wa_tab-D1,
               60 sy-vline,
               62 wa_tab-STD,
               72 sy-vline,
               74 wa_tab-BES,
              120 sy-vline.
    ENDLOOP.
    DATA: Answer.
    UPDATE zlt_aztnew From Table itab.
    * INSERT ZLT_aztnew From Table itab accepting duplicate keys.
    If sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
       TITLEBAR                    = 'TITLE '
    *   DIAGNOSE_OBJECT             = ' '
        text_question               = 'Wollen Sie die vorhandenen Inhalte ändern'
       TEXT_BUTTON_1               = 'Ja'(001)
    *   ICON_BUTTON_1               = ' '
       TEXT_BUTTON_2               = 'Nein'(002)
    *   ICON_BUTTON_2               = ' '
       DEFAULT_BUTTON              = '1'
       DISPLAY_CANCEL_BUTTON       = 'X'
    *   USERDEFINED_F1_HELP         = ' '
    *   START_COLUMN                = 25
    *   START_ROW                   = 6
    *   POPUP_TYPE                  =
    *   IV_QUICKINFO_BUTTON_1       = ' '
    *   IV_QUICKINFO_BUTTON_2       = ' '
    IMPORTING
       answer                      = answer
    * TABLES
    *   PARAMETER                   =
    EXCEPTIONS
       TEXT_NOT_FOUND              = 1
       OTHERS                      = 2
    *IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    IF Answer = '1'.
    WRITE: / 'Die vorhandenen Inhalte war geändernt'.
    MODIFY zlt_aztnew From Table itab.
    ENDIF.
    ENDIF.
    TO introduce a date range and pull data from the database table Zlt_AZTNEW--> I wrote the BELOW code SEPARATELY,
    but after execution, the error I am getting is: Enter a valid Date (for example, 31.03.2014).
    TABLES:   ZLT_aztnew.
    TYPES:  Begin OF ty_AZTN,
             M2   TYPE Zlt_AZTNEW-M2,
             K2   TYPE Zlt_AZTNEW-K2,
             A2   TYPE Zlt_AZTNEW-A2,
             P2   TYPE Zlt_AZTNEW-P2,
             S2   TYPE Zlt_AZTNEW-S2,
             D1   TYPE Zlt_AZTNEW-D1,
             STD  TYPE Zlt_AZTNEW-STD,
             BES  TYPE Zlt_AZTNEW-BES,
           END OF ty_AZTN.
    DATA:   gv_datum  TYPE d.
    DATA:   it_aztn TYPE STANDARD TABLE OF ty_aztn with  header line.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
        date_external                  = zlt_aztnew-D1
    *   ACCEPT_INITIAL_DATE            =
    IMPORTING
       DATE_INTERNAL                  = gv_datum
    * EXCEPTIONS
    *   DATE_EXTERNAL_IS_INVALID       = 1
    *   OTHERS                         = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
           SELECT-OPTIONS: s_datum FOR gv_datum.
          INITIALIZATION.
            s_datum-low  = sy-datum.
            s_datum-high  = sy-datum.
            APPEND s_datum.
    ********** After this further code follows with "SELECT"  wherein I want to use the gv_datum as Where condition.
    SELECT   M2
                      K2
                      A2
                      P2
                      S2
                      D1
                      STD
                      BES
             FROM     ZLt_AZTNEW
             INTO     TABLE it_AZTN
             Where    D1 = gv_datum.
    Please provide me your valuable suggestion to correct any flaw in my code above.
    Looking forward for your reply.
    Best regards
    Chandan Kumar

    Dear Rama,
    Plz refer the following difference in naming conventions as compared to your suggestion:
    it_flat_file --> itab, (internal table for AZT fiel upload and split)
    ls_flat_file ---> wa_itab,
    Ztable --> Zlt_aztnew2,    (Dbase file)
    it_ztable ---> it_zlt_aztnew2, (internal table)
    ls_ztable --> wa_aztnew2,
    I wrote the following code but it is not working. Please also refer the attached screen shot of the database table : ZLT_AZTNEW2.
    Data  it_string   type stringtab.
    Data  lv_string   type string.
    DATA: file_str1 type string.
    Data: it_tab TYPE STANDARD TABLE OF file_table,
          lw_file LIKE LINE OF it_tab,
          gd_subrc TYPE i.
    TYPES: Begin of Ty_itab,
            M2  TYPE Char7,
            K2  TYPE Char3,
            A2  TYPE Char3,
            P2  TYPE Char3,
            S2  TYPE Char3,
            D1  TYPE Char8,
            STD TYPE Char8,
            BES TYPE Char80,
           END OF ty_itab.
    DATA: itab Type Standard Table of ty_itab,
          wa_itab Type ty_itab.
    DATA: it_zlt_aztnew2 type standard table of Zlt_aztnew2,
          wa_aztnew2     TYPE Zlt_aztnew2.
    SELECTION-SCREEN begin of block blk with frame title text-100.
      SELECTION-SCREEN SKIP 2.
        parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
        window_title = 'Select only Text File'
        default_filename = '.azt'
        multiselection = 'X'
        CHANGING
        file_table = it_tab
        rc = gd_subrc.
      READ TABLE it_tab INTO lw_file INDEX 1.
      p_file = lw_file-FILENAME.
    Start-of-Selection.
      file_str1 = P_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
      tables
        data_tab                      = it_string
    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 it_string  INTO lv_string.
      Clear wa_itab.
      SPLIT lv_string AT ';' INTO  wa_itab-M2   wa_itab-k2   wa_itab-A2   wa_itab-P2  wa_itab-S2         wa_itab-D1  wa_itab-STD  wa_itab-BES.
      append wa_itab to itab.
      Write: sy-uline(120),
              / sy-vline,
                2 wa_itab-M2,
               11 sy-vline,
               13 wa_itab-k2,
               25 sy-vline,
               27 wa_itab-A2,
               32 sy-vline,
               34 wa_itab-P2,
               39 sy-vline,
               41 wa_itab-S2,
               46 sy-vline,
               48 wa_itab-D1,
               60 sy-vline,
               62 wa_itab-STD,
               72 sy-vline,
               74 wa_itab-BES,
              120 sy-vline.
    ENDLOOP.
    LOOP at itab into wa_itab.
      CLEAR wa_aztnew2.
      wa_aztnew2-D1+0(4) = wa_itab+6(4).
      wa_aztnew2-D1+4(2) = wa_itab+3(2).
      wa_aztnew2-D1+6(2) = wa_itab+0(2).
    Append wa_aztnew2 to it_zlt_aztnew2.
    ENDLOOP.
    MODIFY Zlt_aztnew2 from table it_zlt_aztnew2.
    Looking forward for your suggestiojn.
    Regards
    Chandan

  • How to create a BAM database in enterprise version

    Hi,
    I need to configure and create a BAM database for my client in an AL Process Interaction installation. I tried to follow the documentation to create the BAM schema, but was not successful. It threw me a message telling me the Driver was not found. I did not see any documentation how to register a driver in the Process Administrator.
    Is there any specific documentation for Configuring BAM. Also I was not able to run the BAM reports in the Process Designer. Has anybody done this before?? If so any documentation of how to do that will help.
    Thanks
    Pal

    Hi Raul,
    Thanks for the information. I guess in ALIP if you choose database subtype as SQL Server(Plumtree), then you dont have to install drivers.
    Now I was able to create the BAM database. THen I installed the Fuegowarehouse service. When I start the servide I see the following error. But is there any config file where I can increase the maximum fetch size??
    THanks
    Pal
    <F> 07/07/06 13:46:51] The number of entries retrieved is larger than the maximum fetch size.
    fuego.directory.exception.FetchSizeExceededException: The number of entries retrieved is larger than the maximum fetch size.
         at fuego.directory.exception.FetchSizeExceededException.createWithList(FetchSizeExceededException.java:53)
         at fuego.directory.provider.plumtree.PlumtreeParticipantsAccessor$2.visit(PlumtreeParticipantsAccessor.java:168)
         at fuego.directory.provider.plumtree.PlumtreeParticipantsAccessor.visitAllPersons(PlumtreeParticipantsAccessor.java:662)
         at fuego.directory.provider.plumtree.PlumtreeParticipantsAccessor.fetchAllHumanParticipants(PlumtreeParticipantsAccessor.java:155)
         at fuego.directory.DirHumanParticipant.fetchAll(DirHumanParticipant.java:379)
         at fuego.directory.DirHumanParticipant.fetchAll(DirHumanParticipant.java:342)
         at fuego.analyzer.OrganizationMetadata.synchronizeParticipants(OrganizationMetadata.java:320)
         at fuego.analyzer.OrganizationMetadata.synchronize(OrganizationMetadata.java:113)
         at fuego.analyzer.UpdaterRunner.synchronizeMetadata(UpdaterRunner.java:455)
         at fuego.analyzer.UpdaterRunner.run(UpdaterRunner.java:270)
         at fuego.analyzer.UpdaterRunner.runUpdater(UpdaterRunner.java:173)
         at fuego.analyzer.service.BAMUpdaterRunnerService.run(BAMUpdaterRunnerService.java:97)
         at fuego.analyzer.service.WarehouseService$WarehouseServiceThread.runItem(WarehouseService.java:377)
         at fuego.analyzer.service.WarehouseService$WarehouseServiceThread.run(WarehouseService.java:310)
    [<S> 07/07/06 13:46:51] Updater runtime exception.
    Caused by: The number of entries retrieved is larger than the maximum fetch size.
    fuego.analyzer.UpdaterRuntimeException: Updater runtime exception.
         at fuego.analyzer.UpdaterRuntimeException.wrapException(UpdaterRuntimeException.java:85)
         at fuego.analyzer.UpdaterRunner.run(UpdaterRunner.java:278)
         at fuego.analyzer.UpdaterRunner.runUpdater(UpdaterRunner.java:173)
         at fuego.analyzer.service.BAMUpdaterRunnerService.run(BAMUpdaterRunnerService.java:97)
         at fuego.analyzer.service.WarehouseService$WarehouseServiceThread.runItem(WarehouseService.java:377)
         at fuego.analyzer.service.WarehouseService$WarehouseServiceThread.run(WarehouseService.java:310)
    Caused by: fuego.directory.exception.FetchSizeExceededException: The number of entries retrieved is larger than the maximum fetch size.
         at fuego.directory.exception.FetchSizeExceededException.createWithList(FetchSizeExceededException.java:53)
         at fuego.directory.provider.plumtree.PlumtreeParticipantsAccessor$2.visit(PlumtreeParticipantsAccessor.java:168)
         at fuego.directory.provider.plumtree.PlumtreeParticipantsAccessor.visitAllPersons(PlumtreeParticipantsAccessor.java:662)
         at fuego.directory.provider.plumtree.PlumtreeParticipantsAccessor.fetchAllHumanParticipants(PlumtreeParticipantsAccessor.java:155)
         at fuego.directory.DirHumanParticipant.fetchAll(DirHumanParticipant.java:379)
         at fuego.directory.DirHumanParticipant.fetchAll(DirHumanParticipant.java:342)
         at fuego.analyzer.OrganizationMetadata.synchronizeParticipants(OrganizationMetadata.java:320)
         at fuego.analyzer.OrganizationMetadata.synchronize(OrganizationMetadata.java:113)
         at fuego.analyzer.UpdaterRunner.synchronizeMetadata(UpdaterRunner.java:455)
         at fuego.analyzer.UpdaterRunner.run(UpdaterRunner.java:270)
         ... 4 more
    [<F> 07/07/06 14:02:11] The number of entries retrieved is larger than the maximum fetch size.

  • Inserting Timestamp into a SQL database

    I am having a problem inserting a timestamp into a Sql Database. I keep getting this error or a different on when i format the timestamp differently. In the following code the timestamp is not formated at all.
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '13'
    this is the sql statement that is executed
    insert into timesheet(IDNUM,TimeIn,TimeOut,HoursWorked) values (123 , 2005-07-15 13:20:06.062 , 2005-07-15 13:20:06.062 ,0)
    the code is as follows:
         <%
         try
                SimpleDateFormat test = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
                Timestamp stamp = new Timestamp(System.currentTimeMillis());
                java.util.Date date = new java.util.Date();
                String sql = "insert into timesheet(IDNUM,TimeIn,TimeOut,HoursWorked) values (" + session.getAttribute("IDNum") + " , " + stamp + " , " + stamp + " ,0)";
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection cnxn = DriverManager.getConnection("jdbc:odbc:EmployeeSystem");
                Statement stmt = cnxn.createStatement();
                 stmt.execute(sql);
                response.sendRedirect("employee.jsp");
         catch(Exception dberr)
             SimpleDateFormat test = new SimpleDateFormat("yyyyMMddhhmm");
             Timestamp stamp = new Timestamp(System.currentTimeMillis());
             out.println(dberr);
             out.println("insert into timesheet(IDNUM,TimeIn,TimeOut,HoursWorked) values (" + session.getAttribute("IDNum") + " , " + stamp + " , " + stamp + " ,0)");
         %>please help.
    The reason that i need the timestamps in there is that i am creating a time clock program for my school that they can put on a intranet so thier hourly employees can use instead of the current manual system they use.

    even better would be to use prepared statements and set the fields via Timestamp objects.
    String sql = "insert into timesheet(IDNUM ,TimeIn ,TimeOut ,HoursWorked ) values (?,?,?,?)";
    Statement stmt = cnxn.prepareStatement(sql);
    int idNum = (Integer)session.getAttribute("IDNum").intValue();
    Timestamp stamp = new Timestamp(System.currentTimeMillis());
    stmt.setInt(1, idNum);
    stmt.setTimeStamp(2, stamp);
    stmt.setTimeStamp(3, stamp);
    stmt.setInt(4, 0);
    stmt.execute();It makes your code much more portable, as you don't have to worry about the database having a TO_DATE function with that syntax.
    Cheers,
    evnafets

  • Creating a external content type for Read and Update data from two tables in sqlserver using sharepoint designer

    Hi
    how to create a external content type for  Read and Update data from two tables in  sqlserver using sharepoint designer 2010
    i created a bcs service using centraladministration site
    i have two tables in sqlserver
    1)Employee
    -empno
    -firstname
    -lastname
    2)EmpDepartment
    -empno
    -deptno
    -location
    i want to just create a list to display employee details from two tables
    empid firstname deptno location
    and same time update  in two tables
    adil

    When I try to create an external content type based on a view (AdventureWorks2012.vSalesPerson) - I can display the data in an external list.  When I attempt to edit it, I get an error:
    External List fails when attached to a SQL view        
    Sorry, something went wrong
    Failed to update a list item for this external list based on the Entity (External Content Type) 'SalesForce' in EntityNamespace 'http://xxxxxxxx'. Details: The query against the database caused an error.
    I can edit the view in SQL Manager, so it seems strange that it fails.
    Any advice would be greatly GREATLY appreciated. 
    Thanks,
    Randy

  • The type of the database table and work area (or internal table)...

    Hello
    I am trying to use a database and select all records from it and store them into an internal table.
    My code:
    Select * from xixi_dbcurrency into table gt_currency.
    The error:
    "The type of the database table and work area (or internal table) "GT_CURRENCY" are not Unicode-convertible . . . . . . . . . .     "
    Any suggestions?
    Thank you

    Hi Thomas,
    Thank you for your inputs above.
    But as you suggested is we use INTO CORRESPONDING FIELDS OF TABLE then it resolve the error.
    But I have below piece of code:
    DATA:    it_new_source TYPE STANDARD TABLE OF _ty_s_sc_1,
                  wa_source TYPE _ty_s_sc_1,
                  wa_new_source TYPE _ty_s_sc_1,
                  ls_target_key TYPE t_target_key.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE it_new_source
           FROM /bic/afao06pa100
           FOR ALL ENTRIES IN SOURCE_PACKAGE
           where /bic/fcckjobno = SOURCE_PACKAGE-/bic/fcckjobno
           and /bic/fcckjitid = SOURCE_PACKAGE-/bic/fcckjitid.
    But since this is reading into corresponding fields of table the data load from one DSO to other DOS is running for long more that 15 hours and still not getting completed and giving dump.
    So if I switch the search to below:
    SELECT * FROM /bic/afao06pa100
       INTO TABLE it_new_source
           FOR ALL ENTRIES IN SOURCE_PACKAGE
           where /bic/fcckjobno = SOURCE_PACKAGE-/bic/fcckjobno
           and /bic/fcckjitid = SOURCE_PACKAGE-/bic/fcckjitid.
    Then I am getting below error:E:The type of the database table and work area (or internal table) "IT_NEW_SOURCE" are not Unicode convertible.
    Can you please advice on this, as performance need to improve in start routine code.
    Thank You.

  • The type of the database table and work area are not Unicode convertible

    ***Data declaration
    TYPES : BEGIN OF t_zle_lagerplanung,
                       SEl, "stores which row user has selected
                       kdauf TYPE zle_lagerplanung-kdauf,
                       kdpos TYPE zle_lagerplanung-kdpos,
                       etenr TYPE zle_lagerplanung-etenr,
                       papiermaschine TYPE zle_lagerplanung-papiermaschine,
                       runnr TYPE zle_lagerplanung-runnr,
                       prio TYPE zle_lagerplanung-prio,
                       werk TYPE zle_lagerplanung-werk,
                       durchmesser TYPE zle_lagerplanung-durchmesser,
                       breite TYPE zle_lagerplanung-breite,
                       anzle TYPE zle_lagerplanung-anzle,
                       lgpla TYPE zle_lagerplanung-lgpla,
                       lgtyp TYPE zle_lagerplanung-lgtyp,
                       art TYPE zle_lagerplanung-art,
                       anzhoehe TYPE zle_lagerplanung-anzle,
                       fa TYPE zle_lagerplanung-fa,
    END OF t_zle_lagerplanung.
    DATA : it_zle_lagerplanung TYPE STANDARD TABLE OF t_zle_lagerplanung INITIAL SIZE 0,
                wa_zle_lagerplanung TYPE t_zle_lagerplanung.
    Here I am getting the data in internal table by using thiis select statement.
    SELECT kdauf kdpos etenr papiermaschine runnr prio werk durchmesser breite
                  anzle lgpla lgtyp art anzhoehe fa
    FROM    zle_lagerplanung INTO CORRESPONDING FIELDS OF TABLE it_zle_lagerplanung
    WHERE  kdauf IN s_kdauf
    AND       KDPOS IN s_kdpos
    AND      werk = p_werks.
    But while updating the particular field in zle_lagerplanung using this statement
    UPDATE zle_lagerplanung from table it_zle_lagerplanung.
    it is giving syntax error
    "The type of the database table and work area (or internal table)
    "IT_ZLE_LAGERPLANUNG" are not Unicode convertible. "
    Could any one help me out how to resolve this problem....
    Thanks in advance

    Dear Shayamal,
    XXX....are not Unicode convertible
    This  error comes while inserting or updating database and the fields are not matching between  data base table and structure .
    Check you fields of data base table and  "zle_lagerplanung" and struture "it_zle_lagerplanung" . There fields must match.
    thanks and regrds,
    Anup Banerjee

  • How to get the whole timestamp from a postgresql database

    Hello,
    Has anyone an idea on how I can get the timestamp from a PostgreSQL database with the fractional seconds information ? I'm using the database connectivity toolkit
    Thanks
    Salim

    and there was even an easier solution
    Why doing simple things when you can struggle for hours

  • How to Transfer Database Table Field to Data Type in XI

    Dear All,
    Dear All,
    I am working on scenario to transfer data(Database Table) from Non SAP System to SAP system through XI.
    While Defining "Data Type" in XI i want to create Data Type as of Database table in my(Oracle Database).There is any direct method to import Database Table field into "Data Type" in XI.
    thanks,
    RP

    Hi;
    Edit plus is a tool using which you can edit your file and make changes to it.
    You can download it from net ,just search for it on google.
    this will help you to get in the field names of the table by editing the file .
    Mudit

Maybe you are looking for

  • Why can't I use photo stream on my Windows XP?

    I am backing up my iPhone using the iCloud but I realized that I can't access my photo stream from my pc. When I checked the iCloud Help on setting up my photo stream it says I have to have Windows 7 or 8. My computer works just fine so I'm not chang

  • Wifi problems on Macbook since installing update

    My Macbook can no longer connect to my wireless network at home ever since I installed a software update (NOT Snow Leopard!) at the weekend. It worked fine until I installed the automatic update, which included an Airport Update & Security Update. It

  • 10/14/2014 - Release - AIR 15 Runtime and SDK - build no. confusion

    the latest release build of AIR15.0  10/14/2014 appears to be exactly the same build as the one released on  10/02/2014 both downloads give AIR 15.0.0.302 ---  is this an error .... ? its all getting very confusing ... was expecting a new build numbe

  • Isolation_level-TRANSACTION_READ_COMMITTED_FOR_UPDATE

              Im using BEA Weblogic 7.0 server and Oracle 9.0.1 DB .           I got below Exception when using the Isolationlevel           as TRANSACTION_READ_COMMITTED_FOR_UPDATE.           when tried using both Weblogic JDBC driver and Oracle JDBC (o

  • Error in retrieving session attribute for ejb remote in clustered env

              We store EJB remote object in session and differnt clients retrieve it from sessionbefore           making a business method call. This seems to work in most cases but sometimes           it gives the exception attached. This happens only i