Urgent help on SAP BW3.5 GST Query Changes
Dear Experts,
Need your urgent help in modifying a query.
Requirement: The Query has two different hierarchy node structures in 1 hierarchy itself.
This hierarchy is used in report where we can now see 2 different node structures added, for which the calculation of Rate is different for one node and different for another.
Rate = Tax/ GST Val * 100 for first node
Rate = (GST Val /(GST Gross - GST Val)) * 100 for another node.
The differentiating factor for these two nodes is Tax Code which is a char value.
This rate value couldnt been calculated at Report level for the reason being that all others the Key figures except Tax Code which is a char and hence couldnt put any formula there.
We tried calculating the Rate at Cube lebel itself by creating another Key figure and written a 'field level routine' to it, it is working good and showing the right values at cube level, where the data is stored at Line item level.
Now the challenge is that in report, as we execute them at aggregated levels the value for Rate is being cumulated (added) and shown which is wrong.
Eg: Account LineItemNo Input Tax Credit GST GST Rate
123 1 10 10 100
123 2 20 20 100
In Report when we look at these figures it appears at say Account level then it is appearing as :
Account Input Tax Credit GST GST Rate
123 30 30 200 (Instead of 100 as expected).
Can anyone help us to resolve this, this is of top most priority to us.
We are not using any WAD and system is BW 3.5.
Please suggest if WAD can help us in this.
Kind Regards,
RJ
Hi Gerrit Schang,
Thanks for your instant reponse, appreciate it.
But as this is BW3.5 system, the option for Exception Aggregation selection as "no aggregation along the hierarchy" is not available in dropdown.
But there is one option as 'No aggregation (X, if more than one record occurs)' below which there is an option to chose the Agg.ref.char on which this aggregation should be checked.
Can I use this option and select ' Account Number' as the Agg.ref.char to solve my problem?
or you have any other solution, please suggest.
Kind Regards,
RJ
Similar Messages
-
Urgent help on sap XI and SAP enterprise portal integration
Hello friends,
This is an urgent requirement for sap xi integration with sap enterprise portal so can anyone help me by providing some demo on the same.
Pls specify the components required in the scenario and steps required for configuring the setup.
Any documents are welcome.
My email id is [email protected]
Points will surely be distributed for any document related to above scenario.
Its urgent.................
Regards,
Ameet
Message was edited by:
Ameet JassaniHi,
In addition to the above post, check the following links...
http://help.sap.com/saphelp_nw04s/helpdata/en/70/0837ced133304eba452c45b6047c74/content.htm
/thread/143082 [original link is broken]
/thread/126493 [original link is broken]
/people/prasad.illapani/blog/2005/11/14/payload-based-message-search-in-xi30-using-trex-engine
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9974d3f7-0b01-0010-88ac-e4d9f15c9499
regards -
URGENT HELP PLEASE - drop index hangs on SAP
Hi all,
OS = Linux
DBVersion = Oracle10.2.0.2
Need some urgent help advise please on how to get around this problem.
On a SAP system, am trying to drop six indexes, largest is 300MB and smallest is 50MB.
I tried running drop index sapusername.index_name on the 50MB index via SQL*Plus and it seems to be taking forever. Can anyone please suggest if there is anything I can check on the database on why it is taking such a long time?
I can leave it to run overnight but worried that when I come back the next day, it will still be hanged. Is there any quick way of dropping the index, .i.e. drop immediate ... :-)
Am not using SAP's BRTOOLs as it is also hanging from there and the SAP-ADMIN had approved for the DBA to drop it from our end instead.
Any response and advise on this will be very much appreciated.
From Google'ing, I found some that mentioned that the fault could be because of the existence of the constraints on the table that I am dropping the index of.
Checking the table, it has 17 SYS_ named constraints. None of these constraints have INDEX_NAME that refers to the indexes that am dropping.
Should I disable the constraints and then run the drop index again?
Thanks in advance.
Edited by: user649596 on Apr 13, 2010 11:49 PMShould I disable the constraints and then run the drop index again?NO, certainly not !!
Ask SAP Support on what methods you should use to diagnose the "hang" and what your next step(s) should be.
Hemant K Chitale -
Hi i am new to SCN. I want a help regards SAP-PM . Where to post any query regards SAP PM
Please check this link SAP Portfolio and Project Management (SAP RPM, cProjects) and cFolders
Please check scn index to find relevant forum link.
SCN Site Index -
Hi Experts,
I am getting the following error while trying to send a request from HTTP test client to my database, inspite of giving the defining the select query perfectly,
Please help me out in this regard, it is a urgent requirement.
<SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'tdsp_esiid' (structure 'STATEMENT'): java.sql.SQLException: ORA-00923: FROM keyword not found where expected
</SAP:AdditionalText></SAP:Error>Hi,
Use your structure like this.
<StatementName4>
<dbTableName action=SELECT>
<table>realDbTableName</table>
<access>
<col1/>
<col2/>
<col3/>
</access>
<key1>
<col2>val2old</col2>
<col4>val4</col4>
</key1>
<key2>
<col2>val2old2</col2>
</key2>
</dbTableName>
</StatementName4>
action=SELECT
Statements with this action cause existing table values to be selected. Therefore, the statement corresponds to an SQL SELECT statement.
The <access> block contains the column names to be selected, a <key> element contains the columns whose values must be identical with the specified value to get the new column values. The name of the <key> element is arbitrary. Column values within a <key> element are combined with a logical AND; different <key> elements are combined with a logical OR.
A statement with the action SELECT must have exactly one <access> element. The number of <key> elements with arbitrary names is not restricted.
The corresponding SQL statement for StatementName4 in the example above is as follows:
SELECT col1,col2,col3 FROM dbTableName WHERE ((col2=val2old AND col4=val4) OR (col2=val2old2))
If there is no <key> element, or if there is a <key> element but it is empty, then no condition is specified and the entire table is to be selected. This may not be permitted by the configuration of the JDBC adapter for security reasons and will therefore result in an error during message processing and an appropriate error message.
The response document contains the result of the action in XML format as follows:
<row>
<column1>value11</column1>
<column2>value12</column2>
</row>
<row>
<column1>valueN1</column1>
<column2>valueN2</column2>
</row>
This will help you.
regards
Aashish Sinha
PS : reward points if helpful -
b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b
Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
import java.sql.*;
import java.sql.DriverManager;
import java.sql.Connection;
public class SqlConnection {
public static void main(String[] args) {
Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
Connection con = DriverManager.getConnection
("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
Statement stmt = con.createStatement ();// Sending a query to the database
ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
while (rs.next()) {
String man = rs.getString("1");
String jean = rs.getString("2");
String test = rs.getString("3");
String kok = rs.getString("4");
System.out.println( man, jean, test,kok );//here where my the
//compiler gives me errors
stmt.close();
con.close();
}<b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p
-
Urgent help needed in achieving below ADF 11g flow
Hi, I am using JDEV 11.1.1.2.0 with ADF 11g.
I have a below requirement.
Say in below eg. I am getting col1, col2, col3 from a single tbl in screen 1. On clicking col1's row I should go to screen 2
Screen1
Col1 Col2 Col3
Nm1 Code1 10
Nm1 Code1 30
Nm2 Code1 30
Nm1 Code2 20
Here in screen 2 I will have a calculated field as shown below. Besides this In the same screen I will have a list showing distinct of col2 for the value cliked in col1. So here in this eg. it will be for Nm1 I will have 2 values in the list Code1 and Code2.
Screen 2
Col1 Nm1
Col2 Code1
Tot *40*
Col2 Select
Code1 X
Code2
Now here if user selects the radio of 'Code2' Then my above data should change as below
Col1 Nm1
Col2 Code2
Tot *20*
Col2 Select
Code1
Code2 X
I do this by passing the col1 value as a param to a query VO.
I have tried this using different VOs like a VO with query, VO with user defined column... nothing helps.
I am just unable to reach to screen 2. I am either getting invalid column OR missing in out parameters.
Can any one help on how and what should be done? This is not even master-details stuff. master-details seems easier than this.
Urgent help is needed.
Thanks in advanceI have resolved your problem and build a sample application.
You have to create 2 views and use master detail.
First view will be a simple view for the page 1 and second view will be readonly using group by. Then create a view link between them.
Let me know your email id. I will email you the sample application.
SID
Edited by: manieshsailoz on Apr 26, 2010 5:12 PM -
Urgent help needed; Database shutdown issues.
Urgent help needed; Database shutdown issues.
Hi all,
I am trying to shutdown my SAP database and am facing the issues below, can someone please suggest how I can go about resolving this issue and restart the database?
SQL> shutdown immediate
ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-01089: immediate shutdown in progress - no operations are permitted
SQL> shutdown abort
ORA-01031: insufficient privileges
Thanks and regards,
IqbalHi,
check SAP Note 700548 - FAQ: Oracle authorizations
also check Note 834917 - Oracle Database 10g: New database role SAPCONN
regards,
kaushal -
Need help on SAP BW regarding IS-Retail Aspects
Dear Gurus
I am urgently need of SAP BW implementation documents based on SAP IS-Retail. pls help me, it's really urgent
Thanks and Regards
[email protected]Hello Ramesh
Please check this link
http://help.sap.com/saphelp_nw04/helpdata/en/86/39d6386e24f90ae10000000a114084/content.htm
Hope this will give some inputs
Thanks
Chandran -
BW error. Need urgent Help( I will give out full points).
We have BW version 3.1 and content 3.3.
We are doing loads to ODS and getting oracle partition error. It gives Oracle partition error ORA-14400. inserted partition key doesn't map to any parititon.
The exception must either be prevented, caught within the procedure
"INSERT_ODS"
(FORM)", or declared in the procedure's RAISING clause.
o prevent the exception, note the following:
atabase error text........: "ORA-14400: inserted partition key does not map to
any partition"
nternal call code.........: "[RSQL/INSR//BIC/B0000401000 ]"
lease check the entries in the system log (Transaction SM21).
ou may able to find an interim solution to the problem
n the SAP note system. If you have access to the note system yourself,
se the following search criteria:
The termination occurred in the ABAP program "GP3WRFMGVS1D8IW16LLGSL4QQKH " in
"INSERT_ODS".
he main program was "SAPMSSY1 ".
he termination occurred in line 41 of the source code of the (Include)
program "GP3WRFMGVS1D8IW16LLGSL4QQKH "
f the source code of program "GP3WRFMGVS1D8IW16LLGSL4QQKH " (when calling the
editor 410).
rocessing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
the
rocedure "INSERT_ODS" "(FORM)" but was not handled locally, not declared in
the
AISING clause of the procedure.
he procedure is in the program "GP3WRFMGVS1D8IW16LLGSL4QQKH ". Its source code
starts in line 21
f the (Include) program "GP3WRFMGVS1D8IW16LLGSL4QQKH ".
Please help me guys. I will award points for good answers.Dear Sir,
Now I have got the problem like yours (load to ODS and ORACLE partition error ORA-14400 with INSERT_ODS). Tell me, please - did you solve this problem?
Can you recommend me something? What did you do with partitions?
Help me, please - I need urgent help too.
GLEB ([email protected])
P.S. Sorry for my English, I havent got any language practice for a long time. -
Urgent Help :Product installation failed .Error Code 200 and Erroe code 601
Installation failed after completing 69% ...Just after activiaing DB process...
I need an urgent help
(Nov 9, 2008 11:38:58 AM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, An error occurred and product installation failed. Look at the log file C:\SAP\NSP\log.txt for details.
(Nov 9, 2008 11:38:58 AM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
STACK_TRACE: 15
ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.execute(StepWrapperInstallFiles.java:254)
at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllSteps(StepWrapperInstallFiles.java:224)
at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllInstallationSteps(StepWrapperInstallFiles.java:177)
at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.install(StepWrapperInstallFiles.java:268)
at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Nov 9, 2008 11:39:00 AM), Install, com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct, err, An error occurred and product uninstallation failed. Look at the log file C:\SAP\NSP\log.txt for details.
(Nov 9, 2008 11:39:00 AM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
STACK_TRACE: 15
ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.execute(StepWrapperInstallFiles.java:254)
at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllSteps(StepWrapperInstallFiles.java:224)
at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllUninstallationSteps(StepWrapperInstallFiles.java:192)
at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.uninstall(StepWrapperInstallFiles.java:313)
at com.installshield.product.service.product.PureJavaProductServiceImpl.uninstallProductAction(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.processActionsFailed(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Nov 9, 2008 11:39:00 AM), Install, com.installshield.wizard.platform.win32.Win32PPKRegistryServiceImpl, err, java.lang.NullPointerException
STACK_TRACE: 20
java.lang.NullPointerException
at com.installshield.product.service.registry.VPDDef.pack(Unknown Source)
at com.installshield.product.service.registry.VPDDef.getId(Unknown Source)
at com.installshield.product.service.registry.VPDDef.saveParents(Unknown Source)
at com.installshield.product.service.registry.VPDDef.saveParents(Unknown Source)
at com.installshield.product.service.registry.VPDDef.saveSoftwareObjectCache(Unknown Source)
at com.installshield.product.service.registry.PureJavaRegistryServiceImpl.writeVPD(Unknown Source)
at com.installshield.product.service.registry.PureJavaRegistryServiceImpl.finalizeRegistry(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.installshield.wizard.service.LocalImplementorProxy.invoke(Unknown Source)
at com.installshield.wizard.service.AbstractService.invokeImpl(Unknown Source)
at com.installshield.product.service.registry.GenericRegistryService.finalizeRegistry(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.finalizeRegistry(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Nov 9, 2008 12:09:23 PM), Install, com.installshield.product.actions.CopyFile, err, An error occurred and product installation failed. Look at the log file C:\SAP\NSP\log.txt for details.
(Nov 9, 2008 12:09:23 PM), Install, com.installshield.product.actions.CopyFile, err, ProductException: (error code = 601; message="err"; additional data = [Can not copy C:\SAP\NSP\_installTemp\j2ee\INSTALLER\BIN\steps.jar since C:\SAP\NSP\home\steps.jar already exists])
STACK_TRACE: 12
ProductException: (error code = 601; message="err"; additional data = [Can not copy C:\SAP\NSP\_installTemp\j2ee\INSTALLER\BIN\steps.jar since C:\SAP\NSP\home\steps.jar already exists])
at com.installshield.product.actions.CopyFile.install(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Nov 9, 2008 2:47:09 PM), Install, com.installshield.product.actions.CopyFile, err, An error occurred and product installation failed. Look at the log file C:\SAP\NSP\log.txt for details.
(Nov 9, 2008 2:47:09 PM), Install, com.installshield.product.actions.CopyFile, err, ProductException: (error code = 601; message="err"; additional data = [Can not copy C:\SAP\NSP\_installTemp\j2ee\INSTALLER\BIN\steps.jar since C:\SAP\NSP\home\steps.jar already exists])
STACK_TRACE: 12
ProductException: (error code = 601; message="err"; additional data = [Can not copy C:\SAP\NSP\_installTemp\j2ee\INSTALLER\BIN\steps.jar since C:\SAP\NSP\home\steps.jar already exists])
at com.installshield.product.actions.CopyFile.install(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Edited by: Rajeev Ranjan on Nov 9, 2008 3:33 PM
<LOCKED BY MODERATOR - URGENT, PLEASE HELP OR SIMILAR ARE FORBIDDEN>
Edited by: Alvaro Tejada Galindo on Nov 10, 2008 9:53 AMAMreso wrote:
Check this - http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-upda tes-ccm.html
Sorry AMreso, I've already tried this and it didn't work for me:
After reviewing the FAQ:
https://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-upd ates-ccm.html
I uninstalled Photoshop CC and re-installed it, after doing so the installation started the patch but failed it.. -
Configuring SAP R/3 system as data source for SAP BW3.5 system
HI All,
Please help me in getting some document for integrating SAP R/3 4.7 with SAP BW3.5 as data source system.
Thanks in advance.
Regards,
Nalla.Hi,
I have got the link which has solution for my question from old questions in this Forum.
http://help.sap.com/saphelp_nw04/helpdata/en/00/dc54384ac9a81be10000009b38f8cf/frameset.htm
So stopping this thread.
Regards,
Nalla. -
R12 AR Invoice raxinv -Customization (add columns) - need urgent help
Hi,
I need urgent help in customization of AR invoice report (raxinv) in R12. I am doing report customization for Brazil. As soon as I add one more column in report common query, build query and main query Q_invoice. Report changes to new variables in report editor q_invoice itself for example from remit_to_address_id to remit_to_address_id1 , previous_customer_id to previous_customer_id1 and start giving error that original variables e.g. remit_to_address_id , previous_customer_id are not defined in the query. Variable names and xml tags are also different from each other. even after trying to fix it, error persist.
Thanks
AnjuHi,
I need urgent help in customization of AR invoice report (raxinv) in R12. I am doing report customization for Brazil. As soon as I add one more column in report common query, build query and main query Q_invoice. Report changes to new variables in report editor q_invoice itself for example from remit_to_address_id to remit_to_address_id1 , previous_customer_id to previous_customer_id1 and start giving error that original variables e.g. remit_to_address_id , previous_customer_id are not defined in the query. Variable names and xml tags are also different from each other. even after trying to fix it, error persist.
Thanks
Anju -
Your urgent help will be very much appreciated
I have a problem whenever I connect my database and need your urgent help. the sample source code is below
import java.sql.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Table extends JFrame
private Connection con;
private JTable table;
public Table()
String url = "jdbc:odbc:Books";
String username="";
String password="";
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection(url, username, password);
catch(ClassNotFoundException cnfex)
System.err.println("Failed to load JDBC/ODBC driver.");
cnfex.printStackTrace();
System.exit(1);
catch(SQLException sqlex)
System.err.println("Failed to connect");
sqlex.printStackTrace();
getTable();
setSize(45,150);
show();
public void getTable()
Statement state;
ResultSet result;
try{
String query="Select * from Author";
state=con.createStatement();
result=state.executeQuery(query);
displayResult(result);
state.close();
catch(SQLException sqlex)
sqlex.printStackTrace();
public void displayResult(ResultSet rs)throws SQLException
boolean moreRecord=rs.next();
if (!moreRecord)
JOptionPane.showMessageDialog(this, "ResultSet contained no record");
setTitle("No records to display");
return;
setTitle("Author table from Books");
Vector columnHeads=new Vector();
Vector rows=new Vector();
try{
ResultSetMetaData rsmd=rs.getMetaData();
for (int i=1; i<=rsmd.getColumnCount(); i++)
columnHeads.addElement(rsmd.getColumnName(i));
do{
rows.addElement(getNextRow(rs, rsmd));
}while(rs.next());
table=new JTable(rows, columnHeads);
JScrollPane scroller=new JScrollPane(table);
getContentPane().add(scroller,BorderLayout.CENTER);
validate();
catch(SQLException sqlex)
sqlex.printStackTrace();
public Vector getNextRow(ResultSet rs, ResultSetMetaData rsmd)
throws SQLException
Vector currentRow=new Vector();
for (int i=1; i<=rsmd.getColumnCount(); i++)
switch (rsmd.getColumnType(i))
case Types.VARCHAR:
currentRow.addElement(rs.getString(i));
break;
case Types.INTEGER:
currentRow.addElement(new Long(rs.getLong(i)));
break;
default:
System.out.println("Type was: "+rsmd.getColumnTypeName(i));
return currentRow;
public void shutDown()
try{
con.close();
catch(SQLException sqlex)
System.err.println("Unable to disconnect");
sqlex.printStackTrace();
public static void main(String args[])
final Table app=new Table();
app.addWindowListener( new WindowAdapter()
public void windowClosing(WindowEvent e)
app.shutDown();
System.exit(0);Thank you for your help. When I compile it, it is fine, the problem happens when run it.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d448d54
Function name=(N/A)
Library=C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\hotspot\jvm.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.driverConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Table.<init>(Table.java:26)
at Table.main(Table.java:145)
Dynamic libraries:
0x00400000 - 0x00405000 C:\WINNT\system32\java.exe
0x77F80000 - 0x77FFB000 C:\WINNT\System32\ntdll.dll
0x77D90000 - 0x77DED000 C:\WINNT\system32\ADVAPI32.dll
0x77E60000 - 0x77F35000 C:\WINNT\system32\KERNEL32.DLL
0x786F0000 - 0x78761000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x60000000 - 0x6003A000 c:\program files\rising\rav\ApiHook.dll
0x05000000 - 0x0502E000 c:\program files\rising\rav\MemMon.dll
0x77DF0000 - 0x77E55000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x75E00000 - 0x75E1A000 C:\WINNT\System32\IMM32.DLL
0x6D420000 - 0x6D4F7000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\hotsp
ot\jvm.dll
0x77530000 - 0x77560000 C:\WINNT\system32\WINMM.dll
0x6D220000 - 0x6D227000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\hpi.d
ll
0x6D3B0000 - 0x6D3BD000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\verif
y.dll
0x6D250000 - 0x6D266000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\java.
dll
0x6D3C0000 - 0x6D3CD000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\zip.d
ll
0x6D020000 - 0x6D12A000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\awt.d
ll
0x777C0000 - 0x777DE000 C:\WINNT\system32\WINSPOOL.DRV
0x75010000 - 0x75020000 C:\WINNT\system32\MPR.DLL
0x77A30000 - 0x77B25000 C:\WINNT\system32\ole32.dll
0x6D1E0000 - 0x6D21B000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\fontm
anager.dll
0x6DD30000 - 0x6DD36000 C:\WINNT\System32\INDICDLL.dll
0x37210000 - 0x3723D000 C:\WINNT\DOWNLO~1\CnsMin.dll
0x77C50000 - 0x77C9A000 C:\WINNT\system32\SHLWAPI.dll
0x777E0000 - 0x777E7000 C:\WINNT\system32\VERSION.dll
0x75950000 - 0x75956000 C:\WINNT\system32\LZ32.DLL
0x6D290000 - 0x6D29A000 C:\Program Files\JavaSoft\JRE\1.3.1_05\bin\JdbcO
dbc.dll
0x1F7F0000 - 0x1F825000 C:\WINNT\system32\ODBC32.dll
0x76AF0000 - 0x76B2D000 C:\WINNT\system32\comdlg32.dll
0x77B30000 - 0x77BB9000 C:\WINNT\system32\COMCTL32.DLL
0x78F90000 - 0x791D6000 C:\WINNT\system32\SHELL32.DLL
0x1F8E0000 - 0x1F8F6000 C:\WINNT\system32\odbcint.dll
0x77900000 - 0x77923000 C:\WINNT\system32\imagehlp.dll
0x72960000 - 0x7298D000 C:\WINNT\system32\DBGHELP.dll
0x687E0000 - 0x687EB000 C:\WINNT\system32\PSAPI.DLL
Local Time = Tue Feb 25 21:33:38 2003
Elapsed Time = 7
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002BD
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Client VM (1.3.1_05-b02 mixed mode)
# An error report file has been saved as hs_err_pid1792.log.
# Please refer to the file for further information.
# -
Urgent Help with network access to FileOutputStream
URGENT HELP NEEDED GUYS...I am stuck on this past 2 days. I tried several alternatives but to vain.
I am trying to access a Folder on a user's computer which is lying in a different Domain.
For accessing this folder, I have the following information with me.
Domain name, PC name, folder name, windows username, windows password.
Note: This username and password will give me rights to read + write to that folder.
How to use these information to open a fileoutputstream ? Does the java.io package allow programs to pass a username, password , domainname, pcname and then the folder and filename to create/read/write files..
Pls. suggest code examples. Sometime back I posted this query but didnt get an answer to my satisfaction. I have tried at my end but unsuccessful yet. Help would be appreciated.
I am trying this on a Windows File System and Network domain
THIS IS V. URGENT
Thanks,Hi HJK,
I am referring to the last reply of yours.
" Hi, there are three approaches I can think of offhand:
1) make sure the user-context under which you run the java app has the right to access the remote drive.
2) Do the network connection in a batch or c program and call that at the start of your java app with Runtime#exec.
3) Write some c/c++ code to open the connection and integrate that via JNI.
Let me know what (other) solution you came up with in the end!
Regarding the 1st.
I am supposed to write a remote installation utility actually. There are around 200 PC(s) in a network on which I need to copy these java class files. My problem statement is such that at runtime I only have username, passwords, domain access. I am not supposed to map any drives. Its supposed to be done dynamically. No manual intervention required. :(
How do I do the network connection in a batch mode ? Let me know that?
If 2nd option can be done, probably I can think of action-3 at the moment I am quite blurr :(
Maybe you are looking for
-
Is there an upgrade option to Windows 7 for existing Vista notebooks?
Toshiba are currently offering upqrades to Win 7 for purchaseers of *NEW* machines with Vista. What is Toshiba policy for users of *existing* machines with Vista? Will Toshiba provide an OEM upgrade/replacement route or will I have to buy Win 7 comme
-
CUC 8.5 Call transfer fails
Hi, We have CUC 8.5 integrated with CUCM 8.6. We are trying to deploy the autoattendant with following prompt " If you know your party's extension, please dial it now or dial 0 for operator". It plays the prompt properly but when you press 0 (or any
-
im confused about all the hyperion add in does all of them open and edit in the data forums ? the add in is excel add in and smart view planning provider and smart view essbase provider
-
Hi All, Could you please check the below screen and help me clear the doubts in ATP process. For one item, the existing stock is 1,304,480 PCE and the Production orders (the product end date is tomorrow ). The question is even though the ready stock
-
When do packages move from [community] to [extra]?
I notice azureus has 74 votes, while the next lowest package (skype) has 50. Is there a hard and set or not-so-hard and set rule for when packages are moved from [community] to [extra]? In the short history of AUR, have any packages been promoted to