‎2009 Jun 02 5:29 PM
All,
I have a custom table that a primary key MANDT and VBELN (10 character length) and its have records from 0000000001 to 0000120000.
Here is my issue.
When i go to SE16 and display with parameters "Maximum No of Hits" with 200 and press F8 its starts display VBELN from 0000080126, Why it is not displaying from 0000000001.
Be default it should take from 0000000001 due to primary key VBELN
Any Info ?
PS : Please don't suggest to increase "Maximum No of Hits"
a®
‎2009 Jun 02 5:36 PM
‎2009 Jun 02 5:39 PM
Rob,
If i given range 1 to 200 in VBELN that is displaying fine.
But if given blank in VBELN and "Maximum No of Hits" as 200. then it starts displaying records with VBELN from 80126
a®
‎2009 Jun 02 5:40 PM
And if you write a Q&D program that selects up to 200 rows without any criteria in the WHERE, what happens?
rob
‎2009 Jun 02 5:45 PM
I tried to write a select statement with UP To 200 rows , its giving me the same results as shows in SE16, its giving me results from VBELN 80126
Is it look strange ?
a®
‎2009 Jun 02 5:53 PM
> I tried to write a select statement with UP To 200 rows , its giving me the same results as shows in SE16, its giving me results from VBELN 80126
>
> Is it look strange ?
>
> a®s
I think this is "normal" although not "usual" behavior. If you don't specify a range, you cannot be sure of what you will get. But if in your SELECT statement, you put in an ORDER BY clause, you will probably get what you expect.
Rob
‎2009 Jun 02 6:36 PM
Rob,
I have written open sql statement (Oracle sql ) and get data checked , it found data not get sorted . so if we are not specify ROWs system will pick data from unsorted table , and display as per primary key sort order
a®
‎2009 Jun 02 6:50 PM
‎2009 Jun 02 7:39 PM
SE16 uses the UP TO RSEUMOD-TBMAXSEL ROWS to get the records from the table.
This what the UP TO n ROWS documentation says:
If the addition ORDER BY is also specified, the rows of the hit list are sorted on the database server and only the number of sorted rows specified in n are passed to the result set. If the addition ORDER BY is not specified, n is filled with any number of rows in the result set that meet the WHERE condition.
Regards,
Naimesh Patel
‎2009 Jun 02 8:34 PM
> Any other opinion on this ?
>
> a®s
I still believe this to be expected behavior. Otherwise, why the option BY PRIMARY KEY for ORDER BY?
Rob
‎2009 Jun 02 10:52 PM
Just out of curiosity: go to VA03 or VF03 and display a document. Hit enter a few times...:-)
Then run SE16 for your table again?
Cheers,
Julius
‎2009 Jun 04 5:51 PM
Now i confused.
If i do SE16N it giving records different start records it showing with 45182 ?
a®
‎2009 Jun 04 5:58 PM
Darn, that means the golden solution of "Use a different transaction" won't even help...
Does SE16 now also give the same?
Cheers,
Julius
‎2009 Jun 04 6:26 PM
No , SE16 is giving results from starting record with VBELN 80126 , but SE16N giving starting records with VBELN 45182
a®
‎2009 Jun 02 5:42 PM
check the created date field in custom table, if the VBELN -0000080126 is inserted into custom
table first than VBELN - 0000000001, because of this it is displaying from 0000080126..
may i think this might be the reason...
‎2009 Jun 02 5:46 PM
‎2009 Jun 02 5:49 PM
check the order of the vbeln stored in the table by removing the maxiamum entries, you will know the data is stored...
if the data is stored in table with out sorting order, because of this the first entries in the table it is
picking with out sort order...
‎2009 Jun 02 5:52 PM
I don't want to change the maximum no of hits. I know that will display records properly. My question is i defined primary key as VBELN then it should pick from 1 and not from 80126
a®
‎2009 Jun 02 5:49 PM
Hi,
Do you have any fields with INITIAL is checked and not Primary key checked? if yes then remove that checkbox and try
Thanks
Sudheer
‎2009 Jun 02 5:51 PM
I have only one primary key as VBELN and for that key & Initial Checkbox are checked
a®
‎2009 Jun 04 8:52 PM
I find problem is because of secondary index has created with VBLEN + FKART and make it unique check box checked. I removed this index and now SE16 & SE16N showing correct results.
Strange is in it ?
a®
‎2009 Jun 04 8:57 PM
Don't close the thread yet, I am sure that Rob still has something to say...
> I removed this index
Keep an eye on ST22 to find who created the index.
Cheers,
Julius
‎2009 Jun 04 9:05 PM
I reopened the thread.
Julius,
I find very few programs using the deleted secondary index, i need to change these programs.
a®