Creating new tables
Hi Every one,
I am new to SAP.Please some one can explain,if new table is to be created,( as it is not in SAP tables), the what is the process of creating new table and how it is used for specific customer.
I hope some one will help me.
Thanks in advance.
VM
If a new table is to be created for Pricing, it is as under:
Condition table (T.Code: V/04): If existing condition table meets the requirement, we need not create a new condition table. Considering the requirement for new condition table, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Table (select the required fields combination, which will store condition record). To save the Table click o the Generate button, which is round in shape on upper left hand side of the screen.
If any 'Z; Table is required, it has to be developed by Abaper.
Regards,
Rajesh Banka
Similar Messages
-
Creating new tables in Logical Standby database
Hi
I have a requirement to create new tables in logical standby database. These tables will not be present on primary database. Is it possible to do this ?
I have a new schema already created which has the privilege to CREATE new table.
I have stopped the logical standby apply.
When I am now trying to create a new table but it is failing with error : insufficient privileges.
When I am trying to run below statement on new schema it is also failing with error of insufficient privileges.
alter session disable dataguard;
Please help.user8819121 wrote:
Thanks Mahir,
I was able to create the table after logging in as sysdba.
But I need my user on that table to execute DML statements. My user has privileges to insert,delete and update any table.
I tried the following statements to disable the guard but it is sill not working
ALTER DATABASE GUARD STANDBY.
Do I need to skip the tables created using dbms_logstdby package to not making it part of SQL Apply ? I guess not since the table is not in primary database.
Amit
You can skip only on primary, your created schema on Standby is not in primary.
Then you must change Status of data guard to NONE. NONE is means is not any security on your data.
In Guard status NONE can change all schema data.
Please check link: http://docs.oracle.com/cd/E11882_01/server.112/e10700/manage_ls.htm#CHDGFGHG
Following tests on user created before guard status is change from ALL to STANDBY.
C:\Users\Administrator>sqlplus / as sysdba
SQL> conn test/test
Connected.
SQL> select table_name from user_tables;
TABLE_NAME
T
SQL> insert into t values(22);
insert into t values(22)
ERROR at line 1:
ORA-16224: Database Guard is enabled
SQL> conn / as sysdba
Connected.
SQL> select guard_Status from v$database;
GUARD_S
ALL
SQL> alter database guard standby;
Database altered.
SQL> conn test/test
Connected.
SQL> insert into t values(1);
insert into t values(1)
ERROR at line 1:
ORA-16224: Database Guard is enabled
SQL> conn / as sysdba
Connected.
SQL> select guard_Status from v$database;
GUARD_S
STANDBY
SQL> alter database guard none;
Database altered.
SQL> select guard_Status from v$database;
GUARD_S
NONE
SQL> conn test/test
Connected.
SQL> insert into t values(1);
1 row created.
SQL> commit;
Commit complete.And Now I want share with you new tests :)
Now user creating when after guard status change
SQL> drop user test cascade;
User dropped.
SQL> select guard_status from v$database;
GUARD_S
STANDBY
SQL> create user test identified by test;
User created.
SQL> grant create session, resource, create table to test;
Grant succeeded.
SQL> conn test/test
Connected.
SQL> create table t (n number);
Table created.
SQL> insert into t values(1);
1 row created.
SQL> commit;
Commit complete.
SQL>It means when guard status is ALL then all of user created guarding.
When you changed status to STANDBY then Logical Standby guard only primary schema and created schema before change.
NONE is not guard any schema. it means you can delete standby schema data too.
Regards
Mahir M. Quluzade
Edited by: Mahir M. Quluzade on Apr 19, 2013 4:07 PM -
CMP Beans from Tables: Why does the Container try to create new tables?
I'm trying to develop an EJB application using JDeveloper on 9iAS. I have several CMPs and have my tables that I want my CMPs to be based on already defined in my DB schema. I want to use CMP but I don't want the Container to create the tables, rather I want the Container to map my CMP EJBs to the already existing tables.
The issue is:
While creating these CMP EJBs in JDeveloper I chose the "New Enterprise Java Bean" EJB creation wizard using the option labeled "Container-managed Entity Beans from Tables". My assumption is that this does what I want, because the wizard prompts for a schema and table you want to map to. Then it creates the attributes & getter/setter methods, PK class, etc. all based on the table defintion automatically. Great. So why when I try to run my application do I get error messages for each EJB such as:
Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
Warning: Error creating table: ORA-00955: name is already used by an existing object
Huh?? I thought the idea is that the CMP EJB is mapped to the existing table in my schema. Why is the Container trying to create new tables?? Is this possible? Or am I missing something fundamental about how Containers create and manage CMPs? Or is this just a JDevelop container issue? TIAI presume you are getting the problem on application
deploy? This happens when upon initialization of the application using the built-in OC4J container/app server that is part of JDeveloper. Here is the full messaging:
[Starting OC4J using the following ports: HTTP=8989, RMI=23892, JMS=9228.]
C:\OraHome1\jdk\bin\javaw.exe -ojvm -classpath C:\OraHome1\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\OraHome1\jdev\system\oc4j-config\server.xml
[waiting for the server to complete its initialization...]
Copying default deployment descriptor from archive at Q:\CBTCOF\COF_APPLICATION\COF_Project\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\OraHome1\jdev\system\oc4j-config\application-deployments\current-workspace-app\classes...
Auto-deploying file:/Q:/CBTCOF/COF_APPLICATION/COF_Project/classes/ (No previous deployment found)...
Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
Warning: Error creating table: ORA-00955: name is already used by an existing object
[...OTHER SIMILAR ERROR MESSAGES]
done.
Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
If so, in the application.xml file of you
OC4J instance the is a setting autocreate-tables,
which by default is true!
Set it to false as below and that should clear up
your problem.
<orion-application autocreate-tables="false"
default-data-Hmm. I found at least a dozen or so files with that name and set everyone that had this attriute to "false", restarted the OC4J server and still got these errors. -
SQL Developer import from Excel or CSV not creating new table
I am sure I have done this with previous version of SQL Developer. I am now running 1.5.4 with patches update from 5/27/2009. I am running on Windows XP. When I start the import wizard I get to the point were the varify button appears. I click Verify. Everything is successful. The next button is grayed out. The send to worksheet is not checked. I press the finish button and the new table is not created.
I don't get any error message. I refresh my table list and the new table is not created. I can create new tables using SQL Developer so I don't think it can be a privelege problem. I know I did this a few weeks ago. I am not sure what version of SQL Developer I was running. But I have updated to the latest and greatest since then.I wanted to import and use my table data from MS Excel 2010 in SQL developer Version 3.1.05.
I was told that SQL does not import .xls data. For that reason, I was searching for a script which Import data from excel to SQL developer. I tried many different forums DBS blogs. Then eventually I found the solution inside the SQL developer itself.
In your Editor window, There would be options like,
1. Columns | Data | Constraints |Grants | Sta...... "so on"
2. In second row, you can find a drop box with certain table options. Select the last option "Import Data"
THERE YOU GO.
do accordingly to your need and you will get the data as well its scripts.
I hope this would help you all. Thanks. :-) -
I created new table in database and want to bind with system form
Hi All,
1) i created new table in database and want to bind with system form .
2) How i bind this field to system form sale order where i added new folder tab in that i added some fields that fields i want to bind with database. when i click on the next ,previous ,first and last button
bind value should change.
Awaiting soon reply
Rajkumar G.hi,
try this
Public Sub BindDataToForm()
Dim oItem As SAPbouiCOM.Item
Dim oEdit As SAPbouiCOM.EditText
Dim oComboBox As SAPbouiCOM.ComboBox
'// getting the matrix column by the UID
'oItem = oForm.Items.Item("docname")
'oComboBox = oItem.Specific
'oComboBox.DataBind.SetBound(True, "OSRI", "BaseType")
'oItem = oForm.Items.Item("docno")
'oEdit = oItem.Specific
'oEdit.DataBind.SetBound(True, "OSRI", "BaseEntry")
oColumn = oColumns.Item("Code")
'oColumn.DataBind.SetBound(True, "", "DSCardCode")
oColumn.DataBind.SetBound(True, "OSRI", "ItemCode")
oColumn = oColumns.Item("Serial")
oColumn.DataBind.SetBound(True, "OSRI", "IntrSerial")
Try
oColumn = oColumns.Item("Inspection")
oColumn.DataBind.SetBound(True, "OSRI", "U_Inspection")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
oColumn = oColumns.Item("Quality")
oColumn.DataBind.SetBound(True, "OSRI", "U_Quality")
oColumn = oColumns.Item("Status")
oColumn.DataBind.SetBound(True, "OSRI", "U_Status")
oColumn = oColumns.Item("Finish")
oColumn.DataBind.SetBound(True, "OSRI", "U_Finish")
oColumn = oColumns.Item("Thickness")
oColumn.DataBind.SetBound(True, "OSRI", "U_Thickness")
oColumn = oColumns.Item("uom")
oColumn.DataBind.SetBound(True, "OSRI", "U_NetUOM")
oColumn = oColumns.Item("length")
oColumn.DataBind.SetBound(True, "OSRI", "U_Length")
oColumn = oColumns.Item("height")
oColumn.DataBind.SetBound(True, "OSRI", "U_Height")
oColumn = oColumns.Item("sqf")
oColumn.DataBind.SetBound(True, "OSRI", "U_sqf")
oColumn = oColumns.Item("sqm")
oColumn.DataBind.SetBound(True, "OSRI", "U_sqm")
End Sub -
Create new table on new tablespace
new (downloaded - non-licensed) 8i install.
create new database
connect to new database (as both sys,system, and new user with just connect priv - as both normal and sysdba)
create new tablespace
create new table - schema is the new user,
tablespace is the new tablespace,
error - ORA-01950: no privileges on tablespace 'TS2' (new tablespace)
How do I set privileges to allow this?Hi
Use this command
alter user username
quota 50M on tablespace_name;
Hope this will work.
Thanks and regards
Sarju Patel
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jim Connors ([email protected]):
new (downloaded - non-licensed) 8i install.
create new database
connect to new database (as both sys,system, and new user with just connect priv - as both normal and sysdba)
create new tablespace
create new table - schema is the new user,
tablespace is the new tablespace,
error - ORA-01950: no privileges on tablespace 'TS2' (new tablespace)
How do I set privileges to allow this?<HR></BLOCKQUOTE>
null -
Error while creating new table
Hi
First I had deleted one custom table. Then I try to create the same table with different fields. Now I am gettinh the errors.
1. ZLV_COMP_TABLE: Inconsistency DD <-> DB (check table with analysis tool)
2. A table called ZLV_COMP_TABLE exists in the database
3. No active nametab exists for ZLV_COMP_TABLE
4. Termination due to inconsistencies
5. Table ZLV_COMP_TABLE (Statements could not be generated)
6. Error number in DD_DECIDE (9)
Please help me ... how can I create a table with same name.
thanks
SubhankarHello,
goto SE14 -- Give the table name
use Tables Radio button
click on Edit
check the Delete Data Radio button
click on ACTIVATE AND ADJUST DATABASE.
Now check the table in SE11.
If it still exits you can change the same table or Delete it again & create a new table with Same Name.
This might help your query.
Anil. -
Creat new table from multiple tables in same DB?
Trying to create a new table bringing in all the records from
3 old tables. All three old tables have common foreign key fields.
I'm not sure how the syntax would look like, but something
like:
<cfquery name="qCreateTable" datasource="somedb">
CREATE TABLE newtable
AS
SELECT old_ID as new_ID,
FROM oldtable1, oldtable2, oldtable3 etc.</cfquery
Is this possible in one step, or would I need to create the
new table with data from oldtable1, then update with data from 2, 3
etc.? BTW I already tried that with no success (syntax errors).
For now, this is in Access.
Thanks for your help.
rinormanPhil:
<cfquery name="qCreateTable" datasource="somedb">
CREATE TABLE vendor_new2
AS
SELECT
vendor_ID as old_vendor_ID,
company_name as vendor_company,
DBA_name as vendor_dba,
web_URL as vendor_url,
AdminID as old_admin_ID,
Comment as old_comment,
BillingLocationID as old_billing_ID
FROM vendor_old
UNION
SELECT
UserID as old_user_ID,
EmailAddress as vendor_email,
Password as vendor_pw,
LastName as contact_lname,
FirstName as contact_fname,
PhoneNum as contact_tele,
PhoneExt as vendor_phonex,
FaxNum as contact_fax
FROM main_contact
UNION
SELECT
PhysicalLocationID as old_location_ID,
Street1 as vendor_address1,
Street2 as vendor_address2,
City as vendor_city,
StateID as vendor_state,
Zip as vendor_zip,
Zip4 as vendor_zip4,
Phone as vendor_tele,
Fax as vendor_fax
FROM PhysicalLocation
</cfquery>
Result: Syntax error in CREATE TABLE statement. -
How to create new table using pertioned table
hi,
i am using a partitioned table , now i want to craet a new table with same structure of my existing partitioned table.
so can i use this syntax
create table abc_new as
select * from my_partitioned_table
where 1=2;
if i use this syntax would it make same structure of my existing partitioned table ?
and
when
we use syntax like
create table abc_new as
select * from my_partitioned_table
where 1=2;
so would it make also indexing on new table to if old table exists ? if not so how can we create that indexing too at time of running this syntax ?
reagrdsNo.
Although the command would create a new table with the same column names and datatypes, it would NOT be a partitioned table. You must explicitly specify the PARTITION BY clause and Partition definitions when creating the table.
Similarly, index definitions are not copied automatically. You must explicitly run the CREATE INDEX statements (which you can generate from the source using DBMS_METADATA.GET_DDL or using any other tools/utilities).
(However, if you use Export-Import -- e.g. importing to another schema or to another database, it would create a partitoned table with the same name and with the same index definitions).
Hemant K Chitale -
Procedure to create new table using existing metadata
Hi All,
THis is what I want to achieve,
I want to create procedure which will take a input parameter as name of a table lets say 'EMP',
and this procedure will check whether that table exist or not?
if exist then
it will create a new table with name appending _dummy to existing table name (ex: new table will be EMP_DUMMY) ,
and new table should have the same table structure ,index and constraint imposed on EMP table.
NB: It should not be created using as select like create table EMP_DUMMY as select * from EMP where condition=false;
Can any one please help me how to achieve this?Hi,
you can use the DBMS_METADATA package
declare
cddl clob;
ctable varchar2(80):='EMP';
cowner varchar2(80):='HR';
begin
cddl:=dbms_metadata.get_ddl ('TABLE',ctable,cowner);
cddl:=replace(cddl, 'CREATE TABLE "'||cowner||'"."'||ctable||'"','CREATE TABLE "'||cowner||'"."'||ctable||'_DUMMY"');
dbms_output.put_line(substr(cddl,1,1200));
execute immediate dbms_lob.substr(cddl,least(dbms_lob.getlength(cddl),32000));
cddl:=dbms_metadata.get_dependent_ddl ('INDEX',ctable,cowner);
cddl:=replace(cddl,'ON "'||cowner||'"."'||ctable,'ON "'||cowner||'"."'||ctable||'_DUMMY');
execute immediate dbms_lob.substr(cddl,least(dbms_lob.getlength(cddl),32000));
end;but you'll need to adapt (ex: existing contraint name etc) -
Question about creating new tables using SQL script in WebLogic Server
Hi,
I am new to WebLogic and I am following a book Java EE Development with Eclipse published by PACKT Publishing to learn
Java EE. I have installed Oracle Enterprise Pack for Eclipse on the PC and I am able to log into the WebLogic Server Administration Console
and set up a Data Source. However the next step is to create tables for the database. The book says that the tables can be created using
SQL script run from the SQL command line.
I cannot see any way of inputting SQL script into the WebLogic Server Admistration Console. Aslo there is no SQL Command line in DOS.
Thanks for your help.
Brian.Sounds like you are to run the scripts provided by a tutorial to create the tables, right? In that case, you may need to install an Oracle client to connect to your database. The client is automatically installed with the database, so if you have access to the server that hosts the database, you should be able to run SQLplus from there.
As far as I know, there is no way to run a script from the Admin Console. I could be wrong, however. -
Creating New table in a database
hey just wondering what i would have to do to create a new table in a database??
please show me some lovePlease see my reply in your other thread
http://forum.java.sun.com/thread.jspa?threadID=792913&tstart=0
You really don't want to do this. -
Hi, how can i create and delete a table in MS Access using labSQL?
Do you have Databse Connectivity Toolkit or SQL Toolkit?
Here are some examples you can look at:
The attached VI (in AccSQL.zip) creates a table and inserts data. It demonstrates the use of Access syntax. It requires LabVIEW Database Connectivity Toolset.
Inserting Data in LabVIEW from Table Create Using Access 97 SQL Toolkit Syntax
SQL Toolkit for G Reference Manual
You should also look under SQL examples that ship with the toolkit.
Zvezdana S.
Attachments:
AccSQL.zip 19 KB -
Create new table with new calculated entries
Hi,
I got a little problem.
I have a table which includes the vacations times of employees. The vacation time was periodic ,so I split them in to days. Now I want to calculate the exact days.Sometimes there are weekends included which I have to subtract. I flaged every day, that I exactly know which day is a working day and which one isn't. Is there a way that I only sum the working days without the weekends?
Table Vacation_Times:
Empl --- V_Start_D --- V_End_D --- Date --- Days --- D_Name
Mr.A --- 01.05.11 --- 06.05.11 --- 01.05.11 --- 6 --- Wednesday
Mr-A --- 01.05.11 --- 06.06.11 --- 02.05.11 --- 6 --- Thursday
Mr.A --- 01.05.11 --- 06.05.11 --- 03.05.11 --- 6 --- Friday
Mr-A --- 01.05.11 --- 06.06.11 --- 04.05.11 --- 6 --- Saturday
Mr.A --- 01.05.11 --- 06.05.11 --- 05.05.11 --- 6 --- Sunday
Mr-A --- 01.05.11 --- 06.06.11 --- 06.05.11 --- 6 --- Monday
NEW table:
Empl --- V_Start_D --- V_End_D --- Date --- Days --- D_Name --- Actual_Days
Mr.A --- 01.05.11 --- 06.05.11 --- 01.05.11 --- 6 --- Wednesday --- 4
Mr-A --- 01.05.11 --- 06.06.11 --- 02.05.11 --- 6 --- Thursday --- 4
Mr.A --- 01.05.11 --- 06.05.11 --- 03.05.11 --- 6 --- Friday --- 4
Mr-A --- 01.05.11 --- 06.06.11 --- 04.05.11 --- 6 --- Saturday --- 4
Mr.A --- 01.05.11 --- 06.05.11 --- 05.05.11 --- 6 --- Sunday --- 4
Mr-A --- 01.05.11 --- 06.06.11 --- 06.05.11 --- 6 --- Monday --- 4
thxHi,
try
SELECT Empl ,V_Start_D ,V_End_D ,Date ,Days ,D_Name , count(*) as Actual_Days
FROM vacation v
JOIN datelist d ON d.day between V_Start_D and V_End_D and d.is_working_day='Y'
GROUP BY Empl ,V_Start_D ,V_End_D ,Date ,Days ,D_Name Regards,
Carsten. -
When creating new table in sqllite db via Flex it become encoded as "utf-16le"
Hi Guys
I have some annoying problem with my AIR application
The application is communicating with a local DB (sqllite).
as part of initial installation I'm checking if the db exist.
in case not then:
I create one (file)
create the relevent tables inside
and populate them.
For some reason, on the tables creation step the sqllite db become encoded as UTF-16le instead of UTF-8.
The question is how can I make the tables creation step to leave the db as UTF-8
thanks in advance for your help.
This is my creation code
the "connection" is from flash.data.SQLConnection type
The "file" contain the following information
<sql>
<statement>
CREATE TABLE IF NOT EXISTS MYTABLE
MYTABLE_VERSION NUMBER NOT NULL,
MYTA|BLE_INSERT_DATE DATE NOT NULL
</statement></sql>
The below is the relevent code:
var stream:FileStream = new FileStream();
stream.open(file, FileMode.READ);
var xml:XML = XML(stream.readUTFBytes(stream.bytesAvailable));
stream.close();
var statement:XML = null;
try
connection.begin(lockType);
for each (statement in xml.statement)
var stmt:SQLStatement = new SQLStatement();
stmt.sqlConnection = connection;
stmt.text = statement;
stmt.execute();
} catch(err:Error)
connection.rollback();
throw err;
connection.commit();It doesn't look like you're using DBSequence domain for the OrderLinesId attribute. If you are then you do not need to fill in the sequence as you've done in the create method.
Getting back to create issue, You may want to set the 'order' id (foreign key) values before calling super and then call the getOrder() (or getXXX where XXX is the order accessor in this entity) method to verify if the order of the given ID exists/found in the cache.
By the way, are you also using a similar create() in order with DBSequence as the type for the pK and you force a sequence value on top of it via setAttribute?
Yes, this is the create method inside CrpOrderLinesImpl.java
protected void create(AttributeList attributeList) {
super.create(attributeList);
SequenceImpl s = new SequenceImpl("CRP_ORDER_LINES_ID_SEQ", getDBTransaction());
setAttribute("OrderLinesId",s.getSequenceNumber());
Thanks,
Brad
Maybe you are looking for
-
Issue with page processing - confirmation message & show /hide a button..
Hello, I am working on a to do list application. I have events and for each event, I show list of tasks (grouped in reports based on the calculated task's status). In one region I have a drop down list of events and a Select Event button. For each ta
-
How to get paragraph number of selected text in ID CS4
Hi, Can anybody help me how to get paragraph number of selected text in Indesign cs4. Thanks, Gopal
-
Way to hide main monitor when mirroring?
I am curious if there is a way to mirror an iMac's display to a second monitor but hide the content from displaying on the main monitor. I want to setup a second workstation using the second monitor (connected via displayport) but not have the conten
-
Combining all classical albums into one folder
can i combine my 11 classical albums into one folder or category to remove clutter in my music library?
-
NPE from AutoRegisterActionServlet
Not sure if this is a Workshop or Server-related question, but here goes. In the log file below, it appears that perhaps a module in our enterprise app has undeployed itself. Does this cause, or is it caused by, the deserialization error reported nex