How to create table view with reference table
Hi experts,
How to create table view with reference table in SE11, plz gve me stp by stp procedure.
pints grnded for hlp.
Hi
Go to Tcode se11 choose view and enter the name and create a popup opens up choose database view option
enter the description
On the left hand side choose the table name.
Click on view fields tab and choose your table fields.Here you can choose which fields you want in your view.
Save and then activate.
Hope this helps.
Regards,
Harish
Similar Messages
-
How to create excise invoice with reference thorugh credit memo
Hi All,
Please provide any solution for the following qurey:
How to create excise invoice with reference thorugh credit memoHi murali,
i am unable to understand your requirement i think there is no like this scenario requirement for any client
if any requirement is there kindly explain detail
cheers -
[ADF Help] How to create a view for multiple tables
Hi,
I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
ex:
Table A has these fields: ID, Name
Table B has these fields: ID, Address
A.ID and B.ID are primary keys.
B.ID has FK relationship with A.ID
(basically, these tables have one-to-one relation)
I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
So I can execute C,R,U,D for both tables.
I create these tables in DB, and create entity objects for these tables.
So there are 2 entity objects and 1 association.
Then I create a view object based on B and add fields of A into the view:
If the association is not a "Composition Association",
when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
If the association is a "Composition Association", and click the insert button, I will get
"oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
If I create a view object based on A and add filed of B into the view:
When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
So... how can I create a view for multiple tables correctly?
Thanks for any advices!
Here are some pictures about my problem, if there is any unclear point, please let me know.
http://leonjava.blogspot.com/2009_10_01_archive.html
(A is Prod, B is CpuSocket)
Edited by: user8093176 on Oct 25, 2009 12:29 AMHi Branislav,
Thanks, but the result is same ....
In the step 2 of creating view object, I can select entity objects to be added in to the view.
If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
If I select B first, and then select A in crating view object, the result is similar ...
Thanks for any further suggestion.
Leon -
How to create a view with a column of counts of the occurence of values
If my table is:
ID
1
2
3
3
5
5
5
I want to create a view with the following result:
ID COUNT
1 1
2 1
3 2
5 3
How would I accomplish this?Sorry, my mistake. I was thinking about counting distinct events.
I created a table with your example values:
You should do a projection with a calculated column = 1:
And then add this calculated column as an aggregated measure on the aggregation node:
Result:
Cheers,
Fernando -
How to create a view with parameters; read the documentation but nothing!
Hello!
I'm new to the Oracle world but together with my coworkers we need to very quickly study Oracle to figure out whether we'll add Oracle to our list of supported databases or not.
Question: How do I create a view with parameters?
I've read the documentation but I could not find this! I found the sql syntax to create a view but no parameters whatsoever...
I have found on the web some very complicated way of doing this, but doesn't Oracle support Views with parameters?
The goal here is to return a recordset, don't forget, so,please don't speak about stored procedures unless you are going to tell me how to get a recordset out of a stored procedure! ;)
Thanks for all your help and attention!
Jorge C.You can set up a parameterized view via context as follows:
1. Set up a procedure to set your context values:
create or replace procedure p_set_context (p_context IN VARCHAR2,p_param_name IN VARCHAR2,p_value IN VARCHAR2)
as
BEGIN
sys.dbms_session.set_context(p_context,p_param_name,p_value);
END;
2. Create your context using the procedure you just created
create or replace context my_ctx using p_set_context
3. This is the test table I'll use
create table my_table(col1 number)
and populate it:
begin
for v_index in 1..10
loop
insert into my_table values(v_index);
end loop;
end;
and the view that will be parameterised
create or replace view v_my_table as select col1 from my_table where col1 between sys_context('my_ctx','start_range') and sys_context('my_ctx','end_range')
4. Now set the parameters using the procedure above.
begin
p_set_context('my_ctx','start_range','1');
p_set_context('my_ctx','end_range','5');
end;
5. Selecting from my_table will give you 1 to 10 (no surprise there :-) )
selectng from v_my_table will give you 1 to 5
You can use the context to set formats etc using the same principle. A common gotcha to watch for is trying to set the context directly using DBMS_SESSION.SET_CONTEXT instead of creating a procedure. This belongs to SYS and SYS won't have the privileges to set your context so you get an insufficient privileges result leading to much headscratching and unnecessary grants (at least that's my understanding of it).
Sorry Jorge, as you're new to Oracle I should also have pointed out for completeness sake, that you can change the parameters at any time through recalling the p_set_context, for example, following on from above, after your "select * from v_my_table" and seeing 1 to 5, you could then do
begin
p_set_context('my_ctx','start_range','3');
end;
and when you requery 'Select * from v_my_table' you will now see rows 3 to 5.
Bit of a simplistic example, but you can see how easy it is. :-)
Message was edited by:
ian512 -
How to create caracter set with reference(or create it anyhow)on 5.0
I have difficulty (only on version 5.0 and 4.7) to create caracter set with reference(or create it anyhow). On version 4.6 there is no problem (I can do that like described in course BC305).
Transaction "spad"->Full administation-> character set->change-> character
set-> character set->create using template(or just create)
I have intention to modify char set afterwards
How could I do that in version 5.0 ECC?and therefore in this forum with minor chances to get an answer.
regards
Peter -
How to create a view with Oracle apps Org initialization ?
Hi,
How to create a view which needs Oracle apps org initialization to provide the correct data .
The purpose of the view is to be accessed in Primavera DB via a DB link for reporting purpose.
So how should the org be initialized so that the view returns the correct data when accessed from the remote data base using the DB link?
EX: step1 run fnd_client_info.set_org_context for the org
step2 query the veiw returns correct data in Oracle.
How can this be achieved if the view needs to be accessed via DB link?
sample view sql :
select po_header_id
from po_distributions_all pod
where (apps.po_intg_document_funds_grp.get_active_encumbrance_func
('PO',
pod.po_distribution_id
) <> 0
Thanks in advance!
DarshiniHi,
This is not possible in Oracle. What u can do is create the view without the where clasue and supply the where clause at runtime.
Hope this helps...
Regards,
Ganesh R -
How to create a view with parameter?
who can tell me hwo to create a view with
parameters just like a cursor?Hi,
This is not possible in Oracle. What u can do is create the view without the where clasue and supply the where clause at runtime.
Hope this helps...
Regards,
Ganesh R -
Create a View with many tables with the Table-Fieldnames
Hello!
Question 1)
Which kind of view is the correct for joining
many tables together.
Question 2)
What is the solution in case of having several tables
with the same fieldnames by creating a view. How can I choose this fields
into a view. I cant use the same name twice in section
(tab strip) ViewFlds.
Regards
IlhanHi Ilhan,
There is no problem in the view fieldname you can put something like this :
This is you who choose the view field name so...
View Fieldname Table Field
VBAK_VBELN vbak vbeln
vbap_vbeln vbap vbeln
Erwan -
How to create a view with columns from multiple rows
I have posted this in SQL/PSL forum, but I hope database experts in this group can give me ideas too, also the need is from BI reports.
I have a table, say, project_milestones, which has these columns in concern:
proj_id, milestone_name, actual_end_date
with data:
proj_id, milestone_name, actual_end_date
===== ================ ==============
1001, Key Element Approve, 2009-10-02
1001, Final Synopsis, 2009-10-07
1001, Final Protocol Approved, 2009-10-15
1001, FPFV, 2010-01-10
1001, LPFV, 2010-03-12
1002, Key Element Approve, 2008-12-02
1002, Final Synopsis, 2009-01-07
1002, Final Protocol Approved, 2009-01-12
1002, FPFV, 2009-03-30
1002, LPFV, 2009-10-04
There are about 10 milestones in each project.
I have to create a view to flat these data at project level, looks like this:
proj_id, key_element_date, final_synopsis_date, final_protocol_approved_date, FPFV_date, LPFV_date, key_element_to_final_synopsis_days, final_synopsis_final_protocol_days, ....
How can I do this?
Thanks,user9175541 wrote:
I have posted this in SQL/PSL forum, but I hope database experts in this group can give me ideas too, also the need is from BI reports.
I have a table, say, project_milestones, which has these columns in concern:
proj_id, milestone_name, actual_end_date
with data:
proj_id, milestone_name, actual_end_date
===== ================ ==============
1001, Key Element Approve, 2009-10-02
1001, Final Synopsis, 2009-10-07
1001, Final Protocol Approved, 2009-10-15
1001, FPFV, 2010-01-10
1001, LPFV, 2010-03-12
1002, Key Element Approve, 2008-12-02
1002, Final Synopsis, 2009-01-07
1002, Final Protocol Approved, 2009-01-12
1002, FPFV, 2009-03-30
1002, LPFV, 2009-10-04
There are about 10 milestones in each project.
I have to create a view to flat these data at project level, looks like this:
proj_id, key_element_date, final_synopsis_date, final_protocol_approved_date, FPFV_date, LPFV_date, key_element_to_final_synopsis_days, final_synopsis_final_protocol_days, ....
How can I do this?
Thanks,Create a pivot table and put "milestone_name" in the Columns section under the Labels.
Put "actual_end_date" in the Measures section and change the Aggregation Rule to "Max."
The rest of the attributes keep in Rows section. -
How to create materialized view with parameter and index ?
Hi all,
i am using oracle 11g.
i want to create parameter materialized view with two parameter (STORED_VALUE, LOV_NAME) with an index .
i have below view
CREATE OR REPLACE FORCE VIEW SR_MY_TEST(DISPLAYED_VALUE, STORED_VALUE, LOV_NAME) AS
SELECT DISPLAYED_VALUE , LOVVALUE.STORED_VALUE , lovname.lov_name
FROM (SELECT T.LOV_VALUE_ID,
T.LOV_ID,
T.ORG_ENTITY_ID,
T.STORED_VALUE,
T.DISPLAYED_VALUE,
T.ENTERPRISE_ID
FROM MS_QS_LIST_OF_VALUES_T T) lovvalue, ms_qs_lov_names lovname
WHERE lovvalue.lov_id = lovname.lov_id
AND lovvalue.org_entity_id = 1
and LOVVALUE.ENTERPRISE_ID = 100000
AND LOVNAME.ENTERPRISE_ID = 100000;
i want to create index on STORED_VALUE, LOV_NAME
Thanks
DambyNo.AFAIK, there's nothing called as "parameterized MV".
Materialized View store data like tables (and not like Views). So, does it make sense when you say - "table with parameters" ?
Could you please explain your business requirement?
What is the purpose behind those 2 parameters? -
How to create excise invoice with reference delivery document
hi all sd guru
please guide me how to create excise invoice by taking reference of delivery no.
thankx in advance
sanHI
FACTORY SALES
IN CASE OF FACTORY sales you have to create a billing document either Proforma or Commercial.
Then you can reference the billing doc i9n J1IIN for creation
DEPOT SALES
In case of depot sales you can create a excise invoice with reference to delivery document.
For this after creation of delivery goto J1IJ and slect the rg23d from menu
you can create an excise invoice with delivery in depot sales.
In factory it is not possible to create a excise invoice with delivery doc.
regards
Prashanth -
How to create a Contract with reference to a Sales-Order(VA01) with a BAPI
Hi,
my name is Wadim and i need help.
My problem:
I am creating a sales-order(VA01) with the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'.
After that i have to create a contract(VA41) with reference to this order. I found the BAPI "BAPI_CONTRACT_CREATEFROMDATA" and it has the same interfaceparameters like the salesorder-bapi. but there are no parameters to get a connection to the sales-order.
Is it even possible to get a connection to a sales-order with a bapi???
thanks for help
regards mark
Edited by: Krapp Wadim on May 20, 2010 9:19 PMHi Wadim,
I have a similar requirement to create order lines in an existing contract with reference using BAPI_CUSTOMERCONTRACT_CHANGE. The order lines get created in the contract. However, the condition types from the order line which i'm referencing are not getting referenced and are not getting added in the Contract's line after referencing.
Did you come across any such issue ? If yes , could you suggest the solution ?
Regards,
Venkat. -
How to create a view with "WITH CLAUSE"
Hi,
I have a query with "WITH" CLAUSE , I need to create a view on this query. But I am getting error like
ORA-32034 : Unsupported sue of WITH clause.
Please help me...!!
Please find below my query...!!
WITH RANGE
AS (SELECT A.MASTERMACHINEID,
a.startdate,
a.enddate,
a.startdate - (1 / 3) + (lvl) * 1 / 3 SHIFT_ST_DT,
a.startdate + (lvl) * 1 / 3 AS SHIFT_END_DT,
a.quantity,
(LEAST ( enddate, TODATE) - GREATEST ( FROMDATE, startdate)) * 24 TOTAL_HRS,
(enddate - startdate) * 24 AVAIL,
todate,
fromdate
FROM OMP A,
(SELECT LEVEL lvl
FROM (SELECT MAX (enddate - startdate) AS diff FROM OMPWORKORDER)
CONNECT BY LEVEL <= (diff) * 3),
MASTER B
WHERE A.MASTERMACHINEID = B.MASTERMACHINEID
AND lvl / 3 <=(enddate - startdate) + 1
ORDER BY SHIFT_ST_DT)
SELECT shift_date,
shift_num,
shift_hrs,
DECODE (SIGN (SHUT_DWN_TIME), -1, 0, SHUT_DWN_TIME),
8 - DECODE (SIGN (SHUT_DWN_TIME), -1, 0, SHUT_DWN_TIME) shift_avail_hrs,
qty,
total_qty
FROM (SELECT TRUNC (SHIFT_ST_DT) shift_date,
ROW_NUMBER () OVER (PARTITION BY TRUNC (SHIFT_ST_DT) ORDER BY SHIFT_ST_DT) shift_num,
8 shift_hrs,
(LEAST ( SHIFT_END_DT, TODATE) - GREATEST ( FROMDATE, SHIFT_ST_DT)) * 24
SHUT_DWN_TIME,
quantity / (avail - TOTAL_HRS) qty,
round(((SHIFT_END_DT - SHIFT_ST_DT) * 24 - (LEAST (SHIFT_END_DT, TODATE) - GREATEST (FROMDATE, SHIFT_ST_DT)) * 24) * QuantiTY / (AVAIL - TOTAL_HRS),2)
TOTAL_QTY
FROM RANGE A );Regards
KPR
Edited by: BluShadow on 17-Mar-2011 09:48
added {noformat}{noformat} tags for readabilityTry creating view on following query, if it can help you:
SELECT shift_date,
shift_num,
shift_hrs,
decode(SIGN(shut_dwn_time), -1, 0, shut_dwn_time),
8 -decode(SIGN(shut_dwn_time), -1, 0, shut_dwn_time) shift_avail_hrs,
qty,
total_qty
FROM
SELECT TRUNC(shift_st_dt) shift_date,
row_number() over(PARTITION BY TRUNC(shift_st_dt)
ORDER BY shift_st_dt) shift_num,
8 shift_hrs,
(least(shift_end_dt, todate) -greatest(fromdate, shift_st_dt)) *24 shut_dwn_time,
quantity /(avail -total_hrs) qty,
ROUND(((shift_end_dt -shift_st_dt) *24 -(least(shift_end_dt, todate) -greatest(fromdate, shift_st_dt)) *24) *quantity /(avail -total_hrs), 2) total_qty
FROM
SELECT a.mastermachineid,
a.startdate,
a.enddate,
a.startdate -(1 / 3) +(lvl) *1 / 3 shift_st_dt,
a.startdate +(lvl) *1 / 3 AS
shift_end_dt,
a.quantity,
(least(enddate, todate) -greatest(fromdate, startdate)) *24 total_hrs,
(enddate -startdate) *24 avail,
todate,
fromdate
FROM omp a,
(SELECT LEVEL lvl
FROM
(SELECT MAX(enddate -startdate) AS
diff
FROM ompworkorder)
CONNECT BY LEVEL <=(diff) *3),
master b
WHERE a.mastermachineid = b.mastermachineid
AND lvl / 3 <=(enddate -startdate) + 1
ORDER BY shift_st_dt
) a
;Regards,
Dipali.l -
How to create analytic view with tables VBRK VBRP KONV ?
Hi Gurus,
What is the best way to combine in a analytic view tables VBRK VBRP and KONV for better optimization or
how to make the relationship tables VBRK VBRP KONV with better performance in Hana Studio ?
This analytic view should be used in a calculation view to the final calculations.
Thanks !Hi Rogerio,
Greetings.
Basically , when you design your analytic views , while designing your data foundation , you can directly join the tables with the corresponding key attributes . Analytic views are capable of optimizing the join operation when we access the view.Logic of joining is purely depends on your business requirement
Sreehari.
Maybe you are looking for
-
Transaction Isolation Level to Read UnCommited in Non OLTP Database
HI, We are having a database which for NOT OLTP process. That is OLAP DB. Operation on that DB is only Select and (Incremental Insert - FOR DWH ) not Update/Delete and we are performing ROLAP operations in that DB. By Default SQL Server DB isolation
-
How to delete a iMovie Project
Hi everyone how do you go about deleting a iMovie project that you started but dont want to use. I want to get rid of it completely and recover the HD space it used up. Thnx in advance
-
File preparation Casebound smyth sewn book
Ello, I've prepared a 288 page book, that is full colour on each page, including background etc which will be casebound smyth sewn. It's been designed as facing pages with only bleed on the outside edges. I asked the printer to provide PDF specs and
-
CS4 Locks up when building a preview/rendering
Im on Windows XP running CS4 and I get a problem with it 'locking up' whilst building a preview or rendering. It doesnt happen everytime, but enough to be a problem. I have tried 'purge all' thinking this would 'free up' things, but no luck. When I g
-
FCE3.5 slowed to a crawl
I've been editing HD footage and have noticed that as the project grows in length it takes longer to render transitions. After adding titles and rendering them, FCE slowed to a crawl, taking almost an hour to render one title. Keyframing is exceeding