Urgent: Help Reqd for outfile
Hi,
My Oracle version is 10g and I am using SQL Plus.
When I use command:
select * from emp into outfile 'e1.txt';
it gives me error:
ORA-00933: SQL command not properly ended
I have tried all the possible options but none work.
Please help me solve it,
thanks,
R.GOPALAN
select * from emp into outfile 'e1.txt';
^
|
|
is not a command
a SELECT statement with an INTO clause is to be used with a PL/SQL. those what you see on the INTO clause are all variables that are declared in PL/SQL code. basically the correct syntax is
select [column,...] into [variable,...] from [table]
anyway where do you happen to get the idea that the OUTFILE is an oracle command?
Similar Messages
-
Urgent: Help reqd for designing layout
Hi,
I need some assistance is designing following scenario:
How to have a calculated column in the layout?
Consider a cost center group A having 3 cost centers rolled up under it. First amount is planned for group and then distributed either manually or using function to each of the 3 cost centers.
1. Now in the layout I want a column which shows % for each cost center of the total amount. Ex: if cost center group A = $300 and each cost center has $100 in it then for which cost center it should show 33.33%.
2. Also not if this % value is changed then figures should change accordingly. Ex: if for 1 cost center 33.33% is changed to 25% then now its amount should change to $75 and $25 should go to not assigned.
Note: there is no key figure in the cube which stores this % value. It is something which is required only during planning.
How can I achieve the above scenario?
Thank you,
samNow in the layout I want a column which shows % for each cost center of the total amount. Ex: if cost center group A = $300 and each cost center has $100 in it then for which cost center it should show 33.33%.
Define the key figure for the percentage and include in the layout as a display column; write a fox formula to derive the % and when you run the fox, the comparison colum will be displayed automatically.
For examaple:
= * .80.
If your percentage varies per cost centre, then define a variable of type numeric value and use VARV command to get the variable value.
Ravi Thothadri -
Urgent Help Reqd: Delta Problem....!!!
Hi Experts,
Urgent help reqd regarding follwoing scenario:
I am getting delta to ODS 1 (infosource : 2LIS_12_VCHDR) from R/3. Now this ODS1 gives delta to Cube1. I got one error record which fails when going to cube (due to master data check).And this record would be edited later.
So I thought of re loading cube and using error handling to split request in PSA and load valid records in cube.Later when I have coorect info abt error, I would load erroneous record manually using PSA.
I did following steps:
1)Failed request is not in cube...(setting is PSA and then into target)....also it has been deleted from PSA.
2)Remove data status from source ODS1.
3)Change error handling in infopackage to valid " Valid records update, reporting possible".
4)start loading of cube.
But when I did this I got following message :
<b> "Last delta update is not yet completed.Therefore, no new delta update is possible.You can start the request again if the last delta request is red or green in the monitor"</b>
But both my requests in cube and ODS are Green...no request is in yellow...!!
Now the problem is :
1) I have lost ODS data mart status
2)how to load valid records to cube, since errorneous record can be edited only after 3- 4 days.
3)How not to affect delta load of tomorrow.
Please guide and help me in this.
Thanks in advance and rest assured I will award points to say thanks to SDNers..
Regards,
Sorabh
Message was edited by: sorabh aroraHi Joseph,
Thanks for replying....
I apolgize and I have modified the message above..
I just checked in cube...there is no failed request for today...and neither in PSA....Person who has handed this to me may have deleted this is PSA..and why req is not in failed state in cube...I am not sure..though setting is "PSA and then into data package".....
So how to go frm here....
Thanks
Sorabh -
Urgent help needed for XML Tags using XMLForest()
Folks
I need some urgent help regarding getting use defined tag in your
XML output.
For this I am using XMLElement and XMLForest which seems to work fine
when used at the SQL prompt but when used in a procedure throws and error
SQL> Select SYS_XMLAGG(XMLElement("SDI",
XMLForest(sdi_num)))
From sdi
where sdi_num = 22261;- WORKS FINE
But when used in a procedure,doesnt seem to work
Declare
queryCtx DBMS_XMLQuery.ctxType;
v_xml VARCHAR2(32767);
v_xmlClob CLOB;
BEGIN
v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
XMLFOREST(sdi_num)))
From sdi
where sdi_num = 22261';
queryCtx :=DBMS_XMLQuery.newContext(v_xml);
v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
display_xml(v_xmlClob);
End;
CREATE OR REPLACE PROCEDURE display_xml(result IN OUT NOCOPY CLOB)
AS
xmlstr varchar2(32767);
line varchar2(2000);
BEGIN
xmlstr:=dbms_lob.SUBSTR(result,32767);
LOOP
EXIT WHEN xmlstr is null;
line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
dbms_output.put_line('.'||line);
xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
END LOOP;
end;
SQL> /
.<?xml version = '1.0'?>
.<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
XML tag name.</ERROR>
PL/SQL procedure successfully completed.
SQL>HELP is appreciated as to where I am going wrong?Hi,
if you want to transform something to something else, you should declare, what is your source.
I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
Kind regards,
Hendrik -
Urgent Help Required for Connect Four Game
Hi all,
I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
Sorry there is so much code.
This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
Interface code..............
interface Player {
void init (Boolean color);
String name ();
int move ();
void inform (int i);
Player1 class......................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class Player1 implements Player
public Player1()
public int move()
Scanner scan = new Scanner(System.in);
// BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
int player1;
System.out.println ("What is your Number, player 1?");
player1 = scan.nextInt();
System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
System.out.println();
return player1;
//Player.move();
//return player1;
}//end move method
public void init (Boolean color)
public void inform (int i)
public String name()
return "Koonda";
}//end player1 class
Player2 class...........................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class Player2 implements Player
public int move()
//int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
// cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
//int num1, num2;
Scanner scan = new Scanner(System.in);
// BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
int player2;
System.out.println ("What is your Number, player 2?");
player2 = scan.nextInt();
System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
System.out.println();
//return player1;
return player2;
}//end move method
public void init (Boolean color)
public void inform (int i)
public String name()
return "malook";
}//end player1 class
PlayGame class which contains all the functionality.........................................................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class PlayGame
//Player player1;
//Player player2;
int [][]ConnectFourArray;
boolean status;
int winner;
int player1;
int player2;
public PlayGame()
//this.player1 = player1;
//this.player2 = player2;
public void StartGame()
try{
// int X = 0, Y = 0;
//int value;
int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
int[][] ConnectFourArray = new int[6][7];
int num1, num2;
for(int limit=21;limit!=0;limit--)
BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
String column1;
System.out.println();
for ( int row=0; row < ConnectFourArray.length; row++ ){
System.out.print("Row " + row + ": ");
for ( int col=0; col < ConnectFourArray[row].length; col++ )
System.out.print( ConnectFourArray[row][col] + " ");
System.out.println();
System.out.println();
System.out.println ("Please Select a column of 0 through 6 ");
column1 = selecter.readLine();
num1= Integer.parseInt(column1);
System.out.println();
if (num1==0){
ConnectFourArray[cup0][0]=1;
cup0=cup0-1;
else if (num1==1){
ConnectFourArray[cup1][1]=1;
cup1=cup1-1;
else if (num1==2){
ConnectFourArray[cup2][2]=1;
cup2=cup2-1;
else if (num1==3){
ConnectFourArray[cup3][3]=1;
cup3=cup3-1;
else if (num1==4){
ConnectFourArray[cup4][4]=1;
cup4=cup4-1;
else if (num1==5){
ConnectFourArray[cup5][5]=1;
cup5=cup5-1;
else if (num1==6){
ConnectFourArray[cup6][6]=1;
cup6=cup6-1;
System.out.println();
BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
String column2;
System.out.println();
for ( int row=0; row < ConnectFourArray.length; row++ ){
System.out.print("Row " + row + ": ");
for ( int col=0; col < ConnectFourArray[row].length; col++ )
System.out.print( ConnectFourArray[row][col] + " ");
System.out.println();
System.out.println();
System.out.println ("Please Select a column of 0 through 6 ");
column1 = selecter.readLine();
num1= Integer.parseInt(column1);
System.out.println();
if (num1==0){
ConnectFourArray[cup0][0]=2;
cup0=cup0-1;
else if (num1==1){
ConnectFourArray[cup1][1]=2;
cup1=cup1-1;
else if (num1==2){
ConnectFourArray[cup2][2]=2;
cup2=cup2-1;
else if (num1==3){
ConnectFourArray[cup3][3]=2;
cup3=cup3-1;
else if (num1==4){
ConnectFourArray[cup4][4]=2;
cup4=cup4-1;
else if (num1==5){
ConnectFourArray[cup5][5]=2;
cup5=cup5-1;
else if (num1==6){
ConnectFourArray[cup6][6]=2;
cup6=cup6-1;
System.out.println();
System.out.println();
catch (Exception E){
System.out.println("Error with input");
System.out.println("Would you like to play again");
try{
String value;
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
// Scanner scan = new Scanner(System.in);
System.out.println("Enter yes to play or no to quit");
// value = scan.nextLine();
// String value2;
value = reader.readLine();
//value2 = reader.readLine();
if (value.equals("yes"))
System.out.println("Start again");
StartGame(); // calling the StartGame method to play a game once more
else if (value.equals("no"))
System.out.println("No more games to play");
// System.exit(0);
else
System.exit(0);
System.out.println();
catch (Exception e){
System.out.println("Error with input");
finally
System.out.println(" playing done");
//StartGame();
//check for horizontal win
public int hasWon()
int status = 0;
for (int row=0; row<6; row++)
for (int col=0; col<4; col++)
if (ConnectFourArray[col][row] != 0 &&
ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
//status = true;//int winner;
if(status == player1)
System.out.println("Player 1 is the winner");
else if(status == player2)
System.out.println("Player 2 is the winner" );
}//end inner for loop
}// end outer for loop
} // end method Winner
return status;
}//end class
ClassConnectFour which designs the board........................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class ClassConnectFour
//Player player1;
//Player player2;
public ClassConnectFour()
//this.player1 = player1;
public void DrawBoard()
int[][] ConnectFourArray = new int[6][7] ;
for ( int row=0; row < ConnectFourArray.length; row++ ){
System.out.print("Row " + row + ": ");
for ( int col=0; col < ConnectFourArray[row].length; col++ )
System.out.print( ConnectFourArray[row][col] + " ");
System.out.println();
System.out.println();
}//end class
TestConnetFour class which uses most of the above class..................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class TestConnectFour
public static void main(String[] args)
ClassConnectFour cf = new ClassConnectFour();
cf.DrawBoard();
Player1 player1 = new Player1();
Player2 player2 = new Player2();
player1.move();
player2.move();
System.out.println("Number 1 belongs to player " + player1.name());
System.out.println("Number 2 belongs to player " + player2.name());
PlayGame pg = new PlayGame();
pg.StartGame();
pg.hasWon();
//pg.Play();
//System.out.println(player.name());
//System.out.println(player2.name());
}// end main
}//end class
I am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
Thanks in advance.
Koonda
//Hi,
Thanks for your help but I really don't understand the table lookup algorithm. Could you please send me some code to implement that.
I will send you the formatted code as well
Thanks for your help.
looking forward to your reply.
Koonda
Hi all,
I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
Sorry there is so much code.
This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
Interface code..............
interface Player {
void init (Boolean color);
String name ();
int move ();
void inform (int i);
Player1 class......................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class Player1 implements Player
public Player1()
public int move()
Scanner scan = new Scanner(System.in);
// BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
int player1;
System.out.println ("What is your Number, player 1?");
player1 = scan.nextInt();
System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
System.out.println();
return player1;
//Player.move();
//return player1;
}//end move method
public void init (Boolean color)
public void inform (int i)
public String name()
return "Koonda";
}//end player1 class
Player2 class...........................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class Player2 implements Player
public int move()
//int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
// cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
//int num1, num2;
Scanner scan = new Scanner(System.in);
// BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
int player2;
System.out.println ("What is your Number, player 2?");
player2 = scan.nextInt();
System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
System.out.println();
//return player1;
return player2;
}//end move method
public void init (Boolean color)
public void inform (int i)
public String name()
return "malook";
}//end player1 class
PlayGame class which contains all the functionality.........................................................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class PlayGame
//Player player1;
//Player player2;
int [][]ConnectFourArray;
boolean status;
int winner;
int player1;
int player2;
public PlayGame()
//this.player1 = player1;
//this.player2 = player2;
public void StartGame()
try{
// int X = 0, Y = 0;
//int value;
int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
int[][] ConnectFourArray = new int[6][7];
int num1, num2;
for(int limit=21;limit!=0;limit--)
BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
String column1;
System.out.println();
for ( int row=0; row < ConnectFourArray.length; row++ ){
System.out.print("Row " + row + ": ");
for ( int col=0; col < ConnectFourArray[row].length; col++ )
System.out.print( ConnectFourArray[row][col] + " ");
System.out.println();
System.out.println();
System.out.println ("Please Select a column of 0 through 6 ");
column1 = selecter.readLine();
num1= Integer.parseInt(column1);
System.out.println();
if (num1==0){
ConnectFourArray[cup0][0]=1;
cup0=cup0-1;
else if (num1==1){
ConnectFourArray[cup1][1]=1;
cup1=cup1-1;
else if (num1==2){
ConnectFourArray[cup2][2]=1;
cup2=cup2-1;
else if (num1==3){
ConnectFourArray[cup3][3]=1;
cup3=cup3-1;
else if (num1==4){
ConnectFourArray[cup4][4]=1;
cup4=cup4-1;
else if (num1==5){
ConnectFourArray[cup5][5]=1;
cup5=cup5-1;
else if (num1==6){
ConnectFourArray[cup6][6]=1;
cup6=cup6-1;
System.out.println();
BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
String column2;
System.out.println();
for ( int row=0; row < ConnectFourArray.length; row++ ){
System.out.print("Row " + row + ": ");
for ( int col=0; col < ConnectFourArray[row].length; col++ )
System.out.print( ConnectFourArray[row][col] + " ");
System.out.println();
System.out.println();
System.out.println ("Please Select a column of 0 through 6 ");
column1 = selecter.readLine();
num1= Integer.parseInt(column1);
System.out.println();
if (num1==0){
ConnectFourArray[cup0][0]=2;
cup0=cup0-1;
else if (num1==1){
ConnectFourArray[cup1][1]=2;
cup1=cup1-1;
else if (num1==2){
ConnectFourArray[cup2][2]=2;
cup2=cup2-1;
else if (num1==3){
ConnectFourArray[cup3][3]=2;
cup3=cup3-1;
else if (num1==4){
ConnectFourArray[cup4][4]=2;
cup4=cup4-1;
else if (num1==5){
ConnectFourArray[cup5][5]=2;
cup5=cup5-1;
else if (num1==6){
ConnectFourArray[cup6][6]=2;
cup6=cup6-1;
System.out.println();
System.out.println();
catch (Exception E){
System.out.println("Error with input");
System.out.println("Would you like to play again");
try{
String value;
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
// Scanner scan = new Scanner(System.in);
System.out.println("Enter yes to play or no to quit");
// value = scan.nextLine();
// String value2;
value = reader.readLine();
//value2 = reader.readLine();
if (value.equals("yes"))
System.out.println("Start again");
StartGame(); // calling the StartGame method to play a game once more
else if (value.equals("no"))
System.out.println("No more games to play");
// System.exit(0);
else
System.exit(0);
System.out.println();
catch (Exception e){
System.out.println("Error with input");
finally
System.out.println(" playing done");
//StartGame();
//check for horizontal win
public int hasWon()
int status = 0;
for (int row=0; row<6; row++)
for (int col=0; col<4; col++)
if (ConnectFourArray[col][row] != 0 &&
ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
//status = true;//int winner;
if(status == player1)
System.out.println("Player 1 is the winner");
else if(status == player2)
System.out.println("Player 2 is the winner" );
}//end inner for loop
}// end outer for loop
} // end method Winner
return status;
}//end class
ClassConnectFour which designs the board........................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class ClassConnectFour
//Player player1;
//Player player2;
public ClassConnectFour()
//this.player1 = player1;
public void DrawBoard()
int[][] ConnectFourArray = new int[6][7] ;
for ( int row=0; row < ConnectFourArray.length; row++ ){
System.out.print("Row " + row + ": ");
for ( int col=0; col < ConnectFourArray[row].length; col++ )
System.out.print( ConnectFourArray[row][col] + " ");
System.out.println();
System.out.println();
}//end class
TestConnetFour class which uses most of the above class..................
import java.util.*;
import java.io.*;
import javax.swing.*;
public class TestConnectFour
public static void main(String[] args)
ClassConnectFour cf = new ClassConnectFour();
cf.DrawBoard();
Player1 player1 = new Player1();
Player2 player2 = new Player2();
player1.move();
player2.move();
System.out.println("Number 1 belongs to player " + player1.name());
System.out.println("Number 2 belongs to player " + player2.name());
PlayGame pg = new PlayGame();
pg.StartGame();
pg.hasWon();
//pg.Play();
//System.out.println(player.name());
//System.out.println(player2.name());
}// end main
}//end classI am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
Thanks in advance.
Koonda -
Urgent help needed for hysterical female!
I need urgent help in editing a pic that has been emailed to me, I do not know which Adobe programme to upload it too. Currently use Picasso - usually brilliant, but now gets jammed with a pop up box asking me to either accept or deny picnik. When I googled picnik, it now belongs to Google - don't know how to do a damn thing now!! Extremely Frustrated, can anybody suggest/help me
The only Adobe program I know that can edit images is Photoshop.
If you have troubles with Google software, you need to post in the appropriate Google forum. -
Urgent help required for sms messages
i need help urgently...i havea legal case comming up shortly and need my sms messages from my old lawyer off my phone for the court. as they will be evidence, and i cannot find a way to do this i need them on to a sim. how do i do this please. i do not have BIS service so i cannot send them like that....Help please thanks
I haven't figured out how to get them onto your SIM card yet - but it may be a good idea for you to "back them up" by marking them all "saved." They would then be more secure
Phil -
Urgent help required for update Plz help!!
Hi i am updating my E51 and its displaying updating software please wait estimated time left 15 minutes for the past 1 hour.
Please tell me what should i do....
Its really urgent pls help....Hi,
There might be a problem with either the NSU or the phone itself. Any updates on what happened?
Next time make sure you meet the certain system requirements before proceeding with the update.
Message Edited by nj15 on 01-Oct-2008 01:44 PM -
Urgent Help Required for Unified wireless network help
Dear Community
i need urget help for a wireless unified network setup to deploy it in a college
actually what is the senario for this network that i have a WLC 5500 and 12 lwapp 1252 series APs for this deployment ant there is allready an existing lan
network to connect with it the new wireless unified setup.
here is above proposed topology .
i need help for this setup like
i know the basic configuration on controller to do but i really do not know that from GUI what steps i need to configure on controller for each access points as you can see above i have three floors for building and i want to configur three SSIDs like Employ,contractors and Guest for each floor and how to configure encryption type and shared key for each SSiD.
and what i have to configure for APs to join them with controller
and hoe to configure RF grouping for each floor.
please i need urgent reply because i have tp finish this all setup in one weekonly
thans in advance.Hi,
Wat ever you want.. the below link has everything.. Just click on the stuff that you neeed fro mthe menu and this will do it for you!!
http://www.cisco.com/en/US/docs/wireless/controller/7.0/configuration/guide/c70.html
1>> Configure WLANs.
2>> Configure AP Grouping.
Regards
Surendra -
Urgent help reqd in string tokenizing
hi all,
i want to count the number of commas in the screen,
ths is my code
import java.util.*;
class TokenizerTest
public static void main(String[] args)
String str= new String("REMOVE_STR,01,6403,40,143,990,410,,,11,ATTN PAT COLEMAN,, ,,,N,,,,,,,,,,,NC,,,,,");
StringTokenizer st= new StringTokenizer(str,",",false);
int i=0;
while(st.hasMoreTokens())
System.out.println(st.nextToken()+" Val :"+i);
i++;
System.out.println("Value of i"+i);
System.out.println("Count is " +st.countTokens());
}but its notgiving the proper count... those commas whcih are not separated by spaces orcharacter, it desn't count like" ,," it won't count theese commas it works fine when commas are separated by spaces or charachters.
what is the solution for this?.. plz help me its urgent
Thanx in advance
DeepalicountTokens() should have been called before the while loop.
so, System.out.println("Count is " +st.countTokens()); should be place before the while loop or create
a local int variable to store the count and use the variable in the
System.out.println("Count is " + count);
The reason why you're not getting the proper count is this:
In the while loop..you use nextToken()..when this method is called..countToken() method count the total
number of token left; therefore...after the while loop..countToken() will always return ZERO.
you should use the String split(String regex) function, if you are using the jdsk 1.4 or higher.
public static void main(String[] args) {
String str= new String("REMOVE_STR,01,6403,40,143,990,410,,,11,ATTN PAT COLEMAN,, ,,,N,,,,,,,,,,,NC,,,,,");
String s[] = str.split(","); // require jdk 1.4
// NOTE: the String "a,,b" - two commas return
// s[0] = "a"
// s[1] = ""; // empty string
// s[2] = ""; // empty string
// s[3] = "b";
for (int i = 0; i < s.length; i++)
System.out.println("Value of i = " + s);
System.out.println("Count is = " + (s.length - 1) ); -
Help reqd for USER EXIT - VA01
Hi all,
i've the details of lists regarding the VA01 std enhancement assignment....but really i dont know which one'll be applicable for my USER Exit object....
My client requiremnet is...In VA01 or VA02
The enduser will be able to create/do the line items upto the line 4th (POSNR -004).means,we shuld restrict the line items as a maximum of 4 only and it has to throw an error if going for 5th line item and revert back to main .
which is the std enhancement/exit for this to declare in CMOD....the exact one
,i need.
If anyone has faced the same creiteria,then pls post ur comments here in detail,else if any knows the exit name,pls reply here on urgent basis.
my mail-id is [email protected]..for post ur comments thru mail.
thanks & regards
sankarTransaction Code - VA01 Create Sales Order
Exit Name Description
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
No of Exits: 15
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal -
URGENT HELP NEEDED FOR GROUP BY
SELECT curve_date, curve_id, curve_type, curve_name, curve_instance, is_simple,
comments, curve_currency, curve_generator, curve_interpolator, holidays,
user_name, rate_index, daycount_code, frequency_code, rate_index_tenor,
time_zone
FROM curve a
WHERE curve_date = (SELECT max(curve_date)
FROM curve b
WHERE b.curve_id = a.curve_id
GROUP BY curve_id)
I have this query ..This query does the FULL TABLE SCAN .....PLEASE Suggest some easier way to optimize this query.....I need it VERY VERY URGENTLY....SELECT curve_date, curve_id, curve_type, curve_name, curve_instance, is_simple,
comments, curve_currency, curve_generator, curve_interpolator, holidays,
user_name, rate_index, daycount_code, frequency_code, rate_index_tenor,
time_zone
FROM curve
WHERE (curve_id, curve_date) IN (SELECT curve_id, max(curve_date)
FROM curve
GROUP BY curve_id)
Be sure you have statistics collected on the table. Anyway, I am not sure that Oracle will not do the FTS for this query even if curve_id and curve_date are indexed. -
Urgent Help Needed for WVC210 camera setup :)
Please help! I am trying to set up a Cisco WVC210 surveilance camera at one of the stores owned by the company I work for. Its a small business and I am the closest they have to an I.T person !! I have plenty of experience with software but not much on networking so need some idiot proof guidance ! The "administrative guide" is not worth the paper it is printed on!!
The store has a fixed IP address of 212.9.##.### I connected the camera using ethernet cable. Set the camera up using the software for the camera, with static ip address of 192.168.0.23. Set the SSID of the camera to that of the router (a Netgear one). It worked fine. I went to unplug so I could have it wireless and NOTHING !! It did work one time (no idea what i did differently!) but it would not work over the internet which is what we need it to do! I need the whole thing password protected too!
Is there ANYONE who can help me please??? I am at the point of running away from my work and never returning !!!! :s
Thank youHi Jodie,
Thank you for posting. In order to make the camera connect wirelessly, first set up the wireless settings in the camera to match the router. I usually open the router configuration page and copy and paste the SSID and Security Passphrase to the camera to avoid error. The next step is to unplug the ethernet cable and power cord from the camera. Then plug only the power back in and the camera should connect wirelessly.
For remote access to the camera you will need to forward port 80 to the LAN IP address of the camera. (192.168.0.23) This is done in the router. If you need help with port forwarding, you can search the web or call Netgear for assistance.
If you continue to need assistance with the camera, the fastest and easiest way to get assistance is to call Cisco Small Business Support. www.cisco.com/go/sbsc
Please go to www.cisco.com and click on "Register" in the upper right to create a user ID. This will allow our engineers to create a case for you. -
URGENT HELP NEEDED FOR TimeStamp
Urgent Millisecond Question....
I have the Java Code which used to work well in Oracle 8 and Sybase ..
When I am using it with Oracle 9.2 it creating a problem...
The code is
final public JDatetime getJDatetime(int columnIndex) throws SQLException {
boolean convertb = Util.needConvertTime();
Timestamp ts=_rs.getTimestamp(columnIndex);
if(ts==null) return null;
Date d= new Date(ts.getTime() + (ts.getNanos()/1000000));
if(convertb) d = Util.ReferenceTZ2Local(d);
return new JDatetime(d);
Now in Oracle 8 Say when I insert a
JDateTime Value as 2003-06-18 16:51:06.89
and
When I retrieve is using above getJDatetime
it get retrieved as
2003-06-18 16:51:06.0
Which is ok since Milliseconds are lost....
Now in Oracle 9
When I use the convert
Date d= new Date(ts.getTime() + (ts.getNanos()/1000000));
It get converted to
Original Value While Inserting -->TimeStamp in JResultSet->2003-06-18 18:15:56.42
Date in JResultSet-->Wed Jun 18 18:15:56 GMT 2003
Date in JResultSet after converting to ReferenceTZ
Wed Jun 18 18:15:56 GMT 2003
DateTime in JResultSet after converting to DateTime6/18/03 6:15:56.840 PM
GMTGETDatetime 6/18/03 6:15:56.840 PM GMT
so if you see
Milliseconnd 42 got converted to 840 NanoSeconds
WHICH IS WRONG
Can anybody help me with it ??
MaheshThe only Adobe program I know that can edit images is Photoshop.
If you have troubles with Google software, you need to post in the appropriate Google forum. -
Help! Urgent help required for adjusting image
Hi - hoping someone can help.
I sent the attached PDF - http://www.sensecreative.co.uk/custUploads/SENSE-36-7977-95928/77317/SENSE-36-7977-95928-7 7317-2440.zip - to print with Sense Creative. The cards were printed and they've turned out quite visibly green on the reverse (where it should be white).
I've printed the artwork on several printers I have access to and it looks as it should, however SC are saying that the issue is with the artwork
"The green tinge you see on the reverse of these cards is prevalent in the artwork. The makeup of the background is approximately c-15 m-11 y-15 k-0. the predominant levels of the yellow and cyan will give you the green tint. Upping the levels of the artwork in or substituting the cyan, magenta and yellow levels with more black in Photoshop will likely give you the result you require. We are satisfied that in both instances, the artwork has printed correctly and the colours are well within tolerance given the nature of the artwork."
So, I'm in a bit of a pickle as the cards are needed for an event next week.
How do I change the image levels? Or are they talking nonsense and trying to pass the buck?
Help!station_two,
Acrobat View> Tools> Print Production> Output Preview: Object Inspector will call out the objects' profiles if you click on each one individually (in this case all appeaar to be "Device CMYK" or Untagged CMYK)
untagged CMYK has the same pitfalls as untagged RGB... if one applys or assumes the wrong SOURCE PROFILE it doesn't CONVERT colors to Monitor RGB or Print Space correctly
Maybe you are looking for
-
Retrieving data from TCP/IP in xml and displaying values?
Hey, I am using a program to retrieve data from a machine and outputting it in xml to the localhost. On a seperate computer, I am trying to create a client application to read the xml data from that IP host and just output the important values inste
-
Planned Order to STR Conversion - incorrect Valuation Price
Hi Experts Not sure if you've encountered this before:- Material A in Requesting Plant has Valuation Price of USD10. Material A in Supplying Plant has Valuation Price of USD20. Material A is planned through MRP in Requesting Plant with Planned Order
-
Alerts in Control Step for BPM
Hi. Is it possible for me to use the Control Step in a BPM to trigger a indication of a error in sxmb_moni? Fo example. My BPM handels a message that fails in a mapping. In the exception bransch I have a control step thattrigegrs an alert. Will this
-
Create xml from xml schema in java
If can i create a xml document framework from xml schema in java, then i can fill the value in java? thanks
-
Hi all my pictures have vanished from iphoto
Heeeelllllllpppppppppp please........... i spoke to apple support already... they couldn't really help me over the phone... i tried all sorts of things.... i did get some of my pics back but not the important once..... years and years of picture coll