How to find error in pkg creation
Hi
I have 30 packages to be created for a new user, i call in the execute_pkg.sql which creates all the 30 packages.
i use like this
sql> set echo on
sql> set spool execute_pkg_spool.txt
sql>@execute_pkg.sql
sql> spool off
My questions:
I find it difficult to figure out the which pkg was not created, at present the spool file is too big with the pkg code in it
create or replace package test1....
Warning: Package Body created with compilation errors.
i wanted the output like this
test1
Warning: Package Body created with compilation errors.
is this possible.
Can you pls suggest me how to get it.
Regards
Yram
First, you will need to use
set echo offin the SQL script that you use to create your packages.
Second, add some "prompt" statements to your SQL script that creates the packages so that you see the name of the package being created.
Third, you will need to use the -s (silent) option to SQL*Plus and call the script from the command line. Like this:
sqlplus -s hr/hr @john.sqljohn.sql is the file that contains my creation statements. In my test, it was this:
set echo off
spool john.out
prompt creating foo
create or replace procedure foo as
begin
null;
invald_statement;
end;
prompt creating bar
create or replace procedure bar as
begin
null;
please_fail;
end;
prompt creating xyz
create or replace procedure xyz as
begin
null;
end;
spool off
exitAnd my output file looks like this after running:
creating foo
Warning: Procedure created with compilation errors.
creating bar
Warning: Procedure created with compilation errors.
creating xyz
Procedure created.Now, I can log into sql*plus and use the show errors command to see what's wrong (or if you want, include the "show errors" command in the sql script after each creation statement, and the errors will be in the log file)
C:\>sqlplus hr/hr
SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 26 10:09:16 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show errors procedure foo
Errors for PROCEDURE FOO:
LINE/COL ERROR
4/1 PL/SQL: Statement ignored
4/1 PLS-00201: identifier 'INVALD_STATEMENT' must be declared
SQL> John
Similar Messages
-
How can we find error in BAPI Creation?
Can any one help out in How to findout Errors in BAPI Creation and Usage?
HI,
you can findout error by declaring BAPI RETURN type structure .
for ex:"
DATA : return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
EXPORTING
sales_header_in = header
sales_header_inx = headerx
IMPORTING
salesdocument_ex = v_vbeln
TABLES
return = return
sales_items_in = item
sales_items_inx = itemx
sales_partners = partner
sales_conditions_in = i_conditions.
LOOP AT return WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
if helpful reward points. -
How to find Error Reference Number Additional details in HFM
<font color="Blue">
Hi All
How to find Error Reference Number additional details in HFM ?
Example:
Error Reference Number:{01977FBD-DB42-4655-99B5-4ABF38D3E082}
Where to Find above id additional details??
I mean HSVErrorLogViewer ? OR RegistrySettings ? OR Dcomcnfg ? OR any other way to find the detailed information?
Any ideas? Appreciate your help in advance.
Regards
Taruni
</font>Hi,
try menu - EDIT - LUW debug
and see if you can get the idoc number in this way
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
How to find error Idocs at once
Hi experts,
Can some one help how to find all the error Idocs at once.Hi ,
thnks a lot for your quick reply Is that possible to search for error IDocs based on the error.
for example there are 100 Idocs failed due to Wrong plant and we need to find those Idocs which failed with worng plant is there any way to find so ?? -
Documaker 11.5:How to find errors at development level
Hi Experts,
I am working on Documaker 11.5, my project requirement input's are ms-word and xml data ,
we are generating forms as output like PDF.
I am hard to find errors's inside generated pdf, for example 1) allinments, space ,font and....
Is there any compare tool , ms-word to pdf.
Please suggest me,it is very helpfull in my project.
Thank You.
RamGaétan/Ram,
FIM is only used to compare print stream output (AFP, Metacode, PostScript, PDF, PCL). It does not perform comparisons to Word documents. Sorry! There are other tools out there that will compare Word to PDF files. I'd suggest a quick Google search...
-Andy -
Hello.
When I run a form, I receive a 'FRM-41050: You cannot...' message.
There is a way to find out where is the error with Debugger without trace all program ?
How ?
Thank's in advance.The code is fine.
Check the properties of the block. Most likely the Update Allowed Property is set to False. Change that to True and you should be fine.
Sudha -
How to find error occurring during Keynote updating
My Keynote update cannot be completed. This message was given: "An error has occurred". How can I find out what this error might be so it can be fixed?
I have an older version of Keynote installed, but when I get the update notification and agree to it, the update is stopped and the above message given.Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
Select
/var/log ▹ install.log
from the hierarchical list on the left. If you don't see that list, select
View ▹ Show Log List
from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, click the Clear Display button in the toolbar of the Console window and then try the installation again.
Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
When posting a log extract, be selective. Don't post more than is requested.
Please do not indiscriminately dump thousands of lines from the log into this discussion.
Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting. -
Hi Friends,
How do I locate, where exactly the error is occuring. I am getting the following error, but could not find where the error is.
Application Message
Exception java.lang.StringIndexOutOfBoundsException: String index out of range: 1
Message String index out of range: 1
Localized Message String index out of range: 1
Stack Trace java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1588) at jsp.timesheet__jsp._jspService(_timesheet__jsp.java:2674) at com.caucho.jsp.JavaPage.service(JavaPage.java:75) at com.caucho.jsp.Page.subservice(Page.java:485) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182) at com.caucho.server.http.Invocation.service(Invocation.java:312) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163) at com.caucho.server.TcpConnection.run(TcpConnection.java:137) at java.lang.Thread.run(Thread.java:479)
Request Attributes
javax.servlet.error.request_uri /ptb/jsp/timesheet.jsp
javax.servlet.jsp.jspException java.lang.StringIndexOutOfBoundsException: String index out of range: 1
javax.servlet.error.exception_type java.lang.StringIndexOutOfBoundsException: String index out of range: 1
Thanks
Ritesh MehtaSort of.
You can make an educated guess as to what portion of the JSP page corresponds to that line in the Java source file.
I can't give you specific examples because we're using different Servlet engines, but generally speaking, if you have HTML code similar to...
<tr>
<th>PostStatus</th>
<td><% if ( PostStatus.subString(0,1)...... %></td>
</tr>Then the corresponding lines of Java source will probably look something like...
out.write( "<tr>\n" );
out.write( "<th>PostStatus</th>" );
out.write( "<td>" );
if ( PostStatus.... ) { .... }
out.write( "</td>" );
out.write( "</tr>" );So whatever changes you make in the JSP, they will show up in the source.
Unless you're doing this condition before printing any output. That is, all the Java code first followed by the HTML. That's ok. In this case, you can print HTML right there if you want, as in...
<%
// bunch of Java Code
out.write( "Current Value of PostStatus is..." + MyArray[19] );
// more Java Code
%>
<B>Hello World! This is the start of my web page!</B>Or alternatively, just copy the value into a temporary variable just before you call that substring method and then print out that variable where you want it.
Experiment. :) It's not like your hands are going to get cut off at the wrist if you don't do it right the first time. -
How to find error details when getting 500 Internal Server Error
Hi Everyone,
I get 500 Internal Server Error on b2b order main page after modified tabstrip.inc.jsp. I want to see the detail error messages, but don't know how to. Any advises?
Thanks, JinHi Jin,
From code.
You please check it again.
You have written below lines in your code.
<%@ page import com.sap.isa.core.xcm.ConfigContainer %>
<%
UserSessionData userData = UserSessionData.getUserSessionData(request.getSession());
ConfigContainer configcontainer = (ConfigContainer)(userData.getCurrentConfigContainer());
String sName = configcontainer.getScenarioName();
I think check your first line of import. It should be
<%@ page import="com.sap.isa.core.xcm.*" %>
I think you forgot to put = and ". See above line. and check your code again.
Regards.
eCommerce Developer -
hi friends,
i have a scenario in which, a function module is being called from an idoc,
and that function module throws an error message when a
document is not found in a standard table.
now my work is to go to the place where the error is bieng triggered,
and split the error into two more specific errors, as to what went wrong.
how do i reach this place,
this is what i did,
went to se37, entered the function modulename.
got into the code, and went line by line, found that,
an internal table is made and passed on to a bapi,
i went into the bapi too, could not trace out at what point the error is bieng triggered.
can some intelligent people, give me some tricks.
thank you.If you have message id and message number then do create watch point,it will take you exactly that point.
suppose your case is Inbound IDOC ,use WE19 Transaction,debug the idoc.
now create watch point,use variable as message id ,value as message number
use compare is =
Then it will take you exact point.
other way ,goto SE91 Transaction,use message id and message number,keep the cursor on message number and do where used list.
if it shows program name ,then keep the break point all the area
Thanks
Seshu -
How to find error msg is already there in a validatorbefore raising a error
HI,
I have a program of type validator which is executing twice. For example assume that there is a piece of code which throws JboWarning if the 'if-condition' is true based on some parameters.
For the first attempt the 'if-condition' will be true and raise a Warning message in the UI. As the program executes twice, for the 2nd attempt also it enters into the 'if-condition' and throws warning.
So this way the warning is displaying twice.
I want to know is there any method to find whether Error(or Warning) message is already there in a validator or not before raising next Error(or Warning).
I checked some of the Error methods like hasErrorMsg(), getErrorMsgId() - they didnt server the purpose.
Is there any way to achieve this for a validator.
Thanks,
AnushaHi Akash,
I tried that one, it is of no use in my scenario.
Expected to work:
When i click some action button like 'Save' on UI, it will go to the corresponding java Validator.
It will process all the methods in the program, at one of the method it fails 'if-condition' and throws Warning message and it will show up in the UI.
When i clicked 'Ok' for that warning message in UI. It has to save the transaction. But the transaction is not saving. It is saving for the 2nd attempt.
Issue is like:
When i click some action button like 'Save' on UI, it will go to the corresponding java Validator.
It will process all the methods in the program, at one of the method it fails 'if-condition' and throws warning message which will show up in the UI.
Now i clicked 'Ok' in UI. As the transaction is not saved. I clicked 'Save' option again. Now it will process all the methods and go to the same method and throw warning message again.
Now i clicked 'Ok' and then the transaction is saved.
I guess here each attempt is independent of one another. So i want to know a method if exists, to track if the 1st warning message thrown then not to throw the same warning message again.
Is there any property for JboWarning to set some sort of flag or any method which serves this scenario.
Please let me know
Thanks,
Anusha -
How to find the shipping point creation Date and time
Hi All,
Could you please help to solve this issue.
Some of the users created shipping point, Now I have to find out in which date and time the shipping points were created, is there any table to find. please help me.
Regards,
Muralikrishnahi Murali,
first define and assign shipping point in enterprise sructure in define shipping point EC07 and assign in OVXC
goto OVL2 and assign the shipping points
The following are used for the shipping point determination:
1. Shipping conditions - Proposed from CMR. The entry in VOV8 for the sales document type if there overwrites the entry in the shipping conditions mainatined in the CMR.
2. Loading group - Proposed from the material master record.
3. Plant - proposed from CMIR - if not found then CMR - if not found then MMR.
But you should first define and assign the shipping point in the "enterprise structure" otherwise you will not be able to do the shipping point determination.
IMG - logistics execution - shipping - basic shipping functions - shipping point & goods receiving point determination - assign shipping points.
Shipping point definition:
IMG - enterprise structure - definition - logistics execution - define, copy, delete, check shipping point. You have to define the shipping point here for the particular plant.
Shipping point assignment:
IMG - enterprise structure - assignment - logistics execution - assign shipping point to plant. Here select your plant and assign the shipping point to the same.
hope this helps,
cheers,
Hema. -
How to find the customer master creation time?
Hi All,
I want to know the time when created the CUSTOMER MASTER RECORD.
Is there any SAP TABLE for this purpose?
Thanks in advance.
NananHi,
Go to XD03 --> Enter your Customer number
Then go to Enviroment-->Multiple display
You will display all changes of this customer.
Execute --> You can see date and time of creation
Or Use OV51 is the same
Rgds -
i did one bdc program, it's running correctly but data not upload. so how to lanalyze the error.
Dear
you can find error with following link
How to find errors from BDC log
Regards -
How to find the date of Division creation in org structure
Dear Gurus
I want to know how to find the sales division creation date in organisation structure
Regards
AnandHi,
I checked it in my system and it is working.
Please go to SPROEnterprise strDefinition-Log General-Define.......Division-
Here go to the screen where the division can be created.
In this screen, go to the menu Utilities---Change logs. Now select a date range and then execute. You will get all the creations/changes done.
Ensure that you do this in your golden client where your configurations are done and not in any other systems. If this area is not enabled for logging, then again you cant see this history.
Maybe you are looking for
-
Hi i have generated a ABAP client proxy in my ECC system and sending an outbound message to XI. i get the following error. HTTP response contains status code 401 with the description Unauthorized Error while sending by HTTP (error code: 401, error t
-
PDF's showing up in itunes?
This is a strange one that i think started about 2 or 3 weeks ago. Basically every time I move or save a pdf to my desktop, from a email attachment, from preview or and export from pages (for example) I automatically get a copy of it show up in my iT
-
Since iOS 7update my IPAD battery Is discharging very quickly what should i do
Since iOS 7update my IPAD battery Is discharging very quickly what should i do. This problem only occured since last iOS 7.0.2 update
-
Hi everyone, I am trying to make custum alert messages in Portuguese on a BC website using this code from : Customizing Online Shop Alert Message Strings and also customize the online shop layout strings like "Shoping cart is empty! continue shoopin
-
How can I stop my SSD from detecting my applications on my HDD?
I just installed a SSD as my primary drive, and removed my optical bay and moved my HDD to that slot. I installed Yosemite on my SSD and everything is working fine, except that the Mac App store detects the applications on my HDD and keeps opening th