Help on debugging.
Hey I am debugging a transaction PFCG (To create roles).
In this when I set a breakpoint for a FM 'PRGN_RFC_CREATE_ACTIVITY_GROUP' used in this transaction , it is set successfully.
But when i press 'F8', it does not stop there , needed some help on this.
Excatly as Dev said. If you still want to ensure that break point is set correctly, do like this:
- before running PFCG switch the debugger on by typein /h in command field
- run the program, it will stop on the first line as debugger is activated
- press F9 and set break point, go to tab Function and paste PRGN_RFC_CREATE_ACTIVITY_GROUP there.
The breakpoint will be set in any calls of this FM, so when it is reached debugger will stop, otherwise it means it never goes to this point.
Regards
Marcin
Similar Messages
-
Need some help in debugging this exported script
Below is DDL generated by visio forward engineering tool . The example below consists of 2 test tables with one foreign key.
Forward engineering generated DDL script
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Table1]') AND type in (N'U'))
DROP TABLE [dbo].[Table1]
GO
CREATE TABLE [dbo].[Table1] (
[test] CHAR(10) NOT NULL
, [test2] CHAR(10) NULL
GO
ALTER TABLE [dbo].[Table1] ADD CONSTRAINT [Table1_PK] PRIMARY KEY CLUSTERED (
[test]
GO
GO
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Table2]') AND type in (N'U'))
DROP TABLE [dbo].[Table2]
GO
CREATE TABLE [dbo].[Table2] (
[test2] CHAR(10) NOT NULL
GO
ALTER TABLE [dbo].[Table2] ADD CONSTRAINT [Table2_PK] PRIMARY KEY CLUSTERED (
[test2]
GO
GO
ALTER TABLE [dbo].[Table1] WITH CHECK ADD CONSTRAINT [Table2_Table1_FK1] FOREIGN KEY (
[test2]
REFERENCES [dbo].[Table2] (
[test2]
GO
GO
When i converted this DDL script using scratch editor the migration tool gave some errors can anyone help me to resolve below
DECLARE
v_temp NUMBER(1, 0) := 0;
BEGIN
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT *
FROM objects
WHERE OBJECT_ID_ = NULL/*TODO:OBJECT_ID(N'[OPS].[Table1]')*/
AND TYPE IN ( N'U' )
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
TRUNCATE TABLE Table1;
END IF;
END;
CREATE TABLE Table1
test CHAR(10) NOT NULL,
test2 CHAR(10)
ALTER TABLE Table1
ADD
CONSTRAINT Table1_PK PRIMARY KEY( test );
--SQLDEV:Following Line Not Recognized
DECLARE
v_temp NUMBER(1, 0) := 0;
BEGIN
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT *
FROM objects
WHERE OBJECT_ID_ = NULL/*TODO:OBJECT_ID(N'[OPS].[Table2]')*/
AND TYPE IN ( N'U' )
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
TRUNCATE TABLE Table2;
END IF;
END;
CREATE TABLE Table2
test2 CHAR(10) NOT NULL
ALTER TABLE Table2
ADD
CONSTRAINT Table2_PK PRIMARY KEY( test2 );
--SQLDEV:Following Line Not Recognized
ALTER TABLE Table1
ADD
CONSTRAINT Table2_Table1_FK1 FOREIGN KEY( test2 ) REFERENCES Table2 (test2)
--SQLDEV:Following Line Not Recognized
;Pl do not post duplicates - Need some help in debugging this script
-
Help in debugging BADI_FDCB_SUBBAS03 (transaction FB60)
Hi Gurus,
I need some
help in debugging BADI_FDCB_SUBBAS03.
Screen Enhancement 3 on FDCB Basic Data Screen (010, 510)
I have created a new BADI "YTESTBADI" in transaction SE19
using the Definition "BADI_FDCB_SUBBAS03"
The below 2 methods are available.
PUT_DATA_TO_SCREEN_OBJECT
GET_DATA_FROM_SCREEN_OBJECT
I have been trying to debug
using statement "BREAK-POINT" , but was not successful.
<b>Am I using the correct procedure for
enhancing FB60 "Enter Incoming Invoices" transaction?
Can someone help me out?</b>
Thanks,
Aby JacobHi All,
I am trying out the below suggestion from a previous posting.
<u>Can I have any userexit to populate date for FB60 & FB65 ?</u>
<b>
OBBH is customizing transaction, after running it u should see a view with company code:
- do a doubleclick on your company code;
- go to ITEM LINE level
- Choose the substitution of your company (if there are more subst than one)
- Create a new step
- In the Prerequisite u insert a filter on SYST-TCODE
- In the Substitution check if your field can be replaced, if it can't, create a routine to replace it.</b>
I am also closing this thread.
Thanks to all who have read/responded
Aby Jacob -
Picking problem.Can anyone help me debug my code?
Can someone help me debug my code?
I try to pick a ColorCube,
but when I pick a ColorCube in my scene,
I get the following error message:
Exception occurred during Behavior execution:
javax.media.j3d.CapabilityNotSetException: GeometryArray: no capability to get v
ertex count
at javax.media.j3d.GeometryArray.getVertexCount(GeometryArray.java:581)
at com.sun.j3d.utils.picking.PickResult.intersect(PickResult.java:654)
at com.sun.j3d.utils.picking.PickResult.generateIntersections(PickResult
.java:635)
at com.sun.j3d.utils.picking.PickResult.numIntersections(PickResult.java
:422)
at com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(PickToo
l.java:854)
at com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersect(PickTool.
java:915)
at com.sun.j3d.utils.picking.PickTool.pickClosest(PickTool.java:566)
at SimpleBehaviorApp$SimpleBehavior.processStimulus(SimpleBehaviorApp.ja
va:119)
at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172)
at javax.media.j3d.J3dThread.run(J3dThread.java:250)
when i try to run the following code:
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GraphicsConfiguration;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.picking.*;
import com.sun.j3d.utils.universe.SimpleUniverse;
import javax.media.j3d.*;
import javax.vecmath.*;
import javax.swing.JOptionPane;
import java.awt.event.*;
import java.util.Enumeration;
// SimpleBehaviorApp renders a single ColorCube
// that rotates when any key is pressed.
public class SimpleBehaviorApp extends Applet
BranchGroup objRoot;
Canvas3D canvas3D;
public SimpleBehaviorApp()
setLayout(new BorderLayout());
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
canvas3D = new Canvas3D(config);
add("Center", canvas3D);
BranchGroup scene = createSceneGraph();
// SimpleUniverse is a Convenience Utility class
SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
simpleU.getViewingPlatform().setNominalViewingTransform();
simpleU.addBranchGraph(scene);
} // end of SimpleBehaviorApp (constructor)
public BranchGroup createSceneGraph()
// Create the root of the branch graph
objRoot = new BranchGroup();
objRoot.setCapability(BranchGroup.ALLOW_PICKABLE_READ);
objRoot.setCapability(BranchGroup.ALLOW_PICKABLE_WRITE);
objRoot.setCapability(BranchGroup.ENABLE_PICK_REPORTING);
objRoot.setCapability(BranchGroup.ALLOW_AUTO_COMPUTE_BOUNDS_READ);
objRoot.setCapability(BranchGroup.ALLOW_AUTO_COMPUTE_BOUNDS_WRITE);
ColorCube ca=new ColorCube(0.4);
ca.setCapability(ColorCube.ALLOW_PICKABLE_READ);
ca.setCapability(ColorCube.ALLOW_PICKABLE_WRITE);
ca.setCapability(ColorCube.ALLOW_GEOMETRY_READ);
ca.setCapability(ColorCube.ALLOW_GEOMETRY_WRITE);
ca.setCapability(ColorCube.ENABLE_PICK_REPORTING);
ca.setCapability(ColorCube.ALLOW_BOUNDS_READ);
ca.setCapability(ColorCube.ALLOW_AUTO_COMPUTE_BOUNDS_READ);
ca.setPickable(true);
objRoot.addChild(ca);
SimpleBehavior myRotationBehavior = new SimpleBehavior(objRoot,canvas3D);
myRotationBehavior.setSchedulingBounds(new BoundingSphere());
objRoot.addChild(myRotationBehavior);
// Let Java 3D perform optimizations on this scene graph.
objRoot.compile();
return objRoot;
} // end of CreateSceneGraph method of SimpleBehaviorApp
//�������OSimpleBehavior�����@���������������u��
public class SimpleBehavior extends Behavior
private TransformGroup targetTG;
private Transform3D rotation = new Transform3D();
private WakeupCondition wCond;
private PickCanvas pickCanvas;
// create SimpleBehavior
public SimpleBehavior(BranchGroup targetBG,Canvas3D canvas3D)
wCond=new WakeupOnAWTEvent(MouseEvent.MOUSE_PRESSED);
pickCanvas=new PickCanvas(canvas3D,targetBG);
pickCanvas.setTolerance(5.0f);
pickCanvas.setMode(PickCanvas.GEOMETRY_INTERSECT_INFO);
public void initialize()
// set initial wakeup condition
this.setSchedulingBounds(new BoundingSphere(new Point3d(),300));
this.wakeupOn(wCond);
public void processStimulus(Enumeration criteria)
PickResult pickResult;
MouseEvent event=(MouseEvent)((WakeupOnAWTEvent) criteria.nextElement()).getAWTEvent()[0];
pickCanvas.setShapeLocation(event);
Point3d eyePos=pickCanvas.getStartPosition();
if(pickCanvas.pickClosest()!=null)
pickResult=pickCanvas.pickClosest();
Node node=pickResult.getObject();
PickTool.setCapabilities(node,PickTool.INTERSECT_FULL);
else
JOptionPane.showMessageDialog(null,"pickCanvas.pickClosest()������");
this.wakeupOn(wCond);
} // end of class SimpleBehavior
public static void main(String[] args)
Frame frame = new MainFrame(new SimpleBehaviorApp(), 256, 256);
} // end of main (method of SimpleBehaviorApp)
} // end of class SimpleBehaviorAppHi Tinyuh,
ColorCube?? I learnt thru mistakes. YEPThe following code creates a pickable colorcube.. it works for me!
public BranchGroup addObject(Vector3d vector)
BranchGroup branch = new BranchGroup();
branch.setCapability(BranchGroup.ENABLE_PICK_REPORTING);
branch.setCapability(BranchGroup.ALLOW_DETACH);
TransformGroup trans = new TransformGroup();
trans.setBounds(new BoundingSphere());
Transform3D t3d = new Transform3D();
t3d.setTranslation(vector);
trans.setTransform(t3d);
branch.addChild(trans);
ColorCube cube = new ColorCube(0.5d);
cube.setCollidable(true);
cube.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
cube.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
cube.setCapability(Shape3D.ALLOW_COLLIDABLE_READ);
cube.setPickable(true);
trans.addChild(cube);
return branch; -
hi
can anyone help me debug my code? no compilation errors or exceptions thrown. but it's not working like i want it to
createAccount() calls insertAccount() which calls getNextID() which calls selectNextID()
this should create a new account, with an account id selected from the db and incremented +1. so if i create 100 accounts, it should number accounts 1-100, the lastkey table in the db should have a value 100 for account_lastkey when i'm done.
what happens is that 100 accounts are created, all with account number 0. somehow my getNextID() and selectNextID() methods are not working. please help
* createAccount is used by administrator to add a new Account
* in the system.
* @param newAccount AccountEntryStruct containing data for new account
* @return int the new unique Account ID
* @exception com.kafein.idl.exceptions.DataValidationException
public int createAccount(AccountEntryStruct newAccount) throws
DataValidationException {
validateData (newAccount); // throws DataValidationException;
int accountID = 0;
// Create new Account.
Account anAccount = new Account(accountID,
newAccount.userName,
newAccount.userEmail,
newAccount.creditCardType,
newAccount.creditCardNumber,
newAccount.creditCardExpirationDate.year,
newAccount.creditCardExpirationDate.month,
newAccount.userPassword,
newAccount.initialBalance);
// Insert here / call method insertAccount() pass it in an account object
// or call manager object - accountmanager.put()
// Insert Account into Database
try {
insertAccount(anAccount);
catch(Exception e) {
e.printStackTrace();
accounts.put(accountID,anAccount);
return accountID;
* getNextID is used to generate a unique ID.
* @return int an Account ID
protected synchronized int getNextID() {
int nextAccountID=0;
try {
nextAccountID = selectNextID();
catch(Exception e) {
e.printStackTrace();
return nextAccountID;
* jdbc related methods
private int selectNextID() throws Exception {
int account_lastkey;
try {
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery(
"Select ACCOUNT_LASTKEY from LASTKEY");
System.out.println("Account Lastkey");
//while (rs != null && rs.next()) {
rs.next();
account_lastkey = rs.getInt(1);
System.out.println(account_lastkey);
connection.commit();
statement.close();
//return account_lastkey;
return account_lastkey;
} catch(Exception e) {
System.err.println("System Exception in selectNextID");
System.err.println(e);
throw e;
* insertAccount is used to insert a new Account in the Database
* @param int AccountID
* @return AccountStruct containing data for the existing Account
private void insertAccount(Account anAccount) throws Exception {
AccountStruct anAccountStruct = anAccount.getAccountStruct();
String acct_username = anAccountStruct.userName;
String acct_useremail = anAccountStruct.userEmail;
String acct_cc_type = anAccountStruct.creditCardType;
String acct_cc_number = anAccountStruct.creditCardNumber;
int acct_cc_expyr = anAccountStruct.creditCardExpirationDate.year;
int acct_cc_expmo = anAccountStruct.creditCardExpirationDate.month;
String acct_userpassword = anAccountStruct.userPassword;
float acct_userbalance = anAccountStruct.accountBalance;
int acct_id = getNextID();
try {
System.out.println("Inserting data...");
connection.setAutoCommit(false);
// Calculate Start time
Log.debug("Starting data insertion ( 1" +
" row) into ACCOUNT table..");
long startTime = System.currentTimeMillis();
preparedStatement = connection.prepareStatement(
"INSERT INTO ACCOUNT (ACCT_ID, ACCT_USERNAME, ACCT_USEREMAIL, ACCT_CC_TYPE, ACCT_CC_NUMBER, " +
"ACCT_CC_EXPYR, ACCT_CC_EXPMO, ACCT_USERPASSWORD, ACCT_USERBALANCE) VALUES ( ?, ?, ?, ?, ?, ? , ?, ?, ?)");
//acct_id = 1000;
preparedStatement.setInt(1, acct_id);
preparedStatement.setString(2, acct_username);
preparedStatement.setString(3, acct_useremail);
preparedStatement.setString(4, acct_cc_type);
preparedStatement.setString(5, acct_cc_number);
preparedStatement.setInt(6, acct_cc_expyr);
preparedStatement.setInt(7, acct_cc_expmo);
preparedStatement.setString(8, acct_userpassword);
preparedStatement.setFloat(9, acct_userbalance);
preparedStatement.executeUpdate();
connection.commit();
preparedStatement = connection.prepareStatement(
"UPDATE LASTKEY SET ACCOUNT_LASTKEY = ?");
preparedStatement.setInt(1, acct_id);
preparedStatement.executeUpdate();
connection.commit();
System.out.println("1 account created.");
preparedStatement.close();
long stopTime = System.currentTimeMillis();
Log.debug("Account table load complete.");
Log.debug("Load time = " +
((stopTime - startTime)/(1000f)) + " seconds");
Log.debug("Data insertion complete");
} catch(Exception e) {
System.err.println("System Exception in loadData");
System.err.println(e);
throw e;
thank you for responding!
well, i tried changine the line in createAccount() from int accountID=0; to intaccountID=1111;
this does not create 100 accounts with id 1111 - it still creates 100 accounts with id 0, so that's why, even though this method definitely needs work, i don't think that this is the line that's causing identical id's of 0 to be generated. -
Hi,
i need your help in debugging the vf03 tcode. the senariou is as follows.
in vf03 when i enter the billing document no. and press enter and then when i click on parter push button on the application toolbar and then click on ship-to-party item then under the field tax juridiction cde which is refering to txjcd field of vbadr table im getting the value as TAXUSX instead of a 10 digit value which is present in txjcd field of kna1 table for that particular customer.
and this is happening only for few invoice no's not for all.
i think that some where the data is getting changed or not properly communicated for some invoice numbers.
i need help for where to start tracing and how to debug this error out and the flow logic of debugging.
waiting for ur reply
regards,
maqsoodHi kahan,
frist you have check with your function consultant is there are mataing the TAX for that countary .
and come to debug.
easyt way is take that screen field name(patha pres F1 and technical attributes ) and program name screen name .
then seach that field in that program screen put break-point at that level and run tranction.
stil you facing any problem send more details i will try to help you.
Do Reward points..if found helpful
thaks,
saleem -
What transactions are helpful in debugging performance of a program
What transactions help in debugging performance related issues of a custom program?
Hi.... Gopal...,
First rectify the errors and warning in ur program with...
> SLIN -> Extended program Check
> SCID -> Code Inspecter
Then Analyze the performance level of ur program with...
> SE30 -> Runtime analysis
There you can study the actions of ur statements with Tracing the statements with...
> ST05 -> SQL Trace
Then do the modifications according to the issues...,
Thank you,
Naveen.I -
Help me debug: full screen video - crash/freeze/blackscreen
I've had this issue for a few months and have not been able to fix or find out what the cause is. When I play a video in full screen (usually Flash within Chrome browser, but occasionally with VLC), after about 1 minute, the audio will skip/freeze, video will also skip and go black or show an odd pattern, and the entire system becomes unresponsive. I can't switch to a different TTY or Sysreq REISUB. Journalctl -b -1 (from the last boot) does not show anything unusual. Here's an example video that causes the full screen crash: http://vimeo.com/15247292 (NSFW). I'm running KDE with xf86-video-ati driver on a Radeon HD 5770.
Help me debug this issue. What could it be? How do I find out what the problem is and/or how to avoid it?I may have found what's causing the issue. I'm using Redshift, which messes with the color temperature. So far, disabling Redshift before going full screen, I haven't had any more crashes. I'll try this for a while longer, and probably make a bug report if it keeps on working.
Update: Turns out the crash would happen even without Redshift or xgamma. I've changed the Radeon DPM setting to "performance" instead of "balanced" setting, and I haven't had a crash in a day.
Last edited by matkam (2014-10-05 18:19:21) -
Hi All,
I have one variable in one loop.Now i want to go to that variable
everytime it's value is negative.Now with breakpoint and watchpoints i can go to that place in code when it is becoming negative first time.
Any way in debugging where i can rach that place in code everytime the variable becomes negative.
Thanks in Advance,
Saket.Hi,
Iam not sure of the classical debugger, but if the debugger is new debugger then you can follow this steps:
1. Execute the program in debugging mode.
2. Scroll the program and keep the cursor at the place where you want to check.
3. Press Shift + F8.
With this the debugging point comes to the place where you kept the cursor by executing all the code present above the cursor.
Hope thsi will help.
Regards,
Swarna Munukoti. -
Please help me debug this program unit!!!!!
dear sir,
i tried diligently to find and to debug this tiny program unit,although my observation to the coding rules of the packages ,compilation error still occur.
therefore,kindly i'm asking you sir to learn me how to correct it.
thank you.
create or replace package test_pack is
type emp_table_type is table of emp.sal%type
index by binary_integer;
emp_list emp_table_type;
function test_sal
(v_sal in emp.sal%type)
return emp_table_type;
end test_pack;
create or replace package body test_pack is
temp emp.sal%type;
cursor emp_cursor is
select sal from emp;
i number :=1;
j number :=1;
function test_sal
(v_sal in emp.sal%type)
return emp_table_type
is
open emp_cursor;
loop
fetch emp_cursor into temp;
if temp < v_sal then
emp_list(i):=temp;
bms_output.put_line('rowcount i='||emp_cursor%rowcount);
dbms_output.put_line('iterator i='||i);
i:=i+1;
else
dbms_output.put_line('rowcount j='||emp_cursor%rowcount);
dbms_output.put_line('iterator j='||j);
j:=j+1;
end if;
if emp_cursor%notfound then
dbms_output.put_line('cursor closed...');
close emp_cursor;
return emp_list;
exit;
end if;
end loop;
end test_pack;You can use "show err" to show the errors after compilation errors occur:
SQL> create or replace package test_pack is
2 type emp_table_type is table of emp.sal%type index by binary_integer;
3 emp_list emp_table_type;
4 function test_sal(v_sal in emp.sal%type) return emp_table_type;
5 end test_pack;
6 /
Package is aangemaakt.
SQL> create or replace package body test_pack is
2 temp emp.sal%type;
3 cursor emp_cursor is
4 select sal from emp;
5 i number :=1;
6 j number :=1;
7
8 function test_sal
9 (v_sal in emp.sal%type)
10 return emp_table_type
11 is
12 open emp_cursor;
13 loop
14 fetch emp_cursor into temp;
15 if temp < v_sal then
16 emp_list(i):=temp;
17 bms_output.put_line('rowcount i='||emp_cursor%rowcount);
18 dbms_output.put_line('iterator i='||i);
19 i:=i+1;
20 else
21 dbms_output.put_line('rowcount j='||emp_cursor%rowcount);
22 dbms_output.put_line('iterator j='||j);
23 j:=j+1;
24 end if;
25 if emp_cursor%notfound then
26 dbms_output.put_line('cursor closed...');
27 close emp_cursor;
28 return emp_list;
29 exit;
30 end if;
31 end loop;
32 end test_pack;
33 /
Waarschuwing: package-body is aangemaakt met compilatiefouten.
SQL> show err
Fouten voor PACKAGE BODY TEST_PACK:
LINE/COL ERROR
14/7 PLS-00103: Symbool "FETCH" aangetroffen terwijl een van de
volgende werd verwacht:
constant exception <een ID>
<een scheidingsteken-ID tussen dubbele aanhalingstekens>
table LONG_ double ref char time timestamp interval date
binary national character nchar
32/5 PLS-00103: Symbool "TEST_PACK" aangetroffen terwijl een van de
volgende werd verwacht:
;To make your program compile, add a begin and end and fix the typo (in bold):
SQL> create or replace package body test_pack is
2 temp emp.sal%type;
3 cursor emp_cursor is
4 select sal from emp;
5 i number :=1;
6 j number :=1;
7
8 function test_sal
9 (v_sal in emp.sal%type)
10 return emp_table_type
11 is
12 begin
13 open emp_cursor;
14 loop
15 fetch emp_cursor into temp;
16 if temp < v_sal then
17 emp_list(i):=temp;
18 dbms_output.put_line('rowcount i='||emp_cursor%rowcount);
19 dbms_output.put_line('iterator i='||i);
20 i:=i+1;
21 else
22 dbms_output.put_line('rowcount j='||emp_cursor%rowcount);
23 dbms_output.put_line('iterator j='||j);
24 j:=j+1;
25 end if;
26 if emp_cursor%notfound then
27 dbms_output.put_line('cursor closed...');
28 close emp_cursor;
29 return emp_list;
30 exit;
31 end if;
32 end loop;
33 end;
34 end test_pack;
35 /
Package-body is aangemaakt.
SQL> declare
2 t test_pack.emp_table_type;
3 begin
4 t := test_pack.test_sal(2000);
5 for i in 1..t.count
6 loop
7 dbms_output.put_line(t(i));
8 end loop;
9 end;
10 /
rowcount i=1
iterator i=1
rowcount i=2
iterator i=2
rowcount i=3
iterator i=3
rowcount j=4
iterator j=1
rowcount i=5
iterator i=4
rowcount j=6
iterator j=2
rowcount j=7
iterator j=3
rowcount j=8
iterator j=4
rowcount j=9
iterator j=5
rowcount i=10
iterator i=5
rowcount i=11
iterator i=6
rowcount i=12
iterator i=7
rowcount j=13
iterator j=6
rowcount i=14
iterator i=8
rowcount i=14
iterator i=9
cursor closed...
800
1600
1250
1250
1500
1100
950
1300
1300
PL/SQL-procedure is geslaagd.To fix the bug of the last iteration and put the variables in the sections they belong:
SQL> create or replace package test_pack is
2 type emp_table_type is table of emp.sal%type index by binary_integer;
3 function test_sal(v_sal in emp.sal%type) return emp_table_type;
4 end test_pack;
5 /
Package is aangemaakt.
SQL> create or replace package body test_pack
2 is
3 function test_sal(v_sal in emp.sal%type) return emp_table_type
4 is
5 emp_list emp_table_type;
6 temp emp.sal%type;
7 cursor emp_cursor is select sal from emp;
8 i number :=1;
9 j number :=1;
10 begin
11 open emp_cursor;
12 loop
13 fetch emp_cursor into temp;
14 if emp_cursor%notfound then
15 dbms_output.put_line('cursor closed...');
16 exit;
17 end if;
18 if temp < v_sal then
19 emp_list(i):=temp;
20 dbms_output.put_line('rowcount i='||emp_cursor%rowcount);
21 dbms_output.put_line('iterator i='||i);
22 i:=i+1;
23 else
24 dbms_output.put_line('rowcount j='||emp_cursor%rowcount);
25 dbms_output.put_line('iterator j='||j);
26 j:=j+1;
27 end if;
28 end loop;
29 close emp_cursor;
30 return emp_list;
31 end;
32 end test_pack;
33 /
Package-body is aangemaakt.
SQL> declare
2 t test_pack.emp_table_type;
3 begin
4 t := test_pack.test_sal(2000);
5 for i in 1..t.count
6 loop
7 dbms_output.put_line(t(i));
8 end loop;
9 end;
10 /
rowcount i=1
iterator i=1
rowcount i=2
iterator i=2
rowcount i=3
iterator i=3
rowcount j=4
iterator j=1
rowcount i=5
iterator i=4
rowcount j=6
iterator j=2
rowcount j=7
iterator j=3
rowcount j=8
iterator j=4
rowcount j=9
iterator j=5
rowcount i=10
iterator i=5
rowcount i=11
iterator i=6
rowcount i=12
iterator i=7
rowcount j=13
iterator j=6
rowcount i=14
iterator i=8
cursor closed...
800
1600
1250
1250
1500
1100
950
1300
PL/SQL-procedure is geslaagd.To be really efficient and not care about looping, using counters and dbms_output, and assuming the emp table won't ever be a big table (else use the LIMIT clause):
SQL> create or replace package body test_pack
2 is
3 function test_sal(v_sal in emp.sal%type) return emp_table_type
4 is
5 emp_list emp_table_type;
6 begin
7 select sal bulk collect into emp_list
8 from emp
9 where sal < v_sal
10 ;
11 return emp_list;
12 end;
13 end;
14 /
Package-body is aangemaakt.
SQL> declare
2 t test_pack.emp_table_type;
3 begin
4 t := test_pack.test_sal(2000);
5 for i in 1..t.count
6 loop
7 dbms_output.put_line(t(i));
8 end loop;
9 end;
10 /
800
1600
1250
1250
1500
1100
950
1300
PL/SQL-procedure is geslaagd.Hope it helps.
Regards,
Rob. -
Help on Debug Mode in Oracle JDeveloper 10g/OC4J
Hi All,
Presently I am using Oracle JDeveloper 10g Early Access version
ADF Business Components 10.1.3.34.12
Java™ Platform 1.5.0_05
Oracle IDE 10.1.3.34.12
PMD JDeveloper Extension 1.7
and OC4J.
I want to debug all the Java files between request submission and getting response from the server in j2ee application. This we can do in eclipse ide by putting break points where ever we require and running the server in debugging mode. But I don't know how this can be done in JDeveloper/OC4J. Please can any one of you guide me, if you are aware of it. Thanks in advance.
-immuIf you mean remote debugging the application on a stand alone OC4J then here is a basic how-to:
http://blogs.oracle.com/shay/2005/10/24#a55
This is also covered in the online help. -
hi,
i wont to debug table but not from the beging i wont from ex.
line 500 how i do that ?
i use the new debugerr
RegardsHi Ricardo,
If you put break point it will stop there at the particular point of the source code..It will not stop in the break point until another break point or the same break point..
Watch point is non to physically putting break point..Instead you can watch a variable when and where it is getting changed..by creating a watch point on the variable in the program..
Example for watch point
Go to the debug mode..
Press the create watch point button (shift + f8)..
It will give a popup to enter the program name and field name you have to watch..
Press enter..
It will stop when the field name is getting changed..
also look at....
http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617cbee68c11d2b2ab080009b43351/frameset.htm
watch point?
Diff. Watch point and Break Point
Hope it will solve your problem...
Reward points if useful...
Thanks & Regards
ilesh 24x7 -
First, I'm a complete noob here and in AS3. i know AS2 and this is my first project in AS3...
here's my FLA:
http://www.directoph.com/projectbetatest/3dbrochuretest/3D-Brochure3.fla
here's the live demo:
http://www.directoph.com/projectbetatest/3dbrochuretest/
Movie Behavior:
It's a digital version of brochure with three versions (US, Hawaii, Canada), upon loading of the main movie, a script will load an image that will be the reference for the magnification. click and dragging over the brochure will magnify its contents. clicking "view back" will 3D rotate the brochure then load the back image, then script again to magnify the back contents.
all works well for the 3 versions.
the problem occurs when, lets say, I'm in Hawaii version and I clicked USA. Same with when in Canada version and I clicked USA or Hawaii, in short, errors occurs when jumping into an 'earlier' frame, or in backward behavior.
clicking to Hawaii or Canada from USA - no error;
clicking to Canada from Hawaii - no error;
clicking to USA from Hawaii - error;
clicking to USA from Canada - error;
clicking to Hawaii from Canada - error;
Error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at 3D_fla::MainTimeline/frame1()
at flash.display::MovieClip/gotoAndPlay()
at 3D_fla::MainTimeline/usa2()
I hope I made it clear. Ignore the "PDF" button by the way, I haven't coded it yet. If you find my code as crappy as hell, feel free to laugh... :-)
Any help would be greatly appreciated. Thanks!The 1009 error indicates that one of the objects being targeted by your code is out of scope. This could mean that the object....
- is not in the display list
- doesn't have an instance name (or the instance name is mispelled)
- does not exist in the frame where that code is trying to talk to it
- is animated into place but is not assigned instance names in every keyframe for it
- is one of two or more consecutive keyframes of the same objects with different names assigned.
If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved. -
Help required debugging a 9.0.4 form using WebUtil(1.0.6)
Hi
I have installed and configured WebUtil(106) on the application server and client side. I took a working form and changed the TEXT_IO calls to CLIENT_TEXT_IO and also attached the WebUtil.olb and WebUtil.pll libraries. The form compiles ok but when I run it from within developer I see the message applet started but the form never appears and no errors are reported.
Can anyone help me out with this? The difficulty is not getting any errors reported to help with the fault finding.I've put the webutil settings under the [default] named configuration. Here are all the settings from the client formsweb.cfg.
Theses settings for baseHTMLjinitiator, baseHTMLjpi and baseHTML are declared twice but I assumed that the webutil settings would override the previous ones.
# $Id: formsweb.cfg,v 1.24 2003/08/22 01:07:35 pkuhn Exp $
# formsweb.cfg defines parameter values used by the FormsServlet (f90servlet)
# This section defines the Default settings. Any of them may be overridden in the
# following Named Configuration sections. If they are not overridden, then the
# values here will be used.
# The default settings comprise two types of parameters: System parameters,
# which cannot be overridden in the URL, and User Parameters, which can.
# Parameters which are not marked as System parameters are User parameters.
# SYSTEM PARAMETERS
# These have fixed names and give information required by the Forms
# Servlet in order to function. They cannot be specified in the URL query
# string. But they can be overriden in a named configuration (see below).
# Some parameters specify file names: if the full path is not given,
# they are assumed to be in the same directory as this file. If a path
# is given, then it should be a physical path, not a URL.
# USER PARAMETERS
# These match variables (e.g. %form%) in the baseHTML file. Their values
# may be overridden by specifying them in the URL query string
# (e.g. "http://myhost.mydomain.com/servlet/f90servlet?form=myform&width=700")
# or by overriding them in a specific, named configuration (see below)
[default]
# System parameter: default base HTML file
baseHTML=base.htm
# System parameter: base HTML file for use with JInitiator client
baseHTMLjinitiator=basejini.htm
# System parameter: base HTML file for use with Sun's Java Plug-In
baseHTMLjpi=basejpi.htm
# System parameter: base HTML file for use with Microsoft Internet Explorer
# (when using the native JVM)
baseHTMLie=baseie.htm
# System parameter: delimiter for parameters in the base HTML files
HTMLdelimiter=%
# System parameter: working directory for Forms runtime processes
# WorkingDirectory defaults to <oracle_home>/forms90 if unset.
workingDirectory=
# System parameter: file setting environment variables for the Forms runtime processes
envFile=default.env
# System parameter: JVM option for Microsoft Internet Explorer.
# This parameter specifies how to execute the Forms applet under
# Microsoft Internet Explorer 5.x or above. Put IE=native if you want
# the Forms applet to run in the browser's native JVM.
IE=JInitiator
# Forms runtime argument: whether to escape certain special characters
# in values extracted from the URL for other runtime arguments
escapeparams=true
# Forms runtime argument: which form module to run
form=test.fmx
# Forms runtime argument: database connection details
userid=
# Forms runtime argument: whether to run in debug mode
debug=no
# Forms runtime argument: host for debugging
host=
# Forms runtime argument: port for debugging
port=
# Other Forms runtime arguments: grouped together as one parameter.
# These settings support running and debugging a form from the Builder:
otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log% term=%term%
# Sub argument for otherparams
buffer=no
# Sub argument for otherparams
debug_messages=no
# Sub argument for otherparams
array=no
# Sub argument for otherparams
obr=no
# Sub argument for otherparams
query_only=no
# Sub argument for otherparams
quiet=yes
# Sub argument for otherparams
render=no
# Sub argument for otherparams
record=
# Sub argument for otherparams
tracegroup=
# Sub argument for otherparams
log=
# Sub argument for otherparams
term=
# HTML page title
pageTitle=Oracle Application Server Forms Services
# HTML attributes for the BODY tag
HTMLbodyAttrs=
# HTML to add before the form
HTMLbeforeForm=
# HTML to add after the form
HTMLafterForm=
# Forms applet parameter: URL path to Forms ListenerServlet
serverURL=/forms90/l90servlet/debug
# Forms applet parameter
codebase=/forms90/java
# Forms applet parameter
imageBase=DocumentBase
# Forms applet parameter
width=750
# Forms applet parameter
height=600
# Forms applet parameter
separateFrame=false
# Forms applet parameter
splashScreen=
# Forms applet parameter
background=
# Forms applet parameter
lookAndFeel=Oracle
# Forms applet parameter
colorScheme=teal
# Forms applet parameter
logo=/forms90/html/inverted_oracle_logo.gif
# Forms applet parameter
restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
# Forms applet parameter
formsMessageListener=
# Forms applet parameter
recordFileName=
# Forms applet parameter
serverApp=default
# Forms applet archive setting for JInitiator
archive_jini=f90all_jinit.jar, frmwebutil.jar, jacob.jar
# Forms applet archive setting for Microsoft Internet Explorer native JVM
archive_ie=f90all.cab
# Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
archive=f90all.jar
# Number of times client should retry if a network failure occurs. You should
# only change this after reading the documentation.
networkRetries=0
# Page displayed to Netscape users to allow them to download Oracle JInitiator.
# Oracle JInitiator is used with Windows clients.
# If you create your own page, you should set this parameter to point to it.
jinit_download_page=/forms90/jinitiator/us/jinit_download.htm
# Parameter related to the version of JInitiator
jinit_classid=clsid:CAFECAFE-0013-0001-0017-ABCDEFABCDEF
# Parameter related to the version of JInitiator
jinit_exename=jinit.exe#Version=1,3,1,17
# Parameter related to the version of JInitiator
jinit_mimetype=application/x-jinit-applet;version=1.3.1.17
# Page displayed to users to allow them to download Sun's Java Plugin.
# Sun's Java Plugin is typically used for non-Windows clients.
# (NOTE: you should check this page and possibly change the settings)
jpi_download_page=http://java.sun.com/products/plugin/1.3/plugin-install.html
# Parameter related to the version of the Java Plugin
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
# Parameter related to the version of the Java Plugin
jpi_codebase=http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0
# Parameter related to the version of the Java Plugin
jpi_mimetype=application/x-java-applet;version=1.3
# EM config parameter
# Set this to "1" to enable Enterprise Manager to track Forms processes
em_mode=0
# Single Sign-On OID configuration parameter
oid_formsid=%OID_FORMSID%
# Single Sign-On OID configuration parameter
oracle_home=C:\oracle\ora904
# Single Sign-On OID configuration parameter
formsid_group_dn=%GROUP_DN%
# Single Sign-On OID configuration parameter: indicates whether we allow
# dynamic resource creation if the resource is not yet created in the OID.
ssoDynamicResourceCreate=true
# Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
ssoErrorUrl=
# Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
ssoCancelUrl=
# Single Sign-On parameter: indicates whether the url is protected in which
# case mod_osso will be given control for authentication or continue in
# the FormsServlet if not. It is false by default. Set it to true in an
# application-specific section to enable Single Sign-On for that application.
ssoMode=false
# The parameter allow_debug determines whether debugging is permitted.
# Administrators should set allow_debug to "true" if servlet
# debugging is required, or to provide access to the Forms Trace Xlate utility.
# Otherwise these activities will not be allowed (for security reasons).
allow_debug=false
# Parameter which determines whether new Forms sessions are allowed.
# This is also read by the Forms EM Overview page to show the
# current Forms status.
allowNewConnections=true
# Sample configuration for deploying WebUtil.
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=frmall_jinit.jar,frmwebutil.jar, jacob.jar
archive=frmall.jar
lookAndFeel=oracle
# Example Named Configuration Section
# Example 1: configuration to run forms in a separate browser window with
# "generic" look and feel (include "config=sepwin" in the URL)
# You may define your own specific, named configurations (sets of parameters)
# by adding special sections as illustrated in the following examples.
# Note that you need only specify the parameters you want to change. The
# default values (defined above) will be used for all other parameters.
# Use of a specific configuration can be requested by including the text
# "config=<your_config_name>" in the query string of the URL used to run
# a form. For example, to use the sepwin configuration, your could issue
# a URL like "http://myhost.mydomain.com/servlet/f90servlet?config=sepwin".
[sepwin]
separateFrame=True
lookandfeel=Generic
# Example Named Configuration Section
# Example 2: configuration affecting users of MicroSoft Internet Explorer 5.x.
# Forms applet will run under the browser's native JVM rather than using Oracle JInitiator.
[ienative]
IE=native
# Example Named Configuration Section
# Example 3: configuration forcing use of the Java Plugin in all cases (even if
# the client browser is on Windows)
[jpi]
baseHTMLJInitiator=basejpi.htm
baseHTMLie=basejpi.htm
# Example Named Configuration Section
# Example 4: configuration running the Forms ListenerServlet in debug mode
# (debug messages will be written to the servlet engine's log file).
[debug]
serverURL=/forms90/l90servlet/debug
# Sample configuration for deploying WebUtil.
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=frmall_jinit.jar,frmwebutil.jar, jacob.jar
archive=frmall.jar
lookAndFeel=oracle -
Help needed- Debug the script.
Hi Experts,
Can any one help me in debug the below script.
Basically, i am trying to check date range from a coulmn DATE_NAME and if its between the selected range i am assiging some number.
select DATE_NAME,CASE
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('15-DEC', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('10-JAN', 'DD-MON'),'DD-MON')) THEN 1
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('11-JAN', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('07-FEB', 'DD-MON'),'DD-MON')) THEN 2
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('08-FEB', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('07-MAR', 'DD-MON'),'DD-MON')) THEN 3
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('08-MAR', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('04-APR', 'DD-MON'),'DD-MON')) THEN 4
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('05-APR', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('02-MAY', 'DD-MON'),'DD-MON')) THEN 5
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('03-MAY', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('30-MAY', 'DD-MON'),'DD-MON')) THEN 6
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('31-MAY', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('27-JUN', 'DD-MON'),'DD-MON')) THEN 7
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('28-JUN', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('25-JUL', 'DD-MON'),'DD-MON')) THEN 8
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('26-JUL', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('22-AUG', 'DD-MON'),'DD-MON')) THEN 9
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('23-AUG', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('19-SEP', 'DD-MON'),'DD-MON')) THEN 10
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('20-SEP', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('17-OCT', 'DD-MON'),'DD-MON')) THEN 11
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('18-OCT', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('14-NOV', 'DD-MON'),'DD-MON')) THEN 12
WHEN
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN TRIM(TO_CHAR(to_DATE('15-NOV', 'DD-MON'),'DD-MON') ) AND TRIM(TO_CHAR(to_DATE('12-DEC', 'DD-MON'),'DD-MON')) THEN 13
ELSE 0
END AS PERIOD FROM D_TIME;
Any help will be appreciated.
PS: DATE_NAME is of DATE datatype.
Thanks,
G
Edited by: Gurusank on Jun 24, 2009 3:53 PMDon't convert date to string for comparison. For instance your following snippet:
TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN
TRIM(TO_CHAR(to_DATE('15-DEC', 'DD-MON'),'DD-MON') )
AND
TRIM(TO_CHAR(to_DATE('10-JAN', 'DD-MON'),'DD-MON')) should be written as
DATE_NAME BETWEEN to_DATE('15-DEC', 'DD-MON')
and to_DATE('10-JAN', 'DD-MON')Are you sure in avoiding year (YYYY) in your format mask for to_date. This will assign current year to the date
In that case something like
TO_DATE(TO_CHAR(DATE_NAME,'DD-MON')), 'DD-MON') BETWEEN
to_DATE('15-DEC', 'DD-MON')
AND
to_DATE('10-JAN', 'DD-MON')(There might be an efficient way to do this part. Nothing is striking to me as of now.)
Hope this helps.
Regards,
Jo
Maybe you are looking for
-
'unable to send print data' on HP Laserjet 1536dnf MFP
Hi there, I'm running an iMac with OSX 10.6.8. Via an USB cable I have attached a HP Laserjet 1536dnf MFP to the iMac. I also use this printer to print via wifi (i.e. through the iMac) with my MacBook Pro (with OSX 10.7.3). Suddenly today the printer
-
WM: Transfer Requirements with just one item
Hi experts, does anybody know if it is possible to customize WM in order to create just one item per transfer requirement. My problem is that in material staging from PP, I have customized creation of transfer requirements on order release. If OF con
-
Do we need to install microsoft cluster software for RAC 10G
Hi all, Our company wants to install ORACLE 10G RAC on windows 2003 R2. Based on the pre-requisites I asked network guys to provide me the shared disk storage from SAN, but they insist that this storage will not be accessible until we have windows cl
-
Why does SQL Developer insist on opening up the package header?
When expanding a package (clicking the '+') SQL Developer keeps opening up the package header (at least the first time you click it). I'm very rarely interested in viewing the header and it's annoying to have all those tabs open.
-
Hi, I am getting below error while opening UWL iView... Portal runtime error An exception occurred while processing your request. Send the exception ID to your portal administrator. See log file for details about this exception com.sapportals.portal.