Ant create-savingsaccount-table problem on WIN ME
Hello, ALL:
I had a problem run ant create-savingsaccount-table on WIN ME. I had started j2ee server and cloudscape successfully. The error is:
C:\WUW\Java\J2EE\tutorial\j2eetutorial\examples\src>ant create-savingsaccount-table
Buildfile: build.xml
BUILD FAILED
No JAXP compliant XML parser found. See http://java.sun.com/xml for the
reference implementation.
--- Nested Exception ---
java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.tools.ant.Main.runBuild(Main.java:402)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 0 seconds
Any suggestions?
Thank you.
Hello:
I got another problem. It is about runclient -client SavingsAccountApp.ear -name
SavingsAccountClient -textauth
When I run this command, and I put the guest and guest1233 in login screen then get am exception as
C:\WUW\Java\J2EE\tutorial\j2eetutorial\examples\ears>runclient -client SavingsAc
countApp.ear -name SavingsAccountClient -textauth
Initiating login ...
Username = null
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
Caught an exception.
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:136)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at SavingsAccountHomeStub.create(Unknown Source)
at SavingsAccountClient.main(SavingsAccountClient.java:29)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:24
3)
at com.sun.enterprise.appclient.Main.main(Main.java:159)
Similar Messages
-
J2ee tutorial. "ant create-tables" problem
I am following Java ee 5 tutorial. In one of its sections it asks me to populate the db by following the below instructions:
1. In a terminal window, go to the books directory or any one of the bookstore1 through
bookstore6 example directories.
2. Start the JavaDB database server. For instructions, see ?Starting and Stopping the JavaDB
Database Server? on page 69. You don?t have to do this if you are usingNetBeans IDE. It
starts the database server automatically.
3. Type ant create-tables. This task runs a command to read the file tutorial.sql and
execute the SQL commands contained in the file.
4. At the end of the processing, you should see the following output:
[sql] 181 of 181 SQL statements executed successfully
when i reach step 3 and type ant create-tables, i get the following error:
C:\netbeans-javatutorials\JavaEE5Tutorial\J2EEe-tutorial_5\examples\web\books>ant create-tables
Buildfile:build.xml
-pre-init:
check:
BUILD FAILED
C:\netbeans-javatutorials\JavaEE5Tutorial\J2EEe-tutorial_5\examples\bp-project\app-server-ant.xml:419: Property javaee.server.passwordfile not specified. Please specify the javaee.server.passwordfile property in 'bp-project/build.properties'. You will also need to ensure that the passwordfile is present and contains AS_ADMIN_PASSWORD.
Total time :0 seconds
I have configure the build.properties file as follows:
# Set the property javaee.home, using the path to your
# GlassFish installation.
# C:/Program Files/glassfish-v3 is the GlassFish v3 default installation
# path on Windows.
javaee.home=C:/Sun/AppServer
# Set the property javaee.tutorial.home to the location where you
# installed the Java EE Tutorial bundle.
javaee.tutorial.home=C:/netbeans-javatutorials/JavaEE5Tutorial/J2EEe-tutorial_5
# machine name (or the IP address) where the applications will be deployed.
javaee.server.name=localhost
# port number where GlassFish applications are accessed by users
javaee.server.port=8080
# port number where the Admin Console of GlassFish is available
javaee.adminserver.port=4848
# Uncomment the property javaee.server.username,
# and replace the administrator username of the app-server
javaee.server.username=admin
# Uncomment the property javaee.server.passwordfile,
# and replace the following line to point to a file that
# contains the admin password for your app-server.
# The file should contain the password in the following line:
# AS_ADMIN_PASSWORD=adminadmin
# Notice that the password is adminadmin since this is
# the default password used by GlassFish.
javaee.server.passwordfile=C:/netbeans-javatutorials/JavaEE5Tutorial/J2EEe-tutorial_5/examples/common/admin-password.txt
appserver.instance=server
# Uncomment and set this property to the location of the browser you
# choose to launch when an application is deployed.
# On Windows and Mac OS X the OS default browser is used.
#default.browser=/Applications/Firefox.app/Contents/MacOS/firefox-bin
# Database vendor property for db tasks
# JavaDB is the default database vendor. See the settings in javadb.properties
db.vendor=javadb
# Digital certificate properties for mutual authentication
keystore=${javaee.tutorial.home}/examples/jaxws/simpleclient-cert/support/client_keystore.jks
truststore=${javaee.home}/domains/domain1/config/cacerts.jks
keystore.password=changeit
truststore.password=changeit
and the admin-password.txt
AS_ADMIN_PASSWORD=adminadmin
Any suggestions.I was stuck with the same problem but finally managed to get it to work.
The only difference being, I did not change the "javaee.server.passwordfile" field. Like someone else said, I just changed the first two fields. The following are the values I set for the GlassFish 3.1 server with NetBeans 6.7.1,
javaee.home=C:/Sun/AppServer
javaee.tutorial.home=C:/JavaWork/javaeesuntutorial/javaeetutorial5
Hope this helps. -
hi,
i've re-posted this into a new post.
i'm following the java ee tutorial at sun.com and i'm having a problem with the bokstore1 example.
i've set the password file correctly and when i go to the bookstore1 dir and type 'ant' everything seems ok.
the problem i'm having is once i've started the server and DB server and then type ' ant create-tables' the build fails and i get this output-
"Starting database it the background. log redirected to c:\SunAppserver\......\....\...db.log
comand start-database failed
delete-tables:
BUILD FAILED
C:\javaeetutorial5\bp-project\database-ant.xml:48: c:\sun\appserver\javadb\lib not found"
can anyone help?
thanks in advance
matBased on the info. provided, seems to me the value for 'javaee.home' in build.properties may not be correct. Make sure that the property javaee.home in build .properties pints to valid installtion of application server, for ex. if you do 'dir' or 'ls' you should see javadb directory at this location.
Also check if you have a build.properties file under windows user directory (in addition to bp-project under tutorial) and if it points to a different application server installation.
- sreeni -
Java EE5 Tutorial - 'ant create-tables' BUILD FAILED
Hi,
Appologies, this is quite a begineers question, hopefully it's an easy one to answer. I've searched for the last few hours regarding this issue,
trying things and searched the forums here at sun with no similar issue. As you can see below, I cannot create the tables for the bookstore1 application using 'ant'.
I am getting a FileNotFoundException however the delete.sql and tutorial.sql files are at this location C:\javaee\javaeetutorial5\examples\common\sql\javadb\
I have also made sure that the files have read and write access. I know their could be some permissions issues using vista if I installed at C:/ProgramFiles, so everything is in C:/
Another thing I have tried is using the ant command directly even though the PATH is in my enviroment variables, just incase another version was conflicting, as I read about people having such issues.
"C:\Sun\AppServer\lib\ant\bin\ant create-tables" => This gave the same error as below. Im not sure what other information may help you help me here, so just ask.
Annoying thing is, this example worked fine when I set up the environment on my work laptop (which I have no access to now) earlier, I didn't have this issue.
Thanks for your help.
/Paul.
c:\javaee\javaeetutorial5\examples\web\bookstore1>ant create-tables
Buildfile: build.xml
-pre-init:
init:
check:
tools:
start-db:
[exec] Database already started on host localhost, port 1527.
[exec] Command start-database executed successfully.
delete-tables:
[sql] Executing file: C:\javaee\javaeetutorial5\examples\web\bookstore1\=C:\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql
BUILD FAILED
C:\javaee\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.FileNotFoundException: C:\javaee\javaeetutorial5\examples\web\bookstore1\=C
:\javaee\javaeetutorial5\examples\common\sql\javadb\delete.sql (The filename, directory name, or volume label syntax is incorrect)
Total time: 21 seconds
c:\javaee\javaeetutorial5\examples\web\bookstore1>Hi,
This is due to the path problem that u specified in build.properties file for javaee.tutorial.home= variable. Use / instead of \. Problem will solved.
Thanks
Amalka -
Dreamweaver MX create tables problem
I am using Dreamweaver MX 6.0 and tried to create a table in standard view, but a sharing error message appeared and shut down the program. When I opened again and tried to create the table again, the dialog window didn't even open after clicking on the insert table button. I installed an update to 6.1, but it still didn't work. I have Windows 7 operating system and am wondering if the problem is due to a compatibility issue with an old program and newer operating system??? Any suggestions or help with this problem would be great!
Based on the info. provided, seems to me the value for 'javaee.home' in build.properties may not be correct. Make sure that the property javaee.home in build .properties pints to valid installtion of application server, for ex. if you do 'dir' or 'ls' you should see javadb directory at this location.
Also check if you have a build.properties file under windows user directory (in addition to bp-project under tutorial) and if it points to a different application server installation.
- sreeni -
I got problems in creating a table using java
ok here's what i want to happen, i have a table named tblField that has 3 columns.
These 3 columns are:
1. field_ID
2. field_Desc
3. field_Fruit
The table tblField returns 7 rows in which the values of field_Fruit are:
1. apple
2. banana
3. orange
4. watermelon
5. pineapple
6. mango
7. lemon
what i want to do is I want to create a new table named tblNewTable that will get the 7 values of field_Fruit and be the columns of the new table tblNewTable.
So the result would be: I have this new table named tblNewTable and the column names are:
1. apple
2. banana
3. orange
4. watermelon
5. pineapple
6. mango
7. lemon
btw i already know how to create a table with hardcoded values.
An example of create statement is shown below:
CREATE TABLE [dbo].[tblNewTable] ({[Column Name] [char] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL)For the problem posted above, the first thing i should do is to get all the values of field_Fruit first and put them all in a vector. After that, i should use the create statement using the vector to return all the values of field_Fruit. I tried to do the code below but it doesnt wrk:
int x = 0;
CREATE TABLE [dbo].[tblNewTable] (while(x < vFieldFruitVector.size()){ {[Column Name] [char] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL x = x + 1;})vFieldFruitVector is the vector/values of field_Fruit.
anyone who can help me solve my problem? thanks in advance! :)Unless you are using some special tag library or something, SQL is not, as far as I've ever seen, going to handle while loops within the statements. You want to create the table, then you have to create the CREATE statement string
String c = "CREATE TABLE [dbo].[tblNewTable] (";
for(int x = 0; x < vFieldFruitVector.size(); x++) {
c += vFieldFruitVector.get(x) + " char 50 COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL";
c += ")";
int res = stmt.executeUpdate(c); -
Problem creating a table with a subquery and a dblink
Hello!!
I have a little problem. When I create a table with a subquery and a dblink, for example:
CREATE TABLE EXAMPLE2 AS SELECT * FROM EXAMPLE1@DBLINK
the table definition is changed. Fields with a type of CHAR or VARCHAR2 are created with a size three times bigger than the original table in the remote database. Field of type DATE and NUMBER are not changed. For example if the original table, in the database 1, has a field of type CHAR(1) it is create in the local database with a type of CHAR(3), and a VARCHAR2(5) field is created with VARCHAR2(15).
Database 1 has a WE8DEC character set.
Database 2 has a AL32UTF8 character set.
Could it be related to the difference in character sets?
What can I do to make Oracle use the same table definition when creating a table in this way?
Thanks!!That is related to character sets, and probably necessary if you want all the data in the remote table to be able to fit in the new table.
When you declare a column VARCHAR2(5), by default, you're allocating 5 bytes of storage. In a single-byte character set, which I believe WE8DEC is, that also happens to equate to 5 characters. In a multi-byte character set like AL32UTF8, though, 1 character may require up to 3 bytes of storage, so you'd need to allocate 15 bytes to store that data. That's what's going on here.
You could still store all the data if you create the table locally by explicitly requesting 5 characters of storage by declaring the column VARCHAR2(5 CHAR). You could also set the NLS_LENGTH_SEMANTICS parameter to CHAR rather than BYTE before creating the table, but I believe that both of these will only apply when you're explicitly defining columns as part of your CREATE TABLE. I don't believe either will apply to CTAS statements.
Justin -
Create table problem using Dynamic Query
Hi all,
I want to create a temporary table within a stored procedure so I decided to do it using a dynamic query:
create or replace procedure p1
as
begin
execute immediate 'CREATE GLOBAL TEMPORARY TABLE tt(id number(2))';
end;
/ It created successfuly but when I execute that procedure I got:SQL> exec p1;
BEGIN p1; END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SCOTT.P1", line 4
ORA-06512: at line 1 While I can create that table using the same user without any problem!
My question is:What privilege should I grant to user(minimum of privileges please! ) to execute that procedure successfuly?
-ThanksHi,
To say a little bit more about Nicolas' answer:
SQL> grant create table to scott;
This is the right answer, but you might wonder why you have to do so if you usually can create tables with this user..
11:59:19 TEST.SQL>CREATE USER UTEST
11:59:28 2 IDENTIFIED BY UTEST;
User created.
11:59:35 TEST.SQL>CREATE ROLE RTEST;
Role created.
11:59:40 TEST.SQL>GRANT RTEST TO UTEST;
Grant succeeded.
11:59:45 TEST.SQL>GRANT CREATE SESSION TO RTEST;
Grant succeeded.
11:59:54 TEST.SQL>GRANT CREATE TABLE TO RTEST;
Grant succeeded.
12:00:03 TEST.SQL>GRANT UNLIMITED TABLESPACE TO UTEST;
Grant succeeded.
12:00:17 TEST.SQL>CREATE PROCEDURE UTEST.CT_TEST
12:00:32 2 IS
12:00:33 3 BEGIN
12:00:35 4 EXECUTE IMMEDIATE 'CREATE TABLE UTEST.TTEST (A NUMBER)';
12:00:56 5 END;
12:00:58 6 /
Procedure created.
12:00:59 TEST.SQL>EXEC UTEST.CT_TEST;
BEGIN UTEST.CT_TEST; END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "UTEST.CT_TEST", line 4
ORA-06512: at line 1
12:01:06 TEST.SQL>GRANT CREATE TABLE TO UTEST;
Grant succeeded.
12:01:15 TEST.SQL>EXEC UTEST.CT_TEST;
PL/SQL procedure successfully completed.Don't forget that when you're using PL/SQL, privileges granted via roles are ignored!
Regards,
Yoann. -
Problem with editable combo box and creating dynamic table values using js
Hai
I have used jquery.jec.js to make my dropdown list as editable... I need to create dynamic table values on the onChange event of dropdown using javascript.
Now am facing the problem in it...
I am getting duplicate rows in the table... think(assumption) this jquery.jec.js is calling the dropdown again creating duplicate values...
Please help me out.... Any help is appreciable... Thanks in advanceThanks elOpalo, for your valuable response....
I have found the correct way of doing.
Before i had my code like this,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jec.js"></script>
<script type="text/javascript">
$(function(){
$('#list').jec();
function giveAlert(){
alert('hello');
</script>
</head>
<body>
<form>
Combo Box:
<select id="list" name="list" onChange="giveAlert();">
<option value="1">one</option>
<option value="2">two</option>
</select>
</form>
</body>
</html>
Now i have changed as the following,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="js/jquery.jec.js"></script>
<script type="text/javascript">
$(function(){
$('select.combo').jec();
$('select.combo')
.change(function() {
alert($(this).val());
}).change();
</script>
</head>
<body>
<form>
<table>
<tr>
<td>Combo Box:</td>
<td><select class="combo"><option value="b">banana</option><option value="a">apple</option></select></td>
</tr>
</table>
</form>
</body>
</html>
The problem is with the function i have called on the onChange Event.. Now i have defined it inside the jquery function of dropdown to make it as editable... -
Modified "Create error table" from CKM SQL problem
Hi guys!
I have a strange problem while creating error table by the CKM. I've changed in the interface from flow control to static control and now the command to create error table looks like:
create table STG_TMP.E$_I_D_ASSORTMENT_S
ERR_TYPE VARCHAR2(1 CHAR) NULL,
ERR_MESS VARCHAR2(250 CHAR) NULL,
CHECK_DATE DATE NULL,
ORIGIN VARCHAR2(100 CHAR) NULL,
CONS_NAME VARCHAR2(35 CHAR) NULL,
CONS_TYPE VARCHAR2(2 CHAR) NULL
the create error table(it should create table with all the columns varchar2 and handle the situation when column is number(0,0) => varchar2(255)) step from CKM is:
<%=snpRef.getColList("<?\t", "int vL[POS]=[LONGC]+[SCALE]; if(\u0022[DEST_DT]\u0022.equals(\u0022DATE\u0022)) {vL[POS]=20;}; if(\u0022[DEST_DT]\u0022.equals(\u0022NUMBER\u0022) && vL[POS]==0) {vL[POS]=255;};", "\n \t", "\n?>", "INS")%>
create table <%=snpRef.getTable("L","ERR_NAME", "W")%>
ERR_TYPE <%=snpRef.getDataType("DEST_VARCHAR", "1", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
ERR_MESS <%=snpRef.getDataType("DEST_VARCHAR", "250", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
CHECK_DATE <%=snpRef.getDataType("DEST_DATE", "", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
<%=snpRef.getColList("", "[COL_NAME]\t varchar2 (<?=vL[POS]?>) " + snpRef.getInfo("DEST_DDL_NULL"), ",\n\t", "", "INS")%>,
ORIGIN <%=snpRef.getDataType("DEST_VARCHAR", "100", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
CONS_NAME <%=snpRef.getDataType("DEST_VARCHAR", "35", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>,
CONS_TYPE <%=snpRef.getDataType("DEST_VARCHAR", "2", "")%> <%=snpRef.getInfo("DEST_DDL_NULL")%>
Do you know whats the problem??
Thanks in advance :)
With regards,
PsmakRWhat version of ODI are you using ?
Are you still using Sunopsis ?
Try using ODI 10.1.3.5
Also, follow the solution in post
Issue with Create Target Table in CKM Oracle -
Cannot populate Example Database using ant create-tables
I encounter the problem like this [t-5362238]. But I've tried to do any thing, but I still cannot populate database. Somebody has another way to populate the database (not use ant) ?
And more. I can't use ant to deploy the *.WAR file. The terminal shows the message like the message when I perform ant create-tablesI encounter the problem like this [t-5362238]. But I've tried to do any thing, but I still cannot populate database. Somebody has another way to populate the database (not use ant) ?
And more. I can't use ant to deploy the *.WAR file. The terminal shows the message like the message when I perform ant create-tables -
CREATE DYNAMIC TABLE ERROR (CACHE PROBLEM ?)
Hi,
i have to create dynamic table. The Report is running. But i get Problem by next Programstart. It's showing the Message : This Table is ready exist! Can anyone help me?
Thanks!
CLEAR gt_fieldcatalog.
CLEAR gz_tab.
lv_index = 1.
gs_fieldcatalog-tabname = 'test'.
gs_fieldcatalog-fieldname = 'field_0'.
gs_fieldcatalog-reptext = 'field_0'.
gs_fieldcatalog-col_pos = lv_index.
gs_fieldcatalog-outputlen = 10.
APPEND gs_fieldcatalog TO gt_fieldcatalog.
lv_index = 2.
gs_fieldcatalog-tabname = 'test'.
gs_fieldcatalog-fieldname = 'TEXT'.
gs_fieldcatalog-reptext = 'TEXT'.
gs_fieldcatalog-col_pos = lv_index.
gs_fieldcatalog-outputlen = 50.
APPEND gs_fieldcatalog TO gt_fieldcatalog.
Do 10 times.
lv_index = lv_index + 1.
CONCATENATE field '_' lv_index INTO lv_fieldname.
gs_fieldcatalog-tabname = 'TEST'.
gs_fieldcatalog-fieldname = lv_fieldname.
gs_fieldcatalog-reptext = lv_fieldname.
gs_fieldcatalog-col_pos = lv_index.
gs_fieldcatalog-outputlen = 10.
APPEND gs_fieldcatalog TO gt_fieldcatalog.
CLEAR lv_fieldname.
ENDDO.
"Converting the Fieldcatalog for ALV Grid showing
LOOP AT gt_fieldcatalog INTO gs_fieldcatalog.
ls_fcat-col_pos = gs_fieldcatalog-col_pos.
ls_fcat-fieldname = gs_fieldcatalog-fieldname.
ls_fcat-seltext_l = gs_fieldcatalog-reptext.
ls_fcat-tabname = gs_fieldcatalog-tabname.
ls_fcat-datatype = gs_fieldcatalog-datatype.
ls_fcat-outputlen = gs_fieldcatalog-outputlen.
APPEND ls_fcat TO lt_fcat.
ENDLOOP.
" Creating internal Table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = gt_fieldcatalog
IMPORTING
ep_table = gz_tab
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
ASSIGN gz_tab->* TO <ft_tab>.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = ls_variant-report
it_fieldcat = lt_fcat
i_grid_title = 'Test'
is_layout = alv_layout
i_save = 'A'
is_variant = gx_variant
TABLES
t_outtab = <ft_tab>
EXCEPTIONS
program_error = 1
OTHERS = 2.
CLEAR <ft_tab>.
UNASSIGN <ft_tab>.
CLEAR lt_fcat.
Edited by: Hoang Lam Vu on Aug 25, 2008 11:18 AMHi Maroz,
I know this is not best practise to post my question in some others, but i have posted it separately earlier
Dynamic ITAB from Excel
I have created a dynamic ITAB from 1 Row of Excel Sheet
LOOP AT ist_excel INTO w_excel WHERE row = 2. " Contains the Values provided in 2nd row of Excel
APPEND w_excel TO row1.
ENDLOOP.
LOOP AT ist_excel INTO w_excel WHERE row = 3. " Contains the Values provided in 3rd row of Excel
APPEND w_excel TO row2.
ENDLOOP.
LOOP AT ist_excel INTO w_excel WHERE row = 4." Contains the Values provided in 4th row of Excel Etc
APPEND w_excel TO row3.
ENDLOOP.
LOOP AT row1 INTO w_excel.
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = w_excel-value .
wa_it_fldcat-datatype = 'C'.
wa_it_fldcat-inttype = wa_details-type_kind.
wa_it_fldcat-intlen = 40.
* wa_it_fldcat-decimals = wa_details-decimals.
APPEND wa_it_fldcat TO it_fldcat .
ENDLOOP.
* Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fldcat
IMPORTING
ep_table = new_table.
ASSIGN new_table->* TO <dyn_table>.
* Create dynamic work area and assign to FS
CREATE DATA new_line LIKE LINE OF <dyn_table>.
ASSIGN new_line->* TO <dyn_wa>.
I followed the Link provided by to create a Dynamic ITAB
Please guide me how to pass these Value from excel to Dynamic Internal Table
Warm Regards
Ramchander -
Problem in Creating a table with Default Tablespace
Hi All,
1) Can anybody plz tell me the syntax to move a table from one tablespace to another.
2) Also, plz tell me the Syntax of when creating a table specifying the tablespace name also.
Regards1) Alter table <table_name> move tablespace <tablespace_name>
2) example of create table is given below
CREATE TABLE emp123
( employee_id NUMBER(6)
TABLESPACE <tablespace_name>
STORAGE (INITIAL 600
NEXT 600
MINEXTENTS 2
MAXEXTENTS 100 );
Read following doc for more details
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm
Cheer,
Virag -
Problem in creating a table at runtime
Hi SDN,
I am trying to create a Table UI Element at runtime.
To do So I have written the following code in the "wdDoModifyView" method of the view
if(firstTime)
IWDTable table =(IWDTable)view.createElement(IWDTable.class, null);
table.bindDataSource("TableNode");
IWDTableColumn column1=(IWDTableColumn)view.createElement(IWDTableColumn.class,null);
table.addColumn(column1);
IWDInputField editor=(IWDInputField)view.createElement(IWDInputField.class,null);
editor.bindValue("TableNode.no");
column1.setTableCellEditor(editor);
// create and add second table column
IWDTableColumn column2 = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);
table.addColumn(column2);
IWDTextView editor1 = (IWDTextView) view.createElement(IWDTextView.class, null);
editor1.bindText("TableNode.name");
column2.setTableCellEditor(editor1);
IWDUIElementContainer root = (IWDUIElementContainer) view.getRootElement();
root.addChild(table);
After executing the application the table is created successfully. But both the columns are in TextView mode. What i need is one column should be in input mode and other in TextView mode. So please suggest me what more stuff i have to add to make the field to accept the input.
Thanks in advance.
Regards
BashaHi Armin,
I need to display a table with 5 rows and 7 columns.
5 of the columns are drop downs from R/3,
My requirement is the table should be in editable mode such that the user is allowed to enter some values(rows). on clicking the save button the table values are to be sent to R/3 table through bapi.
Please help me in resolving this.
Thanks & Regards,
Sai Krishna. -
10g express Exec Imm. Create table problem
Account is setup as a DBA account in Database (everything granted). I get Insuffiction privelages when running the following stored procedure:
CREATE OR REPLACE PROCEDURE R02_BLD_RMS_JRNL(
in_rdate IN DATE)
AS
v_sql VARCHAR2(1000);
BEGIN
-- Note I took out the variable and hard coded the date to try to get it to run
-- create load
v_sql:='CREATE TABLE TEMP_LOAD AS '||
'SELECT EXPORT_DATE,ACCOUNT,CC,AMOUNT,DR_CR,TX_ID '||
'FROM RMSA_JOURNAL '||
'WHERE EXPORT_DATE=''01-AUG-07'' '||
'AND ROWNUM<11 ';
EXECUTE IMMEDIATE v_sql;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;
RMSA_JOURNAL is a synonym to a table accross a DB link. Synonym works and I have tried putting in the full name of the table instead of the synonym.
When I run the following command:
EXEC R02_BLD_RMS_JRNL('01-AUG-07');
I get ORA-01031: Insufficient Privileges
If I run the statement about as a regular PLSQL block (not a stored procedure) it runs with no errors. There has to be some permission missing in relation to creating a table via a stored procedure. I have tried Dropping tables using Execute Immediate in a stored procedure and that works fine.
Any help would be much appreciated.You cannot exercise a granted privilege through a role in a stored procedure, you have to directly received.
On the other hand, people who post here are just ordinary people who have to perform real work. This is not a work for us, and if there are no posters available it's because they are busy. People here are on a voluntary and altruist basis. We all try to respond as fast as possible, but if our boss has assigned us a task, it has a higher priority than the forum.
~ Madrid
Maybe you are looking for
-
Read only access to J2EE related tools
Hello, I would like to help our auditors access everything they need to check in the Java systems, but I am not ready to give them ADMIN accounts. That`s why I need some kind of read only access for them. So I would like to ask you if there is a SAP
-
Transferring iTunes library from USB drive to new laptop. Many issues.
First off, I usually can only listen to my music if I plug in the USB drive with the original music on it. Now, iTunes is telling me that some of my music "cannot be found." Please help!
-
[JS CS3] can windows be stacked?
Hello, I have a script that calls up a window, let's name it Master. The master in turn has many buttons to run many scripts. The scripts that take a long time to run also call up a window that states "Wait a sec, I'm working." It closes once the scr
-
IMac without Airport/WiFi Card?
Hi, I want to get an used iMac that *doesn't have* any Airport or WiFi card/possibilities and that could run the latest version of Mac OS 10.5 (I'd need it for music and photos storing purpose). So, what would be the most recent version of this iMac?
-
Hi Can I subscribe to events in the WDDOINIT of my window rather than a view? It appears that the view is rendered first and then the action called from the subscribe. I need the action to be called before the view is rendered as it populates fields