Getting Time-Out at Select Query
Dear All,
I am getting Time-Out at particular Select Query.
This error i am getting since last 3 days, before it was working fine. And there is no any change made to program in last 3 days.
select a~qmnum
matnr
kunum
iwerk
spart
into corresponding fields of iviqmel
from ( qmih as a
inner join qmel as b on b~qmnum = a~qmnum )
for all entries in i_tab
where qmart in ('FS', 'ZP')
and iwerk = i_tab-iwerk
and matnr = i_tab-matnr
and kunum = i_tab-kunum
and spart = i_tab-spart.
append iviqmel.
endselect.
In Program table QMEL also using the proper Index.
Can you please give me any suggestion that how to come out from this issue.
Regards,
Dharmesh
Hi Rob,
I run the SQL Trace also, Query is using correct Index.
and I had also chenge the select query.
if not i_tab[] is initial.
select a~matnr a~kunum a~spart
b~qmnum b~iwerk
into corresponding fields of table iviqmel
from qmel as a inner join
qmih as b
on a~qmnum = b~qmnum
for all entries in i_tab
where a~qmart in ('FS', 'ZP')
and a~matnr = i_tab-matnr
and a~kunum = i_tab-kunum
and a~spart = i_tab-spart
and b~iwerk = i_tab-iwerk.
endif.
even its geving time out error.
Regards,
Dharmesh
Similar Messages
-
Sdn
Im getting Time out for one query while excuting in PRD system. That query filter field setting is Only values Infoprovider. But DEV Im able to excute the same query, but in this system that field setting is Only posted values in navigation
advance wishesHi Kirun,
I'm sure, it can be done in dev because the data is not big like in the production.
You need to tune up your info provider (info cube/ods).
I had once the problem like you, i can run in dev, but not in prd.
due I use ODS, so that I tuned it up by creating Index. And after it, it can run well.
If it's Info cube, you can create aggregate / compress it.
Hope it helps you a lot.
Br,
Daniel N. -
Performance issue in Report (getting time out error)
Hi experts,
I am doing Performance for a Report (getting time out error)
Please see the code below and .
while looping internal table IVBAP after 25 minutes its showing time out error at this poit ->
SELECT MAX( ERDAT ) .
please send alternate code for this .
Advance thanks
from
Nagendra
Get Sales Order Details
CLEAR IVBAP.
REFRESH IVBAP.
SELECT VBELN POSNR MATNR NETWR KWMENG WERKS FROM VBAP
INTO CORRESPONDING FIELDS OF TABLE IVBAP
FOR ALL ENTRIES IN IVBAK
WHERE VBELN = IVBAK-VBELN
AND MATNR IN Z_MATNR
AND WERKS IN Z_WERKS
AND ABGRU = ' '.
Check for Obsolete Materials - Get Product Hierarhy/Mat'l Description
SORT IVBAP BY MATNR WERKS.
CLEAR: WK_MATNR, WK_WERKS, WK_PRDHA, WK_MAKTX,
WK_BLOCK, WK_MMSTA, WK_MSTAE.
LOOP AT IVBAP.
CLEAR WK_INVDATE. "I6677.sn
SELECT MAX( ERDAT ) FROM VBRP INTO WK_INVDATE WHERE
AUBEL EQ IVBAP-VBELN AND
AUPOS EQ IVBAP-POSNR.
IF SY-SUBRC = 0.
MOVE WK_INVDATE TO IVBAP-INVDT.
MODIFY IVBAP.
ENDIF. "I6677.e n
SELECT SINGLE * FROM MBEW WHERE "I6759.sn
MATNR EQ IVBAP-MATNR AND
BWKEY EQ IVBAP-WERKS AND
BWTAR EQ SPACE.
IF SY-SUBRC = 0.
MOVE MBEW-STPRS TO IVBAP-STPRS.
IVBAP-TOT = MBEW-STPRS * IVBAP-KWMENG.
MODIFY IVBAP.
ENDIF. "I6759.en
IF IVBAP-MATNR NE WK_MATNR OR IVBAP-WERKS NE WK_WERKS.
CLEAR: WK_BLOCK, WK_MMSTA, WK_MSTAE, WK_PRDHA, WK_MAKTX.
MOVE IVBAP-MATNR TO WK_MATNR.
MOVE IVBAP-WERKS TO WK_WERKS.
SELECT SINGLE MMSTA FROM MARC INTO MARC-MMSTA
WHERE MATNR = WK_MATNR
AND WERKS = WK_WERKS.
IF NOT MARC-MMSTA IS INITIAL.
MOVE '*' TO WK_MMSTA.
ENDIF.
SELECT SINGLE LVORM PRDHA MSTAE MSTAV FROM MARA
INTO (MARA-LVORM, MARA-PRDHA, MARA-MSTAE, MARA-MSTAV)
WHERE MATNR = WK_MATNR.
IF ( NOT MARA-MSTAE IS INITIAL ) OR
( NOT MARA-MSTAV IS INITIAL ) OR
( NOT MARA-LVORM IS INITIAL ).
MOVE '*' TO WK_MSTAE.
ENDIF.
MOVE MARA-PRDHA TO WK_PRDHA.
SELECT SINGLE MAKTX FROM MAKT INTO WK_MAKTX
WHERE MATNR = WK_MATNR
AND SPRAS = SY-LANGU.
ENDIF.
IF Z_BLOCK EQ 'B'.
IF WK_MMSTA EQ ' ' AND WK_MSTAE EQ ' '.
DELETE IVBAP.
CONTINUE.
ENDIF.
ELSEIF Z_BLOCK EQ 'U'.
IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
DELETE IVBAP.
CONTINUE.
ENDIF.
ELSE.
IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
MOVE '*' TO WK_BLOCK.
ENDIF.
ENDIF.
IF WK_PRDHA IN Z_PRDHA. "I4792
MOVE WK_BLOCK TO IVBAP-BLOCK.
MOVE WK_PRDHA TO IVBAP-PRDHA.
MOVE WK_MAKTX TO IVBAP-MAKTX.
MODIFY IVBAP.
ELSE. "I4792
DELETE IVBAP. "I4792
ENDIF. "I4792
IF NOT Z_ALNUM[] IS INITIAL. "I9076
SELECT SINGLE * FROM MAEX "I9076
WHERE MATNR = IVBAP-MATNR "I9076
AND ALNUM IN Z_ALNUM. "I9076
IF SY-SUBRC <> 0. "I9076
DELETE IVBAP. "I9076
ENDIF. "I9076
ENDIF. "I9076
ENDLOOP.Hi Nagendra!
Get Sales Order Details
CLEAR IVBAP.
REFRESH IVBAP.
check ivbak is not initial
SELECT VBELN POSNR MATNR NETWR KWMENG WERKS FROM VBAP
INTO CORRESPONDING FIELDS OF TABLE IVBAP
FOR ALL ENTRIES IN IVBAK
WHERE VBELN = IVBAK-VBELN
AND MATNR IN Z_MATNR
AND WERKS IN Z_WERKS
AND ABGRU = ' '.
Check for Obsolete Materials - Get Product Hierarhy/Mat'l Description
SORT IVBAP BY MATNR WERKS.
CLEAR: WK_MATNR, WK_WERKS, WK_PRDHA, WK_MAKTX,
WK_BLOCK, WK_MMSTA, WK_MSTAE.
avoid select widin loop. instead do selection outside loop.u can use read statement......and then loop if required.
LOOP AT IVBAP.
CLEAR WK_INVDATE. "I6677.sn
SELECT MAX( ERDAT ) FROM VBRP INTO WK_INVDATE WHERE
AUBEL EQ IVBAP-VBELN AND
AUPOS EQ IVBAP-POSNR.
IF SY-SUBRC = 0.
MOVE WK_INVDATE TO IVBAP-INVDT.
MODIFY IVBAP.
ENDIF. "I6677.e n
SELECT SINGLE * FROM MBEW WHERE "I6759.sn
MATNR EQ IVBAP-MATNR AND
BWKEY EQ IVBAP-WERKS AND
BWTAR EQ SPACE.
IF SY-SUBRC = 0.
MOVE MBEW-STPRS TO IVBAP-STPRS.
IVBAP-TOT = MBEW-STPRS * IVBAP-KWMENG.
MODIFY IVBAP.
ENDIF. "I6759.en
IF IVBAP-MATNR NE WK_MATNR OR IVBAP-WERKS NE WK_WERKS.
CLEAR: WK_BLOCK, WK_MMSTA, WK_MSTAE, WK_PRDHA, WK_MAKTX.
MOVE IVBAP-MATNR TO WK_MATNR.
MOVE IVBAP-WERKS TO WK_WERKS.
SELECT SINGLE MMSTA FROM MARC INTO MARC-MMSTA
WHERE MATNR = WK_MATNR
AND WERKS = WK_WERKS.
IF NOT MARC-MMSTA IS INITIAL.
MOVE '*' TO WK_MMSTA.
ENDIF.
SELECT SINGLE LVORM PRDHA MSTAE MSTAV FROM MARA
INTO (MARA-LVORM, MARA-PRDHA, MARA-MSTAE, MARA-MSTAV)
WHERE MATNR = WK_MATNR.
IF ( NOT MARA-MSTAE IS INITIAL ) OR
( NOT MARA-MSTAV IS INITIAL ) OR
( NOT MARA-LVORM IS INITIAL ).
MOVE '*' TO WK_MSTAE.
ENDIF.
MOVE MARA-PRDHA TO WK_PRDHA.
SELECT SINGLE MAKTX FROM MAKT INTO WK_MAKTX
WHERE MATNR = WK_MATNR
AND SPRAS = SY-LANGU.
ENDIF.
IF Z_BLOCK EQ 'B'.
IF WK_MMSTA EQ ' ' AND WK_MSTAE EQ ' '.
DELETE IVBAP.
CONTINUE.
ENDIF.
ELSEIF Z_BLOCK EQ 'U'.
IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
DELETE IVBAP.
CONTINUE.
ENDIF.
ELSE.
IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
MOVE '*' TO WK_BLOCK.
ENDIF.
ENDIF.
IF WK_PRDHA IN Z_PRDHA. "I4792
MOVE WK_BLOCK TO IVBAP-BLOCK.
MOVE WK_PRDHA TO IVBAP-PRDHA.
MOVE WK_MAKTX TO IVBAP-MAKTX.
MODIFY IVBAP.
ELSE. "I4792
DELETE IVBAP. "I4792
ENDIF. "I4792
IF NOT Z_ALNUM[] IS INITIAL. "I9076
SELECT SINGLE * FROM MAEX "I9076
WHERE MATNR = IVBAP-MATNR "I9076
AND ALNUM IN Z_ALNUM. "I9076
IF SY-SUBRC 0. "I9076
DELETE IVBAP. "I9076
ENDIF. "I9076
ENDIF. "I9076
endloop.
U have used many select queries widin loop-endloop which is a big hindrance as far as performance is concerned.Avoid such practice.
Thanks
Deepika -
Getting Time Out Dump while Executing Report
Hello ABAP Experts,
I am trying to execute a report, but while debugging I am getting time out dump on 2nd SELECT statement.
SELECT vbeln
matnr
werks
lgort
volum
lgnum
FROM lips
INTO TABLE i_volume
FOR ALL ENTRIES IN i_likp
WHERE vbeln EQ i_likp-vbeln
AND lgort IN s_lgort
AND werks IN s_werks.
IF i_volume[] IS INITIAL.
MESSAGE text-001 TYPE 'I'.
STOP.
ENDIF.
SORT i_volume BY vbeln.
SELECT matnr
meinh
umrez
umren
FROM marm
INTO TABLE gt_marm
FOR ALL ENTRIES IN i_volume
WHERE matnr = i_volume-matnr
AND meinh = 'ME' OR meinh = 'KG'.
IF sy-subrc EQ 0.
SORT gt_marm BY matnr.
DELETE ADJACENT DUPLICATES FROM gt_marm COMPARING matnr.
ENDIF.
Can you please help me out there ?
Thanks
SwanandHi Swanand,
try
WHERE matnr = i_volume-matnr
AND ( meinh = 'ME' OR meinh = 'KG' ).
you should also filter first materials to a temporary table with only distinct matnr entries and use it instead of i_volume.
regards,
Edgar -
CV04N takes long time to process select query on DRAT table
Hello Team,
While using CV04N to display DIR's, it takes long time to process select query on DRAT table. This query includes all the key fields. Any idea as to how to analyse this?
Thanks and best regards,
Bobby
Moderator message: please read the sticky threads of this forum, there is a lot of information on what you can do.
Edited by: Thomas Zloch on Feb 24, 2012Be aware that XP takes approx 1gb of your RAM leaving you with 1gb for whatever else is running. MS Outlook is also a memory hog.
To check Virtual Memory Settings:
Control Panel -> System
System Properties -> Advanced Tab -> Performance Settings
Performance Options -> Adavanced Tab - Virtual Memory section
Virtual Memory -
what are
* Initial Size
* Maximum Size
In a presentation at one of the Hyperion conferences years ago, Mark Ostroff suggested that the initial be set to the same as Max. (Max is typically 2x physical RAM)
These changes may provide some improvement. -
Getting Dump from a select query
Dear All,
Am selecting records from KEKO and storing into E1KEKO internal table. But am getting dump error. I need to send those E1KEKO records as idoc. Kindly help me out how to fix this dump.
SELECT * INTO CORRESPONDING FIELDS OF e1keko
FROM keko
WHERE keko~matnr = p_matnr
AND keko~werks = p_werks
AND keko~bwtar = 'Z06'
AND keko~bwvar = 'Z06'.
CLEAR t_idoc_data.
t_idoc_data-segnam = c_segnam_e1keko.
t_idoc_data-mandt = sy-mandt.
t_idoc_data-sdata = e1keko.
APPEND t_idoc_data.
CLEAR e1keph.
endselect
Thanks in advance.
AnandhanHi,
If i use the below select query in a test program, that time also am getting the same dump.
DATA: e1keph TYPE e1keph,
e1keko TYPE e1keko.
SELECT * INTO CORRESPONDING FIELDS OF e1keko
FROM keko
WHERE keko~matnr = '000000000010801071'.
endselect.
(code}
The dump showing the below message
The reason for the exception is:
In a SELECT access, the read file could not be placed in the target
field provided.
Either the conversion is not supported for the type of the target field
the target field is too small to include the value, or the data does no
have the format required for the target field.
Thanks in advance
Anandhan -
How to do outer join select query for an APEX report
Hello everyone,
I am Ann.
I have one select statement that calculate the statistics for one month(October 2012 in this example)
select ph.phase_number
, sum ( (case
WHEN ph.date_finished IS NULL OR ph.date_finished > last_day(TO_DATE('Oct 2012','MON YYYY'))
THEN last_day(TO_DATE('Oct 2012','MON YYYY'))
ELSE ph.date_finished
END )
- ph.date_started + 1) / count(def.def_id) as avg_days
from phase_membership ph
inner join court_engagement ce on ph.mpm_eng_id = ce.engagement_id
inner join defendant def on ce.defendant_id = def.def_id
where def.active = 1
and ph.date_started <= last_day(TO_DATE('Oct 2012','MON YYYY'))
and ph.active = 1
and UPPER(ce.court_name) LIKE '%'
group by rollup(phase_number)
Result is as below
Phase_Number AVG_DAYS
Phase One 8.6666666666666667
Phase Two 14.6
Phase Three 12
11.4615365
I have other select list mainly list the months between two date value.
select to_char(which_month, 'MON YYYY') as display_month
from (
select add_months(to_date('Aug 2012','MON YYYY'), rownum-1) which_month
from all_objects
where
rownum <= months_between(to_date('Oct 2012','MON YYYY'), add_months(to_date('Aug 2012','MON YYYY'), -1))
order by which_month )
Query result is as below
DISPLAY_MONTH
AUG 2012
SEP 2012
OCT 2012
Is there any way that I can join these two select statement above to generate a result like:
Month Phase Number Avg days
Aug 2012 Phase One 8.666
Sep 2012 Phase One 7.66
Oct 2012 Phase One 5.66
Aug 2012 Phase Two 8.666
Sep 2012 Phase Two 7.66
Oct 2012 Phase Two 5.66
Aug 2012 Phase Three 8.666
Sep 2012 Phase Three 7.66
Oct 2012 Phase Three 5.66
Or
Month Phase Number Avg days
Aug 2012 Phase One 8.666
Aug 2012 Phase Two 7.66
Aug 2012 Phase Three 5.66
Sep 2012 Phase One 8.666
Sep 2012 Phase Two 7.66
Sep 2012 Phase Three 5.66
Oct 2012 Phase One 8.666
Oct 2012 Phase Two 7.66
Oct 2012 Phase Three 5.66
And it can be order by either Phase Number or Month.
My other colleague suggest I should use an left outer join but after trying so many ways, I am still stuck.
One of the select I tried is
select a.display_month,b.* from (
select to_char(which_month, 'MON YYYY') as display_month
from (
select add_months(to_date('Aug 2012','MON YYYY'), rownum-1) which_month
from all_objects
where
rownum <= months_between(to_date('Oct 2012','MON YYYY'), add_months(to_date('Aug 2012','MON YYYY'), -1))
order by which_month )) a left outer join
( select to_char(ph.date_finished,'MON YYYY') as join_month, ph.phase_number
, sum ( (case
WHEN ph.date_finished IS NULL OR ph.date_finished > last_day(TO_DATE(a.display_month,'MON YYYY'))
THEN last_day(TO_DATE(a.display_month,'MON YYYY'))
ELSE ph.date_finished
END )
- ph.date_started + 1) / count(def.def_id) as avg_days
from phase_membership ph
inner join court_engagement ce on ph.mpm_eng_id = ce.engagement_id
inner join defendant def on ce.defendant_id = def.def_id
where def.active = 1
and ph.date_started <= last_day(TO_DATE(a.display_month,'MON YYYY'))
and ph.active = 1
and UPPER(ce.court_name) LIKE '%'
group by to_char(ph.date_finished,'MON YYYY') , rollup(phase_number)) b
on a.display_month = b.join_month
but then I get an error
SQL Error: ORA-00904: "A"."DISPLAY_MONTH": invalid identifier
I need to display a report on APEX with option for people to download at least CSV format.
I already have 1 inteactive report in the page, so don’t think can add another interactive report without using the iframe trick.
If any of you have any ideas, please help.
Thanks a lot.
AnnFirst of all, a huge thanks for following this Frank.
I have just started working here, I think the Oracle version is 11g, but not sure.
To run Oracle APEX version 4, I think they must have at least 10g R2.
This report is a bit challenging for me.I has never worked with PARTITION before.
About the select query you suggested, I run , and it seems working fine, but if I try this,
it return error ORA-01843: not a valid month
DEFINE startmonth = "Aug 2012";
DEFINE endmonth = "Oct 2012";
WITH all_months AS
select add_months(to_date('&startmonth','MON YYYY'), rownum-1) AS which_month
, add_months(to_date('&startmonth','MON YYYY'), rownum ) AS next_month
from all_objects
where
rownum <= months_between(to_date('&endmonth','MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1))
select TO_CHAR (am.which_month, 'Mon YYYY') AS month
, ph.phase_number
, sum ( (case
WHEN ph.date_finished IS NULL OR ph.date_finished > last_day(TO_DATE(am.which_month,'MON YYYY'))
THEN last_day(TO_DATE(am.which_month,'MON YYYY'))
ELSE ph.date_finished
END )
- ph.date_started + 1) / count(def.def_id) as avg_days
FROM all_months am
LEFT OUTER JOIN phase_membership ph PARTITION BY (ph.phase_number)
ON am.which_month <= ph.date_started
AND am.next_month > ph.date_started
AND ph.date_started <= last_day(TO_DATE(am.which_month,'MON YYYY')) -- May not be needed
AND ph.active = 1
LEFT OUTER join court_engagement ce on ph.mpm_eng_id = ce.engagement_id
and ce.court_name IS NOT NULL -- or something involving LIKE
LEFT OUTER join defendant def on ce.defendant_id = def.def_id
AND def.active = 1
group by rollup(phase_number, am.which_month)
ORDER BY am.which_month
, ph.phase_number
;Here is the shorted versions of the three tables:
A_DEFENDANT, A_ENGAGEMENT, A_PHASE_MEMBERSHIP
CREATE TABLE "A_DEFENDANT"
"DEF_ID" NUMBER NOT NULL ENABLE,
"FIRST_NAME" VARCHAR2(50 BYTE),
"SURNAME" VARCHAR2(20 BYTE) NOT NULL ENABLE,
"DOB" DATE NOT NULL ENABLE,
"ACTIVE" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
CONSTRAINT "A_DEFENDANT_PK" PRIMARY KEY ("DEF_ID"))
Sample Data
Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (101,'Joe','Bloggs',to_date('12/12/99','DD/MM/RR'),1);
Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (102,'John','Smith',to_date('20/05/00','DD/MM/RR'),1);
Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (103,'Jane','Black',to_date('15/02/98','DD/MM/RR'),1);
Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (104,'Minnie','Mouse',to_date('13/12/88','DD/MM/RR'),0);
Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (105,'Daisy','Duck',to_date('05/08/00','DD/MM/RR'),1);
CREATE TABLE "A_ENGAGEMENT"
"ENGAGEMENT_ID" NUMBER NOT NULL ENABLE,
"COURT_NAME" VARCHAR2(50 BYTE) NOT NULL ENABLE,
"DATE_REFERRED" DATE,
"DETERMINATION_HEARING_DATE" DATE,
"DATE_JOINED_COURT" DATE,
"DATE_TREATMENT_STARTED" DATE,
"DATE_TERMINATED" DATE,
"TERMINATION_TYPE" VARCHAR2(50 BYTE),
"ACTIVE" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
"DEFENDANT_ID" NUMBER,
CONSTRAINT "A_ENGAGEMENT_PK" PRIMARY KEY ("ENGAGEMENT_ID"))
Insert into A_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TREATMENT_STARTED,DATE_TERMINATED,TERMINATION_TYPE,ACTIVE,DEFENDANT_ID) values (1,'AA',to_date('12/08/12','DD/MM/RR'),null,to_date('12/08/12','DD/MM/RR'),null,null,null,1,101);
Insert into A_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TREATMENT_STARTED,DATE_TERMINATED,TERMINATION_TYPE,ACTIVE,DEFENDANT_ID) values (2,'BB',to_date('01/09/12','DD/MM/RR'),null,to_date('02/09/12','DD/MM/RR'),null,null,null,1,102);
Insert into A_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TREATMENT_STARTED,DATE_TERMINATED,TERMINATION_TYPE,ACTIVE,DEFENDANT_ID) values (3,'AA',to_date('02/09/12','DD/MM/RR'),null,to_date('15/09/12','DD/MM/RR'),null,null,null,1,103);
Insert into A_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TREATMENT_STARTED,DATE_TERMINATED,TERMINATION_TYPE,ACTIVE,DEFENDANT_ID) values (4,'BB',to_date('01/10/12','DD/MM/RR'),null,to_date('02/10/12','DD/MM/RR'),null,null,null,1,105);
CREATE TABLE "A_PHASE_MEMBERSHIP"
"MPM_ID" NUMBER NOT NULL ENABLE,
"MPM_ENG_ID" NUMBER NOT NULL ENABLE,
"PHASE_NUMBER" VARCHAR2(50 BYTE),
"DATE_STARTED" DATE NOT NULL ENABLE,
"DATE_FINISHED" DATE,
"NOTES" VARCHAR2(2000 BYTE),
"ACTIVE" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
CONSTRAINT "A_PHASE_MEMBERSHIP_PK" PRIMARY KEY ("MPM_ID"))
Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (1,1,'PHASE ONE',to_date('15/09/12','DD/MM/RR'),to_date('20/09/12','DD/MM/RR'),null,1);
Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (2,1,'PHASE TWO',to_date('21/09/12','DD/MM/RR'),to_date('29/09/12','DD/MM/RR'),null,1);
Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (3,2,'PHASE ONE',to_date('12/09/12','DD/MM/RR'),null,null,1);
Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (4,3,'PHASE ONE',to_date('20/09/12','DD/MM/RR'),to_date('01/10/12','DD/MM/RR'),null,1);
Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (5,3,'PHASE TWO',to_date('02/10/12','DD/MM/RR'),to_date('15/10/12','DD/MM/RR'),null,1);
Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (6,4,'PHASE ONE',to_date('03/10/12','DD/MM/RR'),to_date('10/10/12','DD/MM/RR'),null,1);
Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (7,3,'PHASE THREE',to_date('17/10/12','DD/MM/RR'),null,null,0);
Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (8,1,'PHASE THREE',to_date('30/09/12','DD/MM/RR'),to_date('16/10/12','DD/MM/RR'),null,1);
The requirements are:
The user must be able to request the extract for one or more calendar months, e.g.
May 2013
May 2013 – Sep 2013.
The file must contain a separate row for each calendar month in the requested range. Each row must contain the statistics computed for that calendar month.
The file must also include a row of totals.
The user must be able to request the extract for either Waitakere or Auckland or Consolidated (both courts’ statistics accumulated).
Then the part that I am stuck is
For each monitoring phase:
Phase name (e.g. “Phase One”)
Avg_time_in_phase_all_particip
for each phase name,
Add up days in each “phase name” Monitoring Phase, calculated as:
If Monitoring Phase.Date Finished is NULL or > month end date,
+(*Month end date* Minus Monitoring Phase.Date Started Plus 1)+
Otherwise (phase is complete)
+(Monitoring Phase.Date Finished Minus Monitoring Phase.Date Started Plus 1.)+
Divide by the numbers of all participants who have engaged in “phase name”.
This is the words of the Business Analyst,
I try to do as required but still struggle to identify end_month for the above formula to display for the range of months.
Of course, I can write two nested cursor. The first one run the list of month, then for each month, run the parameterised report.
But I prefer if possible just use SQL statements, or at least a PL/SQL but return a query.
With this way, I can create an APEX report, and use their CSV Extract function.
Yes, you are right, court_name is one of the selection parameters.
And the statistics is not exactly for one month. It is kind of trying to identify all phases that are running through the specified month (even phase.date_started is before the month start).
This is the reason why I put the condition AND ph.date_started <= last_day(TO_DATE('Oct 2012','MON YYYY')) (otherwise I get negative avg_days)
User can choose either one court "AA" or "BB" or combined which is all figures.
Sorry for bombarding you a lot of information.
Thanks a lot, again.
Edited by: Ann586341 on Oct 29, 2012 9:57 PM
Edited by: Ann586341 on Oct 29, 2012 9:59 PM -
Time Out by select on DD04L inner join DD04T
Hello,
I just installed ERP 2005. After the import of a language package (SMLT, IT, FR, ES) I get some problem.
If I logon with EN or IT (and I think with any language other than DE) many transaction get a Time Out error in the function module DDIF_FIELDINFO_GET by the following selection:
* get texts of primary language (inner join here !)
SELECT DD04L~ROLLNAME DD04L~DOMNAME DD04L~HEADLEN
DD04L~SCRLEN1 DD04L~SCRLEN2 DD04L~SCRLEN3
DD04T~DDLANGUAGE DD04T~DDTEXT DD04T~REPTEXT
DD04T~SCRTEXT_S DD04T~SCRTEXT_M DD04T~SCRTEXT_L
INTO TABLE Rolltexts
FROM DD04L inner JOIN DD04T
ON DD04T~ROLLNAME = DD04L~ROLLNAME AND
DD04T~AS4LOCAL = 'A' AND
DD04T~DDLANGUAGE = langu_loc
FOR ALL ENTRIES IN missing
WHERE DD04L~ROLLNAME = missing-ROLLNAME
AND DD04L~AS4LOCAL = 'A'.
That is, the ERP is using sequential read instead of direct read.
Any idea is welcomed.
Thanks & regards,
TommasoHello,
Thanks for your replies.
I checked OSS and I found nothing.
ST05 gives me this SQL command: (more than 500 sec!)
SELECT T_00 . "ROLLNAME" , T_00 . "DOMNAME" , T_00 . "HEADLEN" , T_00 . "SCRLEN1" , T_00 . "SCRLEN2" , T_00 . "SCRLEN3" , T_01 . "DDLANGUAGE" , T_01 . "DDTEXT" , T_01 . "REPTEXT" , T_01 . "SCRTEXT_S" , T_01 . "SCRTEXT_M" , T_01 . "SCRTEXT_L" FROM "DD04L"
T_00 INNER JOIN "DD04T" T_01 ON T_01 . "ROLLNAME" = T_00 . "ROLLNAME" AND T_01 . "AS4LOCAL" = 'A' AND T_01 . "DDLANGUAGE" = 'I' WHERE T_00 . "ROLLNAME" = 'VAL_TEXT' AND T_00 . "AS4LOCAL" = 'A'
I executed it in SQL Studio and I got also a big execution time.
But if I try
SELECT "ROLLNAME" , "DOMNAME" , "HEADLEN" , "SCRLEN1" , "SCRLEN2" , "SCRLEN3" FROM "DD04L" WHERE T_00 . "ROLLNAME" = 'VAL_TEXT' AND T_00 . "AS4LOCAL" = 'A'
I get the result in 1 ms.
Is there something wrong in the inner join?
What does it mean the operation "REOPEN"?
How can I see from ST05 if an index has been used?
Thanks & Regards,
Tommaso -
Getting time out error when running the assigned verification in DRM 9.3.2.
Hi,
I have installed DRM 9.3.2.0.0 in my system (windows 7), when i am trying to run assigned verifications i am getting the time out error within a minute.
As suggested by oracle,I have added DWORD with value 480000 under Master Data Management in Registry editor. But still getting the error.
Please suggest a solution for this issue.
regards,
sathiyaPlease suggest me the solution.
regards,
sathiya -
Hello ,
We have a problem with q's getting error time out.
Oue Scenerio is SAP AR - PI--SAP FCSM
The messages are reaching PI. However when PI sends the message back to SAP, the queues were set to run as dialog (D/A) mode, hence the messages were timing out after the dialog process time limit was reached. So we changed the PI queues to run in background. After that the job completes in 0 seconds and nothing gets transferred through PI to FSCM.
Can anyone help me in this problem or provide some pointers how to solve this.
Regards,
Vikrantare you able to see the successful status in PI (message monitor/CC monitor)...
there must be some exception fired ,you put a break point in the receiver prog. at start and check where is the problem.
give details for further assitance -
Having trouble connecting to Internet with my MacBook Air. It can be fine for a few hours thins goes off and all I get it the message couldn't connect due to time out error connection. It can't be my broadband because I don't have the same problem with my other devices. Is my mac air breaking down?
looks like this is your network connection settings problem, you'd better only keep one network adaptor online and linked, if you do not understand how to setup windows routing, this is completely not firefox problem. buddy. wish you goodluck.
-
Hi,
we have updated our System to SPS 14 (MW+BE) to make our clients vista ready. I have create a new setup package and updated the Java version of the client to jdk 1.5.0_11. After Starting the client I get the "Time Out 61 Error". The Startup Output seems to be good, all variables are set. And I dont know what to do.
Her is the Output from the Startup.bat
If anyone have a clou that can help me, makes me very glad.
C:\Program Files\SAP\MobileInfrastructure>startup.bat
C:\Program Files\SAP\MobileInfrastructure>SET JAVA_HOME=1
C:\Program Files\SAP\MobileInfrastructure>REM SET JAVA_HOME=
C:\Program Files\SAP\MobileInfrastructure>REM SET ME_HOME=
C:\Program Files\SAP\MobileInfrastructure>REM SET JAVA_EXE=
C:\Program Files\SAP\MobileInfrastructure>REM SET JAVA_OPTIONS=-mx256m
C:\Program Files\SAP\MobileInfrastructure>SET _OLDCP=
C:\Program Files\SAP\MobileInfrastructure>set _MEJARS=
C:\Program Files\SAP\MobileInfrastructure>copy /b "C:\Program Files\SAP\MobileIn
frastructure\SetMejar.txt" + "C:\Program Files\SAP\MobileInfrastructure\listOfJa
rs.txt" "C:\Program Files\SAP\MobileInfrastructure\setMeJar.bat"
C:\Program Files\SAP\MobileInfrastructure\SetMejar.txt
C:\Program Files\SAP\MobileInfrastructure\listOfJars.txt
1 file(s) copied.
C:\Program Files\SAP\MobileInfrastructure>call "C:\Program Files\SAP\MobileInfra
structure\setMeJar.bat"
C:\Program Files\SAP\MobileInfrastructure>SET _MEJARS=C:\Program Files\SAP\Mobil
eInfrastructure\lib\db2ejdbc.jar;C:\Program Files\SAP\MobileInfrastructure\lib\c
rimson.jar;C:\Program Files\SAP\MobileInfrastructure\lib\jasper.jar;C:\Program F
iles\SAP\MobileInfrastructure\lib\jaxp.jar;C:\Program Files\SAP\MobileInfrastruc
ture\lib\MEg.jar;C:\Program Files\SAP\MobileInfrastructure\lib\pinstall.jar;C:\P
rogram Files\SAP\MobileInfrastructure\lib\servlet.jar;C:\Program Files\SAP\Mobil
eInfrastructure\lib\system\jdk13\iaik_javax_crypto.jar;C:\Program Files\SAP\Mobi
leInfrastructure\lib\system\jdk13\iaik_jce.jar;C:\Program Files\SAP\MobileInfras
tructure\lib\system\jdk14\iaik_jce.jar;C:\Program Files\SAP\MobileInfrastructure
\lib\system\xalan.jar;C:\Program Files\SAP\MobileInfrastructure\lib\webserver.ja
r;
C:\Program Files\SAP\MobileInfrastructure>set _SSLJARS=
C:\Program Files\SAP\MobileInfrastructure>if exist "C:\Program Files\SAP\MobileI
nfrastructure\lib\jsse.jar" set _SSLJARS=C:\Program Files\SAP\MobileInfrastructu
re\lib\jsse.jar
C:\Program Files\SAP\MobileInfrastructure>if exist "C:\Program Files\SAP\MobileI
nfrastructure\lib\jcert.jar" set _SSLJARS=;C:\Program Files\SAP\MobileInfrastruc
ture\lib\jcert.jar
C:\Program Files\SAP\MobileInfrastructure>if exist "C:\Program Files\SAP\MobileI
nfrastructure\lib\jnet.jar" set _SSLJARS=;C:\Program Files\SAP\MobileInfrastruct
ure\lib\jnet.jar
C:\Program Files\SAP\MobileInfrastructure>set _IAKJARS=
C:\Program Files\SAP\MobileInfrastructure>if exist "C:\Program Files\SAP\MobileI
nfrastructure\lib\system\jdk13\iaik_jce.jar" set _IAKJARS=C:\Program Files\SAP\M
obileInfrastructure\lib\system\jdk13\iaik_jce.jar
C:\Program Files\SAP\MobileInfrastructure>if exist "C:\Program Files\SAP\MobileI
nfrastructure\lib\system\jdk13\iaik_javax_crypto.jar" set _IAKJARS=C:\Program Fi
les\SAP\MobileInfrastructure\lib\system\jdk13\iaik_jce.jar;C:\Program Files\SAP\
MobileInfrastructure\lib\system\jdk13\iaik_javax_crypto.jar
C:\Program Files\SAP\MobileInfrastructure>set CLASSPATH=C:\Program Files\SAP\Mob
ileInfrastructure\lib\db2ejdbc.jar;C:\Program Files\SAP\MobileInfrastructure\lib
\crimson.jar;C:\Program Files\SAP\MobileInfrastructure\lib\jasper.jar;C:\Program
Files\SAP\MobileInfrastructure\lib\jaxp.jar;C:\Program Files\SAP\MobileInfrastr
ucture\lib\MEg.jar;C:\Program Files\SAP\MobileInfrastructure\lib\pinstall.jar;C:
\Program Files\SAP\MobileInfrastructure\lib\servlet.jar;C:\Program Files\SAP\Mob
ileInfrastructure\lib\system\jdk13\iaik_javax_crypto.jar;C:\Program Files\SAP\Mo
bileInfrastructure\lib\system\jdk13\iaik_jce.jar;C:\Program Files\SAP\MobileInfr
astructure\lib\system\jdk14\iaik_jce.jar;C:\Program Files\SAP\MobileInfrastructu
re\lib\system\xalan.jar;C:\Program Files\SAP\MobileInfrastructure\lib\webserver.
jar;;;;C:\Program Files\SAP\MobileInfrastructure\lib\system\jdk13\iaik_jce.jar;C
:\Program Files\SAP\MobileInfrastructure\lib\system\jdk13\iaik_javax_crypto.jar;
1\lib\tools.jar
C:\Program Files\SAP\MobileInfrastructure>echo Using CLASSPATH: C:\Program Files
\SAP\MobileInfrastructure\lib\db2ejdbc.jar;C:\Program Files\SAP\MobileInfrastruc
ture\lib\crimson.jar;C:\Program Files\SAP\MobileInfrastructure\lib\jasper.jar;C:
\Program Files\SAP\MobileInfrastructure\lib\jaxp.jar;C:\Program Files\SAP\Mobile
Infrastructure\lib\MEg.jar;C:\Program Files\SAP\MobileInfrastructure\lib\pinstal
l.jar;C:\Program Files\SAP\MobileInfrastructure\lib\servlet.jar;C:\Program Files
\SAP\MobileInfrastructure\lib\system\jdk13\iaik_javax_crypto.jar;C:\Program File
s\SAP\MobileInfrastructure\lib\system\jdk13\iaik_jce.jar;C:\Program Files\SAP\Mo
bileInfrastructure\lib\system\jdk14\iaik_jce.jar;C:\Program Files\SAP\MobileInfr
astructure\lib\system\xalan.jar;C:\Program Files\SAP\MobileInfrastructure\lib\we
bserver.jar;;;;C:\Program Files\SAP\MobileInfrastructure\lib\system\jdk13\iaik_j
ce.jar;C:\Program Files\SAP\MobileInfrastructure\lib\system\jdk13\iaik_javax_cry
pto.jar;1\lib\tools.jar
Using CLASSPATH: C:\Program Files\SAP\MobileInfrastructure\lib\db2ejdbc.jar;C:\P
rogram Files\SAP\MobileInfrastructure\lib\crimson.jar;C:\Program Files\SAP\Mobil
eInfrastructure\lib\jasper.jar;C:\Program Files\SAP\MobileInfrastructure\lib\jax
p.jar;C:\Program Files\SAP\MobileInfrastructure\lib\MEg.jar;C:\Program Files\SAP
\MobileInfrastructure\lib\pinstall.jar;C:\Program Files\SAP\MobileInfrastructure
\lib\servlet.jar;C:\Program Files\SAP\MobileInfrastructure\lib\system\jdk13\iaik
javaxcrypto.jar;C:\Program Files\SAP\MobileInfrastructure\lib\system\jdk13\iai
k_jce.jar;C:\Program Files\SAP\MobileInfrastructure\lib\system\jdk14\iaik_jce.ja
r;C:\Program Files\SAP\MobileInfrastructure\lib\system\xalan.jar;C:\Program File
s\SAP\MobileInfrastructure\lib\webserver.jar;;;;C:\Program Files\SAP\MobileInfra
structure\lib\system\jdk13\iaik_jce.jar;C:\Program Files\SAP\MobileInfrastructur
e\lib\system\jdk13\iaik_javax_crypto.jar;1\lib\tools.jar
C:\Program Files\SAP\MobileInfrastructure>SET PATH=C:\WINDOWS\system32;C:\WINDOW
S;C:\WINDOWS\System32\Wbem;c:\Program Files\IBM\Client Access\Emulator\;c:\Progr
am Files\IBM\Client Access\Shared\;c:\Program Files\IBM\Client Access\;C:\Progra
m Files\Windows Imaging\;C:\Program Files\Java\jdk1.5.0_11\bin;C:\Program Files\
SAP\MobileInfrastructure/bin/DB2e/
C:\Program Files\SAP\MobileInfrastructure>"C:\Program Files\Java\1.5.0_11\bin\ja
va.exe" -DSERVER_IMPL="com.sap.tc.webdynpro.serverimpl.me.MEServerImplementatio
n" -Duse.repository=noDB com.sap.ip.me.core.Startup "-home:C:\Program Files\SAP\
MobileInfrastructure"
The system cannot find the path specified.
C:\Program Files\SAP\MobileInfrastructure>SET CLASSPATH=
C:\Program Files\SAP\MobileInfrastructure>Hi,
Note 1086971
To install and launch MI Client on Windows Vista OS, install SUN JDK/JRE 1.5 Update 11 and higher. This is because only this version of SUN J2SE supports Windows Vista OS. For details please refer to http://java.sun.com/j2se/1.5.0/system-configurations.html.
I think I have to install this version of Java.
Regards Maik -
Cannot load USA Today nor another website since upgrading get "time out" message
since upgrading firefox cannot load USA Today or EmergencyMail. ORG get a time out message:
The connection has timed out
The server at service.usatoday.com is taking too long to respond.
* The site could be temporarily unavailable or too busy. Try again in a few
moments.
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.Hi
I am done with this project so I won't get too detailed...
Just a few comments. The solution below works if you have 8.01 or so on the controller to start with.
But when I upgraded the controller to 8.5.1 0r 8.6, or reinstalled from scratch, this file was upgraded by itself
and when I tried to execute the RT application in interactive mode, the same thing happened which was
in the final analysis very annoying.
I simply had to replaced the new version from 8.5.1 of this file with the old version from 8.01 which is quite small.
So to me, this is a bug !
Perhaps caused by an interdependency play between many libraries in my application; but never the less a bug to be fixed.
Walters -
Can't update operating system always get time out message
When I try to download a new operating system via iTunes it downloads for about 20 minutes and then I get the message "time out - cant conntect to the iTunes store". Any suggestions?
Wait a few hours and then try again.
-
Getting Time-Out Error in Sync-Async Bridge
Hi All,
My IP has a Sync-Async Bridge. I have a fork, two senders, two switchs and a transformation step inside the bridge.
If XI takes much time to process the IP, the send step that closes sync-async bridge is not waiting for the message after a particular period and throws time out error to the sender.
Is it possible to increase the waiting time for sync-async bridge?
This IP works correctly 8 out of 10 times. Sometimes the message is sitting permenantly in the queue(smq2) and gives me system failure error.
Can u tell me why this problem happening?
Thanks & Regards,
Senthil.Dear Michal/Senthil,
Can you pl clear a confusion that i have had for ages...
suppose there is a sync/async bridge ( i understand that it is used for sync business system too async BS communcation )
where we have 4 steps
sync receive - > async send -> async receive -> sync send..
i do understand that async send and async receive are combined through correlation
but i do not understand how do they work..
i mean when async send say send a file to a target system...does async receive reads a file from the same folder based on the corelation or wat...
basically can you pls explain me how do the steps 2 and 3 above work
Edited by: Tarang Shah on Mar 3, 2009 12:51 PM
Maybe you are looking for
-
Can't drag & drop files into folders
So heart-attack was just adverted, however I need to figure out what's going on. My work comp just got upgraded to Mountain Lion along with a few coworkers (who for whatever reason aren't experiencing this same issue). Basically, if I have a folder (
-
Hello Experts, I m developing report for imports vendor, in which i form document number from custom MIRO ,GRN (MIGO), MIRO till final payment doc number . I m using function module AC_DOCUMENT_RECORD, but not getting docment number Plz sugget . Ra
-
Reorganisation of PIR's related
Hi pp legends, I am tring to use the Reorganisation of PIR's (MD74) transaction for my requirement. for example, there is a requirement of 3000 nos for june and 2000 nos for july, if i run mrp, one planned order for 3000 and another planed or
-
Migration to MS CA from a Third-party CA
Hi, we have an OpenCA in use with several certificates generated and revoked and also a periodically generated CRL. We want to migrate to MS CA (2008 R2 preferably, Standalone or Enterprise) without revoking and re-creating all the certs. Is there an
-
Numeric column not sorting correctly
I have a datagrid that is populated with square foot numbers. When sorted, it sorts by the first numeral and not the total number. How can I set the column as number and not char?