How to create object from Table?
Hi all,
Is there any command to create an object type from a table?
I i want to that command to create object type from emp table insted of typing the following command:
CREATE TYPE emp_t AS OBJECT
(empno NUMBER(6),
ename VARCHAR2(25),
job VARCHAR2(10),
mgr NUMBER(6),
hiredate DATE,
sal NUMBER(8,2),
comm NUMBER(2,2))
any help would highly be appriciated.
Thank you in advance,
Alireza
Hi Jafar,
Thanks for your attention,
I dont want to create synonym,
I just want to create some Object types and work with XMLDB and create xsd or somthing like that using XMLDB packages.
I supose There shold be a simple way to do that.
Alireza
Similar Messages
-
How to Create Datasource from table in BW?
experts, my in house bw expert is on vacation and we need to create an extract into a bw cube from a custom table in BW. Can someone point me to a document that will walk me through this process?
These two links should be helpful.
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
http://wiki.sdn.sap.com/wiki/display/BI/HowtoCreateaGeneric+Datasource -
2 TopLink Java Object from Table to be used in single selectOneChoice
Hello everyone, can I ask for help on how to solve my problem....
Here's my scenario, I have 2 tables namely tblCollege and tblCourse, they are related through tblCourse.CollegeCode = tblCollege.Code.
I use the jdeveloper wizard using TopLink -> Java Object from Table to add these table to my project. I created an EJB Data Control so that I can use them to my Userinterface using ADF Faces.
What I really want to do is that I need to have selectOneChoice component displaying:
tblCollege.Name + tblCourse.Name, and it should have a value of tblCollege.Code + tblCourse.Code,
so for example in my
tblCollege:
Code---------Name
1---------------Science
2---------------Music
tblCourse
Code-------Name-----------CollegeCode
1-------------Biology----------1
2-------------Computer-------1
3-------------Guitar------------2
what I want in my selectOneChoice is like this:
value----------display
1-1--------------Science-Biology
1-2--------------Science-Computer
2-3--------------Music-Guitar
I'm a little stuck on how I'm going to that. Thanks.Bawasi,
I see a couple of angles of attack, but this really depends on the technologies involved. If you are using ADF Bindings in combination with ADF Faces then you need to shape the data at the entity level. If ADF Bindings are no the in equation, you can take a less aggressive approach and shape the data in a managed bean. What is not clear to me is the end-to-end use-case. I see the read-only (i.e. how to get data to the drop box), but I am
not certain what attribute on an entity you are attempting to set. Are you trying to set the course for the current user or for a master schedule? Finally, notice that the final shape of your data set shows a unique combinations, you could increase the performance of your use-case and ease of development simply by denormalizing your schema.
--RiC -
How to create the custom table?
Hi, how to create the custom table and how to integrate the table with defferent R/3?
my requiremnt is i have to create the two tables and those i have to integrate with the existed R/3 and using those R/3 i have to update my custom tables .....can give me some idea?
Tks
DPkhow to create the custom table
There are two approach in creating a table.
1. Bottom-up approach
2. Top-down approach.
Both are valid and you can choose which approach is suitable for you. I always use the bottom-up approach. Here are the steps to create the tables with this approach.
1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.
3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.
5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.
6. Go to data element page and save, check and activate.
7. Go to main table page and save, check, and activate.
8. Also, you have to save the technical settings of the table.
The table is now ready for operation. You can use it in your program or you can use it to enter information.
Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.
how to integrate the table with defferent R/3
Transport the Table to the another server/client/qas/prd
Kanagaraja L -
How to create a temp table in the memory, not in disk?
in sql server, you can create a temp table in the memory instead of disk,
then you can do the insert, delete,update and select on it.
after finishing, just release it.
in Oracle,
I am wonderfing how to create a temp table in the memory, not in disk?
thanks,Thanks for rectifying me Howard.
I just read your full article on this too and its very well explained here:
http://www.dizwell.com/prod/node/357
Few lines from your article
It is true, of course, that since Version 8.0 Oracle has provided the ability to create a Keep Pool in the Buffer Cache, which certainly sounds like it can do the job... especially since that word 'keep' is used again. But a keep pool is merely a segregated part of the buffer cache, into which you direct blocks from particular tables (by creating them, or altering them, with the BUFFER POOL KEEP clause). So you can tuck the blocks from such tables out of the way, into their own part of the buffer cache... but that is not the same thing as guaranteeing they'll stay there. If you over-populate the Keep Pool, then its LRU mechanism will kick in and age its contents out just as efficiently as an unsegregated buffer cache would.
Functionally, therefore, there can be no guarantees. The best you can do is create a sufficiently large Keep Pool, and then choose the tables that will use it with care such that they don’t swamp themselves, and start causing each other to age out back to disk.
Thanks and Regards -
Oracle JDeveloper 10.1.3 Toplink Objects from Table Bug.
i try this with updates and without them.
toplink bug or toplink Wizzard Bug: I have create a conection to data base(MySQL) I use mysql-connector and everything works... i see the tables then i try to create "TOplink objects from Table " , choose connection ,for Schema i choose "none". When i choose AutoQuerry it shows the columns i add columns , I choose OK. When it ask for a name for the package i give him mypackage, when it ask for class name i also choose my package.Users(the table is Users) after which i have the following exception in MessageBox:
"oracle.jdeveloper.cm.ds.db.InvalidNameException : Object must have a name."
on details i get :
oracle.toplink.addin.mappingcreation.MWProjectCreationException: oracle.jdeveloper.cm.ds.db.InvalidNameException: Object must have a name.
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:277)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:196)
at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:416)
at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.jdeveloper.cm.ds.db.InvalidNameException: Object must have a name.
at oracle.jdeveloper.cm.ds.db.validators.AbstractValidator.validateName(AbstractValidator.java:54)
at oracle.jdeveloper.offlinedb.validators.OfflineSchemaValidator.validateName(OfflineSchemaValidator.java:29)
at oracle.jdeveloper.cm.ds.db.validators.AbstractValidator.validateObject(AbstractValidator.java:187)
at oracle.jdeveloper.cm.ds.db.validators.AbstractValidator.validateObject(AbstractValidator.java:122)
at oracle.jdeveloper.cm.ds.db.AbstractDBObjectProvider.validateObject(AbstractDBObjectProvider.java:822)
at oracle.jdeveloper.cm.ds.db.AbstractDBObjectProvider.validateSchema(AbstractDBObjectProvider.java:858)
at oracle.jdeveloper.offlinedb.OfflineDBObjectProvider.createSchema(OfflineDBObjectProvider.java:1954)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.updateOfflineDBandMWDatabaseWithTablesToMap(MappingCreatorImpl.java:450)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:242)
... 4 more
in the messege log i get :
Starting Java object generation...
Creating offline database objects...
A problem was encountered creating offline database objects.
Aborted Java object generation.
Message was edited by:
JOKe
Message was edited by:
JOKeI have tried this out in the EA release of JDev, and have reproduced the problem you reported. However, trying out the latest development build, the problem does not occur, so this bug has been fixed. You'll pick up this fix when we next release the software on OTN.
-
How to create data_block from procedure ?
hi all
can anyone to help me :
how to create data_block from procedure ?
i want to join 2 or 3 table and use order by
then show some field in my form
i can not use view because order by can not use in view
please send sample code for this procedure
thanks.1) >i can not use view because order by can not use in view
SQL>create or replace view V_test as
2 select * from (
3 select 1 id from dual union
4 select 2 id from dual union
5 select 3 id from dual union
6 select 4 id from dual union
7 select 5 id from dual union
8 select 6 id from dual ) t
9 order by t.id
10 /
View created.
SQL>select * from v_test;
ID
1
2
3
4
5
6
6 rows selected.2). >how to create data_block from procedure?
You must create procedure and use ref cursor. -
How to create a new table based out of old data rows
Hi All,
How to create a new table based out of old data rows. Also how can we find out the DBF for different users in a database?
SaqibNot very clear what you need. I'll try to interpret...
How to create a new table based out of old data rowsIf this means how to create a table from an existing one, then you can do :
SQL> create table <new table> as select * from <old table>;
if you need a subset of rows you can add a where clause.
how can we find out the DBF for different users in a database?Here I need some more clarification. What do you mean exactly ? -
Hi all,
Can anyone tell me how to create an object of the class CL_BP_HEAD_CORPACCOUNTDET_CTXT .
Please reply as fast as possible.
Regards,
VijayHi Balasubramanian,
The below steps might help u out.
1. Call the function Create Object.
You have the following options:
¡ Choose Object ->New () in the main menu (or the pushbutton Create Object ).
¡ Position the cursor on a structure node in the navigation area and choose New () from the context menu.
In this case, there are already entries in the Create Object dialog, corresponding to the position of the cursor in the navigation area.
Integration Builder (Integration Directory): You have positioned the cursor on the Service node of a communication party. If you call the function Create Object from the context menu, there are already entries for the object type Service and the party field.
You cannot create objects of type RFC or IDoc again.
2. Enter the required information. Select the object type first and then specify the object key.
An input help is available to help you specify the key values. To call the input help, use the icon . The value selection offered by the input help may depend on which values have already been defined for the other key attributes.
Integration Builder (Integration Repository): The namespace selection depends on the selected software component version.
3. To confirm your entries, choose Create.
This calls the object editor for this object. The specifications that you made when you created the object are displayed in the header. You can edit the object further in the work area of the object editor.
Once you have confirmed your entries by choosing Create in the Create Object dialog, you can no longer change the object key.
Reward if helpful.
Thankyou,
Regards. -
How to create object at infoview
Hi all
i am using SAP BO 3.1
How to create object called SL NO this is not available at universe and second object "code" is coming from universe.
final output should be like this
SL NO
code
1
Non-Emergency ED Utilization
2
Office Visits
3
Inpatient Stays
thanks in advance!!
RanjeetHi Ranjeet
Insert one column in that report. Write formula like this...
=LineNumber()-1
Regards,
G -
Question on how to create a pivot table
Hi,
I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up.
I thought of doing it through a managed bean but in order to do it I need to know how to create the PivotTableModel.
The pivot table model requires a data source object and I do not know how to create it to support multiple row and column layers.
Is there a default data source object that I can extend, or better yet is there a written example on how to create a pivot table model using a managed bean.
Thanks,
OrHi,
duplicate of ADF -11g : Question on how to create a pivot table -
ADF -11g : Question on how to create a pivot table
Hi,
I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up.
I thought of doing it through a managed bean but in order to do it I need to know how to create the PivotTableModel.
The pivot table model requires a data source object and I do not know how to create it to support multiple row and column layers.
Is there a default data source object that I can extend, or better yet is there a written example on how to create a pivot table model using a managed bean.
Thanks,
Or
Edited by: user638363 on Dec 18, 2008 7:02 AMHi,
beyond the documentation, the pivot table is described in
http://technology.amis.nl/blog/2593/adf-faces-11g-reloading-the-matrix-using-the-pivot-table-component
http://technology.amis.nl/blog/3786/creating-a-salary-heat-map-with-the-adf-11g-faces-pivottable-component
http://technology.amis.nl/blog/3673/adf-11g-richfaces-a-closer-look-at-the-pivot-table-data-visualization-component
I am not aware of any sample that directly meets your requirement
Frank -
How to create a transparent table(z table) dynamically
Hi,
Can anyone explain me how to create a transparent table(z table) dynamically in the program.
Any function module or suggestions welcome.Hi Mithun
we will not create transparent table in the program . you could do it by using native SQL in the ABAP Program . the sample is show in below .
This is a sample that show how to connect to Database directly and can use the native SQL to select , create or delete table.
PARAMETERS dbs TYPE dbcon-con_name default 'SDB'.
DATA carrid_wa TYPE scarr-carrid.
DATA lv_int TYPE i.
*Types
data: begin of ty_equi,
equipment(25) type c,
SERIALENERGY(25) type c,
end of ty_equi.
*Internal Tables
data it_equi like table of ty_equi.
data wa_equi like line of it_equi.
DATA dbtype TYPE dbcon_dbms.
SELECT SINGLE dbms
FROM dbcon
INTO dbtype
WHERE con_name = dbs.
IF dbtype = 'ORA'.
TRY.
EXEC SQL.
CONNECT TO :dbs
ENDEXEC.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE cx_sy_native_sql_error.
ENDIF.
EXEC SQL.
OPEN dbcur FOR
SELECT
EQUIPMENT,
SERIALENERGY
FROM emd.meter
ENDEXEC.
DO.
EXEC SQL.
FETCH NEXT dbcur INTO :wa_EQUI
ENDEXEC.
IF sy-subrc <> 0.
EXIT.
ELSE.
WRITE: /
wa_equi-equipment,
wa_equi-SERIALENERGY.
ENDIF.
ENDDO.
EXEC SQL.
CLOSE dbcur
ENDEXEC.
EXEC SQL.
DISCONNECT :dbs
ENDEXEC.
CATCH cx_sy_native_sql_error.
MESSAGE `Error in Native SQL.` TYPE 'I'.
ENDTRY.
ENDIF.
Regards
Wiboon -
This Custom Table is create in Custom Schema and Refers to Seeded Table in APPS schema
1 create table test_dff (test_id number(15) primary key,
2* invoice_id number(15) constraint ap_test_fk REFERENCES ap_invoices_all(invoice_id) ON DELETE CASCADE)
SQL> /
invoice_id number(15) constraint ap_test_fk REFERENCES ap_invoices_all(invoice_id) ON DELETE CASCADE
ERROR at line 2:
ORA-02270: no matching unique or primary key for this column-list
How to create this Custom Table on Custom Schema
thanks in advancehi prashant
sorry for replying late, i have checked your query and it gives me no rows, but if i check for user_cons_columns it gives me no rows either in APPS Schema, but in AP schema it gives me
SQL> SELECT * FROM user_cons_columns WHERE table_name = 'AP_INVOICES_ALL';
OWNER CONSTRAINT_NAME TABLE_NAME
COLUMN_NAME
POSITION
AP SYS_C008177 AP_INVOICES_ALL
INVOICE_ID
SQL> SELECT constraint_name, constraint_type FROM user_constraints WHERE table_name = 'AP_INVOICES_A
LL';
CONSTRAINT_NAME C
SYS_C008177 C
SYS_C008178 C
SYS_C008179 C
SYS_C008180 C
SYS_C008181 C
SYS_C008182 C
SYS_C008183 C
SYS_C008184 C
SYS_C008185 C
SYS_C008187 C
SYS_C008189 C
SYS_C008191 C
and since this is a combination of Unique and Not Null Constraints , i am getting the same issue. do u have any solution to make the Detail table records to delete without using Alerts/DB Triggers?
thanks for your time .
abdul rahman -
How to create bdc with table control
hi all.
please some body tell me how to create bdc with table control
or suggest any www with screen shots
thanks in advance ,
aparnaHi AParna,
Its very Simple.
ALl you have to do is set up a counter based on the number of lines in the tabke. when the counter reaches the number of lines in the table hit the next page button which is at the top of every screen in SAP.
Please refer to the following BDC program I had developed using Table control,
this is for ME01 transaction.
LOOP AT T_EORD_HED.
SELECT SINGLE * FROM MARA WHERE MATNR = T_EORD_HED-MATNR.
IF SY-SUBRC = 0.
PERFORM BDC_DYNPRO USING 'SAPLMEOR' '0200'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'EORD-MATNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'EORD-MATNR'
T_EORD_HED-MATNR. "'58335'.
PERFORM BDC_FIELD USING 'EORD-WERKS'
T_EORD_HED-WERKS. "'0253'.
L_COUNT = 1.
LOOP AT T_EORD WHERE MATNR = T_EORD_HED-MATNR
AND WERKS = T_EORD_HED-WERKS.
SELECT SINGLE * FROM LFA1 WHERE LIFNR = T_EORD-LIFNR.
IF SY-SUBRC = 0.
* Look into the if condition below
IF L_COUNT = 010.
L_COUNT = 1.
PERFORM BDC_DYNPRO USING 'SAPLMEOR' '0205'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'EORD-MATNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=NS'.
L_COUNT = L_COUNT + 1.
ENDIF.
PERFORM BDC_DYNPRO USING 'SAPLMEOR' '0205'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'EORD-AUTET(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
CONCATENATE 'EORD-VDATU' '(' L_COUNT ')' INTO OPR_FIELD.
WRITE SY-DATUM TO T_EORD-VDATU.
PERFORM BDC_FIELD USING OPR_FIELD
T_EORD-VDATU.
CONCATENATE 'EORD-BDATU' '(' L_COUNT ')' INTO OPR_FIELD.
WRITE T_EORD-BDATU TO V_BDATU.
PERFORM BDC_FIELD USING OPR_FIELD
V_BDATU.
CONCATENATE 'EORD-LIFNR' '(' L_COUNT ')' INTO OPR_FIELD.
PERFORM BDC_FIELD USING OPR_FIELD
T_EORD-LIFNR.
CONCATENATE 'EORD-EKORG' '(' L_COUNT ')' INTO OPR_FIELD.
PERFORM BDC_FIELD USING OPR_FIELD
'0001'.
CONCATENATE 'EORD-RESWK' '(' L_COUNT ')' INTO OPR_FIELD.
PERFORM BDC_FIELD USING OPR_FIELD
T_EORD-RESWK.
WRITE T_EORD-MEINS TO V_MEINS.
CONCATENATE 'EORD-MEINS' '(' L_COUNT ')' INTO OPR_FIELD.
PERFORM BDC_FIELD USING OPR_FIELD
V_MEINS.
* CONCATENATE 'EORD-EBELN' '(' L_COUNT ')' INTO OPR_FIELD.
* PERFORM BDC_FIELD USING 'OPR_FIELD'
* T_EORD-EBELN.
CONCATENATE 'EORD-EBELP' '(' L_COUNT ')' INTO OPR_FIELD.
PERFORM BDC_FIELD USING OPR_FIELD
T_EORD-EBELP.
IF T_EORD-FLIFN NE SPACE OR T_EORD-FRESW NE SPACE OR
T_EORD-FEBEL NE SPACE.
CONCATENATE 'RM06W-FESKZ' '(' L_COUNT ')' INTO OPR1_FIELD.
PERFORM BDC_FIELD USING OPR1_FIELD
'X'.
ENDIF.
IF T_EORD-NOTKZ <> ''.
CONCATENATE 'EORD-NOTKZ' '(' L_COUNT ')' INTO OPR_FIELD.
PERFORM BDC_FIELD USING OPR_FIELD
'X'.
ENDIF.
CONCATENATE 'EORD-AUTET' '(' L_COUNT ')' INTO OPR_FIELD.
PERFORM BDC_FIELD USING OPR_FIELD
T_EORD-AUTET.
L_COUNT = L_COUNT + 1.
ENDIF.
ENDLOOP.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'EORD-MATNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=BU'.
CALL TRANSACTION 'ME01' USING I_BDCDATA
MODE UP_MODE
* optIONS FROM l_opt
MESSAGES INTO I_BDCMSGCOLL.
PERFORM FORMAT_OUTPUT.
ENDIF.
ENDLOOP.
Maybe you are looking for
-
My ipod nano is not being recognized by my laptop
dear apple community users, when i connect my ipod nano to my lapto (hp) it shows the charging sign but it is not recognized by the laptop. i have tried turning it on and off may times but has not helped i have the latest version of itunes on the lap
-
Problem with SP with table parameters
Hello, I have problem with stored procedure with paramater which is table type. I have defined my own type CREATE OR REPLACE TYPE STRING_LST AS TABLE OF VARCHAR2(80); and i have stored procedure like this PROCEDURE probe(outList OUT STRING_LST) IS
-
Master role-derive role concept and FICO role in dev system!!!
Hi all, I have created a master role with t-codes AWUW BAPI BD10 BD100 BD101 BD102 BD103 BD104 BD105 BD11 BD12 BD13 BD14 BD15 also included object PLOG where maintained org data and created a derived role from that master role and generated from the
-
Ive been able to backup to my time capsule with no problem for several months. Now when I try to back up I get an error that says "The backup volume is read only." When I do a Verify Disk in Disk Utility on the sparsebundle I get an error that says I
-
Ive color corrected a spot in FCP and now I want to change a few things...well more than a few..anywho, Im going to copy my sequence and work on the copy..If I remove all filters in attributes, will this affect the quality of my original footage? Als