Plz help me TEXTPOOL PROBLEM(VERY URGENT)
hi experts,
plz help in resolving this issue this is very urgent.
error is
The line type of "RPOOL" must be compatible with one of the types
"TEXTPOOL".
and its coming in :
FORM GET_SELSCREEN_TITLE TABLES P_SCREENS STRUCTURE DYNNR.
DATA: BEGIN OF RPOOL OCCURS 20,
ID(1),
NAME(8),
TEXT(80),
END OF RPOOL.
READ TEXTPOOL RSVAR-REPORT LANGUAGE SY-LANGU INTO RPOOL.
plz help me.
Hi !
Try this :
DATA RPOOL LIKE TEXTPOOL OCCURS 0 WITH HEADER LINE.
Reward if usefull,
Regards,
Stéphane.
Similar Messages
-
EXPERTS PLZ HELP ME IN SAP SCRIPT URGENT
Hi experts
plz help me
i m very new in sap scripts
i have a script WESCHEINVERS1 and the driver prog is SAPM07DR
i ill have to copy this script and have to add two more feild in the text element W1LGMAT
fields are :
CAWNT-ATWTB
EKPO-REVLV
now wat i think i cannot make changes to standard driver prog so it wud be better to call a subroutine 4 it
so plz guide me how i ill have to fetch data nd pass to the script
plz write the code if possible 4 u
FYI:
MSEG : Document Segment Material
MANDT Client
MBLNR Number of material Document
MJAHR Material Document Year
ZEILE Item in Material Document
MATNR Material Number
LIFNR Account number or vendor
EBELN Purchase order number
EBELP Item number of PO
EKPO : Purchasing document item
MANDT Client
EBELN Purchase order number
EBELP Item number of PO
MATNR Material Number
REVLV Revision Level
LFA1 : Vendor Master (General section)
MANDT Client
LIFNR Account number of vendor or creditor MSEG-LIFNR
SPRAS Language key
AUSP : Characteristic Values
MANDT Client
OBJEK Key of object to be classified MSEG-MATNR
ATINN Internal characteristic ZO-QUALITY-LEVEL
ATZHL Internal counter
ATWRT Characteristic Value
CAWNT : Value texts
MANDT Client
ATINN Internal characteristic ZO-QUALITY-LEVEL
ATZHL Internal counter AUSP-ATZHL
SPRAS Language Key LFA1-SPRAS
ATWTB Characteristic Value Description
thanks in advanceRefer the links to know about calling subroutines ins cript -
subroutine in script
How to call a subroutine in a script ?
EXTERNAL SUBROUTINE IN SAP SCRIPT
Regards,
Amit
Reward all helpful replies. -
SAPscript Output Problem - Very Urgent - Please help
Hi,
I am having the following problem with SAPscript.
In the Main Window, I have instructions to the printer in the ZPL2 language (For Zebra Printer).
There are also several variables, which are highlighted in Gray and enclosed in the&.
There are also several elements all of them empty except for the one where this code is.
Now, I received this program to modify in terms of code and the output.
IF you have never done any work with Zebra Printing, the way it is done is that you create a label using the Zebra BarOne or Zebra Designer program, then output it to an itf file, upload it into a standard text as .itf and copy the uploaded contents to the main window. When printing to a Zebra printer, the Zebra printer will read the instructions and will print the output.
Here is the problem: The config for the output type is correct.
When doing a printing test from SAPscript, I get the right output and the Zebra printer is able to print it.
However, the real process for this task will go through MB02. There, if I create a spool request using the proper method (select output type and etc.), it will go the spool. However, if I print preview or output (doesnt work with the Zebra printer, so I have to output to the Laser printer), it will output the following (none of the following includes any of the ZPL2 code/instructions. Instead, it seams to print the variables contents with the field name next to it This isnt whats its the Main window!!!)
http://img244.imageshack.us/img244/6915/66052475zk2.jpg
Please help. I have debugged but dont know what to do and cant find anything wrong.
This is very urgent. Any help will be useful.
Thanks,
JohnOk, maybe I have confused others in regards to the issue as well.
We expect this label to be output from a Zebra Printer.
When output through Sapscripts printing test, the preview from the spool shows the ZPL2 code in small font (non readible if a created a screenshot) and if sent to the Zebra Printer, it prints the label correctly.
When output through MB02, the preview from the spool shows the code that I have attached to the 1st post in this thread. If I try to output to the Zebra Printer, nothing happens because the ZPL2 instructions are not even in the preview and therefore, the Zebra printer recieves no instructions. I should not have mentioned the laser printer, because it has nothing to do with this issue.
I hope that this makes the issue a little more clear and understandable. Please help.
Here is the ZPL2 coding before uploading to standard text (only difference is that once uploaded, the '/' characters are removed.) However, I believe that the problem may lie in the print program and how it compiles but I debugged and haven't really seen where it comes from:
/:NEW-PAGE
/ ^XA
/ DFNEW-RE-1FS
/ ^PRC
/ LH0,0FS
/ ^LL1830
/ ^MD0
/ ^MNY
/ LH0,0FS
/ FO244,854A0N,55,46CI13FRFB154,1,0,LFN999^FS
/ FO819,698A0N,55,46CI13FRFN998FS
/ FO245,477A0N,55,46CI13FRFB755,1,0,RFN997^FS
/ FO389,926A0N,55,46CI13FRFB654,1,0,RFN996^FS
/ BY3,3.0FO42,1072B3N,N,152,N,YFRFN995FS
/ FO276,1258A0N,55,46CI13FRFN995FS
/ FO484,774A0N,55,46CI13FRFN994FS
/ FO817,774A0N,55,46CI13FRFN993FS
/ FO611,556A0N,55,46CI13FRFN992FS
/ FO245,556A0N,55,46CI13FRFN991FS
/ FO397,117A0N,55,46CI13FRFN990FS
/ FO245,405A0N,55,46CI13FRFB880,1,0,RFN989^FS
/ FO244,698A0N,55,46CI13FRFN988FS
/ FO629,998A0N,55,46CI13FRFN987FS
/ FO244,623A0N,52,42CI13FRFN986FS
/ FO397,261A0N,55,46CI13FRFB404,1,0,RFN985^FS
/ FO819,854A0N,55,46CI13FRFN984FS
/ FO725,554A0N,55,46CI13FRFN983FS
/ FO397,189A0N,55,42CI13FRFB695,1,0,RFN982^FS
/ FO397,333A0N,55,42CI13FRFN981FS
/ FO638,333A0N,55,42CI13FRFN980FS
/ FO391,21A0N,63,63CI13FRFB433,1,0,CFN979^FS
/ FO36,698A0N,55,46CI13FR
/ FDWBS:FS
/ FO37,405A0N,55,46CI13FR
/ FDMATL:FS
/ FO37,478A0N,62,44CI13FR
/ FDDESC:FS
/ FO554,698A0N,55,46CI13FR
/ FDSUPPLIER:FS
/ FO32,625A0N,55,46CI13FR
/ FDTEXT:FS
/ FO35,1258A0N,55,46CI13FR
/ FDBATCH NO:FS
/ FO770,775A0N,63,51CI13FR
/ FD/FS
/ FO32,854A0N,55,46CI13FR
/ FDESHM:FS
/ FO37,556A0N,55,46CI13FR
/ FDQTY:FS
/ FO32,998A0N,55,46CI13FR
/ FDSAP MATERIAL DOC NO:FS
/ FO525,333A0N,55,46CI13FR
/ FDofFS
/ FO556,854A0N,55,46CI13FR
/ FDINSPECT:FS
/ FO32,926A0N,55,46CI13FR
/ FDUNLOADING:FS
/ FO37,117A0N,55,46CI13FR
/ FDSTOCK TYPE:FS
/ FO32,774A0N,55,46CI13FR
/ FDPURCHASE ORDER:FS
/ FO37,188A0N,55,46CI13FR
/ FDDELIVER TO:FS
/ FO37,260A0N,55,46CI13FR
/ FDSTORAGE LOC:FS
/ FO37,332A0N,55,46CI13FR
/ FDCONTAINERS:FS
/ FO1,1359GB1217,0,6^FS
/ FO594,1359GB0,474,6^FS
/ ^XZ
/:NEW-PAGE
/ ^XA
/ ^XFNEW-RE-1.ZPL
/ FN999FD&ATWRT_HAZAMAT(6)&^FS
/ FN998FD&EKKO-LIFNR&^FS
/ FN997FD&MABDR-MAKTX&^FS
/ FN996FD&MSEG-ABLAD&^FS
/ FN995FD&MSEG-CHARG&^FS
/ FN994FD&MSEG-EBELN&^FS
/ FN993FD&MSEG-EBELP&^FS
/ FN992FD&MSEG-ERFME&^FS
/ FN991FD&MSEG-ERFMG&^FS
/ FN990FD&MSEG-INSMK(1)&^FS
/ FN989FD&MSEG-MATNR&^FS
/ FN988FD&MSEG-MAT_PSPNR&^FS
/ FN987FD&MSEG-MBLNR&^FS
/ FN986FD&MSEG-SGTXT(40)&^FS
/ FN985FD&MSEG-UMLGO&^FS
/ FN984FD&QALS-PRUEFLOS&^FS
/ FN983FD&V_BACKORDER&^FS
/ FN982FD&V_NAME3&^FS
/ FN981FD&WS_CNTR&^FS
/ FN980FD&WS_CON&^FS
/ FN979FD&WS_HEADER& &^FS
/ ^PQ1,0,1,N
/ ^XZ
/ ^FX End of job -
Help plz.... its very urgent... plz
Hi
This is very urgent ….
In a table:
Select * from source_table;
Datagrp_Name Query
DG1 select emp_name,Emp_id from emp (Emp table has emp_name ,emp_id and dept_id)
DG2 select dept_name from dept (dept table has dept_id and deptname)
Column name is: (Datagrp_Name,Query)
There r 2 records in the table
Now I want to load the data in the target table:
Select * from Target;
0 records
desc target; (it has 3 fields)Emp_name (insert the emp_name from emp)
Emp_id ((insert the emp_id from emp)
Dept_name (insert dept_name from dept)
Now I want to load data in this target table from emp and dept
Generally we will use: select emp_name,emp_id,dept_name from emp,dept where e.dept_id=d.dept_id;
But in this case as select query is there in the source table
So, I want the logic how to proceed pa….
Can anyone help me in this/Hi,
>>But in this case as select query is there in the source table
I think you need to know about EXECUTE IMMEDIATE statement.
take a look below:
SGMS@ORACLE10> create table query (text varchar2(50));
Table created.
SGMS@ORACLE10> insert into query values ('select 1000 from dual');
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> select * from query;
TEXT
select 1000 from dual
SGMS@ORACLE10> set serveroutput on
SGMS@ORACLE10>
SGMS@ORACLE10> begin
2 declare
3 sql_cur varchar2(50);
4 out varchar2(50);
5 begin
6 select text into sql_cur from query;
7 execute immediate (sql_cur) into out;
8 dbms_output.put_line (sql_cur);
9 dbms_output.put_line (out);
10 end;
11 end;
12 /
select 1000 from dual
1000
PL/SQL procedure successfully completed.See if this link below help you:
http://www.dbasupport.com/oracle/ora9i/execute_immediate.shtml
Cheers -
Plz help me on this very simple error
hello everybody...i'm very new to java programming...i'm unable to execute my program though it has been compiled...my coding is something like this and is very easy>>
class abc
public static void main(String [] args)
System.out.println("hello");
and at the time of execution...this error is shown up>>
C:\Documents and Settings\Ishan\Desktop>java abc
Exception in thread "main" java.lang.NoClassDefFoundError: abc
Caused by: java.lang.ClassNotFoundException: abc
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: abc. Program will exit.
plz help me on this. thanks.Follow the instructions in this tutorial:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
See problem solutions here:
http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html -
Plz help me out bapi message (urgent)
hi
i need help. i m passing values in bapi n taking message from table in bapi to print in out put.
requirment is..
a) Pass the following parameters:
NUMBER = NETWORK
Tables: I_COMPONENTS_CHANGE
COMPONENT = IT_COMP-COMPONENT
BATCH = P_CHARG
Tables: I_COMPONENTS_CHANGE_UPDATE
COMPONENT = IT_COMP-COMPONENT
BATCH = X
b) The components that failed update are provided in table, E_MESSAGE_TABLE. If MESSAGE_TYPE = E, get EXTERNAL_OBJECT_ID and MESSAGE_TEXT. Remove spaces from EXTERNAL_OBJECT_ID and then match against IT_COMP-COMPONENT to get MATERIAL, PLANT and NETWORK and write MATERIAL, PLANT and NETWORK and MESSAGE_TEXT to the job log.
so for that i m doing coding like (this is part of my program)
LOOP AT i_temp_comp.
CLEAR : i_comp_change,i_comp_upd,i_e_msg.
REFRESH : i_comp_change,i_comp_upd,i_e_msg.
LOOP AT i_comp WHERE network = i_temp_comp-network.
l_number = i_comp-network.
i_comp_change-component = i_comp-component.
i_comp_change-batch = p_charg.
APPEND i_comp_change.
i_comp_upd-component = i_comp-component.
i_comp_upd-batch = c_x.
APPEND i_comp_upd.
ENDLOOP.
CALL FUNCTION 'BAPI_NETWORK_COMP_CHANGE'
EXPORTING
number = l_number
TABLES
i_components_change = i_comp_change
i_components_change_update = i_comp_upd
e_message_table = i_e_msg.
IF NOT i_e_msg[] IS INITIAL.
LOOP AT i_e_msg.
IF i_e_msg-message_type = c_e.
READ TABLE i_comp WITH KEY network = l_number
component = i_e_msg-external_object_id. "#EC *
IF sy-subrc IS INITIAL.
i_output-material = i_comp-material.
i_output-plant = i_comp-plant.
i_output-network = i_comp-network.
i_output-message = i_e_msg-message_text.
APPEND i_output.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
ENDLOOP.
problem is it is not showing message in i_output.
so no data is printing.
plz help me outThere are several IFs in your code here.
IF NOT i_e_msg[] IS INITIAL.
LOOP AT i_e_msg.
IF i_e_msg-message_type = c_e.
READ TABLE i_comp WITH KEY network = l_number
component = i_e_msg-external_object_id. "#EC *
IF sy-subrc IS INITIAL.
i_output-material = i_comp-material.
i_output-plant = i_comp-plant.
i_output-network = i_comp-network.
i_output-message = i_e_msg-message_text.
APPEND i_output.
ENDIF.
ENDIF.
ENDLOOP.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
It can be any IF failure. Check in debugging and see how this "i_e_msg" internal table is filled. May be the return table is giving the component number in external format and you have it in internal format or vice-versa in the READ statement "component = i_e_msg-external_object_id". -
SQL SELECT Query Help ..Please its very Urgent!!
Hi All,
I am having Oracle Database whice is storing 1000's of records daily.
I need to select some information based on date and time.
I am having two coloumns for Date and time. The first column(testDate) of type Date stores date as MM/DD/YY format and the second column(testTime)of type Numeric stores the time in seconds.
The Example data is :
testDate ------=-- testTime
11/12/2002 --- 35000
11/12/2002 --- 43000
11/12/2002 --- 45000
11/12/2002 --- 75000
11/13/2002 --- 2000
11/13/2002 --- 3500
11/13/2002 --- 4300
11/13/2002 --- 9800
11/13/2002 --- 23000
11/14/2002 --- 5000
11/14/2002 --- 10000
11/14/2002 --- 15000
How can i write a SELECT Query to get the records of specific date and seconds to next day specific date and seconds.I mean i want all the records between 11/12/2002 --- 43000 seconds to 11/14/2002 --- 1000 seconds.
If any one helps me in this regard iam very thank full to them.Its very urgent for me.
ThanksHi m7nra,
I used the query as
SELECT * FROM table
WHERE testDate + (testTime/(24*60*60)) BETWEEN TO_DATE('MM/DD/YYYY','12.11.2002') AND TO_DATE('MM/DD/YYYY','14.11.2002')
its giving DATE FORMAT NOT RECOGNIZED error.
The Example data is :
testDate ------=-- testTime
11/12/2002 --- 35000
11/12/2002 --- 43000
11/12/2002 --- 45000
11/12/2002 --- 75000
11/13/2002 --- 2000
11/13/2002 --- 3500
11/13/2002 --- 4300
11/13/2002 --- 9800
11/13/2002 --- 23000
11/14/2002 --- 5000
11/14/2002 --- 10000
11/14/2002 --- 15000
infact i need all the records between 11/12/2002 --- 43000 seconds to 11/14/2002 --- 1000 seconds.
Please help me to find a full query beacuse iam very new to Oracle.
Thanks,
S R Mannava -
Report painter problem very urgent
Hi to ALL,
I have prepared two reports of cost centre through report painter. The format is proper is both the reports. The set is also correct and values in set(i.e cost centres) are also properly
but when we execute the report one report is being executed properly while other shows zero values. only when i doubleclick on zero amt and go to plan line items then it shows me values for that particular row in report.
Why is it so? what is solution to it? can it be possible that my tables are not correct. Ia m using CCSS table.
Pls this is very urgent
Thanks in advance
TanujaHi
Can you check one thing...after selecting the zero you are getting the line item...chekc the total of that items...if it is coming zero..then no problem.
If not you can check in the no.format of that report. If you select the lacs format and your amount is below ten thousand...you will get the zero value only
VVR -
Pls help me , this is very urgent
I have a column called description with values as follows
Admin Support
Admin Support
Admin Support
Air Support
Cable - Disaster Response
Cable - Operational Support
Cable - PMPP (Preparedness)
Cable - Program Support
Capacity Building
Capacity Building
Chemical, Biological, Radiological, & Nuclear
Commodity Procurement Contract
Communications
Computer Support
Contract Services (warehousing)
Coordination
Coordination
Disaster Assistance Response Program
I have another column in this table for which i have to update with the sequence nos. The update should happen in such a way that if the description is same then i have update with sequence.currval and if the description is different then i have to update with sequence.nextval for each row as follows
Admin Support----- 1
Admin Support----- 1
Admin Support----- 1
Air Support----- 2
Cable - Disaster Response----- 3
Cable - Operational Support----- 4
Cable - PMPP (Preparedness)----- 5
Cable - Program Support----- 6
Capacity Building----- 7
Capacity Building----- 7
Chemical, Biological, Radiological----- 8
Commodity Procurement Contract----- 9
Communications----- 10
Computer Support----- 11
Contract Services----- 12
Coordination----- 13
Coordination----- 13
Disaster Assistance Response----- 14
Pls help me how do i do this, this is very urgent
Thanks
VinodIf you want your sequence to start from 1, you can eliminate creating a special sqeuence for this, you can do it using ROWNUM in SQL,update your_table a
set (a.description, a.col1)
= (select c.description, c.rn from
(select b.description, rownum rn from
(select distinct description from your_table order by description) b) c
where c.description = a.description);P.S Just an alternative.
Thx,
SriDHAR -
my iPhone hasn't turned on in two days and none of the solutions i have looked up worked. i need all the help i can get. this matter is very urgent!
Before we can help you we will need more information. Did you try to reset the phone while it was charging by holding the power button and home button until you saw the apple then let go? Please give a summary of what you have attempted, any error messages, what do you see on the screen, if anything.
-
Need a help, SAP BI Its very Urgent
Hi All,
Please help in these problem,
1. In our scenario all the Info objects are user defined there is no standards. For this prototype we may require around 500-600 info object roughly. We can develop some FM or report which reads relevant data from file or some source and create Info object dynamically.
It is possible to create info Object dynamically.
2. Usually Info Object name length is between 3 - 9 character, it possible to increase the length to 15 character.
I will assign the points.
Kind Regards
FazalHi syed ,
1.Yes it is possible to create info object dynamically
2.we can assign the length of the characteristic up to 15 by changing the ALPHA CONFIRMING VALUE
in R/3 the programs will there in SE 38 .Go to SE38 u can see two programs
CONVERSION ALPHAEXIT _INPUT
CONVERSION ALPHAEXIT _OUTPUT
u can change these programs with the help of ABAP experts
Pls assign points if the answers satisfies u
Regards ,
Subash Balakrishnan -
PLZ help: ArrayList execution problem,No errors..
but in tomcat i am getting cannot load the driver
I dont know where i am going wrong : Just i am getting the blank page
i am posting my code :
--------------------LoginServlet4.java
package com.xyz;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class LoginServlet4 extends HttpServlet
public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
try{
User4 user=new User4();
UserServices4 userServices4= new UserServices4();
ArrayList userList = (ArrayList)userServices4.listUser4();
req.setAttribute("userList",userList);
RequestDispatcher rd = req.getRequestDispatcher("form5.jsp");
rd.forward(req,res);
}//try
catch(Exception e)
System.out.println(e);
}//catch
}//doGet
}---------------------UserServices4.java
a bussiness logic class where i am opening the connection and retrieving the data
package com.xyz;
import java.io.*;
import java.io.Serializable;
import java.util.*;
import java.sql.*;
public class UserServices4
public UserServices4(){}
Connection con=null;
PreparedStatement ps=null;
ResultSet rs=null;
public List listUser4(){
ArrayList userList = new ArrayList();
User4 user=null;
String s1,s2,s3,s4;
try
Class.forName("com.jdbc.mysql.Driver");
con=DriverManager.getConnection("jdbc:mysql://165.138.99.765/Bidding","mysql","mmmmm");
ps=con.prepareStatement("select * from Match_Set");
rs=ps.executeQuery();
while(rs.next())
s1=rs.getString(1);
s2=rs.getString(2);
s3=rs.getString(3);
s4=rs.getString(4);
user = new User4();
user.setT1(s1);
user.setT2(s2);
user.setO1(s3);
user.setO1(s4);
userList.add(user);
}//try
catch(Exception e)
System.out.println(e);
finally{
try{
con.close();
catch(Exception e)
}//finally
return userList;
}/userList
}//userservices4--------------------------User4.java ( A bean Class )
package com.xyz;
import java.io.*;
import java.util.*;
public class User4
public User4(){}
public void setT1(String s)
T1=s;
public String getT1()
return T1;
public void setT2(String s)
T2=s;
public String getT2()
return T2;
public void setO1(String s)
O1=s;
public String getO1()
return O1;
public void setO2(String s)
O2=s;
public String getO2()
return O2;
private String T1,T2;
private String O1,O2;
}-----------------------------form5.jsp
<%@ page import= "java.io.* "%>
<%@ page import= "java.sql.*" %>
<%@ page import= "java.util.*" %>
<%@ page import= "javax.servlet.http.*" %>
<%
ArrayList userList = (ArrayList)request.getAttribute("userList");
out.println(userList);
%>=============================
PLZ HELP MEweblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)Deepali, your question is about weblogic. I would suggest that you post your question to the bea forums at http://forums.bea.com.
It seems that you misunderstood the name of this forum, "Application Server - General". There are many forums in this "Application Server" catagory. Each of them concentrates on one aspect of Oracle Application Server. This forum is for the "General" questions, the questions that do not readily belong to the those forums but still concerns with OAS,. -
Textfile Problem (Very Urgent, Pls Help...)
hi to all,
I have a servlet that executes a program and then write the results to a textfile.
Question 1: How do I know that the textfile is not empty?
Question 2: If the textfile contains somethings, how can I append a sentence(That's all) all the last line of the textfile?
Thanx in advance!!!!Question 1: How do I know that the textfile is not
empty?try the java.io.File.length() method.
Question 2: If the textfile contains somethings, how
can I append a sentence(That's all) all the last line
of the textfile?use a java.io.FileWriter, it supports appending data to a file.
Jasper. -
Urgent Sql Query Problem - -Very Urgent
Hi Guys,
I need a urgent solution for a problem.I am
using the following query
select ename from emp where deptno =10
Now I will declare a bind variable and if user passes 'A'
then the query will run as it is and if he passes B
then it should run the above query with this additional clause -> birthdate - hiredate >15.
Please can any one help its very urgentAssuming that you have a birthdate column in your emp table, the following will do what you are asking for:
VARIABLE bind_var VARCHAR2(1)
EXECUTE :bind_var := '&bind_variable'
SELECT ename FROM
(SELECT 'A' AS selection, ename FROM emp WHERE deptno = 10
UNION ALL
SELECT 'B' AS selection, ename FROM emp WHERE deptno = 10 AND birthdate - hiredate > 15)
WHERE selection = :bind_var
However, the clause "birthdate - hiredate > 15" will only retrieve rows for employees who were born more than 15 days after they were hired. I doubt that this is what you really want, since this is impossible. -
Plz Help...It is URGENT.JTREE
Hi All:
I am developing a Application where I am populating my Jtree from the database.Now the Problem is when I click on one of the Nodes of the Jtree,I am unable to populate the Jtree-window(along with the Jtree) with my JInternalFrame in one the Split Windows(SPlitPane is used).[i.e the left pane consists of Jtree & the right pane consists of JInternalFrame].
How to activate and properly set the window.
Help is urgent.Provide me some pointers plz/Source COde.
Thanking you.
Sincere
Regards
RiteshDear DrCLap:
Thanks for the reply.
Let me explain my problem.Deadline is there.
Well I am having a Jtree(dynamically updated from Database) added to 1 Split Pane.
I am having a Popup-Menu with items namely Add,View and close with the ActionListener Interface.
When I click the LastNode of the JTree,I am firing a Popup Menu and the Add Event when I click Add.
But after clicking the "Add",the Layout is completely occupying the Window and destroying the Jtree.,i.e.I am unable to see the JTree.And when I finally add a new node ,I am unable to refresh the JTree.
Help me.
Regards
Ritesh
Maybe you are looking for
-
How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
How do i insert a splash screen or a loading screen and a application image for a phone app on Dreamweaver 6, 5.5 had the mobile application setting that is seemingly no longer present? and i also heard you can use animanted backgrounds on the mobile
-
I need help. When I connect my I phone 5 to I Tunes it doesn't load it and I get the message that It doesn't recognize this device. To unplug and try again. I have done this 5 times and always get the same message, but when I plug it in it offers t
-
How to maintain colors through browsers?
I take an image with my DSLR and open it with the RAW plug-in. I change the color profile from Adobe RGB 1998 to sRGB and reduce the color depth from 16bit to 8bit. Everything is fine until I go to Save for Web...my colors are all washed out. I choos
-
hello, Am An Iphone Costumer i purchased an iphone 5S in UAE , Can i use it in India with Indian Sim Card ?
-
Beyond knowing that such a facility exists, I have no knowledge about Bridge scripting. Can it be used to modify the standard batch file rename process in Bridge? I would like to rename my Canon Raw images with the date (from EXIF Date Digitised) and