Exceptions issue
how many predefined exception are there in Oracle 10g and 9i at least approximatly,
How do one can achive the purpose of continue stm in C with oracle plsql
if I dont want to use goto statement I mean that If i want to skip certain
cycles in the loop eg say
if sal=10 then
do not perform operation just continue with next iteration
end if;
is there any way of acheiving this with the help of Exception ( by writing raise in exception).
Regards,
AAK.
how many predefined exception are there in Oracle 10g
and 9i at least approximatly,PL/SQL: Look at sys.standard specification
SQL: Oracle Database Error Messages //http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14219/toc.htm
How do one can achive the purpose of continue stm in C with oracle plsql
if I dont want to use goto statement I mean that If i
want to skip certain cycles in the loop eg say
if sal=10 then
do not perform operation just continue with next
iteration
end if;
is there any way of acheiving this with the help of
Exception ( by writing raise in exception).
declare
NextIteration exception;
begin
for i in 1..10000000 loop
begin
Statement1;
raise NextIteration;
Statement2;
exception
when NextIteration then null;
end;
end loop;
end;http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/loop_statement.htm#LNPLS01328
Similar Messages
-
Dear SAP Gurus,
I'm facing an error when seting up web Bex in BW system which is based on AS java patch 14 when i run Diagnostics & Support Desk Tool as described in Note 937697 there is only one red signal which is BI Mastersystem
the error is
RFC connection using properties in Portal System Landscape to ABAP backend has failed. Reason:
com.sap.mw.jco.JCO$Exception:Issuer of SSO ticket is not authorized
thanks in advance
Rgds
George Varghesethanks Deepika ,unfortunately I posted this a Long back ,time limit was very less ,we were not in a situation to do more R&D on that,it will be a Waste of time ,what I did is that I uninstall ed SAP and installed again with latest available Patches and we were succeed
thanks
George Varghese -
Flash CS6 fatal exception issue
Hello Everyone,
My flash CS6 is giving me a fatal exception issue error every time when I close it(2014-12-26_1714 - AndersonW's library). I've attached the error report here for you reference. Please kindly help.
OS: Win 8.1
Error report:
https://www.dropbox.com/s/u59ewojtpmed3bs/FlashPro%20crash%20log%20%281%29.mdmp?dl=0Reset Adobe Flash CS to default configurations
Factory Reset:
(Mac)
Double click on Adobe Flash’s icon.
Holding down the Command, Option, Shift keys quickly
When a dialog box appears, click Yes.
(Windows)
Double click on Adobe Flash’s icon.
Holding down the Ctrl+Alt+Shift keys quickly
When a dialog box appears, click Yes.
If you want to delete user configuration and preferences files manually:
Window XP – C:\Documents and Settings\<username>\Local Settings\Application Data\Adobe\Flash<version>
Window Vista & Window 7- C:\Users\<username>[AppData]\Local\Adobe\Flash<version>
Mac – Volume/Users/<username>/Library/Application Support/Adobe/Flash<version> -
Bex exception issue..Very urgent
Hi,
Can any one let me know how to do the Exception for the below issue.
Only the key figures has to show Red color if required date less then current day. That means first five rows key figure values has to show red color.
Required End Date Notification Total no. notifs
3/15/2007 10043614 1
3/27/2007 10043895 1
3/29/2007 10043964 1
4/3/2007 10044018 1
8/10/2007 10044180 1
8/17/2007 10044629 1
8/9/2007 10044628 1
Overall Result 27
Thanks for the help,
Raj.Hi Eric,
This is what I am looking, if I taken required end date as key figure where I need to write the condition.
Can you please explain me clearly?
Waiting for your reply,
Raj -
we are seeing a strange error in server logs .
Scenario
'Interface1' is implemented by 'Class1' . 'Class2' extends 'Class1'
Issue
statement : Interface1 intf = (Interface1) Map.get(<KEY>) throws classcast exception
Stack-trace shows that the class it found is 'Class2'
java.lang.ClassCastException:
Class2
What could be the possible cause here ?.Issue due to Classloading?. Can this happen if 'Class2' is loaded by one classloader ( child ) and 'Interface1' is loaded by parent classloader?
Thanks
Josephjcgeorge wrote:
Issue due to Classloading?. Can this happen if 'Class2' is loaded by one classloader ( child ) and 'Interface1' is loaded by parent classloader?Yes, for example if the child classloader doesn't delegate to its parent classloader and the interface and class are loaded by different classloaders. -
Oracle Entitlement Server 11g Exception issue need to be solved
Hi Friends,
Need your guidance and help to fix this exception of (oracle entitlement server 11 g).
please let me know the meaning of this error;
oracle.security.oes.OesException: OES-04004: Credential is not found for trust key store
got this error at the time when trying to execute : ./enroll.sh
Thank You ,
Regards,
PremCandy,
all this steps are not necessary... and apachectl is deprecated.
Simply go to $ORACLE_INSTANCE/bin and start your OHS with *./opmnctl startall*. (It also sets all your ORACLE_HOME, ORACLE_INSTANCE, COMPONENT_TYPE, COMPONENT_NAME values).
HTH,
--olaf -
Soap Exception issue whule launching Application library in EPMA
Hi All,
I am getting soap exception error when I am trying to launch EPMA through workspace.
below is the error message I am getting:
*; nested exception is:*
HTTP transport error: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Missing WWW-Authenticate header.
I have installed EPM 11.1.2.2 in distributed environment
Server1
Foundation
EPMA
Reporting
FDQM
Planning
Server2:
Essbase / EAS / Oracle 11g / ODI
I installed full database client Administration edition in different paths on server1 machine
Installed Oracle 11g R2 32 bit client. ( installed for FDQM)
Installed Oracle 11g R2 64 bit client. (for EPMA )
All the components are working fine except EPMA.
All my services are running / IIS is working / ASP.net s working
Please help me !! I am stucked here.
Thanks
AmanHi All,
I am getting soap exception error when I am trying to launch EPMA through workspace.
below is the error message I am getting:
*; nested exception is:*
HTTP transport error: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Missing WWW-Authenticate header.
I have installed EPM 11.1.2.2 in distributed environment
Server1
Foundation
EPMA
Reporting
FDQM
Planning
Server2:
Essbase / EAS / Oracle 11g / ODI
I installed full database client Administration edition in different paths on server1 machine
Installed Oracle 11g R2 32 bit client. ( installed for FDQM)
Installed Oracle 11g R2 64 bit client. (for EPMA )
All the components are working fine except EPMA.
All my services are running / IIS is working / ASP.net s working
Please help me !! I am stucked here.
Thanks
Aman -
Hi,
In my query I have two key figures ( A & B ). I need to compare both these key figures and if B is greater then A then colouring should be done.
Eg: A B
250 300 ( colouring should be done )
100 80
I tried to create a formula variable ( A - B ) and based on this formula variable exception is created. ( Actually This formula variable should not be displayed in the output, the colouring should be transferred to Key figure B.
Please Let me know how to do this.
Regards,
Rajesh Kumar Murugesan.Hi Eric,
This is what I am looking, if I taken required end date as key figure where I need to write the condition.
Can you please explain me clearly?
Waiting for your reply,
Raj -
Cast Exception Issue. Please help
Hello all,
I have a piece of code that is giving me runtime class cast exception error.
The error occurs whenever code trys to cast the tableData into Strin.
Any insight into why this error occurs I would I appreciate the information:
for (int i=0; i<rowCount; i++)
List tableData = this.tableModel.getRow(i);
System.out.println("we are here 5.1");
row = sheet1.createRow((short)(i+1));
System.out.println("we are here 5.2");
for (int j=0; j<tableData.size(); j++)
String columnData = (String)tableData.get(j);
row.createCell((short)j).setCellValue((String)tableData.get(j));
currentCell++;
frame.current.setValue(currentCell);
}The scope of the code is taking results of table data(from database) which could be string, number or other data types and converting it into string which in turn gets written to excel spreadsheet cell.
I'm really taking shortcut in that I dont try and figure out the datatype from database value first then try to cast it into appropriate value. Taking the easy way out so to speak...
BTW, I'm relatively new to Java. Still a lot of OJT. -
Remote enable module - exceptions issue
Hello all,
I have a function module.
I choosed to make it RFC : Remote enable module.
Then I got the message During RFC/update, no exception classes can be used, when I try to check it.
So I commented all parts regarding exceptions, deleted the Exceptions part .
And I still receive the same message
I don't know what else to do... Does anybody has an advice ?
Thank you !!!Hello Ariana
Most likely there is an exception class defined in the signature of your function module.
Remove the exception class and replace it with a standard exception and then the compilation error should disappear.
However, RFC-enabled fm's should not raise any exception because otherwise the RFC connection will dump. Instead, return the errors as messages in a RETURN parameter (of table type BAPIRETTAB) like it is done in BAPIs.
Regards
Uwe -
Repository Service Exception Issue
I am using Read Resource Content operation in repository service in one of our core processes. Its being used to pull XSL file from the repository.
I have used this lightening bolt to catch com.adobe.repository.RepositoryException exception. As per workbench documentation, this exception will be thrown when an error occurs while retrieving the item from the repository. But whenever a file which process is trying to pull is not available in the repository, exception is not being caught through this lightning Bolt.
I need to have more insight around this as I am getting general unhandled exception (DSC: Invocation Error) thrown in this case which leads to no clue about what went wrong in the process.
Appreciate your help in regard. Thank you.I would have a separate process for you event catcher. They don't need to be on the same process.
The dialogue box if for configuring two things:
1- A filter that allows you to catch only exceptions of a specific type.
If you expand the Exception tree under 'Filter Keys Data Set', and double click on one of the property (i.e. Fault Name), this will allow you to only catch events with a Fault Name that you set.
2- A process data map, that allow you to put some of the Exception property (Fault Name, Source, Message) into local process variables. Don't forget to make the process variable to your local process as 'Input' for them to populate properly.
Jasmin -
Cursor using exception issue reg
Dear all,
I have created one procedure and it is working perfectly ,but i want two point to be included in this code
point 1: i want to trap any error through Exception which i need to include in this code
so in which section i need to include the exception section and what type of useful exception i should include.
point 2: i want status of no of row being updated while processing
i need ur suggestion kindly
regards
Laxman
create or replace procedure freereq24hr
as
begin
FOR mtid_cur_rec in (select a.miniteamid from auto_miniteam a,miniteam m
where job_type=5 and
a.miniteamid=m.miniteamid) LOOP
FOR age_cur_rec in (SELECT requestID
FROM Request
WHERE miniteamid IN (
SELECT childMiniTeamID
FROM MiniTeamTree
WHERE childMiniteamID = mtid_cur_rec.miniteamid AND
parentMiniteamID IN(mtid_cur_rec.miniteamid)
) AND
requestTypeCode = 1 AND
statusCode IN (2,3) AND
assigned_PersonID is NULL AND
lastmoddate < sysdate - 1) LOOP
IntNotesHistoryInsert(age_cur_rec.requestid,'FREE REQUEST 24 HR');
UPDATE Request
SET statusCode = 1, assigned_PersonID = NULL
WHERE requestID = age_cur_rec.requestid;
commit;
END LOOP;
END LOOP;
END;point 1: i want to trap any error through Exception which i need to include in this code
so in which section i need to include the exception section and what type of useful exception i should include. What kind of error do you expect? Seeing your code i dont think you need to handle any specific exception.
>
point 2: i want status of no of row being updated while processing You can use sql%rowcount to get that details.
create or replace procedure freereq24hr
as
begin
FOR mtid_cur_rec in (select a.miniteamid from auto_miniteam a,miniteam m
where job_type=5 and
a.miniteamid=m.miniteamid) LOOP
FOR age_cur_rec in (SELECT requestID
FROM Request
WHERE miniteamid IN (
SELECT childMiniTeamID
FROM MiniTeamTree
WHERE childMiniteamID = mtid_cur_rec.miniteamid AND
parentMiniteamID IN(mtid_cur_rec.miniteamid)
) AND
requestTypeCode = 1 AND
statusCode IN (2,3) AND
assigned_PersonID is NULL AND
lastmoddate < sysdate - 1) LOOP
IntNotesHistoryInsert(age_cur_rec.requestid,'FREE REQUEST 24 HR');
UPDATE Request
SET statusCode = 1, assigned_PersonID = NULL
WHERE requestID = age_cur_rec.requestid;
commit;
END LOOP;
END LOOP;
END;But in general i would rewrite your code to avoide two for loop and just have a single thing.
create or replace procedure freereq24hr
as
begin
for i in (
select requestId
from request r
join miniteamtree m
on r.miniteamid = m.childminiteamid
join auto_miniteam a
on a.miniteamid = m.childminiteamid
and a.miniteamid = m.parentminiteamid
join miniteam mi
on a.miniteamid = mi.miniteamid
where job_type = 5
and requestTypeCode = 1
and statusCode IN (2,3)
and assigned_PersonID is NULL
and lastmoddate < sysdate - 1
loop
IntNotesHistoryInsert(i.requestid,'FREE REQUEST 24 HR');
UPDATE Request
SET statusCode = 1, assigned_PersonID = NULL
WHERE requestID = i.requestid;
dbms_output.put_line('Number of row updated for requestID ' || i.requestID || ' is ' || sql%rowcount);
end loop;
commit;
end;Also i have taken the commit outside the loop. Dont perform commit inside the loop.
When you use dbms_output.put_line you can see the output only when the procedure completes the execution. So if you want to se the status during the procedure is running you may want to use DBMS_APPLICATION_INFO or create your own logging procedure and log the details. -
Hi all,
I'm getting a CONVT_OVERFLOW in a ALV table and can't understand why... Here's a snip of code:
Data declaration:
* Data declarations
TYPES: BEGIN OF ty_sublfa1,
sel,
LIFNR TYPE lifnr,
name1 TYPE name1_gp,
zzvmdcui TYPE zzvmdcui, "NOTE: it's a CHAR10
END OF ty_sublfa1.
DATA: it_lfa1 TYPE TABLE OF ty_sublfa1.
Here is how I prepared (manually) the field catalog:
* Fieldcat
wa_fieldcat-fieldname = 'SEL'.
wa_fieldcat-txt_field = 'SEL'.
wa_fieldcat-scrtext_m = 'Salva modifica'.
wa_fieldcat-checkbox = 'X'.
wa_fieldcat-edit = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'LIFNR'.
wa_fieldcat-txt_field = 'LIFNR'.
. wa_fieldcat-scrtext_m = 'N.ro fornitore'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'NAME1'.
wa_fieldcat-txt_field = 'NAME1'.
. wa_fieldcat-scrtext_m = 'Descrizione'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'ZZVMDCUI'.
wa_fieldcat-txt_field = 'ZZVMDCUI'.
. wa_fieldcat-scrtext_m = 'CUI fornitore'.
wa_fieldcat-DATATYPE = 'ZZVMDCUI'.
wa_fieldcat-DRDN_FIELD = 'ZZVMDCUI'.
wa_fieldcat-edit = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
I call then the Function module in this way:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_buffer_active = 'X'
i_callback_program = g_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = g_user_command
is_layout_lvc = gs_layout
it_fieldcat_lvc = it_fieldcat
i_save = g_save
is_variant = gs_variant
it_events = gt_events[]
IMPORTING
e_exit_caused_by_caller = g_exit_caused_by_caller
es_exit_caused_by_user = gs_exit_caused_by_user
TABLES
t_outtab = it_lfa1
EXCEPTIONS
program_error = 1
OTHERS = 2.
Edit: I had to split the message in two due to bad text formattingHello,
EDIT: sorry for the split, can't understand why sometimes posting on sdn forums messes up a message after a certain lenght.
The certain length is 2500 character
As the ALV is going for a dump i suggest you do a consistency check on the ALV it might give you some ideas.
In the FM you have the i/p param I_INTERFACE_CHECK pass 'X' to it.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
I_INTERFACE_CHECK = 'X'
i_buffer_active = 'X'
i_callback_program = g_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = g_user_command
is_layout_lvc = gs_layout
it_fieldcat_lvc = it_fieldcat
i_save = g_save
is_variant = gs_variant
it_events = gt_events[]
IMPORTING
e_exit_caused_by_caller = g_exit_caused_by_caller
es_exit_caused_by_user = gs_exit_caused_by_user
TABLES
t_outtab = it_lfa1
EXCEPTIONS
program_error = 1
OTHERS = 2.
BR,
Suhas
Edited by: Suhas Saha on Feb 17, 2010 3:53 PM -
Is it possible when creating an exception with the Rule Wizard to not have it create a new rule module every time a rule is created.
I would like to just add rules to an Exceptions policy that is applied to the group with out it creating a new rule module every time.Hi Adam
Yes, it says that in the user guide and I experienced the same thing when doing it.
Part of the user guide seems a bit confusing to me though.
The 1st statement on page 10-22 in the CSA 5.2 User guide is correct:
You can create a new rule module (an "exception rule module") which
would contain the new exception rule. (This is the default and recommended choice.)
The 2nd statement is (I feel) incorrect:
"This new module would be attached to a new exception policy which is then
attached to the group(s) containing the host from which the event was received."
I've done this several times and have yet to see it create an separate exception policy
And the 3rd statement is correct:
"If you choose to create this exception module, all subsequent exception rules you
create through the wizard will be added to the same exception module and policy
if the group it is to be applied to is also the same. Therefore, a group could only
have one exception policy, but contain an exception rule module with any number
of exception allow rules created through the wizard."
Tom -
Mapping Exception Issue with RFC LookUp
Hi,
My scenario is Idoc To file, in my idoc user who created a purchase order filed is not there but in xml file i want the user who create that PO, for this i am using RFC LooUp. I want the user who created a purchase order.
Graphical Mapping looks like below.
Belnr-->User Defined Function--
>UserName
Please find the code bloew:
String DBTABLE = "EKKO";
String lookUpField = "ERNAM";
String WHERE_CLAUSE = " EBELN "" = "" ' "a" ' " ;
JCO.Repository mRepository;
JCO.Client mConnection = JCO.createClient(
"500",
"RFCUSER",
"abc1234",
"EN",
"cxylo06",
"05");
// connect to SAP
mConnection.connect();
// create repository
mRepository = new JCO.Repository( "GenericRFCMappingLookup", mConnection );
// create function template to select data from any table
JCO.Function function = null;
IFunctionTemplate ft = mRepository.getFunctionTemplate("RFC_READ_TABLE");
function = ft.getFunction();
// Obtain parameter list for function
JCO.ParameterList input = function.getImportParameterList();
// Pass function parameters
// set import parameters table name and RFC
input.setValue( DBTABLE, "QUERY_TABLE");
input.setValue( "," , "DELIMITER");
//Fill the where clause of the table
JCO.ParameterList tabInput = function.getTableParameterList();
JCO.Table inputTable = tabInput.getTable("OPTIONS");
inputTable.appendRow();
inputTable.setValue(WHERE_CLAUSE,"TEXT");
mConnection.execute( function );
//Find the position of the field that has to be lookedUp
JCO.Table lookupFieldPos = function.getTableParameterList().getTable("FIELDS");
int pos = -1;
for (int i = 0; i < lookupFieldPos.getNumRows(); i++)
lookupFieldPos.setRow(i);
if (lookupFieldPos.getString("FIELDNAME").equals(lookUpField))
pos = i;
//Get the exact lookupvalue from the position obtained above
JCO.Table valueSet = function.getTableParameterList().getTable("DATA");
valueSet.setRow(0);
String resultSet = valueSet.getString("WA");
result.addValue(resultSet);
mConnection.disconnect();
I am not aware of java coding so kindly make necessary modifications.
Kindly suggest what changes i need to do to execute perfectly.
Your help will be greatly apprecited.
Regards,
VenkatHi Venkat,
If you use the JCO connection to get the value from RFC, it would be a problem in futherly like when you move this interface DEV to Q, then you need to change the connection parameters to establish the JCO connection.Same in Production environment too.It is not advisable to do JCO lookup. Go for RFC lookup as the link given by Farooq.
Create Reciever RFC communication channel and take the XML signature of u r RFC by importing that RFC under imported objects.Create an UDF, for this see the sample code which is exisitng in document to pass the Export parameter to RFC.
In this way u r RFC channel establish the connection to R3 and your RFC will execute and return the value.U just need to change the Reciever RFC channel parameters respective of environment.
Cheers
Veera
Maybe you are looking for
-
Problems getting multiple digital signatures in Acrobat Reader form
I have a Word document that I converted to a form in Acrobat 9 Pro. I added two separate digital signature fields, one for a conference presenter and the other for the conference planner to sign. There are also a number of text fields where presenter
-
Problem in creating Java Web Service
hi, i am trying to create a simple java webservice through eclipse and tomcat. this is my code: ----- package com.test; public class addfunc { static StringBuffer sb = null; static String n3 = null; * @param args public void confu
-
Pre-Populating the header data in the survey attached to an activity in CRM
Hello Gurus, I have a question regarding Pre-Populating the header data in the survey attached to an activity in CRM Mobile 4.0. That in can we define a Functional module for a PBO (Process Before Output) for a survey u201CZ_SVY_Templateu201D in CRM
-
Require Grace Days in payment term
Dear All, See after assigning the payment term to a customer master he gets discount. For eg In Maintain Payment Terms we have maintained 45days. I require that after 45days the customer has to get 3 more days as a grace days. Can you help me
-
IPv4 multicast broken in EA6900-v1.1 ? (IGMP report suppression)
After upgrading from EA6900-v1.0 to v1.1 (both with same SW=1.1.42.161129), we observed that IPv4 multicast starts to fail (group membership expires). Does anybody know about the internal architecture in these Routers (e.g. any unmanaged internal swi