Table maintenance Vs Maintenance view
Hi,
I would like to know the dif between T.Maintanance And Maintenance view.
As we know as per the def we know Maintenance view will be used to maintain a table. But I have never created any M.view for the same.
However we use Table maintenance generator and SM30 for the same. How these 2 concepts are differnet?
Which one is the best method 2 use?
what one step and two setp process? Advantage and usage of 2step process?
Thanks in advance.
PRa
Praneet
In SM30 we can enter values manually
main diff between these two is "Authorization"
in sm30 authorization for all users not allowed.
for extended table maintenance see this below link
http://help.sap.com/saphelp_sm40/helpdata/en/67/86b257415811d1893d0000e8323c4f/frameset.htm
Reward if usefull
Regards
Raghav
Similar Messages
-
How to deselect refrence table fields in Maintenance view.
Hello,
Could any one tell me how to deselect all fields here except mara .
In the first link as below it shows the table selection tab in maintain view window.
http://postimage.org/image/6701iidlh/
When i click Relationships after selecting one base table , i get the second link as u see below
http://postimage.org/image/p7wpknnht/
I m unable to deselect the referenced tables Could some one throw light on this.
Thanks
Edited by: sarat on Nov 23, 2011 11:50 AMHI ,
Find the below thread ,
Hiding primary key field in Table maintenance generator
It will help you to deselect refrence table fields in Maintenance view.
Regards,
Saravana.S -
What are the standard tables for plant maintenance in r/3
I need the list of standard tables for plant maintenance in r/3. and also
is there any way we can find the field name and table which it belongs to in r/3, based on the description of the field.I NEED THE FIELD NAMES FOR FOLLOWING FIELDS AND CORRESPONDING TABLE NAMES
Equipment status
registration number
insurance type
insurance type description
registration date
expiry date
insurance companies
expiry date
policy number
amount insured
premium paid
created by ..so ..on
for our report in PM .. insurance data report
THANKS -
Hi Gurus,
I want to know about Tables in Plant Maintenance.
How many tables are present in PM & for what purpose?
from where could I get this information?
Is their any specific T-code to know this?
How can I check the purpose of respective Table?
Requested you to assist me in this regards...
Thanks in Advance.
Regards,
Amol.Here are some useful links/information.
1.[To get PM Tables|http://www.sap-img.com/plant/transparent-table-relate-with-pm-module.htm]
2.[PPT slide on PM Tables|http://sapabap.iespana.es/sap/tablas/pm/db_for_pm.ppt]
3.[A web page on PM Tables|http://www.erpgenie.com/sap-technical/abap/pm-tables]
4.[SDN thread on this topic|Re: Plant Maintenance Tables;
Regards
Jogeswara Rao -
Mass Maintenance of Maintenance Plans
http://help.sap.com/erp2005_ehp_03/helpdata/EN/a1/5959394ba2cd4ae10000000a114084/frameset.htm
Procedure
If you want to change maintenance plans with the mass maintenance function, proceed as follows:
1. Choose Logistics ®
2. Plant Maintenance ® Planned Maintenance ® Maintenance Planning ® Maintenance Plans ® Mass Maintenance for Maint. Plans ® Mass Maintenance for Maint. Plans or use the transaction code mch01 and choose Enter. The Mass Changes for Maintenance Plans screen appears.
3. Enter an appropriate variant name or your selection data in the areas of the screen called Maintenance plan selection, Maintenance item selection, Hierarchy or Work scheduling/task list data.
Note
If you want to make similar changes to data often, you can create a variant to ease data entry.
4. Choose Execute.
The Mass Maintenance: Table View screen appears.
(The Mass Maintenance: Field View dialog box appears if you choose Execute field view from the Mass Changes for Maintenance Plans screen).
5. Choose the appropriate tab page according to whether you want to make changes to the maintenance plans, maintenance cycles or the maintenance items.
6. Select the objects that you want to change.
You can select the fields that you want to change using the Select fields function.
7. You can check your changes by using the Test changes function.
8. Your changes are saved to the database when you choose Save.
9. The system displays all the changes you have made and any errors that may have occurred in a log. You can save this log if you wish.
Result
Your changes have an immediate effect on all the selected objects.
I have a need to enable this program which was delivered in one of the enhancement packs. We have thousands of maintenance plans that need to be modified.
A couple of questions:
1) how do I activate as little as possible to allow me to use this program
2) With this enhancement activated, am I going to be putting myself on a new support pack line.hi,
I just know go to transaction SFW5 to check whether all components required for the operation of system are activated (switched on). But I do not know exactly which component is affected for this function.
Hope it helps. -
Preventive maintenance for maintenance assembly
I want to Preventive Maintenance for Maintenance Assembly.( IBAU). When I create a maintenance plan I cant specify Assembly ( Only Equipment or Functional location can be selected).
I checked the customization settings where I have specified Screen object type as FLEquipmentAssembly but still i cant see Assembly field in the maintenance plan.thanks but is not working.
The problem is that i can select the Reference Object screen for a particular main. plan category in customizing , but even if i select FLEquipmentAssembly- O100 in customizing (Backend) it is reflecting as FLEquipment in the IP41,42 screen. If I Select O110 - EquipmentAssembly in the customizing it is reflecting as Equipment only by any selection Assembly is not coming.
I guess any table is not included but i am not sure.
do u know where these screen types -O100,O110 are defined. -
How to use the TableSorter for two tables at the same view?
Hello,
I am using the TableSorter object in order to sort Dynpro tables.
Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...Hi Roy,
Constructor of TableSorter
public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
So, you have to create instance of TableSorter class for each table on the view.
best regards, Maksim Rashchynski. -
I am beginner in MVC and I would like to create a view which populates two (or more) joined tables in a single view table as described below.
I have two tables:
1 - Bloggers: - bloggerID (int);
- bloggerName (string)
2 - Blogs: - blogID (int);
bloggerID (int);
- blogTitle (string);
- blogImage (string)
A blogger can have one or more blogs while one blog must be related to only one blogger.
I would like to have a view table on my webpage as the following:
Blogger Name
Blog Title
Blog Image
Noris Gang
Virus
virus.jpg
Noris Gang
Desktops
desktop.jpg
Gauthier
Books
books.png
John Leon
NNNMHJhjdhj
Nmbj.jpg
I'm using MVC 4 (or at least 3).
Thanks for your help.Hello,
From your description, it is not very clear that what you mean about the View, if it means the View concept in database as SQL Server, your required view should be as below:
Create view
as
Select Bloggers.bloggerName, Bloggers.blogTitle, Bloggers.blogImage
From Bloggers join Blogs on Bloggers.bloggerID = Blogs. bloggerID
If it means the UI view in MVC concept, I suggest you could ask it on the MVC forum:
http://forums.asp.net/1146.aspx
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
ORA-01776: cannot modify more than one base table through a join view
I have created EO based on a database view than consists of two tables, and only one is updateable.
When I try to update a row using EO, I got a following message: "ORA-01776-cannot modify more than one base table through a join view"
In Forms, this issue is resolved by setting "Query Only" property of non-updateable items to "True".
Is it possible to do something like that in ADF BC?
ThanksThanks for answer.
When I set "updateable" property to "Never", that attribute is protected from any change.
I'm sorry for incomplete usecase.
I have set up a list of value on that attribute, because it is a lookup field for another table and I need to get an ID from that table.
Basically, I need that attribute to be updateble for BC, but not for database.
Edited by: MarioK on Oct 13, 2011 9:28 AM -
Cannot modify more than one base table through a join view
hi guys, my current problem is that i have a datablock based on a view, now all the fields bar 1 are updateable, but this one field that is obtained through a join is displayed, the user can enter data in this field which then pupulates other fields which are required, but this specific field should not be updated. Is there an option to state this as i keep getting the error:
cannot modify more than one base table through a join view
Any help would be greatly appreciated, thanks.the user can enter data in this field which then pupulates other fields So, using the value of "this field" you then query the rest of the fields? Can you show us the code you use to populate the rest of the fields?
but this specific field should not be updatedHave you tried setting the "Query Only" property of the field to "Yes" and the other DML properties (Ins, Upd, Del) to No?
Also, what is your Forms version?
Thanks,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Issue with ADF Table bound to a View Object Iterator??
Can anyone say what would prevent an ADF table bound to a View Object Iterator from displaying all the records retrieved by the View Object Query?
I ran the query directly from sqlplus and it returned 21 rows, However when i use the same exact query in my view object and display the result in a ADF table, only 10 rows are retrieved and displayed in the table ?
Help .. Please ???The ADF table is actually set to use 'Include Range Navigation' and to display 20 rows each time. However, only a 10 rows are retrieved and displayed and the other 10 rows are displayed as blanks with only the Table selection radio buttons in the Select Column.
e.g.
Select Data1 Data 2
o xxxxxx xxxxxx
o xxxxxx xxxxxx
o
o
o
o
The four 'o' are blanks even though there is data to be displayed. -
Hi All
I am trying to show table heading in pivot view but failed. Please help me on this
I know that can achieve in table view but looking for a solution in pivot view.
What I am lookinf for is: Pivot View
Rows ---------Measures----------
X Y (Table Heading)
col1 col2 col3 col4 col5 col6 (column names)
--- --- --- --- ---- ---- (data)
Thnaks in advance!Ok, for example take two columns product and revenue. Consider they are 10 products.
What I have to display in report is 9 products with revenue and total revenue of those 9 products and then the 10th product and revenue and finally the grand total.
Product---Revenue
1---35
2---45
9---60
Total---140
10---70
Grand Total---210
Which can be achieved the same in pivot view (using New calculated item)
I also need to display the table headings, there I stuck with. -
SQL Query with 3 tables to create a view
Hi
I have got an existing view "View_output" formed with a query which works fine:
select A,B,C,D,E,F,G,H from GTS1 where D is not null
UNION
select A,B,C,D,E,F,G,H from GTSN1 where D is not null;It works fine, in the output I have columns A,B,C,D,E,F,G,H
New requirement : Modify the view, by adding a new column 'I' so that the view should have
columns A through I, and no column values should be null.
This column "I" is coming from a table, say DLC
Data in DLC is a subset of the original view "View_output"and DLC have the foll.columns:
("View_output" is a datablock source for a form and only selected column values are put as output in DLC
after form manipulation)
DLC is having only 5 columns -B,C,F,H,I
When I give:
(select A,B,C,D,E,F,G,H,NULLfrom GTS1 where D is not null
UNION
select A,B,C,D,E,F,G,H,NULL from GTSN1 where D is not null)
UNION
select NULL,B,C,NULL,NULL,F,NULL,H,I
from
DLC where I IS NOT NULL;It UNIONS all required rows in the 3 tables but columns A,D,E,G are NULL, but how can I get
data in these columns?
Edited by: Krithi on 30-Oct-2009 05:43
Edited by: Krithi on 30-Oct-2009 08:13Hi arun thats not the real isue..
I have corrected the second code now, it was a typo from my side..
all three tables already have 9 columns selected..
The view created from GTS1 and GTSN1 is constantly changing
There is no way to add column 'I' to any of these above tables
The view is the input to a form..User ticks a tickbox corresponding to records needed by them (These are the columns in the original view mentioned above)..and based on certain logic,only selected columns are now inserted/updated into the output table through the form..this is the table DLC
Now they want to insert a new data(free text) through the form, this field correspond to each record in the form ;this is supposed to be column 'I'(not designed yet)..
this is not there in the original input tables selected for the view...But then I added this column to the output table DLC (Cant think of any other method) so that column I can also get combined in the view.
Now what I want is recreate the view through,
create or replace view statement.
the view should effectively pull data from 3 tables .
The relation between 3 tables :
DLC is a subset of GTS1 and GTSN1
but may also contain data which is not in union of GTS1 and GTSN1
Only field I need from DLC is field 'I', and that too if the data is there in the union of GTS1 and GTSN1 -
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,
SubbuBelow 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 -
Problem occured when create a tree table for master-detail view objects using SQL queries?
I am programming a tree table for master-detail view objects using SQL queries and these 2 view objects are not simple singel tables queries, and 2 complex SQL are prepared for master and view objects. see below:
1. Master View object (key attribute is SourceBlock and some varaible bindings are used for this view object.)
SELECT cntr_list.SOURCE_BLOCK,
sum(
case when cntr_list.cntr_size_q = '20'
then cntr_list.cntr_qty
else 0 end ) as cntr20 ,
sum(
case when cntr_list.cntr_size_q = '40'
then cntr_list.cntr_qty
else 0 end ) as cntr40 ,
sum(
case when cntr_list.cntr_size_q = '45'
then cntr_list.cntr_qty
else 0 end ) as cntr45
FROM (
SELECT yb1.BLOCK_M as SOURCE_BLOCK,
scn.CNTR_SIZE_Q,
count(scn.CNTR_SIZE_Q) AS cntr_qty
FROM SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2
WHERE
scm.cmr_n = scn.cmr_n
AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')
OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))
AND scm.shift_mode_c = :ShiftModeCode
AND scm.end_terminal_c = :TerminalCode
AND scm.start_terminal_c = yb1.terminal_c
AND scm.start_block_n = yb1.block_n
AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n
AND scm.end_terminal_c = yb2.terminal_c
AND scm.end_block_n = yb2.block_n
AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n
AND scn.status_c not in (1, 11)
AND scn.shift_type_c = 'V'
AND scn.source_c = 'S'
GROUP BY yb1.BLOCK_M, scn.CNTR_SIZE_Q
) cntr_list
GROUP BY cntr_list.SOURCE_BLOCK
2. Detail View object (key attributes are SourceBlock and EndBlock and same varaible bindings are used for this view object.)
SELECT cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK,
sum(
case when cntr_list.cntr_size_q = '20'
then cntr_list.cntr_qty
else 0 end ) as cntr20 ,
sum(
case when cntr_list.cntr_size_q = '40'
then cntr_list.cntr_qty
else 0 end ) as cntr40 ,
sum(
case when cntr_list.cntr_size_q = '45'
then cntr_list.cntr_qty
else 0 end ) as cntr45
FROM (
SELECT yb1.BLOCK_M as SOURCE_BLOCK,
yb2.BLOCK_M as END_BLOCK,
scn.CNTR_SIZE_Q,
count(scn.CNTR_SIZE_Q) AS cntr_qty
FROM SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2
WHERE
scm.cmr_n = scn.cmr_n
AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')
OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))
AND scm.shift_mode_c = :ShiftModeCode
AND scm.end_terminal_c = :TerminalCode
AND scm.start_terminal_c = yb1.terminal_c
AND scm.start_block_n = yb1.block_n
AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n
AND scm.end_terminal_c = yb2.terminal_c
AND scm.end_block_n = yb2.block_n
AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n
AND scn.status_c not in (1, 11)
AND scn.shift_type_c = 'V'
AND scn.source_c = 'S'
GROUP BY yb1.BLOCK_M, yb2.BLOCK_M, scn.CNTR_SIZE_Q
) cntr_list
GROUP BY cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK
3. I create a view link to create master-detail relationship for these 2 view objects.
masterview.SourceBlock (1)->detailview.SourceBlock (*).
4. I create a tree table using these 2 view objects with master-detail relationship.
When I set default value for variable bindings of these 2 view objects and the matching records exist, tree table can work well. I can expand the master row to display detail row in UI.
But I need to pass in dymamic parameter value for variable bindings of these 2 view objects, tree table cannnot work again. when I expand the master row and no detail row are displayed in UI.
I am sure that I pass in correct parameter value for master/detail view objects and matching records exist.
Managed Bean:
DCIteratorBinding dc = (DCIteratorBinding)evaluteEL("#{bindings.MasterView1Iterator}");
ViewObject vo = dc.getViewObject();
System.out.println("Before MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
System.out.println("Before MasterView1Iterator ShiftModeCode="+ vo.ensureVariableManager().getVariableValue("ShiftModeCode"));
vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo.executeQuery();
System.out.println("MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
DCIteratorBinding dc1 = (DCIteratorBinding)evaluteEL("#{bindings.DetailView1Iterator}");
ViewObject vo1 = dc1.getViewObject();
System.out.println("Before DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
System.out.println("Before DetailView1Iterator ShiftModeCode="+ vo1.ensureVariableManager().getVariableValue("ShiftModeCode"));
vo1.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo1.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo1.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo1.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo1.executeQuery();
System.out.println("after DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
5. What's wrong in my implementation? I don't have no problem to implement such a tree table if using simple master-detail tables view object, but now I have to use such 2 view objects using complex SQL for my requirement and variable bindings are necessary for detail view object although I also think a bit strange by myself.Hi Frank,
Thank you and it can work.
public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
Number highSalary) {
Row r = getCurrentRow();
if (r != null) {
RowSet rs = (RowSet)r.getAttribute("EmpView");
if (rs != null) {
ViewObject accessorVO = rs.getViewObject();
accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
executeQuery();
but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and I have to change current row manually like below.
any idea?
DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
ViewObject vo = dc.getViewObject();
vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo.executeQuery();
vo.setCurrentRowAtRangeIndex(0);
((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues(); -
Inserting into a doubly nested table through an object view
Can anyone give me an example of an INSTEAD OF trigger that will mediate an INSERT into a doubly nested table of an Object View? Is there syntax that will allow it?
Here's some code to demonstrate. Note that relational tables, not an object table, are used to store object instances:
create or replace type TInnerNestedTable
is table of varchar2(20)
create or replace type TOuterNestedTable
is table of TInnerNestedTable
create or replace type TMyObject
is object
id varchar2(20)
, tab TOuterNestedTable
create
table T_MY_OBJECT
id varchar2(20) not null
, primary key (id)
create
table T_MY_OBJECT_TAB_OUTER
id varchar2(20) not null
, outerIndex integer not null
, primary key (id, outerIndex)
, foreign key (id) references T_MY_OBJECT on delete cascade
create
table T_MY_OBJECT_TAB_INNER
id varchar2(20) not null
, outerIndex integer not null
, innerIndex integer not null
, innerValue varchar2(20)
, primary key (id, outerIndex, innerIndex)
, foreign key (id, outerIndex) references T_MY_OBJECT_TAB_OUTER on delete cascade
create or replace view V_MY_OBJECT
of TMyObject
with object identifier (id)
as
select t.id
, cast(multiset(
select cast(multiset(
select i.innerValue
from T_MY_OBJECT_TAB_INNER i
where i.id = o.id
and i.outerIndex = o.outerIndex
) as TInnerNestedTable)
from T_MY_OBJECT_TAB_OUTER o
where o.id = t.id
) as TOuterNestedTable)
from T_MY_OBJECT t
create or replace trigger TR_II_V_MY_OBJECT
instead of insert on V_MY_OBJECT
for each row
begin
insert
into T_MY_OBJECT
id
values (
:new.id
insert
into T_MY_OBJECT_TAB_OUTER
id
, outerIndex
select :new.id
, rownum
from table(:new.tab) o;
insert
into T_MY_OBJECT_TAB_INNER
id
, outerIndex
, innerIndex
, innerValue
select :new.id
, o.outerIndex
, rownum
, value(i)
from (
select :new.id
, rownum outerIndex
, value(o) innerTab
from table(:new.tab) o
) o
, table(o.innerTab) i;
end;
insert
into V_MY_OBJECT
values (
new TMyObject(
'A'
, TOuterNestedTable(
TInnerNestedTable('A','B','C')
, TInnerNestedTable('AA')
, TInnerNestedTable('AB')
insert
into V_MY_OBJECT
values (
new TMyObject(
'B'
, TOuterNestedTable(
TInnerNestedTable('X','Y','Z')
, TInnerNestedTable('Hello', 'World!')
/Selecting from the view shows the results:
select value(o)
from V_MY_OBJECT o
VALUE(O)(ID, TAB)
TMYOBJECT('A', TOUTERNESTEDTABLE(TINNERNESTEDTABLE('A', 'B', 'C'), TINNERNESTEDTABLE('AA'), TINNERNESTEDTABLE('AB')))
TMYOBJECT('B', TOUTERNESTEDTABLE(TINNERNESTEDTABLE('X', 'Y', 'Z'), TINNERNESTEDTABLE('Hello', 'World!')))
2 rows selected.Hope that helps...
Gerard
Maybe you are looking for
-
I have windows 7 on my laptop and i can't get my songs to work.
I have windows 7 on my laptop and the current version of iTunes. For the past two days I cannot play songs from my music or purchased list. I can't even play the sample of a song in the iTunes store. I click on play on it does nothing. What's wrong?
-
In CRM web: pricing document cannot be saved
Hi All, In CRM web getting error like pricing document cannot be saved. but order was saved and we got order no also. when i checked in in CRM server its showing 1)The configuration is inconsistent 2)Configuration for product PACKAGE is missing
-
How To guide...for Flat File upload for User-Defined variables
Has anyone got link to the guide that describes how to do a flat file upload for populating User-Defined Variables ? Any assistance will be appreciated. Uche
-
Make page expire so that it can't be accessed with back button
Hi, Can anyone help with a problem I have? I've got a form sending credit card details which i'm sending with the post method to a servlet. When the user gets to the next page they can click back, change the details and submit it again. I wan't to st
-
I "cut" mail accidently how do I retrieve it?
Hello I'm new to the community and I have a macbook pro. I would like to retrieve my email from mail. I accidently cut mail, how do I retrieve it? Thank you Monica