Performace with a select
Hi team,
We have a DB 11.1.0.7 on HPUX and we have problems with the performance
With a
count(1) from V3705PPE.odfprd is taking very long time.
Guido
Hi, The problem is with a table.
I generated a TRC, and I have:
select /*slow */ count(1)
from
V3705PPE.odfprd
call count cpu elapsed disk query current rows
Parse 1 0.07 0.05 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 90.64 386.03 188691 197374 0 1
total 3 90.71 386.08 188691 197374 0 1
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: 141
Rows Row Source Operation
1 SORT AGGREGATE (cr=197374 pr=188691 pw=0 time=0 us)
68103463 INDEX FULL SCAN SYS_C0050956 (cr=197374 pr=188691 pw=0 time=367988459 us cost=2022 size=0 card=67918416)(object id 110050)
Any update?+
Guido
Similar Messages
-
How can i get all values from jtable with out selecting?
i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
thanks in advance.
rajaYou could set the table's data model to be the same:
output2.setModel( output1.getModel() ); -
SSRS Report with mutli select values in parameters
Hi All,
I am creating a SSRS report and displaying the result in tablix. I want to make the report to filter by multi select values from the parameters.
I have 3 parameters. For all the three parameters, I have set "Default Values" and "Available Values". Also, modified my result dataset to get the values from parameters using "WHERE ID = @Parameter1" (example) and so
on..
3 Parameters types: 1. Yes or No
2. Date 3. Values with NULL in the DB
Problems:
1. When I am passing the default values "Yes" "No" - it is throwing errors because default values is passed as Yes "AND" No instead of "OR" condition. The value stored in the DB wil have either Yes or No but not both.
2. When I am querying the date values, it is a DateTime field in the DB. But I have queried like SELECT CONVERT(DATE, EXE_DATE) AS DATE FROM table which is giving only date in SQL but in SSRS displaying date with time.
3. When I pull the list of values for third Parameter from SQL, it has some NULL values. When I try to use it in SSRS, it is not displaying the NULL value as select option in the list of values
Any suggestions for the above three problems for SSRS with multi select values as filter will be helpful.
Maruthu | My BlogHi Maruthi,
Regarding the three things:
1.) I believe your first parameter is mutliselect , please convert it to single select.
Steps:
a.) Select the parameter, right click and go to parameter properties
b.) Under General Tab in DataType section remove the checkbox for Allow Multiple Value.
2.) Instead of returning as the date please return string. For example :
SELECT CONVERT(VARCHAR, GETDATE(),101)
Here is the list of conversion : http://www.sqlusa.com/bestpractices/datetimeconversion/
3.) As such there is no concept of null in SSRS. (Its a relational concept) . We do have nothing , which means empty. In Order to use null please select the Allow null option in the DataType section of the Parameter, This will add an checkbox for null in
the report preview. Its developer job to handle the null values in there query.
Regards Harsh -
The standard report for BOMs of a material with a selected period?
Hi Gurus
Is there any standard report for BOMs of a material with a selected period?Hi,
You will have to develop a report for your requirement,
The following tables will be used for the report
MAST-WERKS
STPO-MATNR
MARA-MAKTX
STPO-BMENG
STPO-POSNR
STPO-IDNRK
STPO-MAKTX
STPO-DATUV
STPO-MENGE
STKO-MEINS
STPO-AVOAU
Regards
Merwyn -
Submit report with dynamic selections
Hi All,
I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.
But the dynamic selections are not getting passed.
Request you to kindly provide some inputs
My code is
DATA: trange TYPE rsds_trange,
trange_line LIKE LINE OF trange,
trange_frange_t_line LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
trange_line-tablename = 'PA0002'.
*trange_frange_t_line-tablename = 'PA0002'.
trange_frange_t_line-fieldname = 'GBJHR'.
trange_frange_t_selopt_t_line-sign = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low = '1987'.
trange_frange_t_selopt_t_line-high = '1987'.
APPEND trange_frange_t_selopt_t_line TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
Kindly provide your inputs
Regards
ReshmaHi Reshma,
Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX.
data: trange type rsds_trange,
g_repid type sy-repid.
g_repid = 'RPCADVQ0'.
call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
exporting
curr_report = g_repid
mode_write_or_move = 'M'
importing
p_trange = trange
exceptions
not_found = 1
wrong_type = 2
others = 3.
if sy-subrc eq 0.
" Do the changes to the trange
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
endif.
Cheers,
Kothand -
How do i take one layer with multiple selections...
how do i take one layer with multiple selections and make those selections their own layer?
Yes sir. It w was really hard to explain. It is discontiguous segments that are separated by transparent areas. And I want those non transparent areas to be on their own layer. I have a photo shop file that has a bunch of buttons on them and they are on a transparent background. It is one layer. I want to select all the buttons and put them on their own layers. I can do this manually by selecting a button and cmd Just to a new layer, but when I have 200 buttons it is a daunting task.
Sent by MailWise<http://www.mail-wise.com/installation/4> – Your emails, with style. -
How to replace the existing selection screen with new selection screen
Hi,
I have first selection screen with parametre as a table name, then I have created dynamic selection screen as 2nd selection screen with different fields of that table as select options. This is done using genaration of dynamic report. Now If I click on button on this 2nd selction screen , then I want to replace this 2nd dynamic selection screen , with the other selection screen fields.
Can anybody guide me, How to do replace one slection screen with different selection screen.
and one imp thing is this selction screen is populating with dynamic fields on it.
Regards,
MrunalAs I can understand you want to make some of the screen field to disable or visible on screen depending upon the interaction of user with screen 1.
You may use this example code in PBO of screen 2.
LOOP AT SCREEN.
" action has been taken to modify the area office screen as per the option chosen at screen 99.
CASE ACTION.
" if the user has taken up the option of UPLOAD
WHEN 'UP'. " screen processing while we upload the plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_VE'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'DN'. " screen processing while we upload the approved plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'AO_UP' OR SCREEN-NAME = 'AO_VE'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'VW'. " screen processing while we view the plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'RLGRAP-FILENAME' OR SCREEN-NAME = 'FNAME'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
" and hide the file input field
IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_UP'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDCASE.
ENDLOOP. -
How to create a table with multiple select on???
Hi all,
I am new to webdynpro and my requirement is to create a table with multiple selection on.I have to add abt 10 rows in the table but only 5 rows should be visible and moreover a verticalscroll should be available to view other rows.Can anybody explain me in detail how to do that.Please reply as if you are explaining to a newcomer.Reply ASAP as i have to do it today.
ThanxsHi,
1. Create a value node in your context name Table and set its cardinality to 0:n
2. Create 2 value attributes within the Table node name value1 and value2
3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
you have created a table and binded its value to context
Table UI properties
4.Set Selection Mode to Multi
5.Set Visible Row Count to 5
6.ScrollableColCount to 5
In your implemetaion, you can add values to table as follow:
IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
ele.setValue1(<value>);
ele.setValue2(<value>);
wdContext.nodeTable().addElement(ele);
The above code will allow you to add elements to your table node.
Regards,
Murtuza -
How to call the same query more than once with different selection criteria
Hi,
Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
Sales organization XX
Income 2008 Income 2009
Customer A 10 20
Customer B 30 0
Sales organization YY
Income 2008 Income 2009
Customer A 20 5
Customer B 50 10
Now, I need this. At the selection screen of query, user fill variable charakteristic "Sales organization" with interval XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
Thank you very much
J.Hello,
thanks to all for cooperation. Finally we solved this issue with the following way..
User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
J. -
What is the wrong with my select query
HI All,
TYPES: BEGIN OF t_equi,
equnr TYPE equi-equnr,
aedat TYPE equi-aedat,
matnr TYPE equi-matnr,
sernr TYPE equi-sernr,
kunde TYPE equi-kunde,
zzreg_date TYPE equi-zzreg_date,
zzin_indic TYPE equi-zzin_indic,
zzinvoice_num TYPE equi-zzinvoice_num,
zzinvoice_date TYPE equi-zzinvoice_date,
kund1 TYPE equz-kund1,
END OF t_equi,
DATA: it_equi TYPE TABLE OF t_equi,
SELECT equnr
aedat
matnr
sernr
kunde "Ship to
zzreg_date
zzin_indic
zzinvoice_num
zzinvoice_date
kund1 "Sold to
INTO TABLE it_equi
FROM equi AS a
INNER JOIN equz AS b
ON a~equnr = b~equnr
WHERE a~equnr IN s_equnr AND
* aedat GE gv_rdate AND
a~matnr IN s_matnr AND
a~sernr IN s_sernr AND
a~kunde IN r_shpbr_kunde AND
a~zzin_indic IN s_indic AND
b~datbi EQ c_datbi AND
b~kund1 IN r_sldbr_kund1 .
what is the wrong with this select query.. ?
its giving me error "The column name "EQUNR" is unclear ."
ThanksHi ,
write tablename or alias in select also
SELECT a~equnr and check.
Regards -
Performance issue after Upgrade from 4.7 to ECC 6.0 with a select query
Hi All,
There is a Performance issue after Upgrade from 4.7 to ECC 6.0 with a select query in a report painter.
This query is working fine when executed in 4.7 system where as it is running for more time in ECC6.0.
Select query is on the table COSP.
SELECT (FIELD_LIST)
INTO CORRESPONDING FIELDS OF TABLE I_COSP PACKAGE SIZE 1000
FROM COSP CLIENT SPECIFIED
WHERE GJAHR IN SELR_GJAHR
AND KSTAR IN SELR_KSTAR
AND LEDNR EQ '00'
AND OBJNR IN SELR_OBJNR
AND PERBL IN SELR_PERBL
AND VERSN IN SELR_VERSN
AND WRTTP IN SELR_WRTTP
AND MANDT IN MANDTTAB
GROUP BY (GROUP_LIST).
LOOP AT I_COSP .
COSP = I_COSP .
PERFORM PCOSP USING I_COSP-_COUNTER.
CLEAR: $RWTAB, COSP .
CLEAR CCR1S .
ENDLOOP.
ENDSELECT.
I have checked with the table indexes, they were same as in 4.7 system.
What can be the reson for the difference in execution time. How can this be reduced without adjusting the select query.
Thanks in advance for the responses.
Regards,
Dedeepya.Hi,
ohhhhh....... lots of problems in select query......this is not the way you should write it.
Some generic comments:
1. never use SELECT
endselect.
SELECT
into table
for all entries in table
where.
use perform statment after this selection.
2. Do not use into corresponding fields. use exact structure type.
3. use proper sequence of fields in the where condition so that it helps table go according to indexes.
e.g in your case
sequence should be
LEDNR
OBJNR
GJAHR
WRTTP
VERSN
KSTAR
HRKFT
VRGNG
VBUND
PARGB
BEKNZ
TWAER
PERBL
sequence should be same as defined in table.
Always keep select query as simple as possible and perform all other calculations etc. afterwords.
I hope it helps.
Regards,
Pranaya -
What's wrong with my select?
Hi! What's wrong with my select? The message I got is:
"("has no closing ")"
SELECT SINGLE iclclaim~claim
INTO os_namir_stabi-claim
FROM ( ( iclclaim
INNER JOIN iclpoloau
ON iclpoloauclaim = iclclaimclaim
CLIENT specified
WHERE iclclaim~client = c_client1
AND iclpoloau~client = c_client1
AND iclpoloau~plateno = is_namir_stabi-plateno
AND iclclaim~dateloss = is_namir_stabi-dateloss )
INNER JOIN iclpartocc
ON iclpartoccclaim = iclpoloauclaim
CLIENT specified
WHERE iclpartocc~client = c_client1
AND iclpartocc~bpartner = gv_bpartner ) .Please try it like this. I'm pretty sure that you can not format your inner join with multiple where clauses.
SELECT SINGLE iclclaim~claim
INTO os_namir_stabi-claim
FROM iclclaim
INNER JOIN iclpoloau
ON iclpoloau~claim = iclclaim~claim
INNER JOIN iclpartocc
ON iclpartocc~claim = iclpoloau~claim
WHERE iclclaim~client = c_client1
AND iclclaim~dateloss = is_namir_stabi-dateloss
AND iclpoloau~client = c_client1
AND iclpoloau~plateno = is_namir_stabi-plateno
and iclpartocc~client = c_client1
AND iclpartocc~bpartner = gv_bpartner .
Regards,
Rich Heilman -
My macbook Pro is stuck on a grey screen with language select and every time i click english it brings me back to the same gray page with language select what do i do? Also i dont have enough monet to go to the apple store to get it fix and another thing this happen after i tried to factory reset it without the disck uising coomans i found on youtube.Lastly befor doing the comands my macbook would open any applications and the finder would just blink on and off on the dock.
Heres the link http://www.youtube.com/watch?v=Q5e5thk0O9oShut down your computer and disconnect all peripherals (keyboard & mouse if pertinent) from your computer. Now reboot.
If the Mac starts up normally, shut it down again and then plug in one of the peripherals (keyboard or mouse first) and start up your computer again. If it does so successfully repeat the process, adding one peripheral at a time until your Mac acts up. At that point, disconnect the last peripheral you added, reboot your Mac and search the peripheral vendor's website for an updated driver.
If no driver exists or the problem remain after installing the new driver, try a different cable or a different port on your Mac.
If none of the above works, again disconnect all peripherals from your Mac, hold down the "shift" key to start up in "Safe Boot" mode.
If the Mac starts up correctly, restart without pressing the "shift" key.
If your computer still does not start up properly, shut it down and restart it while holding down the Apple+Option-P-R keys; keep holding "all 4 keys" down until you hear the startup sound "twice."
If none of the above work Disconnect all peripherals from your computer. Boot from your install disc & run Repair Disk from the utility menu. To use the Install Mac OS X disc, insert the disc, and restart your computer while holding down the C key as it starts up.
Select your language.
Once on the desktop, select Utility in the menu bar.
Select Disk Utility.
Select the disk or volume in the list of disks and volumes, and then click First Aid.
Click Repair Disk.
(If Disk Utility cannot repair, you will need a stronger utility (3rd party) - Diskwarrior or Techtool PRO)
Restart your computer when done.
Repair permissions after you reach the desktop-http://docs.info.apple.com/article.html?artnum=25751 and restart your computer.
Remove any 3rd party ram.
Reinstall Leopard - This will install a "fresh" copy Leopard without archiving old system files but leaves the rest of your files in place.
If you still want to restore your computer to factory level...
Start up from your install disc, go to Disk Utility and select the disk and click erase - to securely erase data click Security Options and Erase Free Space which will entirely wipe your disk, overwriting it with zeros so that no data is recoverable.
To restore read the instructions in the Mac OS X v10.5 Leopard - Installation and Setup Guide PDF -
Problem with variable selections
Hi All
I am executing the report with period 46.2007-50.2007 . I am getting the result for this period.But if i run the report with same selections from 42.2007-50.2007, I am not getting the data.It says no applicable data found.
I am using interval as the option for variable .Could some one help on this?
Thanks
Raghu NHello
According to your selection you should get the data.
check the both selection (46 - 50) and (42 - 50) in the LISTCUBE transaction.
if data available in both cases then problem may be with other restrictions.
If no user exits are in that variable try create one more variable as it is and then try by restricting with new variable. -
How to save a variant with dynamic selections parameters
Anybody knows how to save a variant for an ABAP that uses a Logical database with Dynamic Selections?
Have a look for example to the following:
SE38 - DEMO_PROGRAM_GET - Execute - Shift F4 - Connection Number.
How to save 0820 as Connection Number?
Function Group SVAR seems good but FREE SELECTIONs are not easy to manage...Hello,
I tried to save the variant of DEMO_PROGRAM_GET with dynamic selection field (Connection Number) filled. It gets saved without any problem. Just click 'SAVE' and enter the variant name and description.
Thanks,
Venu
Maybe you are looking for
-
THe mail app on my ipad 2 quits right after launching. This happened as I was forwarding an email with a long attachment. Now I get a blank screen with just the icons, no mail mailboxes etc. after a few seconds that blank screen disappears and we go
-
Pdf to Word conversion problems
I just tried to convert a pdf (in Italian) to Word. What came out was a page of senseless symbols. I tried converting to doc, docx, and rtf, and nothing worked. What to do?
-
Using iweb I have vids stored on mobileme that are viewed by my iweb pages. When mobileme ceases to exist these vids will not be seen via iweb. What are my alternatives please?
-
How to view all reports sent to Apple?
(My first Mac, and so many troubles already... sigh) I just had my second fatal hang in a couple of months (i.e. needed to hold down the power button to shutdown) - (I would post a photo but it seems I can't on this forum... I wonder if AAPL engies w
-
Difficulty getting Contacts into Numbers
I'm new at using a support community, so I apologize if I'm not doing this correctly. Anyway, I'm trying to export my contacts to a Numbers spreadsheet using the drag-and-drop method (one at a time). However, only five fields are showing up in the Nu