Table operations

Hi Friends,
How to deal with table operations?
I want three tables having data but only one header:-
h1|h1|h3
rows1:-
v1|v2|v3
rows2:-
v4|v5|v6
rows3:-
v7|v8|v9
It canbe done in two ways:-
1. having 4 tables , for first one have column headers only
second:- have table with text field "rows1" wchich will come above, and dont include header and footer
in same way other two tables also
another way:-
in the table 1 --headers
in table two:- data to be there,plus when heading comes inside table as subheading, merge cells of a table row.
Please advise how to achieve it

hi,
Following url will help you out to create the table dynamically
http://help.sap.com/saphelp_nw04/
helpdata/en/95/93fe1e71a2e44691b1f041e67f71aa/content.htm
Sample code:
IWDTransparentContainer container = (IWDTransparentContainer)
     view.getElement(IWDTransparentContainer.class, "RootUIElementContainer");
IWDTextView editor = (IWDTextView)
  view.createElement(IWDTextView.class, "monthNameColumnEditor");
  editor.bindText("MonthOfYear.MonthName");
IWDTableColumn column = (IWDTableColumn)
  view.createElement(IWDTableColumn.class, "monthNameColumn");
column.setTableCellEditor(editor);
IWDTable table = (IWDTable)
  view.createElement(IWDTable.class, "MyTable");
  table.bindDataSource("MonthsOfYear");
table.addColumn(column);
  container.addChild(table);

Similar Messages

  • WCF-SQL table operation on tables with the same name.

    Hello,
    My situation involves generating table operation schemas (Insert, Update, Delete, Select) for tables in two different SQL databases.  These tables happen to have the same name.  For the sake of discussion lets call the tables dbo.Customer.  However,
    these tables have different fields in them.  When generating the schemas to be used by BizTalk, they end up as the same message type like so:
    Database1: http://schemas.microsoft.com/Sql/2008/05/TableOp/dbo/Customer#Update
    Database2: http://schemas.microsoft.com/Sql/2008/05/TableOp/dbo/Customer#Update
    To my understanding, I can't simply change the namespaces or root nodes to be unique since this structure is expected by the SQL Adapter (shown here: https://msdn.microsoft.com/en-us/library/dd788023.aspx).  I had a couple thoughts on a solution: 
    Use schema versions to differentiate between the two different table schemas.
    Use a unique namespace and root node for the schemas.  Then, create a custom pipeline component to modify them to the standard as it is sent to SQL server.
    Modify the schema so support both tables with all columns in both tables.
    I don't really like any of these solutions, so I am hoping somebody in the community has run into this situation before and has something better.
    -Richard

    You don't really have to do anything other than make sure the particular message gets routed always to the correct database.
    Having duplicate MessageType's is only a problem if you're relying on the automatic resolution of the XmlDisassembler and that would only be a concern on the Response side.
    To get around that, just create a custom Pipeline with the XmlDisassembler and set the Document Schemas list to only the one for that Port.

  • Execution Errors while running a mapping having external table operator

    when I am executing a mapping with external table operator, I am getting the following error:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error KUP-04040: file testdoc.txt in CONN_FLAT_FILE not found
    Here CONN_FLAT_FILE is the connector.
    The flat file location has been registered with the user name (as used for Windows login), password (as used for Windows Login) and host name as the name that is used for accessing my machine in the network. The path to the file name is given from the root folder like C:\.....
    Please let me know things that I need to check.
    Regards

    If you're using an external table check if you can see the data by querying that table. Possible errors: wrong directory or wrong file structure.
    Regards,
    Jörg

  • Not able to change the name of the attribute of the Table operator.

    We are trying to create OMB scripts to automate certain tasks. As a part of this, there is a requirement to change the attribute name of table operators (which by default gets the name of the column). It is possible to change the attribute name from the GUI. But I was not able to do the same using OMB Scripting. Here is the script I used.
    OMBALTER MAPPING 'TEST' \
    MODIFY ATTRIBUTE 'GEOGRAPHY_ID' OF GROUP 'INOUTGRP1' OF OPERATOR 'TEST' \
    SET PROPERTIES(BUSINESS_NAME,PRECISION,DESCRIPTION) \
    VALUES('MEMBER_ID',2,'MEMBER')
    This script was to change the name of the attribute - GEOGRAPHY_ID of the table operator TEST.
    From what I can make out from the Scripting reference, changing BUSINESS_NAME of the attribute should do the trick but it is not happening. The syntax looks correct as the precision of the column changes.
    Am I missing something? Or is it a limitation or a bug?
    I use OWB client 10.2.0.1.25 and OWB repository 10.2.0.1.0.

    Hi!
    I'm using successfully
    OMBALTER MAPPING '$mapName' MODIFY ATTRIBUTE '$attrName' OF GROUP '$groupName' OF OPERATOR '$joinName' RENAME TO '$newName'
    Regards,
    Carsten.

  • Table Operator In PL/SQL

    Sir,
    This is srinivas from India
    Recently I started working with Objects in Pl/SQL
    I am facing problem with table operator in pl/sql
    my Query is
    Select s.rollno,s.Name,column_value from student s,table(marks)
    above query working fine in at SQL Prompt
    but the same thing if I am trying to use at Cursors in PL/SQL it is giving error
    please suggest me how to use Table operator in PL/SQL
    student
    srinivas

    I suggest you post your problem to the Products->Database->SQL/PLSQL discussion Forum.
    This Forum is meant for the Apple Macintosh OS.

  • Table Operator Vs Materialized View Operator

    Hi All,
    Could you please give the differences between Table Operator and Materialized view Operator in Oracle Warehouse Builder 11g.
    Regards,
    Subbu

    Below an extract of my notes of the Materialized view. The complete notes are here :
    http://gerardnico.com/wiki/dw/aggregate_table
    =====Notes=====
    Materialized views are the equivalent of a summary table. (Materialized views can be also use as replica).
    In a olap approach, each of the elements of a dimension could be summarized using a hierarchy.
    The end user queries the tables and views in the database. The query rewrite mechanism in a database automatically rewrites the SQL query to use this summary tables.
    This mechanism reduces response time for returning results from the query. Materialized views within the data warehouse are transparent to the end user or to the database application.
    This is relatively straightforward and is answered in a single word - performance. By calculating the answers to the really hard questions up front (and once only), we will greatly reduce the load on the machine, We will experience:
    * Less physical reads - There is less data to scan through.
    * Less writes - We will not be sorting/aggregating as frequently.
    * Decreased CPU consumption - We will not be calculating aggregates and functions on the data, as we will have already done that.
    * Markedly faster response times - Our queries will return incredibly quickly when a summary is used, as opposed to the details. This will be a function of the amount of work we can avoid by using the materialized view, but many orders of magnitude is not out of the question.
    Materialized views will increase your need for one resource - more permanently allocated disk. We need extra storage space to accommodate the materialized views, of course, but for the price of a little extra disk space, we can reap a lot of benefit.
    Also notice that we may have created a materialized view, but when we ANALYZE, we are analyzing a table. A materialized view creates a real table, and this table may be indexed, analyzed, and so on.
    Success
    Nico

  • Expert - Generating SCD Type2 Mapping for a Table Operator - To Share

    Hi All,
    I have created an Expert which generates a SCD Type2 Mapping for a Table Operator being used as Dimension.
    Let me know how I can share this expert. This forum has helped answer many questions and I would like to contribute.
    Thanks,
    Sam.

    Hi David,
    I am trying to follow the steps as on that page. But I am stuck at step 5 - to upload the zip file. I cannot find the "Add an Attachment" link in the page toolbox.
    The steps on that page are
    1)Use the link in the "Page Toolbox" (right-hand column) to add a new page, with a title describing the expert or script.
    2)In the keywords for the page, enter "OWB USER CONTRIBUTED EXPERT".
    3)On that page, describe the expert or other script, the version of OWB it was developed for (including patch level), how to install and use it, and who to contact with any questions.
    4)Package the Expert files in a Zip file.
    5)Use the "Add an Attachment" link in the Page Toolbox to upload your Zip file as an attachment to the page for your expert. Alternatively, post a link to your own web site where the expert can be downloaded.
    Thanks,
    Sam.

  • Rename Table Operator OMB+

    Hi,
    I'm doing an OMBSYNCHRONIZE TABLE ... where I replace Table A with Table B, which works fine.
    Unfortunatley the Table Operator Name isn't changing only the bound name of the Table. How can I alter now the table operator name?
    cheers,
    Bernhard

    You need to alter mapping as
    OMBALTER MAPPING 'your_mapping' MODIFY OPERATOR 'table_you_want_to_change' SET PROPERTIES(PHYSICAL_NAME) VALUES('name_you_want')

  • Partition name length problem at DML in Table operator

    Hello experts
    In our datawarehouse we have a table with a high number of partitions (each partition corresponding to a different business object) for solving an issue with data quality. Every time the data quality mapping is run, a truncate on the corresponding partition is performed. But Insert operations on that table are not set on a particular partition and, therefore, lock the table and have a conflict with the truncates if parallel operations are run.
    We would like to used the Partition DML functionality at the Table Operator in order to insert just into one partition and prevent locking all of them. Although none of the partition names are longer than 30 characters, OWB (even at the GUI) adds the string "partition: " in front of each name, which causes the length limit to be surpassed.
    Any idea about how could we use this functionality without renaming the partitions?

    Hey there,
    I'm a colleague of the thread starter and like to jump in as this is an issue for us which we need to solve.
    Some more infos which might help:
    We are running the OWB 11.2.0.3.0 on Windows 32 Bit
    We have the following patches installed:
    13257502
    13473205
    None of the later patches has been installed, since none of the Bugs that were fixed affected us.
    In a Mapping on a table-Operator we'd like to use "PARTITION DML" for an Insert.
    On the GUI when selecting the Partition the data should be inserted to (Field: DML Partiton Name), we get the following error (in this instance the partition name is 24 characters long)
    "API0407: The minimum length of this filed is 0 and its maximum length is 32. You have 35 characters."
    In the Drop-down Menu of DML Partition Name it says "Partition: " in front of every partition there is. Together with a Partition name of 24 Characters it sums up to 35 characters.
    So it appears that the maximum length of the partition is limited to 21 characters only because "Partition: " is put in front of it.
    This error also appears when editing the Properties of the table operator by OMB*PLUS (from tcl) with
    OMBALTER MAPPING 'mapname' MODIFY OPERATOR 'operatorname' SET PROPERTIES (DML_PARTITION_NAME, DML_PARTITION_TYPE, PARTITION_KEY_VALUE_LIST, IS_PARTITION_INDEXED_BY_NAME) VALUES ('$partition', 'PARTITION', '$someEmptyList', 'true')
    where it does not make a difference whether $partition is of the form
    set partition "Partition: SOMEPARTITIONNAME"
    or
    set partition "SOMEPARTITIONNAME"
    Renaming the Partitions is not an option for us, since our warehouse is running in multiple productive systems and became quite large in the last years.
    Is it necessary, that "Partition: " is put infront of the partition name? Is there a way around this? Isn't the field DML_PARTITION_TYPE supposed to store the Information whether it is a partion or a subpartition?
    If you wanted to use subpartitions, does the name of the subpartition then need to be even shorter since "Subpartiton: " is put infront?
    Thanks in advance for any help or suggestions. If you need further Information, feel free to ask, I am more than happy to supply it.
    Best Regards
    Thorsten

  • Hashed table -- Operations on it.

    Hi,
    tell me any one way of inserting data in to hashed table,
    and operations possible on the hashed table.

    Hi Kranthi,
    You can only access a hashed table using the generic key operations or other generic operations (SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM to INSERT itab within a LOOP) are not allowed."
    Hashed table is useful when your have to work with very big internal table and to read it with
    "READ TABLE WITH KEY ..."
    And,
    http://If its possible to declare a standard table with same type as hashed table.
    Move your data to a standard table with the same Type as your dynamic hashed table.
    tb_stand] = tb_hash[.
    And access the records of the standard table.
    kindly reward if found helpful.
    cheers,
    Hema.

  • Auditing Information in $ERROR table operator view

    Hi All,
    I wold like to develop process for auding data in error table in odi so that operator can look at the records and take appropriate steps.
    I would like to provide a separate interface outside of ODI such as web page where, user can audit the data in this table.
    what is the methdology to develop such process, can someone guide me to understand implemenation approach
    Thanks and Regards

    SDD wrote:
    Hi
    Can any one help me to understand the error of ORA-00942: table or view does not exist while compiling the package on Oracle 9.2.0.4.0Which means package owner is granted select on view not directly but via roles. However, roles are ignored by definer rights packages/stored procedures/stored functions/triggers... You need to grant package owner select on view directly.
    SY.
    Edited by: Solomon Yakobson on Jan 21, 2010 4:06 AM

  • Regarding the Cost of ALTER TABLE Operations

    Hi All,
    I am a starter in Oracle. I like to know what will happen in the storage level in Oracle when we alter tables like following
    1. Add a primary or a foreign key to the table
    2. Create an Index on some of the columns in the table.
    I am asking this because I found that these operations are taking long time for me for some of the big tables. So I am curious to know about the inner details of these operations. Can anyone please clarify me?
    Thanks in advance.
    Best regards,
    Vijay

    user7665191 wrote:
    Hi All,
    I am a starter in Oracle. I like to know what will happen in the storage level in Oracle when we alter tables like following
    1. Add a primary or a foreign key to the table
    2. Create an Index on some of the columns in the table.
    I am asking this because I found that these operations are taking long time for me for some of the big tables. So I am curious to know about the inner details of these operations. Can anyone please clarify me?
    Thanks in advance.
    Best regards,
    VijayI think that a good first starting point would be the Oracle Concepts guide, available from http://docs.oracle.com. Look at the 11g version. That will tell you about contraints and indexes.
    But briefly, adding a primary key requires that the table is scanned, the primary key values are sorted into order and checked for uniqueness, and the values written to disk as an index segment with each value having a rowid associated with it that points to the location of that value in the table's data segment (file id, block id and row number). So, the duration of the command is most likely driven by scanning the table, and then writing the index data to disk.
    A foreign key constraint requires that the system check that all of the values in the column exist as values in the referenced column -- no index is automatically created although you probably ought to create one.
    Creating an index is similar to the primary key workload, except that for a non-unique index it won't check for duplicates of course.

  • Internal Table Operation Help Required

    Hi
    I have to insert 8 counters p1-p8 in a field BANFN of ITAB1.
    Like this their are 3 more fileds.I have to show the no. for PR released frm JAN-DEC in ALV format.I had doen the calualation,but unable to insert these conters in ITAB1 to do final calculation & display the result.
    Please help me.
    I had used : insert p1 into itab1-banfn where sy-index 1.
    Like this I had tried out many comands,but al in vain.PLZ help me in this regard.
    Regards.
    Vipin

    There are 8 fileds in my internal table,in which 1st one is for MONTH(JAN-DEC).
    The ALV is only suppose to display 12 rows,containing each month per row.
    Now for each month I have to display the PR converted to PO & the avg lead time for each month.So I had calu all the data ,but now I have to insert 12 counters in 4 fields.one for No of PR converted to PO in each month,than one for AVG LEAD TIME for each month.so there has to be 12 + 12 counters for each row.Similar operation I have to perform for the PR pending fo PO.So there has to be 24 more counters for again 2 diff fileds.Now I had calcuated the data,but the problem is this ,,,,,how to insert each ctr in each row.
    EG: insert ctr1 into itab1-banfn where itab1-mmyy = 'January' or sy-index = 1.
          insert ctr2 into itab1-banfn where itab1-mmyy = 'Febuary' or sy-index = 2.
          move crt1 to itab1-banfn where sy-index = 1.
    None of the operation is working.
    Like this i have to insert 48 counters in all rows for these 4 diff fileds.
    Pl help me in thsi regard ,if possible.
    regards.

  • Problem with Cast and table operator

    Hi ,
    Am using Table and cast opertor to fetch the data from a collection using a ref cursor as follows
    OPEN test_cur for
    SELECT first_name, Last_name from table(cast( V_Test_collection as Test_Array));
    This works but when i tried to fetch the date using following query and ref cursor then i received ORA-00604 and ORA 01003.
    I used string containg the query like follows
    V_SQL:= ' SELECT first_name, Last_name from table(cast( V_Test_collection as Test_Array))';
    OPEN test_cur for V_SQL;
    I want to pass this V_SQL variable to another procedure that will use it to apply some business logic.Please help me how to resolve this problem.

    Hi, Current procedure is as follows but as per new requirement i have to pass the processed data from this procedure to a common procedure that accepts the string containing the query(Say IN_QUERY) and applies the business logic by fetching the data from this query(IN_QUERY)
    CREATE OR REPLACE PROCEDURE GET_USER_INFO_PRC(USER_ID IN NUMBER,
    TEST_CUR OUT COMMOM_PKG.OUT_REF_CUR,
    O_ERROR_CODE OUT NUMBER,
    O_ERROR_LOCATION OUT VARCHAR2,
    O_ERROR_MESSAGE OUT VARCHAR2) IS
    V_TEST_COLLECTION COMMOM_PKG.WI_INS_SEARCH_ARR_OBJ := WI_INS_SEARCH_ARR_OBJ();
    BEGIN
    Some buniess logic is applied on V_Test_collection to fetch the date in this block
    OPEN TEST_CUR FOR
    SELECT FIRST_NAME, LAST_NAME
    FROM TABLE(CAST(V_TEST_COLLECTION AS TEST_ARRAY));
    Exception handler
    END;

  • Is this a bug in table operator

    I have an Oracle function that is invoked by the select statement as follow:
    select count(*)
    into i
    from table(
    select depts -- depts is a varray of dept_obj
    from table(company_package.f_getCompany(k))
    the function f_getCompany(k) gets invoked twice.
    but if I change the SQL to
    select depts
    into dept_array
    from table(company_package.f_getCompany(k));
    then function f_getCompany(k) will be invoked just once.
    Is this a bug within Oracle ? How can I get around that, I just want the function execute ONCE.
    Any help would be appricated.
    Thanks
    Here are the rest of the code
    create or replace type company_obj as object
    company_id number,
    company_name varchar2(20),
    depts dept_arr
    CREATE OR REPLACE
    type company_arr is VARRAY(10000) of company_obj;
    create or replace type dept_obj as object
    dept_id number,
    dept_name varchar2(30)
    CREATE OR REPLACE
    type dept_arr is VARRAY(10000) of dept_obj;
    create or replace package company_package is
    number_of_times int := 0;
    function f_getCompany(company_id number) return company_arr;
    end company_package;
    create or replace package body company_package is
    function f_getCompany(company_id number) return company_arr is
    comp_array company_arr;
    comp_object company_obj;
    dept_array dept_arr;
    dept_object dept_obj;
    begin
    dept_object := dept_obj(100, 'Dept 1');
    dept_array := dept_arr();
    dept_array.extend;
    dept_array(1) := dept_object;
    dept_object := dept_obj(110, 'Dept 2');
    dept_array.extend;
    dept_array(2) := dept_object;
    comp_object := company_obj(1, 'Company A', dept_array);
    comp_array := company_arr();
    comp_array.extend;
    comp_array(1) := comp_object;
    number_of_times := number_of_times + 1;
    dbms_output.put_line('number of times = ' || number_of_times);
    return comp_array;
    end;
    end company_package;
    ----------------------------------------------------------------------------------------------------

    I noticed that myself in our project.
    Our varchars2 are defined as VARCHAR2(xxx CHAR) - OWB puts the size*4
    In fact if you have special characters like umlauts (ü,ä,ö,...) it will use 4 bytes per character.
    You can try it yourself. Define a Varchar2(1 CHAR) and manually change the size of the Column in your mapping inside OWB (in filters, joins or your target table).
    Then shoot an umlaut through the mapping and will end up with a "too small" error.
    Dont mind the size*4 issue - we totally ignored it and run without error since 4 years now.

Maybe you are looking for

  • OCR no longer working on an HP C5580 printer after installing OSX 10.6.1

    I purchased an HP C5580 printer when I installed OSX 10.6. The scanner / OCR did not work. I called HP. The tech had me download the v10.3 driver and walked me thru the OCR set-up. The OCR worked (actually quite well). When I updated to OSX 10.6.1 th

  • Firefox shows a blinking "edit" cursor in the body of all websites when I click.

    Clicking a button within a webpage puts a blinking text cursor in the body of the site, as if editing a Word document. It's not causing any other problems besides being really annoying and distracting, but it only just started today. I've tried resta

  • Company name in Trail Balance Header

    Dear Gurus,                   Please guide how to bring company name in header of SAP trial balance report for S_pl0_86000030 and 28. Please mention the t.code if already available. (not F.08) .

  • Workflow: getting yet to review users on workflow

    Hi all, Is there any idocscript function to retreive the persons who are yet to review a content item on a workflow. I found that wfComputeStepUserList will retrieve all the users in a workflow. But how if i want to send email to persons after a x nu

  • OSB execution tracing memory leak.

    First of all I did not found a section for Oracle Service Bus so I posted here as part of SOA suite. The problem i have is that when i enable Execution tracing for a proxy the memory keeps going up and is not garbage collected. I analized the heap du