Duplicate columns created in attribute view

Hi
I created an attribute view as shown in the video Creating an attribute view | SAP HANA using the data given. After creating the attribute view as per the video, when I preview the data in the attribute view, I see that all the columns are created twice. For instance there is Company Name and Company Name 1, Contact_Name and Contact_Name1, ContactTitle and ContactTitle1 and so on. This has happened for all the fields.
I checked the table in the schema to see if there are duplicate fields there. But the DIMSupplier table in the STS schema has no duplicate fields.
What I want to know is how were these duplicate fields created in this attribute view and how do I remove them? I checked the output fields and there also there are no duplicate fields.
When I right click on the attribute view and select data preview, and then under the tab "Distinct Values" I can see all these duplicate field names. I am trying to delete these duplicate field names but I am getting an error message that the field you are trying to delete is being used elsewhere hence it cannot be delete.
Can anyone please advise how to fix this error.
Thank you.
Regards,
Pavan.

Hi Anjali,
Thanks a lot for your reply. But in my data foundation STS_ATTRIBUTE_VIEW, I do not see any duplicate columns to remove them. Today I see a warning and also I am unable to right click on the attribute view.
The warning is given below:
Message :
  STS.STS_ATTRIBUTE_VIEW: one or more columns of Table: DIMSUPPLIER have invalid ABAP name
But in the Data Foundation in the Output tab under Columns I do not have any duplicate columns listed.
Also the attribute view is in grey color. Its not in green color even after clicking on Save and Validate and SAve and Activate.
I select the attribute view and hit on the data preview button. There in the Analysis tab under Available objects under String folder I can see all these duplicate column names. I right click on the duplicate column names and I see the options "Distinct Values", "Add to labels", values, filters and "Properties". Having selected the column name I hit on the delete button on my keyboard but nothing happened.
Is this because of the warning that I am getting. What does this warning mean?
Please advise.
Thank you.
Regards,
Pavan.

Similar Messages

  • Calculate Column Subtotal in  Attribute View

    Hi,
    Is it possible to calculate the Column subtotal in Caluclation View itself likethe way we do in ALV.
    I want to do this calculation in the Calculation View itself.
    I thought of doing that through  Calculated Column but the SQL Function SUM() doesn't work there.
    Below is how my Calculation View looks like:
    I want the output to be like this (Highlighted in Green):
    I am getting the field Allocation from my Attrbute View ZAT_VBRK_VBRP(Join of table VBRK and VBRP) and ZVBAK is just an attribute view for VBRK.
    Thanks,
    Gaurav

    Hi Shankar,
    Sub_totals can be achieved through the SQL query using the Grouping_sets which is something like this,
    select col_1, col_2, col_3, sum(col_4)
    from <Table_name>
    group by grouping sets LIMIT 2 WITH SUBTOTAL
    ((col_1, col_2),(col_3));
    Usually this can be done in the front end reporting tool but,If you want to continue with the calculation_view where you want the sub total to be appended as a "New Tuple" then you will have to go with the CE_Functions using the sql_query.
    This is something new that i can learn today, lets see how the experts will guide us with the approach.
    Regards,
    Krishna.

  • Duplicate columns created in Document Libraries

    Hi,
    We are having issues with duplicate columns being created in document libraries after copying/moving documents between libraries (SharePoint 2013):
    Unable to find any users with similar issues on forum
    Thanks in advance
    K

    Duplication has been sort of a thing for us as well. On our SP public site images will start duplicating themselves. I am not sure if it's because of different libraries running in the background, but it is very annoying.  
    I'm not sure if these two cases are connected, but I thought I'd post so you knew you weren't alone in this strange behavior. 

  • Creating Attribute views using SQL

    Hi experts,
    Can attribute views be created using an SQL command?
    As far as I know all the commands in the HANA modeler are translated eventually to SQL so I guess it should be possible.
    Thanks.

    Hi again,
    Our goal is to dynamically create an attribute view, We're not trying to create a homegrown view but trying to create the attribute view using SQL syntax (like when creating an Analytic Privilege - by providing the XML).
    Maybe I'll try to explain the cause for trying to do so and you could help me with the correct way to do it:
    We develop an application within Information Steward which is called HiVo, we would like to provide record authorization for each role. As we understood the way to do it is by using attribute views and analytic privileges. We have a process which creates our schema on the DB machine (actually it's part of the "deployment" of the application) and the administrator defines the authorization for each role on a UI which is provided on BOE. We would like to take these definitions and combine them with the schema creation which is done programmatically.
    We would like to do it using SQL commands in order to prevent dependency on the modeler SDK which was not used up till now and simplify the process for the administrator not having to use 2 different environments in order to complete the configuration process.
    I hope now things are clearer and maybe you could assist us doing it correctly.
    Again, thank you very much for your support,
    Ran

  • SAP HANA Attribute View- Not able to add objects

    Hi All,
    I've created one attribute view in Modeler Perspective.
    Trying to add tables on data foundation using "Add Objects". But when table name is entered in pop-up window, it hangs (not-responding). And error log got created as below.
    I'm not able to add the tables.
    "SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@8e003d[ID 225800]."
    com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@8e003d[ID 225800].
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:136)
    at com.sap.db.jdbc.ConnectionSapDB.assertOpen(ConnectionSapDB.java:224)
    at com.sap.db.jdbc.ConnectionSapDB.getTransactionIsolation(ConnectionSapDB.java:1263)
    at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1122)
    at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:888)
    at com.sap.db.jdbc.FetchInfo.executeFetch(FetchInfo.java:162)
    at com.sap.db.jdbc.FetchInfo.executeFetchNext(FetchInfo.java:157)
    at com.sap.db.jdbc.ResultSetSapDB.fetchNextChunk(ResultSetSapDB.java:2418)
    at com.sap.db.jdbc.ResultSetSapDB.next(ResultSetSapDB.java:419)
    at com.sap.db.jdbc.trace.ResultSet.next(ResultSet.java:269)
    at com.sap.ndb.studio.sql.model.tables.impl.CatalogImpl.getCatalogObjects(CatalogImpl.java:338)
    at com.sap.ndb.studio.sql.model.tables.impl.CatalogImpl.getCatalogObjects(CatalogImpl.java:414)
    at com.sap.ndb.studio.bi.search.provider.CatalogObjectSearchProvider.doSearchInternal(CatalogObjectSearchProvider.java:172)
    at com.sap.ndb.studio.bi.search.provider.CatalogObjectSearchProvider.doSearch(CatalogObjectSearchProvider.java:95)
    also,
    "Could not fetch catalog objects"
    com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Object is closed: com.sap.db.jdbc.ConnectionSapDBFinalize@64b085[ID 225787].
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
    at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:136)
    at com.sap.db.jdbc.ConnectionSapDB.assertOpen(ConnectionSapDB.java:224)
    at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1964)
    at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:362)
    at com.sap.ndb.studio.jdbc.JDBCConnection.prepareStatement(JDBCConnection.java:479)
    at com.sap.ndb.studio.catalog.internal.JdbcExtended.getTablesCaseInSensitive(JdbcExtended.java:277)
    at com.sap.ndb.studio.catalog.CatalogUIPlugin.internalGetTableNames(CatalogUIPlugin.java:669)
    at com.sap.ndb.studio.catalog.CatalogUIPlugin.getTableNamesNoProgressService(CatalogUIPlugin.java:1156)
    at com.sap.ndb.studio.sql.dialogs.FindTableDialog.fillContentProvider(FindTableDialog.java:504)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.filterContent(FilteredItemsSelectionDialog.java:2182)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.internalRun(FilteredItemsSelectionDialog.java:2124)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.doRun(FilteredItemsSelectionDialog.java:2096)
    at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.run(FilteredItemsSelectionDialog.java:2083)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    Thanks,
    Sujit

    Hi Sujit,
    The log seems that connection is closed. Is it true? Did your system restarted?
    What happens if you close the studio, open it and try again?
    Are you using same revision Studio than the database?
    Regards, Fernando Da Rós

  • Doubt in attribute view on joining the table .

    Hello Team
                        Can some please help me in clearing the following doubts on joining tables .
    i) Can we perform a self join in attribute view in HANA . like for ex :- joining a table to itself .
    ii)Can we create an analytic view without creating an attribute view i.e creating an analytic view directly on tables .
    iii)When aggregation happens in calculation view exactly what happens internally .
    Please suggest me with the solution of these doubts .
    Regards

    Hi Prag,
    As Rashmi has answered your question, i would like to add up to it few more important points.
    1. Do not perform self join as it will return uncertain results. It is better to avoid self join.
    You can create a copy of the same table and perform join which will be consistent.
    2. In an analytic view, you will be adding table to data foundation, select the output fields.In the logical join node by default your data foundation will be present (this will contain the fields that you selected for output), you need not add any attribute view to this logical join node, leave it to default. In the semantics node select the attributes and measures. Perform validation and then activate. Your analytic view without attribute view is ready. You can check the data preview.
    3. In a calculation view, the records gets grouped by all the attributes and then the measures are calculated based on this grouping by using the mentioned aggregation (sum/max/min).
    Eg.
    Customer ID 0Calmonth Amount (aggregation = max)
    1001               01.2014     100         
    1001               01.2014     400
    1002               01.2014     200
    Output:
    Customer ID 0Calmonth Amount (aggregation = max)
    1001               01.2014     400
    1002               01.2014     200
    Hope this clarifies your doubts.
    Thanks and Regards,
    M.N.Adinarayanan

  • Unable to view columns for attribute views created

    Hi all,
    Here are the list of errors I am facing while creating attribute views and while adding multiple dimensions (Product dim and Employee dim) to an attribute view.
    I am unable to activate my attribute view. I don’t get any error message other than:
    Message :      STS.STS_ATTRIBUTE_VIEW: one or more columns of Table: DIMSUPPLIER have invalid ABAP name
    2. When I added DIM.Product attribute to the attribute view STS_ATTRIBUTE_VIEW, I am unable to see any column names for the DIM.Product to add them to output fields. Same with employee dimension also. Now my question is, Can I add more than one dimension to the same attribute view or do I have to create a new attribute view for every dimension. While I think I can add more dimensions to the same attribute view but I asked this question because I am unable to see any columns listed out in the dimensins Product and Employee.
    3. In Employee dimension when I click on the data preview, I don’t get any data. Its all blank. But there is data in the table and its visible when I preview in table.
    4. When I right click on the attribute view or the attribute itself I don't see any other options other than "Configure Table" but I remember 2 days back when I worked I was able to see other options like "Data Preview" and few others.
    Why am I unable to view the columns of the Product and Employee dimensions? Should there be a common primary key between all the dimensions to be able to view the data in the attribute view?
    Please note that my attribute view is still in grey inspite of hitting on save and validate and save and activate several times. And I am getting a warning message, "Some services are not started" on my hdbsystem and the system is showing yellow colour.
    Please advise.
    Thank you.
    Regards,
    Pavan.

    Hi Pavan,
    To much words and no picture, this doesn't help you to obtain community feedback.
    Can you sintetize your question, maybe even split it in minor questions.
    I confess I failled to understand what you are facing.
    Regards, Fernando Da Rós

  • Error while creating Attribute View

    When I try to get Attribute view through two joined table with same type join indices I get following error ;
    Could not execute 'CREATE COLUMN VIEW "_SYS_BIC"."MyDB/TEAM_EVENT" TYPE JOIN WITH PARAMETERS ( joinIndex = ...' in 112 ms 159 µs . SAP DBTech JDBC: [2048]: column store error: logical index creation error:  [2434] join index inconsistent;object=MyDB/TEAM_EVENTen
    I tried everyhing in mind but cannot solve the problem. Any idea ?

    Try
    CREATE OR REPLACE VIEW rdr_le_info_view
    AS
    SELECT l.strategic_le
    ,cun.ucn cunucn
    ,cun.date
    ,cccs.ucn ucn
    ,cccs.agr_num
    FROM strat_le l
    ,ucn_name cun
    ,customer_setup cccs
    ,cccs.run_num run_num
    WHERE l.gfa_until_dt = '31-dec-9999'
    AND l.glas_until_dt = '31-dec-9999'
    AND l.int_until_dt = '31-dec-9999'
    AND cccs.ucn_lead_office = cun.ucn
    AND cun.OID = l.client_oid;Then call it like:
    select *
    from rdr_le_info_view
    where run_num = v_run_num;

  • ORA-00957 Duplicate Column Name Materialized View  ( UPDATED: Not answered)

    Hello all.  I am getting this error when trying to create a Materialized View.  I have many other MV I created without problem, but I cannot find the catch up here, can anyone help?.  I cannot find any duplicates. The only duplicate I though was the Pipeline_Code column that was entered into the function and the one being being called out as a column. To check, I renamed the latter and still am getting this issue.
    Any help would be greatly appreciated.
    Thanks!
    The query is below:
    CREATE MATERIALIZED VIEW MV_TEST_STATION
    REFRESH COMPLETE
    START WITH TO_DATE('20-SEP-2013 00:00:00','dd-mon-yyyy hh24:mi:ss')
    NEXT (SYSDATE +12/24)
    AS
    SELECT T.TEST_STATION_ID,
           --(SELECT TEST_STATION_TYPE.DESCRIPTION
            --  FROM TEST_STATION_TYPE
           --  WHERE TEST_STATION.TEST_STATION_TYPE =
               --       TEST_STATION_TYPE.TEST_STATION_TYPE)
             --AS TEST_STATION_TYPE,
            TST.DESCRIPTION AS TEST_STATION_TYPE,
           T.SURVEY,
           T.STATUS,
           T.STATION,
           F_TRUESTATION2 (
              T.STATION,
              T.PIPELINE_CODE,
              F_REROUTE_CODE (T.STATION,
                                      T.PIPELINE_CODE))
              AS TRUE_STATION,
           T.REQUIRED,
          -- (SELECT PIPELINE_CODES.PIPELINE_CODE_DESCRIPTION
           --   FROM PIPELINE_CODES
            -- WHERE TEST_STATION.PIPELINE_CODE = PIPELINE_CODES.PIPELINE_CODE)
           --   AS PIPELINE_CODE,
           PC.PIPELINE_CODE_DESCRIPTION AS PC_PIPELINE_CODE,
           T.INSTALL_DATE,
           T.FUNCTIONAL COMMENTS,
           TSR.TEST_STATION_READING_ID,
           TSR.TEST_DATE,
           TSR.SURVEYOR,
           TSR.ON_VOLTS,
           TSR.ON_BG,
           TSR.ON_AG,
           TSR.METER_UTC,
           TSR.METER_ID,
           TSR.IO_BG,
           TSR.IO_AG,
           TSR.INSTANT_OFF_VOLTS,
           TSR.FUNCTIONAL_DAMAGE_OUT,
           TSR.FUNCTIONAL_DAMAGE_IN,
           TSR.COSEMETIC_DAMAGE_OUT,
           TSR.COSEMETIC_DAMAGE_IN,
           TSR.COMMENTS,
           TSR.CASING_ON,
           TSR.CASING_OFF,
           TSR.CASING,
           TSR.CALIBRATION_DUE_DATE,
           TSR.ANODE_AMPS_ON,
           TSR.ANODE_AMPS_OFF,
           TSR.ANODE
      FROM TEST_STATION T
    INNER JOIN TEST_STATION_TYPE TST ON T.TEST_STATION_TYPE = TST.TEST_STATION_TYPE
    INNER JOIN PIPELINE_CODES PC ON T.PIPELINE_CODE = PC.PIPELINE_CODE
      INNER JOIN TEST_STATION_READING TSR ON T.TEST_STATION_ID = TSR.TEST_STATION_ID
    WHERE T.TEST_STATION_ID = TSR.TEST_STATION_ID

    since we don't have your tables or data, we can not run, test, fix or  improve posted code
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Duplicate Column Name: VIEW

    Hi. Im writing a VIEW:
    CREATE OR REPLACE VIEW viewexample AS
    SELECT c.customer_id, c.details, o.order_id,
    o.details, op.product_id, op.description
    FROM customer c, order o, order_product op
    (...more... )
    Yet, i get this message:
    duplicate column name
    And its pointing to line 3. Any ideas?

    A problem has arisen.
    I have developed this View further but it seems im getting a Cartesian product.
    I am not tip-top on joins, but i included some inner joins that i thought would not return a Cartesian.
    Here is the code:
    CREATE OR REPLACE VIEW myview AS
         SELECT      co.order_id,
              o.description o_d,
              co.customer_id,
              cp.product_description,
              c.name c_n
         FROM     customer_order co, order o, customer c,
              customer_product cp
         WHERE     cp.product_description BETWEEN
              '000' AND '010'
         AND      co.order_id = o.order_id
         AND     co.customer_id = c.customer_id;
    with the select statment:
    select * from myview;
    I am expecting 10 selections, yet i recieve about 1000.
    Any ideas?

  • Need to create a vertical view from horizontal table w/delimited column

    I would like to create a vertical view frm a table that has a colon delimited column.
    I can get a single row to work. I need the level to reset to 1 when the row changes.
    any Ideas? the key to the table is: sos,nr,prgm_cd,mth
    here is my select for a single row w/where clause removed:
    SELECT SOS,NR,PRGM_CD,trunc(sysdate-(30*LEVEL) , 'mm') MTH,
    ADD_MONTHS(trunc(sysdate,'q'),-3*LEVEL) QTR,
    SUBSTR(qty,
    INSTR(qty,':',1,LEVEL) +1,
    INSTR(qty,':',1,LEVEL+1) - INSTR(qty,':',1,LEVEL)-1) QTTY
    FROM (SELECT SRC_SUPL_CD SOS,APPL_PRGM_DESIG_NR,TYP_PRGM_CD,':'||PAST_PRGM_QY||':' qty from
    rssp_api_master )
    CONNECT BY LEVEL < LENGTH(qty) - LENGTH(REPLACE(qty,':'))
    ex. data
    sos nr prgm_cd qty
    aaa 3 xx 1:2:3:4:5:5
    bbb 3 xx 9:10:11:12:13
    need to look like this
    aaa 3 xx 1
    aaa 3 xx 2
    bbb 3 xx 9
    bbb 3 xx 10
    bbb 3 xx 11

    See this thread
    Re: rows into column
    Nicolas.

  • BSP: How to create check box in a column of a Table View

    Hi All,
    I have a table view in Web IC scenario. my requirement is to display check box in one of the column of the table view.. so that i can select multiple lines from the table and do some calculations!.
    Anybody have any hint/clue
    Thanks in advance,
    sudeep v d.

    Hi,
    This can be achieved by using a Table iterator.
    Please check the standard examples for this.
    Thanks,
    Rashmi.

  • SQL Developer Data Modeler  "Reports"  Duplicate Columns in Index- Bug

    I am using SQL Data Modeler of SQL Developer - 3.2.20.09
    Problem Description:
    In the "Indexes" section of report generated for a table, column appear twice.
    Steps to Reproduce:
    1. Create an Entity in Modeler: COMPANY, Add attributes COMP_ID and COMP_DESC to it, mark COMP_ID as PK
    2. Engineer it to Relational Model
    3. Go to 'File->Data Modeler->Reports'
    4. Select 'Available reports' = 'Table' and press 'Generate Report'
    5. View the report.
    Indexes shown for the table contains duplicate columns for COMP_ID
    Regards,

    Hi
    I've just tested with SQL Developer 3.2.20.09 and built in Data Modeler 3.1.4.710 with Data Modeler reports 11.2.0.09.87
    There is no duplicate columns for COMP_ID in the report.
    What are your versions? You can check them from Tools->Preferences->Extensions

  • How can I create a Table View in Cocoa Applescript?

    This is my last resort. I've searched for days and only found tutorials for iPhone and Cocoa, and I have no idea where to start. I'm looking for a way to create a Table View, and fill it with a few cells that call a handler when clicked. I've looked through the Xcode help, the Apple documentation, and countless tutorials, and I don't know what to do. I'm sure what I'm asking is possible, because usually what is possible in Cocoa is possible in Cocoa-Applescript.
    Perhaps something like:
    myTableView's addCell_OfType_WithHandler("This is a text cell", text, "myHandler:")
    I would appretiate any responses and brief descriptions on the matter.

    You did not answer my first question, which was not an idle question. I'll answer here, but if cross-chatter appears in a different thread I'll ignore it. You'll have to keep track of the mess yourself.
    Apple_For_The_Win wrote:
    At this point, I've dragged a Table View onto my window, in Xcode. I've connected it to the value "myTableView", and that's where I need help. I'm specifically trying to add cells into the table view.
    I'll assume that 'connected it to the value "myTableView"' means that you've control-dragged in XCode from the table view in Main Menu.xib to a property in your applescript app delegate called myTableView. If that's not the case, please correct me.
    I prefer to use an array controller for this, so please drag an array controller object into main menu.nib. once you've done that, do the following:
    open the applescript app delegate and add a new property called "tableController"
    select the table view in the object list (you may need to open some disclosure triangles to reach it). and add appropriate (an) column name(s). you can hide column titles later if you like, but having named columns makes life easier.
    select the array controller in the object list
    rename the array controller "table data"
    open the attributes inspector, and then add the column name(s) as key(s) in the object controller area
    open the bindings inspector, and where it says "controller content", open the disclosure arrow and bind the content to the App Delegate object on the model key path self.tableController
    select the table view in the object list again, then go down a level and select each column in turn
    for each column, open the bindings inspector, and where it says "value", open the disclosure arrow and bind the content to the Table Data object with the controller key arrangedObjects model key path being the name of the column (which is the name of the key in the controller as well)
    back in the applescript app delegate, add code like the following:
      -- create a list of records, where each record represents a row and the column name is the record key
      set myData to {{column_1_name:"hello"}}
      -- convert it to an NSArray and add it to the controller content. don't forget the *my* keyword, or it won't work
      set my tableController to NSArray's arrayWithArray:myData
      -- may or may not be needed
      myTableView's reloadData()
    That should populate the table with simple text. if you want something more complicated (like buttons or links) then create the more complicated elements separately and add them to the data.

  • How to get the distinct values in Attribute View?

    Hi,
    While doing the data preview of attribute view its showing duplicate records.
    Can i restrict all these duplicate in attribute view and get only distinct values?
    Thanks in advance.

    Hi Deepak,
    Please check the Key Attribute combination in the Source System and Create Attribute view with the same combination.
    so that you won't get any duplicate values.
    If you are taking fields randomly Pls ensure that you are taking at least one primary key combination  use the same combination while creating Attribute View.
    As u know that the purpose of Attribute view is to store the Master Data Objects like BI/BW which stores Non duplicate values.

Maybe you are looking for