Knowing debugging condition?
hi
Debugging is basically giving u r program real time values and executing at various conditions .
right
now how we came to know while debugging that in a particular program we have to go inside particular function module
how we come to know this
regards
puneet
Puneet
Seems you are from Functional Side.
Mostly developers do the Debugging of their Program with the Inputs.
If you know that you are Feeding invalid inputs, then the Developers Checks the Stability of the Program meaning that for irrelevant or illegal input, the Program should report Error (obviously ) and vice-versa.
Thanks
Jack
Similar Messages
-
How to know which condition amount of PO will be added to invenotry
Hi,
I am making a report of material moving average price vs last Po price aginst which GR is made so I want to know how to know that from the purchase order all conditions which condition amount will be added to inventory like in case of import PO along with material cost octri and fright conditioon which are added as delivery cost amount of those conditions are added to invenotry and excise duty which is also delivery cost are updated in cenvat, so how to know from all condition which amount will be added to invenotry.
I dont want to take amoun which is updated at the time of GR.
regards,
zafarHi,
Thanks for your reply, in case of FI condition in OBQ3 if any accout key is assign there we can check this in OBCN from there it is easy to understand whethere it is dedcuctible or non deductable but in MM i am not getting details whethere the condition is deductable or non deductable
FRB1 delivery cost condition account key Z04 is assign the amount of this codnition is added to the materila account
JCVD delivery cost condition account key is Z07 the amount of this condition is not added to the material now in customizing of those account key Z04 and Z07 in Define Transaction/Event Keys there is no setting for this then how to know whether the amount of particular condition will be added to inventory or not.
regards,
zafar -
How to Know one condition Type (PR00) used in which pricing procedures
Hi Friends,
I have 20 pricing procdures I need information that condition type PR00 is used in which pricing procedures.
by help of
any report
any table etc
Thanking you
ArunDear Customer,
in standard there is no report available for your requirement.
In this case you can only create your own selection report therefore.
regards
Claudia -
Need to know which condition is better
Hi,
i have one table in which most of the records are unique.
What would be better , to create index or to continue without index.
I need faster response of the query . No of rows in table is 32 lac.
below is the output with index and without index for some sample data.
in first scenario i have two indexes.
in second scenario i have only one index
in third one i don't have any index.
here col2 is having only 2-3 distinct values while both other columns are having almost unique values ( different data )
SQL> set autotrace traceonly
SQL> SELECT COUNT(*)
FROM my_table
WHERE col1 =28582
AND col2='1'
AND col3 ='1452631' ;
Elapsed: 00:00:00.47
Execution Plan
Plan hash value: 2123134521
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 |16 | 3 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 |16 || |
|* 2 | INDEX RANGE SCAN| IND_my_table_1 | 1 |16 | 3 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("col1"=28582 AND "col2"='1' AND
"col3"='1452631')
Statistics
1 recursive calls
0 db block gets
3 consistent gets
0 physical reads
0 redo size
3882329993 bytes sent via SQL*Net to client
492 bytes received via SQL*Net from client
4 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
SQL> drop index Ind_my_table_1;
Index dropped.
Elapsed: 00:00:00.66
SQL> SELECT COUNT(*)
FROM my_table
WHERE col1 =28582
AND col2='1'
AND col3 ='1452631' ;
Elapsed: 00:00:01.52
Execution Plan
Plan hash value: 2881393183
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 16 | 4(0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | 16 | | |
|* 2 | TABLE ACCESS BY INDEX ROWID| my_table | 1 | 16 | 4(0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | IND_my_table_2 | 1 | | 3(0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - filter("col2"='1' AND "col3"='1452631')
3 - access("col1"=28582)
Statistics
199 recursive calls
0 db block gets
31 consistent gets
2 physical reads
0 redo size
514 bytes sent via SQL*Net to client
492 bytes received via SQL*Net from client
4 SQL*Net roundtrips to/from client
6 sorts (memory)
0 sorts (disk)
1 rows processed
SQL> drop index Ind_my_table_1 2;
Index dropped.
Elapsed: 00:00:00.07
SQL> SELECT COUNT(*)
FROM my_table
WHERE col1 =28582
AND col2='1'
AND col3 ='1452631' ;
Elapsed: 00:00:00.70
Execution Plan
Plan hash value: 1679787526
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 16 | 6431(2)| 00:01:18 |
| 1 | SORT AGGREGATE | | 1 | 16 | | |
|* 2 | TABLE ACCESS FULL| my_table | 1 | 16 | 6431(2)| 00:01:18 |
Predicate Information (identified by operation id):
2 - filter("col2"='1' AND "col1"=28582 AND
"col3"='1452631')
Statistics
169 recursive calls
0 db block gets
29754 consistent gets
0 physical reads
0 redo size
514 bytes sent via SQL*Net to client
492 bytes received via SQL*Net from client
4 SQL*Net roundtrips to/from client
5 sorts (memory)
0 sorts (disk)
1 rows processed
Pl suggest how should i create the index.Hi,
KriC wrote:
... here col2 is having only 2-3 distinct values while both other columns are having almost unique values ( different data )
SQL> set autotrace traceonly
SQL> SELECT COUNT(*)
FROM my_table
WHERE col1 =28582
AND col2='1'
AND col3 ='1452631' ;
Pl suggest how should i create the index.There's no substitute for actually trying things on your system, with your full data.
You may not be able to try different ideas on your Production system, but your Test system is probably closer that anything that anyone else on this forum has.
My best guess, for queries like the one above, would be a compound index in (col1, col3, col2) or (co3, col1,col2). Col2 is least selective (that is, fewest unique values) so it should definitely be last. There may not be any advantage to including col2 in the index.
Assuming you do create a compound index that starts with col1: that will not help in queries where col1 is not specified, but col3 is. If you sometimes run queries like that, you might want a separate index on col3. -
Hi all,
I need to know the best practice for writing SELECT with DEBUG directive
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - ProductionFor example, for this SELECT
SELECT *
FROM USER_OBJECTS
WHERE -- REAL CONDITION
OBJECT_NAME LIKE '%1%'
-- DEBUG CONDITION
--OBJECT_NAME LIKE '%2%'
;I wrote this query:
WITH IS_DEBUG AS (SELECT 'NO' IS_DEBUG FROM DUAL)
SELECT *
FROM USER_OBJECTS A, IS_DEBUG
WHERE
-- Real Condition
(IS_DEBUG = 'NO' AND OBJECT_NAME LIKE '%1%') OR
-- Debug Condition
(IS_DEBUG = 'YES' AND OBJECT_NAME LIKE '%2%');Is there a more professional approach? Something like #ifdef ...
Thanks to all,
RiccardoThanks, I found the problem. That's the right version
ALTER PROCEDURE MYTEST COMPILE PLSQL_CCFLAGS = 'MY_DEBUG:true' REUSE SETTINGS;-----
SQL> CREATE OR REPLACE PROCEDURE MYTEST
2 IS
3 COUNTER NUMBER;
4 BEGIN
5 SELECT COUNT (*)
6 INTO COUNTER
7 FROM USER_OBJECTS
8 WHERE $if ($$MY_DEBUG) $then
9 -- Debug Condition
10 OBJECT_NAME LIKE '%2%';
11 $else
12 -- Real Condition
13 OBJECT_NAME LIKE '%1%';
14 $end
15
16 DBMS_OUTPUT.PUT_LINE ('MY_DEBUG = .' || CASE $$MY_DEBUG
17 WHEN TRUE THEN '>TRUE'
18 WHEN FALSE THEN '>FALSE'
19 ELSE '>NULL'
20 END || '. --> ' || COUNTER);
21 END;
22 /
Creata procedura.
SQL> ALTER PROCEDURE MYTEST COMPILE PLSQL_CCFLAGS = 'MY_DEBUG:true' REUSE SETTINGS;
Modifica procedura.
SQL> EXEC MYTEST;
MY_DEBUG = .>TRUE. --> 22
Procedura PL/SQL completata correttamente.
SQL> ALTER PROCEDURE MYTEST COMPILE PLSQL_CCFLAGS = 'MY_DEBUG:false' REUSE SETTINGS;
Modifica procedura.
SQL> EXEC MYTEST;
MY_DEBUG = .>FALSE. --> 28
Procedura PL/SQL completata correttamente.
SQL> connect *** / ****@*****
Connesso.
SQL> set serveroutput on
SQL> EXEC MYTEST;
MY_DEBUG = .>FALSE. --> 28
Procedura PL/SQL completata correttamente. -
Condition type komv-kschl Relation with vbrp-kondm ( AC )
Working on Report .
Is there any relation between condition type komv-kschl with vbrp-matkl and vbrp-kondm at integration level.
for particular vbrp-kondm ( value AC) report is not showing output.
for other vbrp-kondm ( value TY, TU, HU ) report is showing output.
I debug the report and came to know that condition type komv-kschl for vbrp-kondm ( AC ) is not
matching. Just want to very that condition type komv-kschl is realted with vbrp-kondm ( AC ) and vbrp-matkl
and matnr and where linked in SPRO.
condition type for vbrp-kondm ( AC ) is different ....
Thanks & Regards,Hi,
Get knumv from vbrk (header) depending on get get data from vbrp.Use the same knumv no and get data from konv.You can not get data directly from konv,vbrp.
Regards,
Madhu. -
How can I retrieve the condition in an update or delete using instead of trigger
I have 2 tables, on which a view is created. To distinguish the tables within the view trigger, a column "source" had been added in the view creation. I want to be able to delete row(s) in table t1 or table t2 through the view, depending on a condition. The problem is that I don't know how I can get back the delete condition IN the INSTEAD of trigger :
CREATE TABLE t1(m NUMBER, n VARCHAR2(10), o date);
CREATE TABLE t2(a NUMBER, b VARCHAR2(10), c date);
-- The view is created based on the 2 tables.
CREATE OR REPLACE VIEW vt12 AS
SELECT 't1' source, m, n, o
FROM t1
UNION
SELECT 't2' source, a, b, c
FROM t2;
-- The trigger will fire whenever INSERT is performed on the tables through the view
create or replace trigger tvt12 instead of insert or delete on vt12
begin
if inserting then
if :new.source = 't1' then
insert into t1 values (:new.m, :new.n, :new.o);
else
-- will insert a default value of -1 for the fourth column "d"
insert into t2(a,b,c,d) values (:new.m, :new.n, :new.o, -1);
end if;
elsif deleting then
-- We don't know the condition for the deletion, so all rows from the
-- table from which the current row is coming will be deleted
if :old.source = 't1' then
delete t1;
else
delete t2;
end if;
end if;
end;
show error
insert into vt12 values ('t1',1,'1',sysdate);
insert into vt12 values ('t2',2,'2',sysdate+1);
insert into vt12 values ('t1',3,'3',sysdate+2);
insert into vt12 values ('t2',4,'4',sysdate+3);
insert into vt12 values ('t1',5,'5',sysdate+4);
insert into vt12 values ('t2',6,'6',sysdate+5);
commit;
select * from vt12;
select * from t1;
select * from t2;
delete vt12 where m = 1;
commit;
select * from vt12;
select * from t1;
select * from t2;
When I execute this script, the delete statement seems to recognize that the condition is affecting a row in table t1, and therefore deletes all rows from the table, as specified in the delete statement of the trigger... But, what I want to do is ONLY to delete the row affected by the original condition. So my question is to know how I can get back the original condition for the delete, and still use it in the trigger, that will be executed INSTEAD of the delete statement.. I checked in the doc, and everywhere an example of INSTEAD OF trigger can be found, but it's always and only using an INSTEAD OF INSERT trigger, which doesn't need a condition.
Can anyone help ?
nullI've never faced this case myself, but from the documentation it would seem that the INSTEAD OF DELETE is also a FOR EACH ROW trigger. Therefore, you don't really have to worry about the actual "where" clause of the original "delete" operation: Oracle has it all parsed for you, so you just need to redirect, in turn, each view record being deleted to the appropriate table.
In extenso: for your
delete vt12 where m = 1;
=> the INSTEAD OF trigger fires once for all records in vt12 where m=1, and I would guess that you trigger code should look like:
begin
delete from t1 where m = :old.m and n = :old.n and o = :old.o;
delete from t2 where a = :old.m and b = :old.n and c = :old.o;
end;
It's a bit of overkill compared to the "where" clause of the original "delete" statement, but it should do the job...
BTW, if by any luck you do have some primary key on tables t1 and t2 (say: columns o and c respectively), then obviously you can make the thing simpler:
begin
delete from t1 where o = :old.o;
delete from t2 where c = :old.o;
end;
HTH - Didier -
Condition changing problem in PO
hi dear frnds,
i have created the po and in the item Level, there is a conditions tab in that PBXX condition type comes automatically and i want to change it. how ?
i want to know this conditions comes how and its path and relevant factors.
pls. explain it ASAP
thnx n regards,
rajeshHello
The condition type PBXX hits when there is no condition record maintained for the condition 'Gross Price'.
As u might be knowing that both PBXX and PB00 are the standard condition types for gross price.
There is a '6'(Condition Exclusion) given in the requirement column for PBXX which makes sure that both PBXX and PB00 doesnt come together in a price calculation.
After the first purchase of the material, the inforecord wil be updated with the gross price. So from the next time condition type PB wil be hit for gross price.
Hope this is what u were looking for.
Regards
Gregory Mathews -
To display condition types in sales order
Hi Gurus,
When the condition records are maintained for the condition types they are displayed in the sales order,here user has to create the condition records, without knowing the condition types he cannot create the records.
One method is creating condition records for all materials with zero amount. other than this method is there any possibility to display cond types in the sales order.
Thanks
ChetanDear Chetan,
Goto order - item - condtion - analysis
As soon as you have gone inside , on right side you will find overview which will give you all condition type
Now , you can decide which has to be maintained and which not required.
saravanan -
While automatic PO creation from GR conditions to be fetched from condition
Hi SAP Gurus, i have a requirement where in I want PO to be automatically created while doing GR.All other settings I have done. Now my requirement is tat say freight conditon FRC1 should be picked up from condition record.I already have condition record maintained.please let me know if this is possible or is it like that for automatic PO creation from GR info record is mandatory.Please let me know.Thanks
Hi,
Condition record will not help for the automatic PO creation from GR. Use Info record and maintain your conditions like discount, freight,packng and forwarding etc..... -
Mapping conditions in creation of contract
Hello,
We need to map condition types for the creation of a Backend contract on the basis of a accepted bid.
We use SRM 5.0 but our products do not have prices in their product master!
We use the catalog funcion to indicate the prices of the materials. for service-items we manually add the prices in the Shopping cart.
We dont know what conditions types we use in these circumstances in SRM 5.0?
What condition type are we using in the case of materials?
What condition type are we using in the case of service-items?
Thanks for any reply.
Aartok
-
Pricing,conditions transport to another server
Hi
my client had a pricing procedure in which a condition type had delivery cost with accural.after using for some time they wanted delivery cost to be deleted & price to add in material cost.
i had made changes in Development client(100) & generated transport request.when technical people tried to transport it to another server with release (SCC9 ).system says the requet is transported but the data is not transported.
I would like to know whether condition types ,pricing procedures can be transported with release only or any other procedure required?
In local clients 100 to 400 we used to do by SCC1 but server to server few requests were troubling.
Need your valid suggestions.
Regards
SimhaHi again,
I did some tracing for the query. I don't understand much from the trace file, but there is one line which says: '*** ERROR: memory leak detected 316 ***'. I can't find anything concerning this memory leak. Does anyone have an idea what the reason is?
What I also would like to know is, how a calculation, which is created in JDeveloper, is saved. Only as XML or are there also Metadata concerning the calculation stored in the database?
Thanks,
Lars -
Condition type Purchase per delivery and per purchase order??
Hi Guru's,
Please advice.
I have 3 questions:
1) Who knows a condition type in a purchase order with the goal that I can
register costs per purchase order item ? Example 10 Euro for a certificate per item?
2) The same but now per purchase order 10 Euro.
3) Is there a condiont type where I can use the number of deliveries as basis?
For example: we get charged 10 Euro per delivery. The total of deliveries are not known during PO creation.
Thank you very much in advance.
Eric
Message was edited by:
eric van zundertHi,
1) In this,u r maintain Condition Type,u assign that Condition Type to Pricing Procedure.Pricing Procedure to Accounting view of the Vendor Master Record with the combination of the our Purchasing Organization.
So here the Condition Type ,will be know the Vendor and Our purc.organization.
2) This will be from the Info Record.
3)This one is,u have to use GR-Based-Invoice in the PO.
Thanks & Regards
Suresh.
> Hi Guru's,
>
> Please advice.
>
> I have 3 questions:
>
> 1) Who knows a condition type in a purchase order
> with the goal that I can
> register costs per purchase order item ? Example 10
> Euro for a certificate per item?
>
> 2) The same but now per purchase order 10 Euro.
>
> 3) Is there a condiont type where I can use the
> number of deliveries as basis?
> For example: we get charged 10 Euro per delivery. The
> total of deliveries are not known during PO
> creation.
>
> Thank you very much in advance.
>
> Eric
>
> Message was edited by:
> eric van zundert -
Hi,
I have problem in ABAP Proxy. When i upload a XML and test the ABAP Proxy code it is working fine, but when i trigger the change from sender, its updating the wrong value in the database.
I checked the incoming and the converted XML, everything is correct and there is no prob in the XI.
Please tell me is there any way to debug the ABAP Proxy during the actual proccessing i,e. when the change is triggered from the sender.
Thanks and Regards,
ArunsriI've had the same problem before...everything seemed fine but the xml was not updating the desired values - you have 2 choices - 1. Enable the debugging, but if you have a high volume scenario, then it may cause some issues. Also, I am not sure if you plan to do this in production - as you know, debugging in production is a big No-No.
Option 2 is to just take the stream and store it as a file in the OS. This is what we followed and we were able to figure out the issue with the xml. Make sure you write it in such a way that you can turn it off immediately. In our case, it worked fine for all suppliers but one and this one supplier was sending a double spaced character in between, which was causing the issue.
Regards,
Srini -
Problem with Guard Condition (Fields Disabling)
Hi All
I have a screen where I am creating a notification... so I enter all my fields and data as below:
If ALL fields are filled out then the call to my RFC will create the notification and pass back a notification number (EX_QMNUM)
I then pass back EX_QMNUM to the input of my READ_S1 RFC. Since we have a custom table attached I thought it was best to retrieve the latest data from the database after point of save.
However if they don't fill in the necessary criteria then I pop up an error (EG. Please fill in customer number). I put a GUARD CONDITION on the call back to the READ_S1 RFC. The guard seems to work as my breakpoint/RFC does not get hit... however it then CLEARS my fields and DISABLES everything. This is what it looks like after the save (with guard condition in place). This means I lose all my data and no save occurs.
What am I doing wrong here? Is this a bug with the guard condition?
Guard Condition (which seems to be working apart from the fact it disables my RGA fields)
I'm not completely sure about IF conditions so let me know if this is wrong?Hi Brad,
Thanks for the input, I have tried this now.
1. In the case the guard evaluates to "false", I experience the fields being blank, but not grayed out. So the user is able to refill the input and submit. This means something else in your model causes the "grayed out" behavior.
2. In general, in case you know the conditions to valid input in the client side, you could model this way:
Valid input => the data services run. example guard to service: =ISNULL(@customer)==false
Invalid input => the popup shows. example guard to popup: =ISNULL(in1@customer)==true
3. Is it possible in your case to validate the input before running the first query? This will enable to use the Validation feature as in Input Validation. If possible it's the best way in terms of user experience, in my opinion.
Thanks,
Udi
Maybe you are looking for
-
Cache entrySet EqualsFilter ClassNotFoundException
Hello, While using namedCache.entrySet(new EqualsFilter("attributeAccessor", value), null) I get a ClassNotFoundException. Notes:_ - I have created my cache with the ClassLoader of the class I am trying to find instances for. - Able to namedCache.put
-
How to update popup (drop down) cells in Numbers using Applescript
I understand that the list popups (dropdown lists in cells) cannot be dynamic in Numbers. I have the same dropdown list in multiple cells and tables, and this list often needs to be changed. Its not practical to amend one list, then copy/paste it int
-
Strange – Bottom Part of Windows are Unclickable?
Hey guys, I signed up on this forum just to ask this question. I have been a Mac user since System 6, and have obviously had my fair share of problems, but 99% of the time I find a solution. Until this one... After updating to Leopard a few days afte
-
Restrict size of payload for OSB Proxy
Hi, I have a requirement where I need to restrict the size of payload my OSB Proxy should accept. Example anything > 1 MB should not be accepted. I know there we can set the HTTP " Max Post Size" in weblogic but that would be at Domain level . I wou
-
Can't open any e-books not even the sample one
I have installed Adobe Digital Edition 4 on my PC and am trying to open a e-book,. when I download a book and click to open the message "Fullfuling the "name of the book" pops up. Once the fulfulling is done nothing appears in the Adobe Digital Editi