Issue with condition in Query
Hi,
I have report on a cube which when execute vit all main characteristics(highest level char[plant] to lowest level[material] chars) like plant, external-material grp, material type, project-plant and material the report vil come vit correct values , wen v remove the lowest level ie., material the overall result is changing.
There is a condition for Godown Quantity(godown qty notequalto 0)
Because of the condition on godown qty the overall result is changing.
like:
qty 61-120amt 61-120qty >120----amt >120
10936.06-766957.91-1955762.54--725613332.2(overall-results)
when we drill down are remove drill down any characteristic then some value(6422) of amt61-120 days is shifting to amt>120days,this happening also for qty.
like:
10934.66760535.291955763.94---725619755(overall-results)
so i removed the condition and executed the report, here wat ever char v remove and wat ever char v drill down no effect to over all result means it vil remain unchange.
But asking for no zero values for Godown quantity.
Help me in this....
Thanks in Advance,
Chaitu.
Edited by: chaithu218 on Jun 6, 2011 5:09 PM
Hi,
user555994 wrote:
Hello Lee,
thanks for your reply.
But what is B?I think Lee meant to name the in-line view "B", like this:
SELECT b.app_req_id
FROM (SELECT a.app_req_id,
COUNT(*) cnt -- or maybe COUNT (DISTINCT a.class_symbol)
FROM app_req a
WHERE a.class_symbol IN ('MBA', 'BTECH', 'BBA', 'SENIOR SECONDARY', 'SECONDARY')
GROUP BY a.app_req_id) b -- Alias added here
WHERE b.cnt = 5
;You don't really need either alias. In fact, you don't need the sub-query: the query below is equivalent to the one above:
SELECT app_req_id
FROM app_req
WHERE class_symbol IN ('MBA', 'BTECH', 'BBA', 'SENIOR SECONDARY', 'SECONDARY')
GROUP BY app_req_id
HAVING COUNT (*) -- or maybe COUNT (DISTINCT class_symbol)
= 5
;If the combination (app_req_id, class_symbol) is not unique, then use "COUNT (DISTINT class_symbol)" instead of "COUNT (*)".
There is only 1 table i am reffering to and need to get the ID where values matches in other column. Other column can have the values as that of MBA,BTECH,BBA,SENIOR SECONDARY and SECONDARY.
I don't want to use query as -
Select APP_REQ_ID FROM app_req where class_symbol in ('MBA', 'BTECH', 'BBA', 'SENIOR SECONDARY', 'SECONDARY')
As this will be with either of the match found. I want where all of the match found.That's what the condition "WHERE b.cnt = 5" in the main query is for.
>
Kindly help.If the query above is not doing what you want, then post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data. Point out where the query above is getting the wrong results, and explain, with spoecific examples, how to get the right results in those places.
Similar Messages
-
Performance issue with the Select query
Hi,
I have an issue with the performance with a seclet query.
In table AFRU - AUFNR is not a key field.
So i had selected the low and high values into s_reuck and used it in Where condition.
Still i have an issue with the Performance.
SELECT SINGLE RUECK
RMZHL
IEDD
AUFNR
STOKZ
STZHL
FROM AFRU INTO table t_AFRU
FOR ALL ENTRIES IN T_ZSCPRT100
WHERE RUECK IN S_RUECK AND
AUFNR = T_ZSCPRT100-AUFNR AND
STOKZ = SPACE AND
STZHL = 0.
I had also cheked by createing an index for AUFNR in the table AFRU...it does not help.
Is there anyway that we can declare Key field while declaring the Internal table....?
ANy suggestions to fix the performance issue is apprecaited!
Regards,
KittuHi,
Thank you for your quick response!
Rui dantas, i have lill confusion...this is my code below :
data : t_zscprt type standard table of ty_zscprt,
wa_zscprt type ty_zscprt.
types : BEGIN OF ty_zscprt100,
aufnr type zscprt100-aufnr,
posnr type zscprt100-posnr,
ezclose type zscprt100-ezclose,
serialnr type zscprt100-serialnr,
lgort type zscprt100-lgort,
END OF ty_zscprt100.
data : t_zscprt100 type standard table of ty_zscprt100,
wa_zscprt100 type ty_zscprt100.
Types: begin of ty_afru,
rueck type CO_RUECK,
rmzhl type CO_RMZHL,
iedd type RU_IEDD,
aufnr type AUFNR,
stokz type CO_STOKZ,
stzhl type CO_STZHL,
end of ty_afru.
data : t_afru type STANDARD TABLE OF ty_afru,
WA_AFRU TYPE TY_AFRU.
SELECT AUFNR
POSNR
EZCLOSE
SERIALNR
LGORT
FROM ZSCPRT100 INTO TABLE T_ZSCPRT100
FOR ALL ENTRIES IN T_ZSCPRT
WHERE AUFNR = T_ZSCPRT-PRTNUM
AND SERIALNR IN S_SERIAL
AND LGORT IN S_LGORT.
IF sy-subrc <> 0.
MESSAGE ID 'Z2' TYPE 'I' NUMBER '41'. "BDCG87
stop."BDCG87
ENDIF.
ENDIF.
SELECT RUECK
RMZHL
IEDD
AUFNR
STOKZ
STZHL
FROM AFRU INTO TABLE T_AFRU
FOR ALL ENTRIES IN T_ZSCPRT100
WHERE RUECK IN S_RUECK AND
AUFNR = T_ZSCPRT100-AUFNR AND
STOKZ = SPACE AND
STZHL = 0.
Using AUFNR, get AUFPL from AFKO
Using AUFPL, get RUECK from AFVC
Using RUEKC, read AFRU
In other words, one select joining AFKO <-> AFVC <-> AFRU should get what you want.
This is my select query, would you want me to write another select query to meet this criteria..
From AUFNR> I will get AUFPL from AFKO> BAsed on AUFPL I will get RUECK, based on RUEKC i need to read AFRU..but i need to select few field from AFRu based on AUFNR....
ANy suggestions wil be appreciated!
Regards
Kittu -
Issue with Saving the Query output data in Excel format
Hi,
Recnetly we had upgraded from 4.6c to ECC 6.0.
In ECc 6.0 environment, when user try to export the query output , we are getting only XML option to save the data.
But user want to save the data in EXcel format, he was able to do that in 4.6C.
pleas eprovide some inputs, on this issue.
Thanks,
Sanketh.I cannot for the life of me imagine, why a link to a post in the 'Business One Forum' where one uses ODBC to transfer query-data to MicroSoft Excel is of relevance to the OPs question, even if the same is not a security issue.
Never mind. [note 40155|https://service.sap.com/sap/support/notes/402155] deals with various symptoms in the ALV-Excel combination as as of release 4.6C. There are various others, mostly in components BC-SRV-ALV and BC-ABA-LI - also: I remember that when we upgraded from 4.5B to 4.7C there was an issue with Excel-templates -> the solution was in the release notes somewhere. So, in addition to SMP you might want to check the release notes and/or upgrade guide for solutions.
And yes, moderators ... this is not a security issue, this should go to ECC-Applications/Upgrade. -
Hi Experts,
I am working on conditoinal breaks in adobe.
My requirement is: For a delivery item if i have 3 batched i have to print 3 forms with item data. Here the data of one batch can flow into multiple pages I had applied a conditional break on batch field at the item level of the table(designed with dragging the table into the layout.). this form contains Batch at header and footer. When the data fits in one page conditional breaks are working fine and i am getting 3 forms in the same spool as desired. But when there is more item data conditional breaks are not working properly.
Issue like item data over flow on the footer and batches are not showing up properly according to the page breaks.
Please help on this issue.
Thanks,
AnilGuys, Tell me if my question was not clear or need further information.
-
Issue with condition editor in integration process
Hi,
Now there is the chance to use this feature for the first time.
Seems to be very easy.... No, it isnt!
Variable RETURN (type string) referencing to a field of a message structure is used for this condition:
RETURN!="I001"
So, if the variable does not contain the string I001 the process should use the exception path.
Ok, easy! This works!
But now I have this case to solve with the condition editor.
If the variable does not contain the string I001 OR E002 the process should use the exception path.
So my condition looks like this now:
RETURN!="I001"|RETURN!="E001"
=> If return is NOT I001 OR Return is NOT E001....
Result: semantical check is OK but the process always chooses the exception path now.
Oh, why this?
An alternative RETURN!=("I001"|"E001") does not pass the semantic check.
So I am missing ideas now how to write down the condition for my switch step
as this issue seems to be not discussed in any thread here.
Any help with this strange feature is really appreciated!
Best regards
DirkHi Dirk,
=> If return is NOT I001 OR Return is NOT E001....
for me, your logic is wrong, what you need for your exception receiver is :
=> If return is NOT I001 AND Return is NOT E001....
NON (a OR b) <=> (NON a) AND (NON b).
so for your receiver_ok, you have to use the opposite: so the solution providen by Ramesh, and so to ahve two receiver lines like that:
(Result = "l001" OR Result ="E0011" ) ==> Receiver_ok
<blank_condition (*)> ==> Receiver_Exception
(*) all condition which does not respect the 1st ones: Result = "l001" OR Result ="E0011".
regards.
Mickael -
Issue with Input Ready Query in Integrated Planning.
Hello Everyone,
I've been working on Integrated Planning for some time now. My company recently started using a new server for this work. I find that I am unable to make the queries "input ready". Though I edited the properties of the key figure to "accept user entered values" and chose the option to "start query in change mode", when I execute the query, I find that it the values for the Key Figure cannot be changed. I tried to search in the OSS for any note(s) regarding this issue, but was unable to come up with a solution. Is the problem related to the server or is there some other configuration that I should take care of? Additionally, I would also like to know if there is any method to debug such a problem. I would appreciate it if someone could help me out in this regard.
Thanks,
Jake.Hi,
Please verify the following.
1. Check if the underlying realtime cube is in "Planning Mode:Loading not allowed" state in rsa1
2. If you have created an aggregation level, Check if the most detailed information is available at that Aggregation Level(i.e, include characteristics so that the record can be uniquely identified at that aggregation level).Best would be to include all characteristics and create a query first and ensure it works.Then remove unwanted charecteristics one by one, so that you can fix the issue.Best thing to start with is to create the aggregation level on top the real time cube itself.
3. Check for any characteristic restrictions been defined for the real-time cubes.If so, try removing them temporarily and execute the query
4.Also check if any data slices has been created on the real time cube. If so, try removing it temporarily and then execute the query.
5. Set the property for Planning "Start query in Change Mode"- this is for th Query
6. Set the 'Key Figure' Planning Property to "Can be changed Manually or via Planning Functions" for the appropriate KeyFigures- this is for the key figures
7. Try removing the currency/unit from row/column. Try restricting them in filters rather than in row/columns.
8. Check if there are any locks occurring due to filter., i.e if you are using a filter and even if 1 record of this selection locks with another user's selection you lose the input readiness.
Mostly this should fix the issue. Assign points if this info helps you.
Thanks,
Balaji. -
Performance issue with this complex query
Please ignore this thread(post)
This query fetches a lot of data and takes more than 4 t0 5 hrs to retrieve them.
I have tried to get the explain plan the display cursor and the TKPROF for the same but then the query utilizes more than 100GB temp space and it fails to generate any.
What I have is the spool file which is pasted below along with the query.
Database version: 11g
I'm looking forward for suggestions how to improve the performance of this statement
Please ignore this thread(post)
Edited by: user13319084 on May 30, 2011 12:34 AMYou provide no information that can be used in answering your question on how to improve the query.
In absence of technical information, all that we can discuss is conceptual issues. Like why is the query that complex? A common answer is that the underlying data model lacks the intelligence and this now requires the intelligence to be build into the query.
You need to look at the data model and the query in order to address this performance problem - and make sure that the actual business requirements is clearly identified and understood. -
Hi,
I have extended my controller to add an additional condition to the view object query where I appen an add condition.If there is any kind of exception the add condition keeps on appending without refreshing the query to the orginal one.I have to clear the cache to be able to fix it
below is the peice of code.What should I do to be able to get the original query or refresh it because when i do a getQuery it keeps giving me the query with the earlier condition that I appended and again appends the new condition.
strQuery = oaviewobjectimpl.getQuery();
oaviewobjectimpl.setQuery(strQuery+" AND MtlCategoriesKfv.CONCATENATED_SEGMENTS = '"+strCategory+"'");
RequisitionAMImpl requisitionamimpl1 = (RequisitionAMImpl)oapagecontext.getApplicationModule(oawebbean);
OAViewObjectImpl oaviewobjectimpl = requisitionamimpl.getReqCategoryVO();
String strQuery = oaviewobjectimpl.getQuery();
oaviewobjectimpl.setQuery(strQuery+" AND MtlCategoriesKfv.CONCATENATED_SEGMENTS = '"+strCategory+"'");
oaviewobjectimpl.setWhereClauseParams(null);
oaviewobjectimpl.setWhereClauseParam(0, oapagecontext.getCurrentLanguage());
if(oapagecontext.isLoggingEnabled(1))
oapagecontext.writeDiagnostics(this, "oaviewobjectimpl.getQuery() "+oaviewobjectimpl.getQuery(), 1);
oaviewobjectimpl.executeQuery();
oaviewobjectimpl.last();
if(oapagecontext.isLoggingEnabled(1))
oapagecontext.writeDiagnostics(this, "oaviewobjectimpl.getFetchedRowCount() "+oaviewobjectimpl.getFetchedRowCount(), 1);
ReqCategoryVORowImpl reqcategoryvorowimpl= (ReqCategoryVORowImpl)oaviewobjectimpl.first();
Number categoryId = reqcategoryvorowimpl.getCategoryId();user610276 ,
Y don't u make a custom VO, as you are doing set query, i expect ur changing entire query of seeded VO, better to use custom VO here and attach it to required beans progrmatically.
--Mukul -
Performance issue with a particular query
Hi Experts,
OS version : Sun solaris 5.10
DB version : 10.1.0.4
We have a report designed in SAP BO and for which we have below SQL query written
SELECT
SNOW_DIM.SERV_REP_INCIDENT.INCIDENT_NUMBER,
ISAC_GL_APPL_HIERARCHY_SERVIMP.SOL_NAME
ISAC_GL_APPL_HIERARCHY_SERVIMP.SOL_DOMAIN_NAME
Count(DISTINCT SNOW_DIM.SERV_REP_INCIDENT.INCIDENT_NUMBER),
Count(DISTINCT case when SNOW_DIM.SERV_REP_INCIDENT.STATE_ID=3 then SNOW_DIM.SERV_REP_INCIDENT.INCIDENT_NUMBER end),
SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_GROUP,
case when SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_SUPPORT_GROUP_LEVEL=1 then 'Level 1' when SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_SUPPORT_GROUP_LEVEL=2 then 'Level 2' when SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_SUPPORT_GROUP_LEVEL=3 then 'Level 3' else to_char(SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_SUPPORT_GROUP_LEVEL) end,
SNOW_DIM.SERV_REP_INCIDENT.SHORT_DESCRIPTION,
SNOW_DIM.SERV_REP_INCIDENT.PRIORITY,
SNOW_DIM.SERV_REP_INCIDENT.STATE,
SNOW_DIM.SERV_REP_INCIDENT.OPENED_AT,
BU_EMPLOYEES_INC_AS.BUSINESS_NAME,
TO_CHAR(SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT,'Month'),
TO_CHAR(SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT,'MM'),
TO_CHAR(SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT,'SYYYY'),
SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT
FROM
SNOW_DIM.SERV_REP_INCIDENT,
SNOW_DIM.ISAC_GL_APPL_HIERARCHY ISAC_GL_APPL_HIERARCHY_SERVIMP,
SNOW_DIM.BU_EMPLOYEES BU_EMPLOYEES_INC_AS,
SNOW_DIM.SERV_REP_CONTRACT_SLA,
SNOW_DIM.SERV_REP_TASK_SLA
WHERE
( SNOW_DIM.SERV_REP_INCIDENT.ASSIGNEE_GPN=BU_EMPLOYEES_INC_AS.GPN(+) )
AND ( SNOW_DIM.SERV_REP_INCIDENT.INCIDENT_SYS_ID=SNOW_DIM.SERV_REP_TASK_SLA.TASK(+) )
AND ( SNOW_DIM.SERV_REP_TASK_SLA.SLA=SNOW_DIM.SERV_REP_CONTRACT_SLA.SYS_ID(+) )
AND ( ISAC_GL_APPL_HIERARCHY_SERVIMP.APPL_ID(+)=SNOW_DIM.SERV_REP_INCIDENT.SERVICE_ID )
AND
ISAC_GL_APPL_HIERARCHY_SERVIMP.APPL_ENVIRONMENT
= 'PROD'
AND
SNOW_DIM.SERV_REP_INCIDENT.TYPE_X = 'Incident'
AND
case
WHEN SNOW_DIM.SERV_REP_INCIDENT.DUPLICATE_INCIDENT = 1 then 'Yes'
WHEN SNOW_DIM.SERV_REP_INCIDENT.DUPLICATE_INCIDENT = 0 then 'No'
end = 'No'
AND
SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_GROUP IN ( 'WMSB_IT_CH_Business_Support_1_L2','WMSB_IT_CH_Business_Support_2_HW_L2','WMSB_IT_CH_Business_Support_2_L2','WMSB_IT_CH_Business_Support_3_L2','WMSB_IT_CH_Business_Support_4_CEFS_L2','WMSB_IT_CH_Business_Support_4_L2','WMSB_IT_CH_Business_Support_5_L2','WMSB_IT_APAC_Production_Support_L2','WMSB_IT_EMEA_ESS_CLAS_Team_L2','WMSB_IT_US_Production_Support_L2','WMSB_IT_CH_AoC_Decentral_L2','WMSB_IT_CH_AoC_Mainframe_L2','WMSB_IT_GLOB_AoC_Decentral_L2' )
OR
SNOW_DIM.SERV_REP_CONTRACT_SLA.TYPE_X = 'SLA'
AND
SNOW_DIM.SERV_REP_TASK_SLA.STAGE IN ( 'in_progress','achieved','breached','completed','paused' )
OR
SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_GROUP NOT IN ( 'WMSB_IT_CH_Business_Support_1_L2','WMSB_IT_CH_Business_Support_2_HW_L2','WMSB_IT_CH_Business_Support_2_L2','WMSB_IT_CH_Business_Support_3_L2','WMSB_IT_CH_Business_Support_4_CEFS_L2','WMSB_IT_CH_Business_Support_4_L2','WMSB_IT_CH_Business_Support_5_L2','WMSB_IT_APAC_Production_Support_L2','WMSB_IT_EMEA_ESS_CLAS_Team_L2','WMSB_IT_US_Production_Support_L2','WMSB_IT_CH_AoC_Decentral_L2','WMSB_IT_CH_AoC_Mainframe_L2','WMSB_IT_GLOB_AoC_Decentral_L2','WMSB_IT_GLOB_Service_Desk_L1','WMSB_IT_EMEA_ESS_CLAS_Team_L1' )
AND
SNOW_DIM.SERV_REP_TASK_SLA.ASSIGNMENT_GROUP_NAME IN ( 'WMSB_IT_CH_Business_Support_1_L2','WMSB_IT_CH_Business_Support_2_HW_L2','WMSB_IT_CH_Business_Support_2_L2','WMSB_IT_CH_Business_Support_3_L2','WMSB_IT_CH_Business_Support_4_CEFS_L2','WMSB_IT_CH_Business_Support_4_L2','WMSB_IT_CH_Business_Support_5_L2','WMSB_IT_APAC_Production_Support_L2','WMSB_IT_EMEA_ESS_CLAS_Team_L2','WMSB_IT_US_Production_Support_L2','WMSB_IT_CH_AoC_Decentral_L2','WMSB_IT_CH_AoC_Mainframe_L2','WMSB_IT_GLOB_AoC_Decentral_L2' )
AND
SNOW_DIM.SERV_REP_TASK_SLA.STAGE IN ( 'in_progress','achieved','breached','completed','paused' )
AND
ISAC_GL_APPL_HIERARCHY_SERVIMP.SOL_DOMAIN_NAME
IN ('Partner, Product & Contract Management')
AND
SNOW_DIM.SERV_REP_INCIDENT.STATE IN ( 'Assigned','Closed','In Progress','New','On Hold','Resolved' )
AND
( ( SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT ) between (ADD_MONTHS(trunc(sysdate,'MM'),-6)) AND (trunc(sysdate,'MM')-0.0002/24)
GROUP BY
SNOW_DIM.SERV_REP_INCIDENT.INCIDENT_NUMBER,
ISAC_GL_APPL_HIERARCHY_SERVIMP.SOL_NAME
ISAC_GL_APPL_HIERARCHY_SERVIMP.SOL_DOMAIN_NAME
SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_GROUP,
case when SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_SUPPORT_GROUP_LEVEL=1 then 'Level 1' when SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_SUPPORT_GROUP_LEVEL=2 then 'Level 2' when SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_SUPPORT_GROUP_LEVEL=3 then 'Level 3' else to_char(SNOW_DIM.SERV_REP_INCIDENT.ASSIGNED_SUPPORT_GROUP_LEVEL) end,
SNOW_DIM.SERV_REP_INCIDENT.SHORT_DESCRIPTION,
SNOW_DIM.SERV_REP_INCIDENT.PRIORITY,
SNOW_DIM.SERV_REP_INCIDENT.STATE,
SNOW_DIM.SERV_REP_INCIDENT.OPENED_AT,
BU_EMPLOYEES_INC_AS.BUSINESS_NAME,
TO_CHAR(SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT,'Month'),
TO_CHAR(SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT,'MM'),
TO_CHAR(SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT,'SYYYY'),
SNOW_DIM.SERV_REP_INCIDENT.CLOSED_AT;
Users reporting that the report is running slow and I have generated explain plan for the same and it is as below
PLAN_TABLE_OUTPUT
Plan hash value: 2068297582
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 13216 | 38M| | 245K (1)| 00:13:02 |
| 1 | SORT GROUP BY | | 13216 | 38M| 103M| 245K (1)| 00:13:02 |
|* 2 | FILTER | | | | | | |
| 3 | NESTED LOOPS OUTER | | 13216 | 38M| | 232K (1)| 00:12:21 |
|* 4 | FILTER | | | | | | |
| 5 | NESTED LOOPS OUTER | | 508 | 1495K| | 232K (1)| 00:12:21 |
|* 6 | FILTER | | | | | | |
| 7 | NESTED LOOPS OUTER | | 508 | 1477K| | 232K (1)| 00:12:21 |
|* 8 | HASH JOIN | | 96 | 270K| | 232K (1)| 00:12:21 |
|* 9 | MAT_VIEW ACCESS FULL | ISAC_GL_APPL_HIERARCHY | 6 | 4230 | | 3884 (1)| 00:00:13 |
|* 10 | TABLE ACCESS BY INDEX ROWID| SERV_REP_INCIDENT | 802K| 1669M| | 228K (1)| 00:12:08 |
|* 11 | INDEX RANGE SCAN | I7_SERV_REP_INCIDENT_N | 1368K| | | 3437 (3)| 00:00:11 |
| 12 | TABLE ACCESS BY INDEX ROWID | SERV_REP_TASK_SLA | 5 | 455 | | 1 (0)| 00:00:01 |
|* 13 | INDEX RANGE SCAN | I6_SERV_REP_TASK_SLA | 5 | | | 0 (0)| 00:00:01 |
| 14 | TABLE ACCESS BY INDEX ROWID | SERV_REP_CONTRACT_SLA | 1 | 37 | | 1 (0)| 00:00:01 |
|* 15 | INDEX RANGE SCAN | I1_SERV_REP_CONTRACT_SLA | 1 | | | 0 (0)| 00:00:01 |
| 16 | TABLE ACCESS BY INDEX ROWID | BU_EMPLOYEES | 26 | 858 | | 1 (0)| 00:00:01 |
|* 17 | INDEX RANGE SCAN | I01_BU_EMPLOYEES | 26 | | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - filter(ADD_MONTHS(TRUNC(SYSDATE@!,'fmmm'),-6)<=TRUNC(SYSDATE@!,'fmmm')-.000011574074074074074074074074074
07407407407)
4 - filter("SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_APAC_Production_Support_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_AoC_Decentral_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_AoC_Mainframe_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_Business_Support_1_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_Business_Support_2_HW_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_Business_Support_2_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_Business_Support_3_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_Business_Support_4_CEFS_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_Business_Support_4_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_CH_Business_Support_5_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_EMEA_ESS_CLAS_Team_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_GLOB_AoC_Decentral_L2' OR
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"='WMSB_IT_US_Production_Support_L2' OR "T"."TYPE_X"='SLA' AND
("SERV_REP_TASK_SLA"."STAGE"='achieved' OR "SERV_REP_TASK_SLA"."STAGE"='breached' OR
"SERV_REP_TASK_SLA"."STAGE"='completed' OR "SERV_REP_TASK_SLA"."STAGE"='in_progress' OR
"SERV_REP_TASK_SLA"."STAGE"='paused') OR ("SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_APAC_Production_S
upport_L2' OR "SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_AoC_Decentral_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_AoC_Mainframe_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_Business_Support_1_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_Business_Support_2_HW_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_Business_Support_2_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_Business_Support_3_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_Business_Support_4_CEFS_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_Business_Support_4_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_CH_Business_Support_5_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_EMEA_ESS_CLAS_Team_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_GLOB_AoC_Decentral_L2' OR
"SERV_REP_TASK_SLA"."ASSIGNMENT_GROUP_NAME"='WMSB_IT_US_Production_Support_L2') AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_Business_Support_1_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_Business_Support_2_HW_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_Business_Support_2_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_Business_Support_3_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_Business_Support_4_CEFS_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_Business_Support_4_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_Business_Support_5_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_APAC_Production_Support_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_EMEA_ESS_CLAS_Team_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_US_Production_Support_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_AoC_Decentral_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_CH_AoC_Mainframe_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_GLOB_AoC_Decentral_L2' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_GLOB_Service_Desk_L1' AND
"SERV_REP_INCIDENT"."ASSIGNED_GROUP"<>'WMSB_IT_EMEA_ESS_CLAS_Team_L1')
6 - filter("SERV_REP_TASK_SLA"."STAGE"='achieved' OR "SERV_REP_TASK_SLA"."STAGE"='breached' OR
"SERV_REP_TASK_SLA"."STAGE"='completed' OR "SERV_REP_TASK_SLA"."STAGE"='in_progress' OR
"SERV_REP_TASK_SLA"."STAGE"='paused')
8 - access("ISAC_GL_APPL_HIERARCHY_SERVIMP"."APPL_ID"="SERV_REP_INCIDENT"."SERVICE_ID")
9 - filter("ISAC_GL_APPL_HIERARCHY_SERVIMP"."APPL_ENVIRONMENT"='PROD' AND
"ISAC_GL_APPL_HIERARCHY_SERVIMP"."SOL_DOMAIN_NAME"='Partner, Product & Contract Management')
10 - filter("SERV_REP_INCIDENT"."TYPE_X"='Incident' AND ("SERV_REP_INCIDENT"."STATE"='Assigned' OR
"SERV_REP_INCIDENT"."STATE"='Closed' OR "SERV_REP_INCIDENT"."STATE"='In Progress' OR
"SERV_REP_INCIDENT"."STATE"='New' OR "SERV_REP_INCIDENT"."STATE"='On Hold' OR
"SERV_REP_INCIDENT"."STATE"='Resolved') AND CASE "SERV_REP_INCIDENT"."DUPLICATE_INCIDENT" WHEN 1 THEN 'Yes'
WHEN 0 THEN 'No' END ='No')
11 - access("SERV_REP_INCIDENT"."CLOSED_AT">=ADD_MONTHS(TRUNC(SYSDATE@!,'fmmm'),-6) AND
"SERV_REP_INCIDENT"."CLOSED_AT"<=TRUNC(SYSDATE@!,'fmmm')-.00001157407407407407407407407407407407407407)
13 - access("SERV_REP_INCIDENT"."INCIDENT_SYS_ID"="SERV_REP_TASK_SLA"."TASK"(+))
15 - access("SERV_REP_TASK_SLA"."SLA"="T"."SYS_ID"(+))
17 - access("SERV_REP_INCIDENT"."ASSIGNEE_GPN"="T"."GPN"(+))
From above plan I could analyze that indexes on table SERV_REP_INCIDENT are not being used on columns ASSIGNED_GROUP, STATE, STAGE etc as they are using IN and NOT IN clauses in where condition and because of this reason cost at id 10 increased to 228k.
now, i would like to know the advise from you people what can be done to make it better. also I read that IN clause can use indexes if data is more. In my case is there any way that I can force those IN and NOT IN clauses to use index? (we have indexes created on all those columns used by SERV_REP_INCIDENT table)
Thanks in advance.From above plan I could analyze that indexes on table SERV_REP_INCIDENT are not being used on columns ASSIGNED_GROUP, STATE, STAGE etc as they are using IN and NOT IN clauses in where condition and >because of this reason cost at id 10 increased to 228k.Good job isolating the (estimated) spike in resources by high estimates! You can try to minimize the work for this step in several ways, some simple and some extreme:
Try a composite function-based index on SERV_REP_INCIDENT for the IN clauses.
Another long-term possiblity is to partition the SERV_REP_INCIDENT table by the IN values if you have the license. This may not be the best partionining option; partitioning needs to be conisdered carefully before implementation.
How long does the query take to execute? Another possiblity is to to create a materialized view on the query you posted, using the automated query rewrite to automatically use it (possibly indexed). -
Issue with one Select Query in PBS Archive Translation Tool
Hi All,
Iam having X mark symbol against the select query from EKET table
This is the select query in my actual program and when i convert this using PBS Archive Translation Tool i have a X mark against this select query
SELECT SINGLE BANFN FROM EKET INTO V_BANFN WHERE EBELN = BSEG-EBELN AND
EBELP = BSEG-EBELP AND
ETENR = '0001'.
I guess i have to modify this select query because EKET table has transaction data and we cannot ignore this X mark.
Let me know if iam wrong
ALso , iam confused whether a select query with X needs to fixed or can be ignored
ThanksHi ,
Any Suggestions
Thanks -
Issue with Condition dependent PO output
Hi,
We're implementing Extended classic version for SRM 5.0.
As part of the output determination, we need to determine 2 print outputs for Purchase orders. We have 2 purchase organizations and both of them need to have 2 different smartforms for the print. So, we're designing 2 different smartforms. In order to assign the smartforms as per the purchasing org, I've used "Condition dependent output" in IMG settings. But whenever I try to print, it picks up the standard form from the IMG node "Define actions for Document Output" where the standard form is maintained. We did not maintain the custom form in this node because we have 2 forms for print.
I would like the program to pick up the custom form maintained in " Condition dependent document output".
I understand that we could use the BADI alternatively. But any help in resolving this problem through the configuration is highly appreciated.
Regards,
LakshmiHi,
Pls implement the badi "BADI BBP_OUTPUT_CHANGE_SF".
For sample code/pointers,see the foll links;
Re: How to change default smartform triggered while printing for shopping cart
Re: How to change default smartform triggered while printing for shopping cart
Re: Smartform display
Re: Add a Printer ? -> LP01
Re: Condition Dependent Document Output
Re: Add a Printer ? -> LP01
sending Smart form to Printer in SRM
Re: SRM PO's to be printed out with the PO
BR,
Disha. -
Issue with Condition step in workflow
Hi Guys,
I am using a condition step to check the value of a variable A. If the value of A is 7 , then the wf will follow the true branch. If not it will go down the false branch. This is as simple as that. But the wf was going down the wrong path when i tried to test it. Meaning even if the value of A is 7, it was going down the false branch.
So i simulated that condition in the editor and manually entered a value of 7 for A and still it is going down the false branch.
I havent seen this issue before. Have any of you? I ahve tried clearing buffer, creating new version of the wf. But nothing has worked. I even tried to reverse the condition check. Like i tried to give IF A not equal to 7. Still its going down the worng branch.
Any ideas? The variable if declared of the type SYST-PEXPI. And the funny part is this wf is working fine in production.
HarishHi Harish,
Sometimes it happens that the value of the variable is not yet populated when the workflow is at the COndition step. Hence it always follow the same path irrespective of the actual value that needs to come.
Please check if the container element you are checking is having the correct value when at the COndition step. Else you can try adding a wait for few seconds step before the condition step and then test.
I guess the performance of the Production system is better than the dev or quality system so you are not facing the issue there.
Regards,
Saumya -
Issue with conditional formatting in XML publisher report
Hi All,
I am working on a XML report where in I am required to use conditional formatting to highlight changes, if there is change in any of the column value. The condition is required to be implemented on a text column as well as a number column. I have tried to use the conditional formatting available in the BI Publisher Release 10.1.3.2, wherein I have compared the two columns, and when they are not equal to, then formatting should change to red color; but the same is not working in the excel output.
Can anybody help here?
Thanks,
NitinCross conditional formatting ie formatting based on some other column is not supported in pivot view.
There are some workaround.See if that helps
http://www.obinotes.com/2010/03/pivot-view-conditional-formatting-in.html
Regards,
Sandeep -
Issue with "Select Distinct" query in Oracle 10g against Oracle 9i
Hi,
I would appreciate if some one help me here because it is really urgent.
We are upgrading our database from 9i to 10g.
There are the "Select distinct" queries in the code which populated the grid on the applications screens. We found a difference in 9i and 10g the way the result is populated for these queries. If "Select Distinct" query wihtout a order by clause is executed in 9i then the result is automatically sorted. But Oracle 10g does not do this.
We can change the queries adding order by clause but we are almost at the end of the testing and want to know if there is any way that we can do this from database settings. Would there be any impact of these settings change on overall operation of Oracle 10g?
I would appreciate if some one can help me here.
Thanks,
Dineshthen the result is automatically sorted.No. Oracle may have done a sort operation to perform the distinct, but it still did not guarantee the order of your results.
In 10g and in 9i, if you want your results in a certain order you must use order by. -
Urgent: Issue with Dynamic VO Query in LoV
Hi All,
We have created an LoV based on a Vo. We have put a dummy query initially and are trying to change the VO query at run time.(using vo.setQuery method). But surprsingly LoV display is still as per static query.And when I do vo.getAllRowsInRange and see the actual values the results are as per the
Dynamic query.
Basicall I want to kniw:
Is it possibble to change the entire VO query dynamically and use that in LoV? But its working perfectly fine outside LoV .
Apprecite quick reponnce in this.
Thanks
AnnaduraiThank You,
Below is a method in AM for whcich the LoV and VO are associated. This method gets trigeered from LoV controller.
public void initVo()
String http="http://schemas.xmlsoap.org/soap/envelope/";
String qry=" select * from( SELECT "+
"extract(value(p),'//altContactName/text()','xmlns:soap="+http+"').getStringval() one "+
",extract(value(p),'//customerNumber/text()','xmlns:soap="+http+"').getStringval() two "+
",extract(value(p),'//csystemDescription/text()','xmlns:soap="+http+"').getStringval() three "+
",extract(value(p),'//itemClass/text()','xmlns:soap="+http+"').getStringval() four "+
" FROM TABLE(XMLSEQUENCE("+
" EXTRACT"+
" (Pkg.proc('aaaaa'),'//result')"+
" )"+
" ) p)";
lovVO2Impl vo =getlovVO2_1();
vo.setQuery(qry);
vo.setMaxFetchSize(-1);
vo.setWhereClause(null);
vo.setWhereClauseParams(null);
vo.executeQuery();
//vo.setRangeSize(-1);
//vo.executeQuery();
Row[] rows=vo.getAllRowsInRange();
System.out.println("Lenght:"+rows.length);
for(int rowIndex = 0; rowIndex < rows.length; rowIndex++)
String one = (String)rows[rowIndex].getAttribute("One");
String two = (String)rows[rowIndex].getAttribute("Two");
System.out.println("One:"+one);
System.out.println("Two:"+two);
System.out.println("in vo.getQuery:"+vo.getQuery());
One more thing i noticed is, if i dont add any filtering criteria and direclty click 'Go' its woeking fine, i.e getting values from the dynamic query.
But if i add some filtering criteria like '%' its using the static query and binding the filtering criteria to that query rather than dynamic query.
Thanks in advance
Annadurai
Maybe you are looking for
-
Adobe Acrobat 8.0 Pro error
Hello. I have a persisting problem with Acrobat 8.0 professional with the only user of a single licence in our company. Since we needed to change our hardware I've deactivated it on the old computer with no problem and installed it on a new one (OS i
-
hi gurus i am new to supplier performance ration , can anyone share idear generally wat is supplier performance , what measure should be taken , how it is calculated , how should configure in SAP REGARDS leo
-
SSRS 2012 Sharepoint Mode ItemNotFoundException
Hello, I have a big problem with the new SSRS 2012 (Sharepoint Mode) at one of my customers Sharepoint 2010 farm and I hope somebody can help. I get always the following error message if i try to open a report over the Report Viewer Webpart or try to
-
Enhacmnet and addition of new sub types
Hi SAP gurus 1) I want to add one more subtype in the infotype 28 Internal mediacl services.The sub type will be named as Family history and and in all aspect it would be same as other sub type like 0001. In this sub type i want to add three Fields A
-
Flash Video Play in a page like Youtube
Hello, I post a lot of videos on my blog and always have to have people click on a link that opens a new window to play my flash videos. i do this because if i were to place multiple flash videos onto a page, they would all immediately start download