Why this output is coming for sy-index
for the code
do 5 times.
hide sy-index.
wrtie sy-index.
enddo.
at line-selection.
write sy-index.
o/p is
1
2
3
4
5
if one clicks on 3 we get 4 on so on..can anyone xplain the logic behind this.
Hi Henry,
As I already replied,it is because in your original code you mentioned the sy-index to be in the same line.
Usually,the purpose of AT Line-selection is pick that line.That's why it is taking the sy-index in your code as 5.
But in my code and Andreas code , we are displaying the output vertically.
And in the below mentioned code,I think while processing write statement itself since it needs to process both sy-index and '/' , it is incrementing sy-index by one.
do 3 times.
hide sy-index.
write : / sy-index.
enddo.
at line-selection.
write sy-index.
Write sy-index and Hide should be consecutive.
The behaviour of write :/ sy-index is it first process / and then sy-index.
In Andreas coding, he has written write and then hide.
While processing the write :/ sy-index, it is first processing hide and then / and then sy-index.
In my coding, I have written hide and then write(without /).Here also it is consecutive.
But in the coding you mentioned , you have written hide and then write (with /).It is processing hide and then / and then sy-index.In this case Hide and Write sy-index are not consecutive.That's why you get the output incremented by one.
Hope this is clear.
For more information about HIDE and At Line-selection,check this.
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/hide.htm
Check this also.It will also work fine since write sy-index and Hide are consecutive.
do 3 times.
hide sy-index.
write sy-index.
new-line.
enddo.
at line-selection.
write sy-index.
Regards,
J.Jayanthi
Message was edited by: Jayanthi Jayaraman
Similar Messages
-
Hi, Im new to Apple MacBook PRO. I have saved about 50GB files plus applications and message advises that my start up disk is almost full! My MacBook pro has a 500GB hard drive so don't know why this message is coming up. Please help.
MacBook Pro
https://discussions.apple.com/community/notebooks/macbook_pro
https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion?view=discussi ons -
I have downloaded and installed the iPhoto tool to update so my pictures transfer over, but it's still telling me I need to update. Any suggestions why this isn't working for me? I have a Macbook Pro.
You have to download and RUN the iPhoto library upgrade - then launch iPhoto - If you had iPhoto '08 or earlier (version 7.x.x) - the upgrade is installed in the utilities folder of your Applications folder
LN -
Why this slightly new position for the "Auto"-Tone button
In LR CC(6), Adobe moved the "Auto"-Tone button in the development section one button width to the right. Why?
Since the mouse moving from the white balance to the Auto-button is a very often used move, clicking to the old position (in the now empty) is very annoying.
Old Position of the Auto-Button
New Position:
Why? Is there any reason? Or is this a bug - an accidental move?
Thanks
KonradI am willing to bet it was accidental, because if I were to move it, I probably would have aligned it under the "As Shot" above it. Either centered or left or right aligned, but aligned in any case.
You either have a really good eye, or your muscle memory is fantastic. Either way it is impressive that you spotted the change. -
Rebate agreement-Difference coming for credit note value and drill down value .
Hello Friends,
In 2013 we had created one rebate for which the validity period was 1st April 2013 to 31st March 2014 . At the end of each month, rebate amount was settled by raising credit note to the customer . Now at the end of March'14 during final settlement, a credit note was raised to the customer . The issue here is there is difference of 1.13 (Pounds) between credit note value and the drill down value for March'14 . Lets say our credit note value is-100 (Pounds)and Drill down value for the month March'14 is 101.13 Pounds. We are not able to find out why this difference is coming . Please let me know your inputs on this .
Regards,
Sandeep G.Sandeep -
During final settlement of a rebate agreement, it calculates rebate amout for the the entire time period less payments already made to a customer and then issues a credit memo request based on that.Please check all the the invoices created during entire period and check accrual calculation.It should match.
You can check VBOX table to get billing documents for the entire period.
Let us know if you still have an issue.
Thanks & Regards
Amit Gupta -
ORA-14189: this physical attribute may not be specified for an index subpar
Hi,
I have many partition table and their subpartition and also I create index partition ans index subpartition.
I moved partition table another new tablespace and then when I rebuild partition indexes I am getting below error.
ORA-14189: this physical attribute may not be specified for an index subpartition
I coulsn't understand the problem and I also not find a answer google.
Details:
ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP148ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP1ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP21ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP41ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP61ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP62ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP63ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP64ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP122ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP123ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP124ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP125ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP201ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP206ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP207ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP208ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP261ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
SUBPARTITION SYS_SUBP262
Error at line 2
ORA-14189: this physical attribute may not be specified for an index subpartition
db version: 9.2.0.8
Could you any body help me please how can I solve this problem.
thanks and regards,Hi Justen,
I just run rebuild the index with TOAD. So just I copied toad error output so I haven't written it and also in my computer there is a space. I think when I paste the output here, space gone out.
Anyway, I found workaround solution. First I am taking the script from toad then drop and recreate the index. But this takes very long time, only one index takes 1 hour for recreation. so I have so many index like this and If I calculate all indexes takes 3 days for recreation again.
any other solution is there?
thanks and regards -
Why is the Star Transformation using two indexes for the same dimension?
Hi,
Recently, I have made an investigation about the Star Transformation feature. I have found a strange test case, which plays an important role in my strategy for our overall DWH architecture. Here it is:
The Strategy:
I would like to have the classical Star Transformation approach (single column Bitmap Indexes for each dimension foreign key column in the fact table), together with additional Bitmap Join Indexes for some of the dimension attributes, which would benefit from the materialization of the join (bitmap merge operation will be skipped/optimized).
The query:
select dp.brand, ds. region_name, dc.region_name
, count(*), sum(f.extended_price)
from fact_line_item f
, dim_part dp
, dim_supplier ds
, dim_customer dc
where dp.mfgr = 10 -- dimension selectivity = 1/10 --> acttual/fact selectivity = 6/10
and f.part_dk = dp.dk
and ds.region_name = 'REGION #1' -- dimension selectivity = 1/9
and f.supplier_dk = ds.dk
and dc.region_name = 'REGION #1' -- dimension selectivity = 1/11
and f.customer_dk = dc.dk
group by dp.brand, ds. region_name, dc.region_name
The actual plan:
| Id | Operation | Name | Starts | E-Rows | Cost (%CPU)| A-Rows | A-Time | Buffers | Reads |
| 0 | SELECT STATEMENT | | 1 | | 3247 (100)| 1 |00:01:42.05 | 264K| 220K|
| 1 | HASH GROUP BY | | 1 | 2 | 3247 (1)| 1 |00:01:42.05 | 264K| 220K|
|* 2 | HASH JOIN | | 1 | 33242 | 3037 (1)| 217K|00:01:29.67 | 264K| 220K|
|* 3 | TABLE ACCESS FULL | DIM_SUPPLIER | 1 | 1112 | 102 (0)| 1112 |00:00:00.01 | 316 | 4 |
|* 4 | HASH JOIN | | 1 | 33245 | 2934 (1)| 217K|00:01:29.10 | 264K| 220K|
|* 5 | TABLE ACCESS FULL | DIM_CUSTOMER | 1 | 910 | 102 (0)| 910 |00:00:00.08 | 316 | 8 |
|* 6 | HASH JOIN | | 1 | 33248 | 2831 (1)| 217K|00:01:28.57 | 264K| 220K|
|* 7 | TABLE ACCESS FULL | DIM_PART | 1 | 10 | 3 (0)| 10 |00:00:00.01 | 6 | 0 |
| 8 | PARTITION RANGE ALL | | 1 | 36211 | 2827 (1)| 217K|00:01:28.01 | 264K| 220K|
| 9 | TABLE ACCESS BY LOCAL INDEX ROWID| FACT_LINE_ITEM | 6 | 36211 | 2827 (1)| 217K|00:01:33.85 | 264K| 220K|
| 10 | BITMAP CONVERSION TO ROWIDS | | 6 | | | 217K|00:00:07.09 | 46980 | 3292 |
| 11 | BITMAP AND | | 6 | | | 69 |00:00:08.33 | 46980 | 3292 |
| 12 | BITMAP MERGE | | 6 | | | 193 |00:00:02.09 | 2408 | 1795 |
| 13 | BITMAP KEY ITERATION | | 6 | | | 4330 |00:00:04.66 | 2408 | 1795 |
| 14 | BUFFER SORT | | 6 | | | 60 |00:00:00.01 | 6 | 0 |
|* 15 | TABLE ACCESS FULL | DIM_PART | 1 | 10 | 3 (0)| 10 |00:00:00.01 | 6 | 0 |
|* 16 | BITMAP INDEX RANGE SCAN | FACT_LI__P_PART_DIM_KEY_BIX | 60 | | | 4330 |00:00:02.11 | 2402 | 1795 |
|* 17 | BITMAP INDEX SINGLE VALUE | FACT_LI__P_PART_MFGR_BJX | 6 | | | 1747 |00:00:06.65 | 890 | 888 |
| 18 | BITMAP MERGE | | 6 | | | 169 |00:00:02.78 | 16695 | 237 |
| 19 | BITMAP KEY ITERATION | | 6 | | | 5460 |00:00:01.56 | 16695 | 237 |
| 20 | BUFFER SORT | | 6 | | | 5460 |00:00:00.02 | 316 | 0 |
|* 21 | TABLE ACCESS FULL | DIM_CUSTOMER | 1 | 910 | 102 (0)| 910 |00:00:00.01 | 316 | 0 |
|* 22 | BITMAP INDEX RANGE SCAN | FACT_LI__P_CUST_DIM_KEY_BIX | 5460 | | | 5460 |00:00:02.07 | 16379 | 237 |
| 23 | BITMAP MERGE | | 6 | | | 170 |00:00:03.65 | 26987 | 372 |
| 24 | BITMAP KEY ITERATION | | 6 | | | 6672 |00:00:02.23 | 26987 | 372 |
| 25 | BUFFER SORT | | 6 | | | 6672 |00:00:00.01 | 316 | 0 |
|* 26 | TABLE ACCESS FULL | DIM_SUPPLIER | 1 | 1112 | 102 (0)| 1112 |00:00:00.01 | 316 | 0 |
|* 27 | BITMAP INDEX RANGE SCAN | FACT_LI__S_SUPP_DIM_KEY_BIX | 6672 | | | 6672 |00:00:02.74 | 26671 | 372 |
The Question:
Why is the Star Transformation using both indexes FACT_LI__P_PART_DIM_KEY_BIX and FACT_LI__P_PART_MFGR_BJX for the same dimension criteria (dp.mfgr = 10)?? The introduction of the additional Bitmap Join Index actually make Oracle to do the work twice !!!
Anybody, any idea ?!?Dom, here it is the plan with the predicates:
| Id | Operation | Name | Starts | E-Rows | Cost (%CPU)| A-Rows | A-Time | Buffers | Reads |
| 0 | SELECT STATEMENT | | 1 | | 3638 (100)| 1 |00:06:41.17 | 445K| 236K|
| 1 | HASH GROUP BY | | 1 | 2 | 3638 (1)| 1 |00:06:41.17 | 445K| 236K|
|* 2 | HASH JOIN | | 1 | 33242 | 3429 (1)| 217K|00:08:18.02 | 445K| 236K|
|* 3 | TABLE ACCESS FULL | DIM_SUPPLIER | 1 | 1112 | 102 (0)| 1112 |00:00:00.03 | 319 | 313 |
|* 4 | HASH JOIN | | 1 | 33245 | 3326 (1)| 217K|00:08:17.47 | 445K| 236K|
|* 5 | TABLE ACCESS FULL | DIM_CUSTOMER | 1 | 910 | 102 (0)| 910 |00:00:00.01 | 319 | 313 |
|* 6 | HASH JOIN | | 1 | 33248 | 3223 (1)| 217K|00:08:16.63 | 445K| 236K|
|* 7 | TABLE ACCESS FULL | DIM_PART | 1 | 10 | 3 (0)| 10 |00:00:00.01 | 6 | 0 |
| 8 | PARTITION RANGE ALL | | 1 | 36211 | 3219 (1)| 217K|00:08:16.30 | 445K| 236K|
| 9 | TABLE ACCESS BY LOCAL INDEX ROWID| FACT_LINE_ITEM | 6 | 36211 | 3219 (1)| 217K|00:08:40.89 | 445K| 236K|
| 10 | BITMAP CONVERSION TO ROWIDS | | 6 | | | 217K|00:00:32.00 | 46919 | 19331 |
| 11 | BITMAP AND | | 6 | | | 69 |00:00:34.50 | 46919 | 19331 |
| 12 | BITMAP MERGE | | 6 | | | 193 |00:00:00.58 | 2353 | 1 |
| 13 | BITMAP KEY ITERATION | | 6 | | | 4330 |00:00:00.10 | 2353 | 1 |
| 14 | BUFFER SORT | | 6 | | | 60 |00:00:00.01 | 6 | 0 |
|* 15 | TABLE ACCESS FULL | DIM_PART | 1 | 10 | 3 (0)| 10 |00:00:00.01 | 6 | 0 |
|* 16 | BITMAP INDEX RANGE SCAN | FACT_LI__P_PART_DIM_KEY_BIX | 60 | | | 4330 |00:00:00.07 | 2347 | 1 |
|* 17 | BITMAP INDEX SINGLE VALUE | FACT_LI__P_PART_MFGR_BJX | 6 | | | 1747 |00:01:23.64 | 882 | 565 |
| 18 | BITMAP MERGE | | 6 | | | 169 |00:00:09.14 | 16697 | 7628 |
| 19 | BITMAP KEY ITERATION | | 6 | | | 5460 |00:00:02.19 | 16697 | 7628 |
| 20 | BUFFER SORT | | 6 | | | 5460 |00:00:00.01 | 316 | 0 |
|* 21 | TABLE ACCESS FULL | DIM_CUSTOMER | 1 | 910 | 102 (0)| 910 |00:00:00.01 | 316 | 0 |
|* 22 | BITMAP INDEX RANGE SCAN | FACT_LI__P_CUST_DIM_KEY_BIX | 5460 | | | 5460 |00:00:08.78 | 16381 | 7628 |
| 23 | BITMAP MERGE | | 6 | | | 170 |00:00:21.46 | 26987 | 11137 |
| 24 | BITMAP KEY ITERATION | | 6 | | | 6672 |00:00:10.29 | 26987 | 11137 |
| 25 | BUFFER SORT | | 6 | | | 6672 |00:00:00.01 | 316 | 0 |
|* 26 | TABLE ACCESS FULL | DIM_SUPPLIER | 1 | 1112 | 102 (0)| 1112 |00:00:00.01 | 316 | 0 |
|* 27 | BITMAP INDEX RANGE SCAN | FACT_LI__S_SUPP_DIM_KEY_BIX | 6672 | | | 6672 |00:00:20.94 | 26671 | 11137 |
Predicate Information (identified by operation id):
2 - access("F"."SUPPLIER_DK"="DS"."DK")
3 - filter("DS"."REGION_NAME"='REGION #1')
4 - access("F"."CUSTOMER_DK"="DC"."DK")
5 - filter("DC"."REGION_NAME"='REGION #1')
6 - access("F"."PART_DK"="DP"."DK")
7 - filter("DP"."MFGR"=10)
15 - filter("DP"."MFGR"=10)
16 - access("F"."PART_DK"="DP"."DK")
17 - access("F"."SYS_NC00017$"=10)
21 - filter("DC"."REGION_NAME"='REGION #1')
22 - access("F"."CUSTOMER_DK"="DC"."DK")
26 - filter("DS"."REGION_NAME"='REGION #1')
27 - access("F"."SUPPLIER_DK"="DS"."DK")
Note
- star transformation used for this statement -
i need to know that why this code is giving the following output..what's the flow of control.......
public class ThreadPrint {
static synchronized Thread makeT(final String id,boolean d)
{Thread t=new Thread(id) {
public void run() {System.out.println(id);
// System.out.println("hi" + ":" + id);
//t.setDaemon(d) ;
t.start();return t;
public static void main(String s[])
Thread a=makeT("A",false);
Thread b=makeT("B",false);
System.out.println("End");
output:
End
A
B
liz,
Try to explain this one...
package forums;
public class ThreadPrinter {
static synchronized Thread makeThread(final String id,boolean d) {
Thread t = new Thread(id) {
public void run() {
for(int i=0; i<10; i++) {
System.out.println(id+" "+i);
t.start();
return t;
public static void main(String s[]) {
Thread a=makeThread("A",false);
Thread b=makeThread("B",false);
System.out.println("End");
}produces
Test 1
A 0
A 1
A 2
A 3
A 4
A 5
A 6
A 7
A 8
A 9
End
B 0
B 1
B 2
B 3
B 4
B 5
B 6
B 7
B 8
B 9Test 2
End
B 0
B 1
B 2
A 0
A 1
A 2
A 3
A 4
A 5
A 6
A 7
A 8
A 9
B 3
B 4
B 5
B 6
B 7
B 8
B 9Hmmm... vely intarasting :-)
Keith.
liz,
Try to explain this one...
package forums;
public class ThreadPrinter {
static synchronized Thread makeThread(final String id,boolean d) {
Thread t = new Thread(id) {
public void run() {
for(int i=0; i<10; i++) {
System.out.println(id+" "+i);
t.start();
return t;
public static void main(String s[]) {
Thread a=makeThread("A",false);
Thread b=makeThread("B",false);
System.out.println("End");
}produces
Test 1
A 0
A 1
A 2
A 3
A 4
A 5
A 6
A 7
A 8
A 9
End
B 0
B 1
B 2
B 3
B 4
B 5
B 6
B 7
B 8
B 9Test 2
End
B 0
B 1
B 2
A 0
A 1
A 2
A 3
A 4
A 5
A 6
A 7
A 8
A 9
B 3
B 4
B 5
B 6
B 7
B 8
B 9Hmmm... vely intarasting :-)
Keith.
Could not complete your request because it is not a valid photoshop document why this error coming p
could not complete your request because it is not a valid photoshop document why this error coming photoshop cs5
Thanks for clarifying.
My bad. I thought you had an even older Mac Pro1,1 like mine, which will not run Mountain Lion. I should have payed closer attention to your RAM specs.
Why did the new update for my macbook air hinder my ability to use my camera for google and skype but not photobooth or facetime??? This is messed up it was working yesterday and now neither google or skype can find a camera on from my mac? what do I do??
An update for same is coming.
Theres a patch for same, see here:
https://discussions.apple.com/thread/5306216?tstart=30
When I compose an email in either gmail or yahoo, the cursor lags behind for about 2 seconds. This does not happen when I compose an email with Safari or Chrome. I am using a Mac with Firefox version 3.6.3. Any idea why this happens?
== This happened ==
Every time Firefox opened
try
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us!
Thank you.
I made a purchase on itunes on March 6 at 11:33 order umber MHOXX3TK9J for 1.99 and my credit card was charged $20.00 please help me find out why this happened.
Contact iTunes support at the link below.
https://ssl.apple.com/emea/support/itunes/contact.html
I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is just a plain photoshop file, a watermark is added, then save as jpeg - the jpeg is saved to a different folder than the original photoshop file.) It happens for about 10 of 30/40 files approximately . Thank you, Kathryn
I believe I have figured it out - I need to flatten the image, even though there are no layers except for layer 0, first.
On iPhoto, I can no longer access the 'Classic' option which would lay out my photos on the page. It will send them as attachments only. I need the page layout for my work. Any thoughts as to why this has changed? It used to fully lay out the photos so I could add notes and detailed information before I sent them. I am thinking it is something simple that I have just missed...
The "Photos" view has been replaced by the Media Browser.
Most applications will show you the Photos icon in the Sidebar, when you need to select photos in a file chooser dialoge. Mail, Safari, the iWork apps. See Terence Devlin's User Tip: How to Access Files in iPhoto
For example, in the File > Open dialogue in Preview I am seeing this in the sidebar.
Why do my iPhone cords for my 5 say it is not certified and may not work with this device? It's the same cord that came with my phone. The only difference is the iOS7 update.
Maps took me to the completely wrong side of town for a long standing business in town.
Hello margmcarlson,
Thanks for using Apple Support Communities.
For more information on this, take a look at:
Troubleshooting iPhone, iPad, and iPod touch accessories
http://support.apple.com/kb/TS2634
Restore iPhone, iPad, or iPod touch to its factory default state. You should rarely need to use this step with an accessory issue.
Best of luck,
Mario
Maybe you are looking for
-
Can I use iCloud away from home on my iPhone5s?
I thought that it worked that way, but I seem to be mistaken. I can use it when on the same block as my home, but not otherwise. When I am near home, it only allows me to play a few songs from a couple of artists. Is it supposed to work that way a
-
I recently installed a firmware update that supposedly corrected some sleep issues. Since installing the update, I am sometimes unable to wake the computer from a sleep. Usually I can manually turn the computer off and then zap the p-ram to correct t
-
Thunar taking its sweet time to open an external disk
Hi This problem only occured after a full system upgrade, so I'm not sure where to begin with the debugging. After the full system update, when connecting an external USB drive, the first time I try to access it, Thunar basically hangs for a good 30
-
I can't update Yosemite 10.10.1 to 10.10.2
I can't update from 10.10.1 to 10.10.2 not with the app store or the stand alone dmg. It keeps showing that I have an update in the app store but it won't download or install.Any help will be appreciated. Thank you.
-
LabView per ActiveX Interop DLL
Hi Everybody, I am trying set up a Software called "iLab - Interactive Server" developed by the MIT (see https://wikis.mit.edu/confluence/display/ILAB2/iLab+Downloads). This Software allows to run remote Experiments (which are controlled by LabVIEW).